{"version":3,"sources":["libs/response.js","libs/index.js","libs/http.js","libs/apiHelper.js","routes/history.js","libs/dateTime.js","libs/common.js","constants/auth.js","actions/AuthorizeService.js","constants/ApiAuthorizationConstants.js","constants/errors.js","constants/systemUsers.js","libs/utilities.js","libs/table.js","constants/moment.js","components/loading.js","serviceWorker.js","constants/action-type/member.js","Common/Authorization/SystemRoles.js","Common/Authorization/SystemPermissions.js","Common/Authorization/policies/isSystemUserAdminPolicy.js","Common/Authorization/policies/isSystemUserPolicy.js","Common/Authorization/policies/isLawFirmUserPolicy.js","Common/Authorization/policies/isBrokerUserPolicy.js","Common/Authorization/policies/isLenderUserPolicy.js","constants/routeOptions.js","Common/Authorization/policies/isNotSystemUserPolicy.js","reducers/member.js","constants/action-type/callback.js","reducers/callback.js","reducers/ui.js","reducers/navbar.js","constants/action-type/authorization.js","reducers/authorization.js","reducers/dashboard.js","constants/action-type/brokers.js","constants/action-type/individual.js","constants/action-type/lenderProfile.js","constants/action-type/profile.js","reducers/profile.js","constants/action-type/triggers.js","reducers/triggers.js","reducers/users.js","constants/action-type/notes.js","reducers/notes.js","reducers/index.js","store/index.js","constants/version.js","components/Logo.js","Layout/TemplateNothing.js","pages/Login.js","constants/apiUrl.js","actions/member.js","pages/Signup.js","pages/ForgotPassword.js","actions/asyncActionProcessor.js","actions/authorization.js","actions/profile.js","pages/Initialize.js","Common/Exception/typeConfig.js","Common/Exception/index.js","Common/InactiveProfile/index.js","Common/Authorization/AuthorizedRoutes.js","actions/lookup.js","constants/lookup.js","components/Common/visiblityWrapper.js","Common/Authorization/AuthorizedView.js","components/Profile/StatesForm.js","constants/warnings.js","components/Profile/ZeroAvailableWarning.js","components/Profile/FirstRankingImproved.js","components/Profile/SecondRankingImproved.js","components/Profile/Construction.js","components/Profile/Mezzanine.js","components/Profile/LandBank.js","components/Profile/StatesFormRegions.js","actions/users.js","components/Profile/Rural.js","constants/colors.js","components/Common/CustomSorter.js","components/Profile/MatchesList.js","components/Profile/Details.js","assets/icons/EditIcon.js","assets/icons/DeleteIcon.js","assets/icons/AddIcon.js","components/Profile/FilesList.js","actions/loans.js","Common/Hooks/ColTemplate/useLoansTableColumns.tsx","components/Loans/LoansTable.js","pages/Profile/Lender.js","components/Profile/UserDetails.js","components/Common/userProfileImage.js","components/Common/decoratedFormControl.js","components/Profile/portrait-form.js","components/Profile/PortraitRemove.js","components/Profile/protrait-view.js","Common/RateView.js","components/FinderUtility/UserDisplayCard/LabelValuePair.js","components/FinderUtility/UserDisplayCard/KeyMetrics.js","components/Profile/OrderOfAppearance.js","components/Profile/Utility/utility-company.js","components/Profile/Utility/LeadScore.tsx","components/Profile/Utility/FollowUp.tsx","components/Profile/Utility/utility.js","Common/ConfirmationModal.js","libs/user.js","pages/Profile/Index.js","pages/Logout.js","components/navBar.js","Common/progressBar.js","components/menu.js","components/SettingDropDown.js","components/ProfileSwitchOption.js","components/Common/UniversalSearchBox.js","constants/finderUtility.js","constants/loans.js","components/FinderUtility/FinderUtilityContext.js","components/FinderUtility/header.js","components/FinderUtility/types.js","Common/NumberInput.js","components/FinderUtility/Filters/LowAndHighPercentageFilters.js","components/FinderUtility/Filters/priority.js","components/FinderUtility/Filters/radius.js","components/FinderUtility/Filters/ratings.js","components/FinderUtility/Filters/scenario.js","components/FinderUtility/Filters/securityType.js","components/FinderUtility/Filters/settlementDate.js","actions/finderUtility.js","components/FinderUtility/Filters/suburbAndState.js","components/FinderUtility/Filters/term.js","components/FinderUtility/Filters/principal.js","components/FinderUtility/Filters/Valuation.tsx","components/FinderUtility/Filters/Credit.tsx","components/FinderUtility/Filters/Interest.tsx","components/FinderUtility/Filters/Construction.tsx","components/FinderUtility/Filters/Subdivision.tsx","components/FinderUtility/Filters/finderUtilitySearchModal.js","components/FinderUtility/Sidebar/filterView.js","components/FinderUtility/Sidebar/sidebar.js","components/FinderUtility/Filters/lenderBrokerFilter.js","components/FinderUtility/UserDisplayCard/header.js","components/FinderUtility/UserDisplayCard/userBasicDetail.js","components/FinderUtility/UserDisplayCard/index.js","components/PageHeaders/omicronBDMLookup.js","components/PageHeaders/omicronBDMView.js","Common/Authorization/policies/isLawFirmPolicy.js","components/PageHeader.js","Layout/TemplateNavbar.js","constants/inputFields.js","components/Users/UsersList.js","pages/Users/SystemUser.js","Common/RequiredSign.js","pages/Users/AddCompanyUser.js","pages/Companies/CreateCompany.js","actions/company.js","pages/Users/AddSystemUser.js","pages/Users/ChangePassword.js","pages/Users/FindBroker.js","pages/Users/FindLender.js","components/Profile/BrokerDetailsTab.js","actions/matches.js","components/Profile/BrokerMatchesList.js","components/Profile/BrokerProfileTabs.js","pages/Profile/Broker.js","actions/notes.js","components/Notes/NotesList.js","components/Notes/DailyScores.js","components/Notes/MonthlyScores.js","pages/Users/Notes.js","Common/Hooks/useCheckUserRoles.tsx","components/Loans/AttributedLenders.js","components/Loans/Create/LoadFormHeader.js","components/Loans/AttributedBrokers.js","components/Loans/Create/CreditLookup.tsx","components/Loans/Create/ConstructionModal.tsx","components/Loans/Create/SubdivisionModal.tsx","components/Loans/ViewLogs.tsx","Common/Hooks/useAllowUserWithRoles.tsx","pages/Loans/LoansDetailsView.js","components/Loans/Create/LoanCreateContext.js","components/Loans/Create/AddInactiveFinancierConfirmationModal.js","components/Loans/Create/LawFormLookup.js","components/Loans/Create/PartnerLookup.js","components/Loans/Create/PriorityLookup.js","components/Loans/Create/ScenarioLookup.js","components/Loans/Create/SecuritySubTypeLookup.js","components/Loans/Create/SecurityTypeLookup.js","components/Loans/Create/SuburbAndStateLookup.js","components/Loans/Create/AssociateLookup.js","components/Loans/Create/StatusLookup.js","components/Loans/Create/RatingsAndReview.js","Common/AddAndDeleteButton.js","components/Loans/Create/AddedLendersDisplayAndUpdate.js","components/Loans/Create/AddLendersModal.js","components/Loans/Create/ArrtibutedLendersForm.js","components/Loans/Create/AttributedLendersView.js","components/Loans/Create/AddedBrokersDisplayAndUpdate.js","components/Loans/Create/AddBrokersModal.js","components/Loans/Create/AttributedBrokersForm.js","components/Loans/Create/AttributedBrokersView.js","Common/ErrorAlertDisplay.js","components/Loans/Create/BrokerBdmView.js","components/Loans/Create/LenderBdmView.js","components/Loans/Create/ValuationRequiredLookup.tsx","components/Loans/Create/InterestLookup.tsx","components/Loans/Create/LoanForm.js","components/Loans/AllLoansList.js","components/Loans/AllFilters/status.js","components/Loans/AllFilters/expiry.js","components/Loans/Create/StatusErrorModal.tsx","Common/Hooks/useGetLenderBrokerId.tsx","pages/Loans/Create.js","pages/FinderUtility/use-filter-view.js","Common/Hooks/use-size-listener.js","components/FinderUtility/UserDisplayCard/mobileKeyMetrics.js","components/FinderUtility/UserDisplayCard/mobileIndex.js","pages/FinderUtility/FinderUtilityView.js","components/PrivacySettings/dayActivity.js","components/PrivacySettings/finderFunction.js","components/PrivacySettings/fundsAvailableEmail.js","components/PrivacySettings/loanTab.js","pages/PrivacySettings/privacySettingsView.js","actions/privacySettings.js","components/EmailSubscriptions/syndicateFunders.js","components/EmailSubscriptions/brokerSubscriptions.js","components/EmailSubscriptions/lenderSubscriptions.js","components/EmailSubscriptions/ninetyDaysActivity.js","actions/emailSubscriptions.js","components/EmailSubscriptions/marketingEmails.js","Common/Hooks/useUserHasRole.tsx","pages/EmailSubscriptions/emailSubscriptionsView.js","components/Loans/AllFilters/suburbAndState.js","components/Loans/AllFilters/securityType.js","components/Loans/AllFilters/priority.js","components/Loans/AllFilters/Valuation.tsx","components/Loans/AllFilters/Interest.tsx","components/Loans/AllFilters/Credit.tsx","components/Loans/AllFilters/partner.js","components/Loans/AllFilters/omicronBdm.js","components/Loans/AllFilters/radius.js","components/Loans/AllFilters/principal.js","components/Loans/AllFilters/LowAndHighPercentageFilters.js","components/Loans/AllFilters/scenario.js","components/Loans/AllFilters/Construction.tsx","components/Loans/AllFilters/Subdivision.tsx","components/Loans/AllFilters/term.js","components/Loans/AllFilters/ratings.js","components/Loans/AllFilters/LawFirm.js","components/Loans/AllFilters/AssociateLookup.js","components/Loans/AllFilters/AllLoansFilters.tsx","components/Loans/AllLoansColumnsSelection.tsx","Common/Hooks/useDebounceCallback.tsx","components/Loans/AllFilters/AllLoansSaveSearch.tsx","assets/icons/ExcelIcon.js","components/Loans/ExportLoanSearchToXls.tsx","Common/Hooks/useDebounce.tsx","components/Loans/AllFilters/AllLoansLoadSearch.tsx","pages/Loans/View.js","components/Profile/LawFirm/lawFirmProfileTabs.js","pages/Profile/LawFirm.js","pages/Profile/useProfile.js","components/Common/tempateLoader.js","constants/api_key.js","actions/bulkEmail.ts","components/BulkEmail/RecipientSearch.tsx","pages/Marketing/CreateEmail.tsx","components/Common/RadioInCard.tsx","components/Users/AllUsersList.tsx","Common/Hooks/useUpdateUsersRouteOptions.tsx","pages/Users/AllUsers.tsx","components/Loans/Logs/SnapshotAttributedLenders.tsx","components/Loans/Logs/SnapshotAttributedBrokers.tsx","pages/Loans/LoansSnapshotView.tsx","pages/EmailSubscriptions/EmailSubscriptionsPublic.tsx","routes/index.js","index.js","constants/env.js"],"names":["instance","ResponseHandler","Object","_home_vsts_work_1_s_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","this","_data","errors","_","reduce","errorArray","err","errorDesc","errorMessage","hasOwnProperty","message","concat","status","_ref","isAxiosError","response","actionType","model","_ref2","_ref3","type","total","data","toParse","hasNoModel","isUndefined","rows","map","row","parseResponse","page","_ref4","ErrorMessage","toString","freeze","_utilities__WEBPACK_IMPORTED_MODULE_0__","__webpack_require__","d","__webpack_exports__","_dateTime__WEBPACK_IMPORTED_MODULE_6__","_common__WEBPACK_IMPORTED_MODULE_7__","loginRedirectRequested","handleUnauthorizedRequest","returnUrl","window","location","href","redirectUrl","QueryParameterNames","ReturnUrl","encodeURI","history","push","local","method","requestPayloadWrapper","_home_vsts_work_1_s_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__","_home_vsts_work_1_s_node_modules_babel_preset_react_app_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default","a","mark","_callee","url","queryParams","accessToken","headers","wrap","_context","prev","next","authService","getAccessToken","sent","Content-Type","Authorization","abrupt","axios","params","timeout","validateStatus","includes","stop","_x","_x2","_x3","apply","arguments","requestWrapper","_callee2","cancelToken","_context2","_x4","_x5","requestFileWrapper","_callee4","payload","name","fileList","_context4","Promise","resolve","reject","req","XMLHttpRequest","formData","FormData","append","JSON","stringify","mustBeArray","file","index","theBlob","fileName","File","open","setRequestHeader","send","onreadystatechange","_x10","_x11","_x12","_x13","requestFormData","_ref8","_callee8","_context8","_x20","_x21","_x22","http","get","getWithQueryParams","_callee3","handleServerError","_context3","parseMomentPropsToDate","paramsSerializer","qs","arrayFormat","_x6","_x7","_x8","_x9","put","patch","post","del","postFile","postFormData","putFormData","updateFile","downloadFile","_ref5","_callee5","fileResult","contentDisposition","matches","_context5","keys","forEach","key","moment","toDate","responseType","request","getResponseHeader","exec","replace","saveAs","_x14","_x15","all","_ref9","_callee9","requests","_context9","_x23","requuestAllWrapper","postPreviewFIle","_ref6","_callee6","_context6","questions","title","readyState","DONE","_x16","_x17","requestArrayBufferWrapper","getPdf","_ref7","_callee7","_context7","_x18","_x19","requestPdf","publicGet","_ref10","_callee10","_context10","_x24","_x25","publicRequestWrapper","ApiUrlHandler","_urls","COMPANY_URL","BUSINESS_UNIT_URL","COMPANY_LOOKUP_URL","endpoint","_ref$options","options","userArea","localStorage","getItem","env","baseurl","templateEngine","history__WEBPACK_IMPORTED_MODULE_0__","createBrowserHistory","formatDateTimeForPayload","moment__WEBPACK_IMPORTED_MODULE_1__","moment__WEBPACK_IMPORTED_MODULE_1___default","n","value","isNullEmptyOrUndefined","format","getItemName","getSettlementItemName","convertCurrenyToHighestFigure","_mustBeArray$find","list","_ref$field","field","_ref$outputField","outputField","find","o","_mustBeArray$find2","_name$replace$trim","_ref2$field","_ref2$outputField","trim","amount","toFixed","AUTH_CONFIG","authority","client_id","redirect_uri","callback_url","post_logout_redirect_uri","redirect_url","response_type","scope","automaticSilentRenew","AuthorizeService","classCallCheck","_callbacks","_nextSubscriptionId","_user","_isAuthenticated","_popUpDisabled","createClass","asyncToGenerator","regenerator_default","user","getUser","_getUser","profile","ensureUserManagerInitialized","userManager","_getAccessToken","access_token","_signIn","state","silentUser","popUpUser","signinSilent","createArguments","updateState","success","t0","console","log","Error","signinPopup","t1","error","signinRedirect","redirect","t2","_completeSignIn","signinCallback","_signOut","signoutPopup","undefined","signoutRedirect","_completeSignOut","signoutCallback","notifySubscribers","callback","subscription","subscriptionId","subscriptionIndex","element","found","filter","length","splice","i","useReplaceToNavigate","AuthenticationResultStatus","Fail","Success","Redirect","_ensureUserManagerInitialized","settings","_this","includeIdTokenInSilentRenew","userStore","WebStorageStateStore","prefix","ApplicationName","UserManager","events","addUserSignedOut","removeUser","LogoutActions","LoginActions","Message","LogoutCallback","Logout","LoggedOut","Login","LoginCallback","LoginFailed","Profile","Register","loanErrors","loanFieldErrors","400","401","402","403","404","405","406","407","408","500","loanNumberRequired","loanNumberContainsSpecial","attributedOmicronLenderRequired","attributedOmicronBrokerRequired","validAttributedOmicronLender","principalRequired","suburbAndStateRequired","lowerRateRequired","lowerRateValidation","higherRateRequired","higherRateValidation","lvrRequired","lvrValidation","statusKeySettled","statusKeyDischarged","repaymentDateRequired","settlementDateRequired","lawfirmRequired","priorityRequired","scenarioRequired","securityTypeRequired","securitySubTypeRequired","interestRequired","permissionAttributedLender","lender","lvr","loanLenders","suburbState","attributedBrokerId","principal","higherRate","lowerRate","loanNo","repaymentDate","settlementDate","ADMIN_USER","LENDER_USER","BROKER_USER","DUAL_USER","LAW_FIRM_USER","SYSTEM_ADMIN_USER","errorDisplay","antd_lib_message__WEBPACK_IMPORTED_MODULE_4___default","errorDisplayCustom","defaultIfUndefinedOrNull","defaultValue","evaluatePolicy","_evaluatePolicy","policy","_home_vsts_work_1_s_node_modules_babel_preset_react_app_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_1___default","roles","permissions","delay","ms","setTimeout","getDataUrlFromBlob","blob","reader","FileReader","addEventListener","result","readAsDataURL","buildQueryParams","esc","encodeURIComponent","removeUndefined","k","queryString","isObject","buildFilterParams","join","toJSON","guid","c","r","Math","random","each","isNull","items","isArray","requestBuilder","_home_vsts_work_1_s_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_2__","id","baseUrl","_filters","endUrl","paramString","isEmpty","tpl","entries","x","match","re","currencyFormater","negative","Number","abs","asDefaultDisplayFormatDate","dateString","utc","DEFAULT_DATE_FORMAT","warn","asCustomFormatDate","customFormat","obj","prop","getProductType","getUsersProfileType","isSystemUser","profileType","isOwnProfile","userHasActionRights","millisecondsInADay","getActiveKey","activeKey","toLowerCase","isCategoryOffered","category","categoriesOffered","parseItem","item","parse","constructUrl","website","URL","firstAttemptErr","secondAttemptErr","getRoundedRatings","minValue","floor","tableColumnGenerator","cols","col","columnConfig","dataIndex","align","sorter","sortOrder","render","record","width","link","Name","applicationUrl","origin","linkUrl","react__WEBPACK_IMPORTED_MODULE_14___default","createElement","onClick","e","preventDefault","navigateUser","target","dataType","dateFormat","antd_lib_button__WEBPACK_IMPORTED_MODULE_13___default","showEmailPreview","dangerouslySetInnerHTML","__html","Fragment","files","fileUrl","filename","lable","boxChecked","isStageOne","isStageTwo","antd_lib_row__WEBPACK_IMPORTED_MODULE_5___default","justify","antd_lib_col__WEBPACK_IMPORTED_MODULE_9___default","span","antd_lib_icon__WEBPACK_IMPORTED_MODULE_11___default","antd_lib_checkbox__WEBPACK_IMPORTED_MODULE_7___default","checked","onChange","toggleStageSelection","disabled","enabled","antd_lib_popconfirm__WEBPACK_IMPORTED_MODULE_1___default","placement","okText","cancelText","onConfirm","action","className","classname","antd_lib_switch__WEBPACK_IMPORTED_MODULE_3___default","AU_DATE_FORMAT","DEFAULT_DATE_WITH_TIME_FORMAT","Loading","props","react_default","spin_default","size","spinSize","tip","Boolean","hostname","memberAction","LOGIN","SIGNUP","FORGOT_PASSWORD","LOGOUT","LIST_USERS","USER_DETAIL","AUTH_USER","UNAUTH_USER","AUTH_IN_PROGRESS","AUTH_ERROR","FORGOT_SUCCESS","CLEARDOWN","USER_PROFILE","USER_AUTHORIZATION","BGS_SYSTEM_USER_ROLE","BGS_BROKER_ROLE","BGS_LENDER_ROLE","BGS_LAWFIRM_ROLE","BGS_SYSTEM_ADMIN_PERMISSION","isSystemAdminUserPolicy","passed","some","isSystemUserPolicy","isLawFirmUserPolicy","isNotLawFirmUserPolicy","isLawFirmOwnProfilePolicy","currentlyViewedLawFirmId","isLawFirm","parseInt","isBrokerUserPolicy","isOnlyBrokerUserPolicy","_isOnlyBrokerUserPolicy","isBroker","isLender","isLenderUserPolicy","isBrokerOwnProfilePolicy","currentlyViewedBrokerId","isUserInvolvedPolicy","isMatched","isUserUninvolvedPolicy","isLawFirmUser","isOnlyLenderUserPolicy","_isOnlyLenderUserPolicy","isLenderOwnProfilePolicy","currentlyViewedLenderId","commonRoutingOptions","EMAIL_SUBSCRIPTIONS_OPTION_SYSTEM_USER","EMAIL_SUBSCRIPTIONS_OPTION_LENDER_USER","EMAIL_SUBSCRIPTIONS_OPTION_BROKER_USER","EMAIL_SUBSCRIPTIONS_OPTION_LAWFIRM_USER","DEFAULT_ROUTES_SYSTEM_USER","BROKER_PROFILE_ROUTES_WITH_LENDER_PROFILE__SYSTEM_USER","BROKER_PROFILE_ROUTES_WITHOUT_LENDER_PROFILE_SYSTEM_USER","LENDER_PROFILE_ROUTES_WITH_BROKER_PROFILE_SYSTEM_USER","LAWFIRM_PROFILE_ROUTES_SYSTEM_USER","LENDER_PROFILE_ROUTES_WITHOUT_BROKER_PROFILE_SYSTEM_USER","CAN_RESET_PROFILE_PASSWORD","PROFILE_HAS_NOT_ACCEPTED_INVITATION","PROFILE_EDIT_OPTION","initialState","forgotMsg","timestamp","loading","authenticated","claims","header","enableBack","editMode","showOmicronBDM","omicronBdm","currentPortraitIndividualId","showSearchBox","showDeactivatedMessage","routesOptions","CALLBACK_IN_PROGRESS","CALLBACK_COMPLETE","INIT","GET_LOGGED_IN_USER_PROFILE","IS_USER_LOGGED_IN","CHANGE_LOGGEDIN_USER_PASSWORD","USER_LOGGED_OUT","LAST_VISITED_PROFILE","INDIVIDUAL_USER_DETAIL","defaultState","lastVisitedProfile","individualUser","companyName","produce","draft","isLoggedIn","fullName","given_name","family_name","objectSpread","actions","GET_BROKER_PROFILE","GET_BROKER_MATCHES_STATUS_LOOKUP","SAVE_INDIVIDUAL_PROFILE","CLEAR_CURRENT_PROFILE_PICTURE","CLEAR_PROFILE_DETAILS","GET_INDIVIDUAL_DETAILS","UPDATE_CURRENT_PROFILE_LOADING","UPDATE_ACTIVE_PORTRAIT","GET_LAW_FIRM_PROFILE","GET_LENDER_PROFILE","SET_ACTIVE_PROFILE","SELECT_ACTIVE_PROFILE","SET_TAB_PROFILE_SETTINGS","BROKER_PROFILE_ACTIVE","LENDER_PROFILE_ACTIVE","details","matchesList","matchesTotal","broker","firstRanking","activeProfile","fileNotesList","fileNotesTotal","profileLoading","activePortrait","lawFirm","LIST_TRIGGERS","LIST_TRIGGERS_LOOKUP","initState","triggerList","lookup","currentList","currentTotal","formerList","formerTotal","SET_DAILY_SCORE_PAGE","SET_MONTHLY_SCORE_PAGE","SET_NOTE_ACTION","dailyScorePage","monthlyScorePage","noteAction","reducers","rehydrated","member","user_id","sub","users","ui","progressBarStatus","navbar","authorization","dashboard","triggers","secondRanking","construction","mezzanine","landbank","rural","professionalDetails","imageFile","resetTab","resetActiveTab","isMasterSwitchOn","isProfileActive","personalDetails","toConsumableArray","notes","config","storage","blacklist","reducer","persistCombineReducers","middleware","thunk","configureStore","store","createStore","compose","applyMiddleware","persistor","persistStore","getState","Logo","src","alt","style","cursor","zIndex","TemplateNothing","react","row_default","col_default","components_Logo","height","sm","md","textAlign","children","skeleton_default","active","Component","_Component","possibleConstructorReturn","getPrototypeOf","call","login","signIn","navigateToReturnUrl","setState","processLoginCallback","completeSignIn","getReturnUrl","fromQuery","URLSearchParams","search","startsWith","redirectToApiAuthorizationPath","apiAuthorizationPath","inherits","_this$apiUrls","apiUrls","DASHBOARD_STATS_URL","DASHBOARD_ACTION_URL","ACCOUNTS_ME","ACCOUNTS_ME_LAST_VISITED","ACCOUNTS_PASSWORD_CHANGE","USERS_URL","USERS_DETAIL_URL","USERS_ALL_USER_SEARCH_URL","USERS_ALL_SYSTEM_USER_SEARCH_URL","USERS_ALL_FINANCIER_TYPE_URL","USERS_ALL_SETTLED_LOANS_URL","USERS_ALL_FIRST_FUNDS_AVAILABLE_URL","USERS_ALL_PROFILE_STATUS_URL","GET_ALL_USERS_BDM_LOOKUP","defineProperty","isMocked","updateHeader","dispatch","isValidStatus","validObject","inValidObject","catch","getUserData","USER_DETAIL_URL","APIHelper","constructEndpoint","username","userMode","LOGIN_URL","setItem","signUp","statusText","forgotPassword","_ref11","logOut","_ref12","_callee11","_context11","_ref13","_callee12","_context12","auth","signinUser","signin","checkSession","_ref14","_callee13","_context13","_ref15","_callee14","_context14","getUserClaims","role","_ref16","_callee15","date","_context15","Date","getTime","APIHandler","_ref17","_callee16","_context16","getProfileInfo","_ref18","_callee17","_context17","signout","getProfile","statusCode","_x26","_ref19","_callee18","_context18","_x27","getUserAuthorization","_ref20","_ref21","_callee19","_context19","_x28","_x29","updateNavBar","_ref22","buttonText","_ref23","_callee20","_context20","_x30","_x31","authError","now","signoutUser","cleardown","updateRouteOptions","_ref24","routeOptions","_ref25","_callee21","_reject","_context21","_x32","_x33","_ref26","_callee22","_context22","_x34","FormItem","form_default","Item","NormalSignUpForm","handleSubmit","form","validateFields","values","loadingSubmit","onSignUpUser","then","resp","compareToFirstPassword","rule","getFieldValue","validateToNextPassword","force","getFieldDecorator","onSubmit","hideRequiredMark","button_default","display","float","gutter","colon","label","rules","required","input_default","placeholder","icon_default","color","validator","htmlType","theme","react_router_dom","to","mapDispatchToProps","onLoginUser","onForgotPassword","connect","create","ForgotPassword","ForgotPassword_FormItem","React","processRequest","Axios","isCancel","_response$data","Array","processPermission","_user$appUserPermis","processRoles","getLoggedInUserProfile","_user$permissions$rol","currentProfileSyncTimer","debouncedUpdateLastVisited","profileId","clearTimeout","updateActiveProfile","changeLoggedInUserPassword","changePasswordRequest","updateIndividualProfileV2","apiUrl","tempPortraits","LENDER_UPDATE_SYSTEM_USER_URL","LENDER_UPDATE_INDIVIDUAL_URL","LAW_FIRM_DETAIL_SYSTEM_USER_URL","LAW_FIRM_DETAIL_URL","BROKER_UPDATE_SYSTEM_USER_URL","BROKER_UPDATE_INDIVIDUAL_URL","portraits","portrait","tempPortrait","previewProfileImage","individualId","imageFileForDeletion","fileId","individualImageFileDto","hasAcceptedInvitation","firstname","lastname","mobileNumber","email","previewCompanyLogo","logoFileForDeletion","logoFile","clearCurrentProfilePicture","setProfileTabSettings","getIndividualDetails","_ref7$userType","userType","notClearProfileImage","INDIVIDUALS_DETAIL_URL","getBrokerProfile","doNotResetCurrentTab","isUserViewingSelfProfile","_ref9$generalView","generalView","PUBLIC_BROKER_DETAILS_URL","BROKER_DETAIL_SYSTEM_USER_URL","BROKER_SELF_DETAIL_URL","BROKER_DETAIL_URL","getLenderProfile","LENDERS_DETAIL_SYSTEM_USER_URL","LENDERS_SELF_DETAIL_URL","LENDERS_DETAIL_URL","getLendersFirstRankingProfile","LENDERS_FIRST_RANKING_DETAIL_PROFILE_URL","getLendersSecondRankingProfile","LENDERS_SECOND_RANKING_DETAIL_PROFILE_URL","getLendersConstructionProfile","LENDERS_CONSTRUCTION_DETAIL_PROFILE_URL","getLendersMezzanineProfile","LENDERS_MEZZANINE_DETAIL_PROFILE_URL","getLendersLandBankProfile","LENDERS_LANDBANK_DETAIL_PROFILE_URL","getLendersRuralProfile","LENDERS_RURAL_DETAIL_PROFILE_URL","saveProfile","payLoad","_ref27","saveFirstRankingField","_ref28","_ref29","lastVerifiedDate","LENDERS_FIRST_RANKING_VERIFY_DRAFT_URL","_ref30","saveFirstRankingFieldAsAdmin","_ref31","_ref32","LENDERS_ADMIN_FIRST_RANKING_DETAIL_PROFILE_URL","LENDERS_ADMIN_FIRST_RANKING_VERIFY_DRAFT_URL","_ref33","saveSecondRankingField","_ref34","_ref35","LENDERS_SECOND_RANKING_VERIFY_DRAFT_URL","_ref36","saveSecondRankingFieldAsAdmin","_ref37","_ref38","_callee23","_context23","LENDERS_ADMIN_SECOND_RANKING_DETAIL_PROFILE_URL","LENDERS_ADMIN_SECOND_RANKING_VERIFY_DRAFT_URL","_ref39","_callee24","_context24","saveConstructionField","_ref40","_ref41","_callee25","_context25","LENDERS_CONSTRUCTION_VERIFY_DRAFT_URL","_ref42","_callee26","_context26","saveConstructionFieldAsAdmin","_ref43","_ref44","_callee27","_context27","LENDERS_ADMIN_CONSTRUCTION_DETAIL_PROFILE_URL","LENDERS_ADMIN_CONSTRUCTION_VERIFY_DRAFT_URL","_ref45","_callee28","_context28","_x35","saveMezzanineField","_ref46","_ref47","_callee29","_context29","LENDERS_MEZZANINE_VERIFY_DRAFT_URL","_x36","_x37","_ref48","_callee30","_context30","_x38","saveMezzanineFieldAsAdmin","_ref49","_ref50","_callee31","_context31","LENDERS_ADMIN_MEZZANINE_DETAIL_PROFILE_URL","LENDERS_ADMIN_MEZZANINE_VERIFY_DRAFT_URL","_x39","_x40","_ref51","_callee32","_context32","_x41","saveLandBankField","_ref52","_ref53","_callee33","_context33","LENDERS_LANDBANK_VERIFY_DRAFT_URL","_x42","_x43","_ref54","_callee34","_context34","_x44","saveLandBankFieldAsAdmin","_ref55","_ref56","_callee35","_context35","LENDERS_ADMIN_LANDBANK_DETAIL_PROFILE_URL","LENDERS_ADMIN_LANDBANK_VERIFY_DRAFT_URL","_x45","_x46","_ref57","_callee36","_context36","_x47","saveRuralField","_ref58","_ref59","_callee37","_context37","LENDERS_RURAL_VERIFY_DRAFT_URL","_x48","_x49","_ref60","_callee38","_context38","_x50","saveRuralFieldAsAdmin","_ref61","_ref62","_callee39","_context39","LENDERS_ADMIN_RURAL_DETAIL_PROFILE_URL","LENDERS_ADMIN_RURAL_VERIFY_DRAFT_URL","_x51","_x52","_ref63","_callee40","_context40","_x53","updateMatches","_ref67","_ref67$payLoad","_ref68","_callee43","_context43","UPDATE_MATCHES_STATUS_URL","_x57","_x58","_ref69","_callee44","_context44","_x59","updateMatchesLender","_ref70","_ref70$payLoad","_ref71","_callee45","_context45","UPDATE_MATCHES_STATUS_LENDER_URL","_x60","_x61","_ref72","_callee46","_context46","_x62","updateMatchesBroker","_ref73","_ref73$payLoad","_ref74","_callee47","_context47","UPDATE_MATCHES_STATUS_BROKER_URL","_x63","_x64","_ref75","_callee48","_context48","_x65","setActiveProfile","brokerId","lenderId","_ref88","_callee57","_context57","_x78","clearProfileDetails","_ref89","_callee58","_context58","_x79","_ref90","_callee59","_context59","_x80","updateProfileLoading","_ref91","_callee60","_context60","_x81","_ref92","_callee61","_context61","_x82","masterSwitchTurnOn","_ref94","_ref95","_callee63","_context63","MASTER_SWITCH_TURN_ON_URL","toUpperCase","_x84","getPersonalDetails","_ref96","_ref96$profileType","_ref97","_callee64","_context64","LENDERS_PERSONAL_DETAIL_SYSTEM_USER_URL","LENDERS_PERSONAL_DETAIL_URL","LAW_FIRM_PERSONAL_DETAIL_SYSTEM_USER_URL","LAW_FIRM_PERSONAL_DETAIL_URL","_x85","getProfessionalDetails","_ref98","_ref98$profileType","_ref99","_callee65","_context65","LENDERS_PROFESSIONAL_DETAIL_SYSTEM_USER_URL","LENDERS_PROFESSIONAL_DETAIL_URL","LAW_FIRM_PROFESSIONAL_DETAIL_SYSTEM_USER_URL","LAW_FIRM_PROFESSIONAL_DETAIL_URL","_x86","masterSwitchTurnOff","_ref100","_ref101","_callee66","_context66","MASTER_SWITCH_TURN_OFF_URL","_x87","saveProfessionalDetailsField","_ref102","_ref102$profileType","_ref103","_callee67","_context67","_x88","_x89","_ref104","_callee68","_context68","_x90","savePersonalDetailsField","_ref105","_ref105$profileType","_ref106","_callee69","_context69","_x91","_x92","_ref107","_callee70","_context70","_x93","profileStatusTurnOff","_ref108","_ref109","_callee71","_context71","LENDER_PROFILE_STATUS_OFF_URL","LAW_FIRM_PAUSE_PROFILE_URL","BROKER_PROFILE_STATUS_OFF_URL","_x94","profileStatusTurnOn","_ref110","_ref111","_callee72","_context72","LENDER_PROFILE_STATUS_ON_URL","LAW_FIRM_ACTIVATE_PROFILE_URL","BROKER_PROFILE_STATUS_ON_URL","_x95","toggleSubscriptions","_ref112","productType","_ref113","_callee73","_context73","LENDER_PRODUCT_STATUS_TOGGLE","BROKER_PRODUCT_STATUS_TOGGLE","_x96","verifyFirstRankingFields","_ref114","_ref115","_callee74","_context74","LENDERS_FIRST_RANKING_VERIFY_URL","_x97","verifyFirstRankingFieldsAsAdmin","_ref116","_ref117","_callee75","_context75","LENDERS_ADMIN_FIRST_RANKING_VERIFY_URL","_x98","clearDetailsFieldsAsAdmin","_ref118","categoryType","_ref119","_callee76","_context76","LENDERS_ADMIN_CLEAR_DETAILS_URL","_x99","_x100","_ref120","_callee77","_context77","_x101","clearDetailsFields","_ref121","_ref122","_callee78","_context78","LENDERS_CLEAR_DETAILS_URL","_x102","_x103","_ref123","_callee79","_context79","_x104","verifySecondRankingFields","_ref124","_ref125","_callee80","_context80","LENDERS_SECOND_RANKING_VERIFY_URL","_x105","verifySecondRankingFieldsAsAdmin","_ref126","_ref127","_callee81","_context81","LENDERS_ADMIN_SECOND_RANKING_VERIFY_URL","_x106","verifyConstructionFields","_ref128","_ref129","_callee82","_context82","LENDERS_CONSTRUCTION_VERIFY_URL","_x107","verifyConstructionFieldsAsAdmin","_ref130","_ref131","_callee83","_context83","LENDERS_ADMIN_CONSTRUCTION_VERIFY_URL","_x108","verifyMezzanineFields","_ref132","_ref133","_callee84","_context84","LENDERS_MEZZANINE_VERIFY_URL","_x109","verifyMezzanineFieldsAsAdmin","_ref134","_ref135","_callee85","_context85","LENDERS_ADMIN_MEZZANINE_VERIFY_URL","_x110","verifyLandBankFields","_ref136","_ref137","_callee86","_context86","LENDERS_LANDBANK_VERIFY_URL","_x111","verifyLandBankFieldsAsAdmin","_ref138","_ref139","_callee87","_context87","LENDERS_ADMIN_LANDBANK_VERIFY_URL","_x112","verifyRuralFields","_ref140","_ref141","_callee88","_context88","LENDERS_RURAL_VERIFY_URL","_x113","verifyRuralFieldsAsAdmin","_ref142","_ref143","_callee89","_context89","LENDERS_ADMIN_RURAL_VERIFY_URL","_x114","getBrokerPersonalDetails","_ref144","_ref145","_callee90","_context90","BROKER_PERSONAL_DETAIL_SYSTEM_USER_URL","BROKER_PERSONAL_DETAIL_URL","_x115","saveBrokerProfessionalDetailsField","_ref160","_ref161","_callee98","_context98","BROKER_PROFESSIONAL_DETAIL_SYSTEM_USER_URL","BROKER_PROFESSIONAL_DETAIL_URL","_x123","_x124","_ref162","_callee99","_context99","_x125","saveBrokerPersonalDetailsField","_ref163","_ref164","_callee100","_context100","_x126","_x127","_ref165","_callee101","_context101","_x128","getBrokerProfessionalDetails","_ref176","_ref177","_callee107","_context107","_x134","getLawFirmProfile","_ref187","isAdmin","_ref188","_callee114","_context114","LAW_FIRM_SELF_DETAIL_URL","_x142","updateLeadScore","_x146","_x147","_updateLeadScore","_callee117","_args117","_context117","COMPANIES_UPDATE_LEAD_SCORE_AS_SYSTEM_USER","COMPANIES_UPDATE_LEAD_SCORE","leadScore","updateFollowUpDate","_x148","_x149","_updateFollowUpDate","_callee118","_args118","_context118","COMPANIES_UPDATE_FOLLOWUP_DATE_AS_SYSTEM_USER","COMPANIES_UPDATE_FOLLOWUP_DATE","followupDate","isAuthenticated","_completeUserLogin","lenderUser","systemUser","brokerUser","lawFirmUser","_onInit","useEffect","onInit","completeUserLogin","img","desc","Exception","populateAuthenticationState","_this$props","_this$props$backText","backText","_this$props$linkEleme","linkElement","_this$props$redirect","pageType","justifyContent","alignItems","InactiveProfileException","defaultProps","AuthorizedRoute","_subscription","ready","subscribe","_this2","authenticationChanged","unsubscribe","_this$state","document","pathname","protocol","host","hash","react_router","positionsLookup","statesLookup","environment","getOmicronBdmLookup","_ref5$search","COMPANY_OMICRON_BDM_LOOKUP","notesDropdownLookUpHandler","objectDestructuringEmpty","lendersLookUpHandler","_ref12$queryParams","action_match","queryOptions","LENDERS_ADMIN_MATCHES_STATUS_LOOKUP_URL","LENDERS_MATCHES_STATUS_LOOKUP_URL","brokersLookUpHandler","_ref15$queryParams","loansSecurityTypesLookups","LOANS_SECURITY_TYPE_LOOKUP","loansStatesAndSuburbsLookups","_ref23$search","LOANS_SUBURB_STATES_LOOKUP","loansStatusLookups","LOANS_STATUS_LOOKUP","loansInterestLookups","LOANS_INTEREST_LOOKUP","loansSubdivisionTypeLookups","LOANS_SUBDIVISION_TYPE_LOOKUP","loansBrokersLookups","_ref33$isSystemUser","LOANS_BROKERS_LOOKUP","LOANS_BROKERS_LOOKUP_AS_LENDER_LAW_FIRM","loansLawFirmLookup","_ref39$search","_ref39$isSystemUser","LOANS_LAWFIRM_LOOKUP","LOANS_LAWFIRM_LOOKUP_AS_LENDER_LAW_FIRM","loansLawFirmUsersLookup","_ref41$search","_ref41$isSystemUser","LOANS_LAWFIRM_USERS_LOOKUP","LOANS_LAWFIRM_USERS_LOOKUP_AS_LENDER_LAW_FIRM","loansPiorityLookup","LOANS_PRIORITY_LOOKUP","omicronBDMLookups","_ref45$search","marketingSenderLookup","MARKETING_LOOKUP_SENDERS_URL","loansCreditLookups","_ref63$generalView","PUBLIC_LOANS_CREDIT_LOOKUP","LOANS_CREDIT_LOOKUP","allLoansColumnsLookups","GET_ALL_LOANS_COLUMNS_LOOKUPS","bulkEmailRecipientsLookup","_ref66","_ref66$search","includeUnsubscribed","BULK_EMAIL_RECIPIENTS_LOOKUP_URL","Visible","visible","ascyclicalProps","objectWithoutProperties","Children","child","isValidElement","cloneElement","AuthorizedViewImpl","policyPassed","authorize","policyBehavior","p","every","prevProps","_this$props2","acyclicalProps","notAuthorizedContent","visiblityWrapper_Visible","decoratedChildrenWithProps","AuthorizedView","StatesForm","statesList","handleChangeDistance","regionsList","distancesList","handleChangeState","fields","handleChangeRegion","userHasPermissionToUpdate","checkbox_default","stateRegionDetails","stateKey","isChecked","j","_fields$stateRegionDe","capitalCity","radio_default","Group","distanceKey","stateId","distance","marginLeft","states","region","_fields$stateRegionDe2","st","regionKeys","LENDER_PROFILE_INCOMPLETE_MANATORY_FIELD_WARNING","LENDER_PROFILE_MORE_THAN_MONTH_LAST_VERIFIED_WARNING","STATE_REQUIRED_WARNING","ZeroAvailableWarning","handleCancel","handleOk","pauseLoading","modal_default","onCancel","footer","activeSubKey","userId","_useState","useState","available","bookSize","bransgrovesComments","estabFeeMin","estabFeeMax","isVerified","lastVerifiedByFirstName","lastVerifiedByLastName","lenderCategoryId","lvrNonResidentialMin","lvrNonResidentialMax","lvrResidentialMin","lvrResidentialMax","pointOfDifference","preferredParcelSizeMax","preferredParcelSizeMin","rateMax","rateMin","higherRateMax","higerRateMin","securityTypeKeys","isSyndicateLender","advertiseToOtherSyndicateLenders","_useState2","slicedToArray","setFirstRanking","_useState3","_useState4","setPageLoad","_useState5","_useState6","errorsList","setErrorsList","_useState7","_useState8","zeroAvailableWarningVisible","setZeroAvailableWarningVisible","_useState9","_useState10","setPauseLoading","_useState11","_useState12","_useState13","_useState14","securityList","setSecurityList","_useState15","_useState16","residentialType","setResidentialType","_useState17","_useState18","industrialType","setIndustrialType","_useState19","_useState20","commercialType","setCommercialType","_useState21","_useState22","specialisedType","setSpecialisedType","_useState23","_useState24","setStatesList","_useState25","_useState26","selectedStates","setSelectedStates","_useState27","_useState28","setRegionsList","_useState29","_useState30","selectedRegion","_useState31","_useState32","setDistancesList","_useState33","_useState34","selectedDistance","_useState35","_useState36","lookupsLoading","setLookupsLoading","_useState37","_useState38","isResidential","setIsResidential","_useState39","_useState40","isNonResidential","setIsNonResidential","_useState41","_useState42","isInitialized","setIsInitialized","_useState43","_useState44","isVerifying","setIsVerifying","_useState45","_useState46","isSaving","setIsSaving","_useState47","_useState48","isNotAvailableToBrokers","setIsNotAvailableToBrokers","_useState49","_useState50","hasIncompleteMandatoryFields","setHasIncompleteMandatoryFields","_useState51","_useState52","isVerifiedButNotSwitchedOn","setIsVerifiedButNotSwitchedOn","_useState53","_useState54","hasPendingSave","setHasPendingSave","debounceHanldeSave","useCallback","debounce","saveChangesImpl","_useState55","_useState56","showClearDetailsModal","setShowClearDetailsModal","_useState57","_useState58","isClearingDetails","setClearingDetails","checkIfCategoriesEnabled","firstRankingData","_recalculateTotalCost","min","max","totalCostOfFundsLow","totalCostOfFundsHigh","isSwitchedOn","onInitialized","_onInitialized","listDistances","listSecurityTypes","getFirstRankingDetails","hasResidential","hasNonResidential","CancelToken","source","getUserProfile","userDetails","usersLenderId","usersBrokerId","checkProductState","responseData","today","modifiedDate","round","diff","hasMissingMandatoryFields","initialStates","stateKeyInitial","listStates","selectedStatesFromKeys","selectedRegions","s","higherRateMin","securityTypes","b","handleSavingErrors","verify","handleClearDetailsModalClose","handleClearDetailsChange","Profile_ZeroAvailableWarning","message_default","alert_default","input_number_default","formatter","parser","hidden","card_default","security","checkBoxValue","Profile_StatesForm","stateCheckBoxDetails","warning","filteredStates","stateToAppend","onStateChanged","rk","TextArea","currentTarget","closable","setSecondRanking","selectedCity","_useState59","secondRankingData","getSecondRankingDetails","lineFeeMin","lineFeeMax","lvrMin","lvrMax","setConstruction","constructionData","getConstructionDetails","saveChanges","preSales","AwesomeDebouncePromise","setMezzanine","mezzanineData","getMezzanineDetails","landBank","setLandBank","zoningList","setZoningList","landBankData","getLandBankDetails","zoningKeys","regions","createUser","agricultureTypeKeys","setRural","agricultureList","setAgricultureList","ruralData","listAgricultureTypes","getRuralDetails","StatesFormRegions","handleChange","colors","CustomSorter","sortType","flexDirection","listLendersMatches","listLendersMatchesLookup","signal","viewInactiveProfileWarning","setViewInactiveProfileWarning","setMatchesList","setListLoading","statusList","setStatusList","sortInfo","setSortInfo","sortByCompany","editedList","setEditedList","getValidationIdAndParam","param","handleEdit","validationId","validationParam","newUpdatedList","updatedRecord","noteField","getElementById","focus","saveMatchesUpdate","updateRecord","saveMatchesLender","saveMatchesBransgroves","saveMatchesBroker","note","omicronStatusKey","lenderStatusKey","canelToken","token","updatedEditedList","listLenders","matchId","brokerStatusKey","getQueryParams","order","sort","orderBy","getBadgeClassName","listLendersMatchesLookUp","cancel","handleCloseInactiveProfileWarning","colTemplate","Common_CustomSorter","brokerName","company","lenderName","badge_default","select_default","Option","editedColumnsForAdmin","recordIndex","onBlur","editedColumnsForOther","tableCoumn","table_default","columns","dataSource","pagination","rowKey","filters","bordered","detail","lastModifiedDate","lastModifiedByFirstName","lastModifiedByLastName","setProfessionalDetails","setPersonalDetails","loadPersonalDetails","loadProfessionalDetails","savePersonalDetailsChanges","saveProfessionalDetailsChanges","savePersonalDetailsChangesImpl","saveProfessionDetailsChangesImpl","EditIcon","_ref$width","_ref$height","xmlns","fill","stroke","strokeLinecap","strokeLinejoin","strokeWidth","viewBox","DeleteIcon","AddIcon","getLenderFileNotes","_ref166","_ref167","_callee102","_context102","LENDER_FILE_NOTES_SYSTEM_USER_URL","LENDER_FILE_NOTES_URL","_x129","updateLenderFileNotes","_ref146","_ref147","_callee91","_context91","_x116","deleteLenderFileNotes","_ref150","_ref151","_callee93","_context93","LENDER_FILE_NOTES_DELETE_SYSTEM_USER_URL","LENDER_FILE_NOTES_DELETE_URL","_x118","createLenderFileNotes","_ref148","_ref149","_callee92","_context92","_x117","getBrokerFileNotes","_ref152","_ref153","_callee94","_context94","BROKER_FILE_NOTES_SYSTEM_USER_URL","BROKER_FILE_NOTES_URL","_x119","updateBrokerFileNotes","_ref154","_ref155","_callee95","_context95","_x120","deleteBrokerFileNotes","_ref158","_ref159","_callee97","_context97","BROKER_FILE_NOTES_DELETE_SYSTEM_USER_URL","BROKER_FILE_NOTES_DELETE_URL","_x122","createBrokerFileNotes","_ref156","_ref157","_callee96","_context96","_x121","getLawFirmFileNotes","_ref168","_ref169","_callee103","_context103","LAW_FIRM_FILE_NOTES_SYSTEM_USER_URL","LAW_FIRM_FILE_NOTES_URL","_x130","updateLawFirmFileNotes","_ref170","_ref171","_callee104","_context104","_x131","createLawFirmFileNotes","_ref172","_ref173","_callee105","_context105","_x132","deleteLawFirmFileNotes","_ref174","_ref175","_callee106","_context106","LAW_FIRM_FILE_NOTES_DELETE_SYSTEM_USER_URL","LAW_FIRM_FILE_NOTES_DELETE_URL","_x133","filesList","setFilesList","saveLoading","noteTypesList","setNoteTypesList","pageSize","setPageSize","setPage","totalPages","setTotalPages","getActionName","updateActionName","createActionName","deleteActionName","listFileNotes","actionedRecordId","getNoteTypes","validationErrors","_ref$actionedRecordId","_ref$action","newList","notFoundContent","filterOption","noteType","updatedList","newRecord","icons_AddIcon","icon","lenderFileNoteId","lawFirmFileNoteId","brokerFileNoteId","actionName","isInteger","handleSave","icons_EditIcon","popconfirm_default","handleDelete","icons_DeleteIcon","marginTop","pagination_default","defaultCurrent","handlePageChange","allowClear","option","getLoanDetails","isUserInvolvedAsLender","isUserInvolvedAsBroker","_ref5$generalView","actionUrl","PUBLIC_LOANS_DETAILS_URL","GET_LOAN_DETAILS_FOR_SYSTEM_USER","GET_LOAN_DETAILS_FOR_BROKER_USER","GET_LOAN_DETAILS_FOR_LENDER_USER","GET_LOAN_DETAILS_FOR_UNINVOLVED_USER","getAttributedLenders","GET_LOAN_ATTRIBUTED_LENDER_FOR_SYSTEM_USER","GET_LOAN_ATTRIBUTED_LENDER","getAttributedBrokers","_ref15$generalView","PUBLIC_LOANS_DETAILS_ATTRIBUTED_BROKERS_URL","GET_LOAN_ATTRIBUTED_BROKERS_FOR_SYSTEM_USER","GET_LOAN_ATTRIBUTED_BROKERS","loansCreate","_ref23$isLenderUser","isSystemAdmin","isLenderUser","_ref23$isLawFirmUser","LOANS_CREATE","LOANS_CREATE_AS_LENDER","LOANS_CREATE_AS_LAW_FIRM","loansEdit","_ref25$isLenderUser","_ref25$isLawFirmUser","LOANS_EDIT","LOANS_EDIT_AS_LENDER","LOANS_EDIT_AS_LAW_FIRM","getAllLoansAsSystemUser","_ref27$queryParams","GET_ALL_LOANS_AS_SYSTEM_USER","getAllLoansAsIndividual","_ref29$queryParams","GET_ALL_LOANS_AS_INDIVIDUAL","getAllLoansExpiryLookups","GET_ALL_LOANS_EXPIRY_LOOKUPS","getLoanLogs","loanId","_ref37$isSystemUser","LOANS_LOGS_URL","LOANS_LOGS_AS_SYSTEM_USER_URL","validateNewLoanNo","_ref41$loanNo","_ref41$loanLenders","NEW_LOANS_VERIFY_LOANNO","validateLoanNo","_ref43$loanNo","_ref43$loanLenders","LOANS_VERIFY_LOANNO","getSavedSearchesList","api","_args23","ALL_LOANS_SAVED_SEARCHES_AS_SYSTEM_USER","ALL_LOANS_SAVED_SEARCHES_AS_INDIVIDUAL","saveAllLoansSearch","_ref47$name","_ref47$selectedColumn","selectedColumns","_args24","loadSavedSearch","ALL_LOANS_SAVED_SEARCH_ITEM_AS_SYSTEM_USER","ALL_LOANS_SAVED_SEARCH_ITEM_AS_INDIVIDUAL","saveAllLoansLastSearch","_ref49$name","_ref49$selectedColumn","_ref49$savedSearchId","savedSearchId","ALL_LOANS_LAST_SEARCH","loadAllLoanLastSearch","exportLoansSearchToXLS","_args28","EXPORT_LOAN_SEARCH_TO_XLS_AS_SYSTEM_USER","EXPORT_LOAN_SEARCH_TO_XLS_INDIVIDUAL","useLoansTableColumns","handleLoanNumberClick","handleProfileClick","formatDecimal2","formatDecimalToCurrency","formatDecimalWithDefaultValue","isUserLawfirm","brokerColumns","ellipsis","loanLendersBrokers","attributedLenderId","lawfirmColumns","lenderColumns","expandedRowLoanListColumns","loanLenderId","loanBrokerId","getMatchingLoans","_ref$generalView","PUBLIC_MATCHING_LOANS_FOR_BROKER_URL","GET_MATCHING_LOANS_FOR_LENDER_URL_AS_SYSTEM_USER","GET_MATCHING_LOANS_FOR_LENDER_URL","GET_MATCHING_LOANS_FOR_BROKER_URL_AS_SYSTEM_USER","GET_MATCHING_LOANS_FOR_BROKER_URL","getPresettledLoans","GET_PRESETTLED_LOANS_FOR_LENDER_AS_ADMIN_URL","GET_PRESETTLED_LOANS_FOR_LENDER_URL","GET_PRESETTLED_LOANS_FOR_LAW_FIRM_URL_AS_ADMIN_URL","GET_PRESETTLED_LOANS_FOR_LAW_FIRM_URL","GET_PRESETTLED_LOANS_FOR_BROKER_AS_ADMIN_URL","GET_PRESETTLED_LOANS_FOR_BROKER_URL","getCurrentLoans","_ref17$generalView","PUBLIC_BROKER_DETAILS_CURRENT_LOANS_URL","GET_CURRENT_LOANS_FOR_LENDER_URL_AS_SYSTEM_USER","GET_CURRENT_LOANS_FOR_LENDER_URL","GET_CURRENT_LOANS_FOR_LAW_FIRM_URL_AS_SYSTEM_USER","GET_CURRENT_LOANS_FOR_LAW_FIRM_URL","GET_CURRENT_LOANS_FOR_BROKER_URL_AS_SYSTEM_USER","GET_CURRENT_LOANS_FOR_BROKER_URL","getDischargedLoans","_ref19$generalView","PUBLIC_BROKER_DETAILS_DISCHARGED_LOANS_URL","GET_DISCHARGED_LOANS_FOR_LENDER_URL_AS_SYSTEM_USER","GET_DISCHARGED_LOANS_FOR_LENDER_URL","GET_DISCHARGED_LOANS_FOR_LAW_FIRM_URL_AS_SYSTEM_USER","GET_DISCHARGED_LOANS_FOR_LAW_FIRM_URL","GET_DISCHARGED_LOANS_FOR_BROKER_URL_AS_SYSTEM_USER","GET_DISCHARGED_LOANS_FOR_BROKER_URL","getDoneWithMeLoans","LENDERS_LOANS_DONE_WITH_YOU","BROKER_LOANS_DONE_WITH_YOU","_paginationConfig$pag","loanSearchQueryParams","loanList","setLoanList","setIsBrokerProfile","totalRecords","setTotalRecords","paginationConfig","setPaginationConfig","setIsUserLawfirm","handleFetch","isOwnLenderProfile","showCurrentLoanBook","showDischargedLoanBook","handleTableChange","current","tablePagination","checkIfUserIsLawfirm","isLawfirm","_useLoansTableColumns","toLocaleString","currency","minimumFractionDigits","maximumFractionDigits","precision","actionSource","whiteSpace","expandIconAsCell","expandedRowRender","LenderProfile","pageLoading","newProps","_this3","_match$params","handleTabChange","handleSubTabChange","firstLoanCriteria","firstRankingLoanCriteriaStatus","secondLoanCriteria","secondRankingLoanCriteriaStatus","constructionLoanCriteria","constructionLoanCriteriaStatus","mezzanineLoanCriteria","mezzanineLoanCriteriaStatus","landBankLoanCriteria","landBankLoanCriteriaStatus","ruralLoanCriteria","ruralLoanCriteriaStatus","components_loading","tabs_default","TabPane","tab","LoansTable","defaultActiveKey","FirstRankingImproved","SecondRankingImproved","Construction","Mezzanine","LandBank","Rural","Profile_FilesList","Details","Profile_MatchesList","class","UserDetails","Lender","UserProfileImage","avatar_default","shape","FormDecoratorContext","createContext","FormDecoratorProvider","decorator","Provider","DecoratedFormControl","forwardRef","ref","decoratorFunc","help","_ref2$valuePropName","valuePropName","wrapperCol","labelCol","useContext","PortraitForm","_portraits$filter","handleFormChange","dispatchAction","useDispatch","getStatesList","setFieldsValue","linkedInProfile","isVisible","companyACN","isVisibleCount","assign","autoComplete","showSearch","optionFilterProp","searchby","PortraitRemove","soleUser","handleRemove","setVisible","setLoading","handleClose","INDIVIDUALS_DELETE_URL","deleteIndividualPortrait","_resp$data","PortraitView","_user$previewProfileI","_user$previewProfileI2","_user$previewProfileI3","_user$imageFile","_ref$portraits","currentPage","setCurrent","setCurrentPortrait","_ref$company","portraitsUpdated","useSelector","_state$member","setUser","_state$member2","_state$member2$header","_ref185","_callee112","_context112","_x140","_ref186","_callee113","_context113","_x141","updatedOptions","updateAvatar","fileInfo","isImage","test","metadata","useMemo","otherNames","description","dist","rel","upload_default","Dragger","listType","showUploadList","customRequest","flex","backgroundImage","backgroundPosition","backgroundRepeat","backgroundSize","objectFit","userProfileImage","maxWidth","portrait_form","itemRender","originalElement","Profile_PortraitRemove","RateView","loansCount","rate_default","allowHalf","LabelValuePair","valueClassName","labelClassName","_ref$smallValue","smallValue","mobileView","valueFlex","labelFlex","KeyMetrics","dischargedLoansCount","currentLoanBook","dischargedLoanBook","currentLoansCount","shortfall","positiveLenderReviewsCount","positiveBrokerReviewsCount","positiveReviewsCount","userTypeText","list_default","UserDisplayCard_LabelValuePair","OrderOfAppearance","handleFormSave","currentPortraits","setCurrentPortraits","onOk","updatedPortraits","appearanceOrder","selectedPortrait","handleUp","handleDown","UtilityCompany","_user$logoFile","_user$previewCompanyL","logo","previewLogo","_state$member$header","companyRequired","setCompanyRequired","acn","updateAvatarLogo","Profile_OrderOfAppearance","LeadScoreOptions","LeadScore","leadScoreValue","companyId","_ref$onChange","setLeadScore","_saveLeadScore","saveLeadScore","AddAmountOptions","FollowUp","dateValue","setDateValue","_saveFollowupDate","toISOString","handleChangeFollowUpDate","saveFollowupDate","isValid","date_picker_default","valueToAdd","split","unit","add","handleAddDate","ProfileUtility","canToggleProfileSwitch","profileStatusLoading","showIsProfileActive","handleProfileActiveChange","masterSwitchLoading","handleMasterSwitchChange","showMasterSwitch","_ref$saveLoading","_ref$isSystemUser","_ref$isOwnProfile","acnRequired","setACNRequired","userMember","_state$authorization","acnValidation","utility_company","utility_FormActionButtons","UserDisplayCard_KeyMetrics","switch_default","Common_RateView","reviewedLoansCount","avgStarRating","FormActionButtons","ConfirmationModal","handleModalClose","handleConfirm","_ref$confirmationText","confirmationText","_ref$title","_ref$centered","centered","getProfileStatusWarning","_ref64","_ref64$queryParams","_ref65","_callee41","_context41","LENDERS_ADMIN_MATCHES_URL","LENDERS_MATCHES_URL","_x54","_x55","_callee42","_context42","_x56","userProfile","setUserProfile","setPortraitsUpdated","currentPortrait","setActiveKey","setActiveSubKey","setUserType","setPageLoading","setIsSystemUser","setUsersPermission","initialized","setInitialized","setCanToggleProfileSwitch","confirmationModalVisible","setConfirmationModalVisible","setConfirmationText","activeField","setActiveField","setSaveLoading","setIsOwnProfile","loansSearch","useLocation","showSettings","hasSwitchProfile","showNotesButton","omicronBdmId","showPageTitle","getProfileDetails","setUserIsSystemUser","emailSubcriptionProfileType","loadUserInformation","_setInitialActiveTab","setInitialActiveTab","roleType","sortedPortraits","isMyProfile","lenderBrokerId","newRouteOptions","menuOptions","sortBy","searchField","activeTab","_setUserIsSystemUser","isSysUser","_getProfileDetails","usertype","_handleTabChange","newKey","warningMessage","decoratedFormControl_FormDecoratorProvider","protrait_view","_portrait","utility","text","_header$omicronBdm","updatedProfile","Profile_UserDetails","Common_ConfirmationModal","actionMessage","handleConfirmProfileActiveChange","handleConfirmMasterSwitchChange","LogoutImpl","isReady","logout","processLogoutCallback","_logout","signOut","_processLogoutCallback","completeSignOut","_populateAuthenticationState","Navbar","currentLocation","TopBarProgress","barColors","0","0.5","1.0","shadowBlur","barThickness","ProgressBar","_React$Component","src_default","HandleProgressBar","SettingMenu","handleSignOut","handleProfileAction","isCurrentUserLawFirm","handleAction","menu_default","Divider","SettingDropdownOption","dropdownIconType","dropdown_default","trigger","overlay","components_menu","getPopupContainer","node","_ref$allowSwitchProfi","allowSwitchProfile","showLender","showBroker","ProfileOption","_ref93","_callee62","_context62","_x83","switchActiveProfile","selectedKeys","activeProfileTitle","searchBoxHandler","_ref10$queryParams","handleSearchBoxChange","isLoading","setIsLoading","searchResultList","setSearchResultList","userRole","setUserRole","getUsersProfile","getSearchResults","debouncedSearch","selectedLender","handleOnClick","onSearch","userprofiletype","FINDER_FILTER","FINDER_USER_TYPE","MIN_PRINCIPAL_FINDER_LIST","displayName","MAX_PRINCIPAL_FINDER_LIST","ALL_LOANS_STATUS","PreSettlement","Settled","Default","Discharged","VariationInProgress","FinderUtilityContext","Header","selectedData","_ref$filters","smallView","_useContext","priorityList","scenarioList","termList","settlementList","interestList","getValue","_filters$find","_value$split","radius","suburb","priority","scenario","establishmentFee","securityType","term","brokerStarsFromLender","lenderStarsFromBroker","valuation","interest","getPrincipalDisplayValue","principalValue","principalList","_principalList$find","radiusAndSuburbText","pricipalText","low","high","priorityText","lowerRateText","higherRateText","establishmentFeeText","scenarioText","securityTypeText","_securityList$find","subList","securitySubTypes","lvrText","setttlementDateText","termText","brokerStarsFromlenderText","lenderStarsFromBrokerText","valuationText","interestText","finderFilterTypes","defaultFilters","demicalRegex","noDecimalRegex","digitsRegex","NumberInput","_ref$hasDecimal","hasDecimal","_ref$decimalPlaces","decimalPlaces","maxLength","_ref$disabled","maxValue","handleBlur","validateDecimalValues","decimalValues","defaultParserFormatter","onKeyDown","_e$currentTarget$valu","validateInputValue","LowAndHighPercentageFilters","handleFieldChange","Common_NumberInput","PriorityLookup","RadiusLookup","radiusList","Ratings","ScenarioLookup","SecurityTypeLookup","subTypeList","selectedType","SettlementDateLookup","finderStatesAndSuburbsLookups","_ref3$search","_ref3$generalView","GENERAL_FINDER_SUBURB_STATES_LOOKUP","FINDER_SUBURB_STATES_LOOKUP","getLowerTermUrl","GENERAL_FINDER_TERM_LOWER_LOOKUP","FINDER_TERM_LOWER_LOOKUP","getHigherTermUrl","GENERAL_FINDER_TERM_HIGHER_LOOKUP","FINDER_TERM_HIGHER_LOOKUP","finderTermLookups","finderScenarioLookups","_ref7$generalView","GENERAL_FINDER_SCENARIO_LOOKUP","FINDER_SCENARIO_LOOKUP","finderBrokersLookups","GENERAL_FINDER_BROKERS_LOOKUP","FINDER_BROKERS_LOOKUP","finderLendersLookups","_ref11$generalView","GENERAL_FINDER_LENDERS_LOOKUP","FINDER_LENDERS_LOOKUP_AS_SYSTEM_USER","FINDER_LENDERS_LOOKUP","finderRadiusLookups","GENERAL_FINDER_RADIUS_LOOKUP","FINDER_RADIUS_LOOKUP","finderCreditLookups","GENERAL_FINDER_CREDIT_LOOKUP","FINDER_CREDIT_LOOKUP","finderInterestLookups","_ref21$generalView","GENERAL_FINDER_INTEREST_LOOKUP","FINDER_INTEREST_LOOKUP","finderSubdivisionTypeLookups","GENERAL_FINDER_SCENARIO_SUBDIVISION_TYPE_LOOKUP","FINDER_SCENARIO_SUBDIVISION_TYPE_LOOKUP","SuburbAndStateLookup","suburbList","setSuburbList","listIncludesState","SuburbAndState","updateList","TermLookup","PrincipalFilters","Valuation","yesNoList","v","Credit","_ref$value","_ref$handleFieldChang","setList","_getLookupValues","translated","getLookupValues","Interest","presalesDebtCoverRequired","loanAmountPercentageGstEx","qsRequired","isBuilderDeveloper","isBuildToHold","tdcEquity","projectManagerRequired","contingenciesAllowance","developerSuccessfulProjects","preCommittedCommercialTenants","handleLocalChange","YesNoOptions","Subdivision","typeOptions","setTypeOptions","typeKey","subdivision","setSubdivision","_getTypeLookup","getTypeLookup","FinderUtilitySearchModal","handleSearch","selectedSubAndState","tempValue","setValue","valueLoaded","setValueLoaded","FilterComponent","Filters_LowAndHighPercentageFilters","Filters_suburbAndState","Filters_radius","Filters_principal","Filters_priority","Filters_scenario","Filters_securityType","Filters_settlementDate","Filters_term","ratings","Filters_Interest","Filters_Construction","Filters_Subdivision","validateLowAndHighValues","getPrincipalDisplayName","_list$find","FilterView","_ref2$data","displayFilter","suburbAndState","credit","displayValue","scenarioName","datePeriod","securityName","filterView_DeleteIcon","displayAppliedFilters","_defaultFilters$find","divider_default","Sidebar","array","filterView","LenderBrokerFilter","FinderUtilityUserDetailHeader","handleViewDetails","idText","grid_row","matchedLoansCount","FinderUserBasicDetail","_user$profileImageFil","userFullName","profileImageFile","FinderUserView","ratingsValue","avgBrokerStarRating","avgLenderStarRating","UserDisplayCard_header","userBasicDetail","OmicronBDMLookup","_header$omicronBdm5","_header$omicronBdm2","_header$omicronBdm3","_header$omicronBdm4","listIncludesBDM","selectedBdm","OmicronBDMView","currentUserType","getUserType","onActionClicked","_this$props$header","backHistory","goBack","onDeleteFinancier","deleteFinancierDeleteConfirmationText","showFinancierDeleteConfirmationModal","deleteFinancierAccount","handleUpdateRouteOptions","code","showLenderBrokerDeleteErrorModal","deleteLenderBrokerErrorText","onDeleteLawFirm","deleteLawFirmDeleteConfirmationText","showLawFirmDeleteConfirmationModal","deleteLawFirmAccount","showLawFirmDeleteErrorModal","deleteLawFirmErrorText","handleNoteButtonClick","getActionProps","_this$props$header2","buttonProps","_match$params3","_response","_resp","_match$params2","_response2","updatedRoutes","_userType","_response3","_response4$data","_response4$data2","_response4$data3","_response4","_updatedRoutes","relatedUsers","relatedToLawFirm","_this$props$activePor","_response5","_this$props$activePor2","_response6","addBrokerProfile","addLenderProfile","deleteBrokerProfile","deleteLenderProfile","u","associatedLoansCountAsBroker","associatedLoansCountAsLender","associatedLoansCountAsLawyer","resendInvitation","resetPassword","currentIndividualId","handleRedirct","searchType","handleLenderBrokerErrorModalClose","handleFinancierDeleteConfirmationModalClose","handleLawFirmErrorModalClose","handleLawFirmDeleteConfirmationModalClose","_window$location$url","handleDeleteFinancierChange","_this$props3","handleDeleteLawFirmChange","_this$props$header3","_this$props4","isFinderUtility","Common_UniversalSearchBox","SettingDropDown","ProfileSwitchOption","omicronBDMLookup","omicronBDMView","_ref76","_ref76$payLoad","_ref77","_callee49","_context49","COMPANIES_ADD_BROKER_PROFILE_URL","_x66","_x67","_ref78","_callee50","_context50","_x68","_ref82","_ref82$payLoad","_ref83","_callee53","_context53","COMPANIES_ADD_LENDER_PROFILE_URL","_x72","_x73","_ref84","_callee54","_context54","_x74","_ref79","_ref79$payLoad","_ref80","_callee51","_context51","COMPANIES_BROKER_PROFILE_REMOVE_URL","_x69","_x70","_ref81","_callee52","_context52","_x71","_ref85","_ref85$payLoad","_ref86","_callee55","_context55","COMPANIES_LENDER_PROFILE_REMOVE_URL","_x75","_x76","_ref87","_callee56","_context56","_x77","_ref178","_ref179","_callee108","_context108","INDIVIDUALS_RESEND_INVITATION","_x135","_ref180","_ref181","_callee109","_context109","INDIVIDUALS_RESET_PASSWORD","_x136","_ref182","_ref182$payLoad","_ref183","_callee110","_context110","COMPANIES_DELETE_URL","_x137","_x138","_ref184","_callee111","_context111","_x139","_ref189","_ref189$payLoad","_ref190","_callee115","_context115","COMPANIES_DELETE_LAWFIRM_URL","_x143","_x144","_ref191","_callee116","_context116","_x145","Content","TemplateNavbar","responsive","collapsed","_window$location$path","layout_default","TemplateNavbar_Header","navBar","PageHeader","mobileNumberRegex","UsersList","updatedUserList","positionsList","processing","setProcessing","_onSaveClicked","checkValidMobile","mobile","finish","outline","onSaveClicked","userTypes","SystemUsersList","getUsersList","activeOnly","getPositionsList","currentUserEdited","formerUserEdited","deleteSystemUser","prevState","currentUserList","newData","currentPosition","positionName","formerUserList","forceUpdate","currentEditingRows","_resp$data2","userNameFirst","userNameLast","isActive","userIsActive","positionKey","userEmail","updateUser","isUserActive","deleteUser","res","_this4","Users_UsersList","_ref4$options","RequiredSign","createIndividualProfile","_state$profile","_state$profile2","_state$profile3","checkSubmitDisabled","formLayout","minWidth","lawFirmId","offset","Common_RequiredSign","AddCompanyUser_FormItem","createNewCompany","omicronBdmList","setOmicronBdmList","isOmicronBdmRequired","setIsOmicronBdmRequired","getOmicronBdmList","getUserDetails","systemUserId","bdmId","profileTypeKey","selected","CreateCompany_FormItem","AddSystemUser","AddSystemUser_FormItem","pattern","ChangePasswordPage","setIsValid","getFieldsError","fieldNames","isDirty","isFieldTouched","formInvalid","matchStatus","passwordMatchValidationStatus","passwordHasInput","pass","confirmPass","confirmPasswordValidationStatus","labelSpan","columnSpan","Password_default","FormItem_default","brokerList","searching","setSearching","getBrokersList","layout","FindBroker_FormItem","lenderList","lenderListLoading","getLendersList","FindLender_FormItem","defaultDetails","BrokerDetailsTab","saving","setSaving","useParams","marginRight","TextArea_default","getBrokerMatches","_ref$cancelToken","_ref$queryParams","BROKER_ADMIN_MATCHES_URL","BROKER_MATCHES_URL","BrokerMatchesList","_React$createElement","_getMatches","_getLookup","opt","getMatches","getLookup","BrokerProfileTabs","activeSubTab","onTabChange","onSubTabChange","BrokerProfile","setActiveTab","setActiveSubTab","onInitialize","_isOwnProfile","brokerLenderId","isOwnBrokerProfile","updatedActiveTab","_updateMenu","resendOption","_onInitialize","updatedUserType","updateMenu","setDailyScorePage","setNotesAction","getDailyScores","DAILYSCORES_SYSTEM_USER_URL","DAILYSCORES_INDIVIDUAL_USER_URL","getSystemUserNotes","NOTES_SYSTEM_USER_URL","getNonSystemUserNotes","NOTES_NON_SYSTEM_USER_URL","updateFileNotesAsSystemUser","scoreQueryParams","UPDATE_LENDER_FILE_NOTES_AS_SYSTEM_ADMIN_URL","UPDATE_LAWFIRM_FILE_NOTES_AS_SYSTEM_ADMIN_URL","UPDATE_BROKER_FILE_NOTES_AS_SYSTEM_ADMIN_URL","updateFileNotesAsNonSystemUser","UPDATE_LENDER_FILE_NOTES_AS_INDIVIDUAL_URL","UPDATE_LAWFIRM_FILE_NOTES_AS_INDIVIDUAL_URL","UPDATE_BROKER_FILE_NOTES_AS_INDIVIDUAL_URL","deleteFileNotesAsSystemUser","DELETE_LENDER_FILE_NOTES_AS_SYSTEM_ADMIN_URL","DELETE_LAWFIRM_FILE_NOTES_AS_SYSTEM_ADMIN_URL","DELETE_BROKER_FILE_NOTES_AS_SYSTEM_ADMIN_URL","deleteFileNotesAsNonSystemUser","DELETE_LENDER_FILE_NOTES_AS_INDIVIDUAL_URL","DELETE_LAWFIRM_FILE_NOTES_AS_INDIVIDUAL_URL","DELETE_BROKER_FILE_NOTES_AS_INDIVIDUAL_URL","lenderID","lawFirmID","brokerID","fileNoteId","tableColumn","monthToDisplay","setMonthToDisplay","setMonths","dateTick","setDateTick","showNextPageRight","setShowNextPageRight","recordsLoaded","setRecordsLoaded","showUpButton","setshowUpButton","firstDateInList","setLatestDateInList","setAction","firstLoad","setFirstLoad","firstEntry","setFirstEntry","listLeadingDates","setListLeadingDates","lastDateFromQuery","handleRefresh","currentDate","firstDateInListNoTime","setHours","currentDateNoTime","initialDataLoaded","monthsToDisplay","monthsData","ceil","monthlyScores","sortDate","monthData","months","dateDisplay","callCount1","calls","callCount2","firstEntryDate","setDate","getDate","position","top","left","tempListLeadingDates","convertedDate","convertedFirstDate","pop","handleClickUp","borderColor","bottom","convertedLatestDate","handleClickDown","pageNumber","handleClickLeft","userName","handleClickRight","fontWeight","visibility","getMonthlyScores","MONTHLYSCORES_SYSTEM_USER_URL","MONTHLYSCORES_INDIVIDUAL_USER_URL","setMonthlyScorePage","firstMonthInList","setLatestMonthInList","getFullYear","getMonth","setMonth","Notes_DailyScores","checkUserType","userAccess","Notes_MonthlyScores","NotesList","useCheckUserRoles","setIsLawFirm","setIsSystemAdmin","isDualUser","setIsDualUser","setIsLenderUser","isBrokerUser","setIsBroker","checkIfUserIsSystemAdmin","checkIfUserIsLender","checkIfUserIsBroker","checkIfUserIsDual","brokerResult","lenderResult","attributedLenders","_useCheckUserRoles","attributedLenderList","setAttributedLenderList","getAttributedLendersList","alert","caretColor","loanLenderName","loanLenderContribution","LoanFormHeader","_ref$editButton","editButton","_ref$deleteButton","deleteButton","_ref$saveButton","saveButton","_ref$cancelButton","cancelButton","_ref$snapshotMode","snapshotMode","_ref$snapshotOverview","snapshotOverview","editedBy","editedDate","typography_default","Title","level","attributedBrokers","_props$generalView","attributedBrokerList","setAttributedBrokerList","getAttributedBrokersList","loanBrokerName","loanDetails","_ref$className","isModalOpen","setIsModalOpen","credits","setCredits","loadDetails","closeModal","defaultConstructionDetails","ConstructionModal","constructionScenario","toStringValue","typeCheckConvert","toBoolean","defaultSubdivisionDetails","SubdivisionModal","subdivisionScenario","regularString","ViewLogs","listTotal","setListTotal","checkIfUserIsSystemUser","finally","logId","handleViewSnapshot","newDateString","formatDateTime","snapshotDate","useAllowUserWithRoles","rolesToAllow","userHasRole","setUserHasRole","checkUserLoanInvolvement","CHECK_USER_INVOLVEMENT","deleteLoan","DELETE_LOAN_AS_SYSTEM_USER","updateLoanInView","UPDATE_LOAN_IN_VIEW_AS_LENDER","UPDATE_LOAN_IN_VIEW_AS_BROKER","UPDATE_LOAN_IN_VIEW_AS_SYSTEM_USER","UPDATE_LOAN_IN_VIEW_AS_LAWFIRM","UPDATE_LOAN_IN_VIEW_AS_DUAL","loanid","userIsAllowedToEdit","getLoanData","setLoanDetails","setUserRoles","enableLenderFields","setEnableLenderFields","enableBrokerFields","setEnableBrokerFields","enableLawyerFields","setEnableLawyerFields","stateAndSuburb","setStateAndSuburb","hasChangesInForm","setHasChangesInForm","usersLawfirmId","isInvolvedBroker","isInvolvedLender","attributedLawyer","updateUsersRouteOptions","t3","lenderHasNoBrokerRating","setLenderHasNoBrokerRating","lenderHasNoSolicitorRating","setLenderHasNoSolicitorRating","brokerHasNoLenderRating","setBrokerHasNoLenderRating","brokerHasNoSolicitorRating","setBrokerHasNoSolicitorRating","saveUpdateToHybridView","lawyerStarsFromLender","lawyerStarsFromBroker","preparePayload","lenderReviewByBroker","brokerResponseToLender","lawyerReviewByBroker","brokerReviewByLender","lenderResponseToBroker","lawyerReviewByLender","lawyerResponseToLender","lawyerResponseToBroker","handleRatingChange","reload","LoadFormHeader","Loans_AttributedLenders","Loans_AttributedBrokers","lastEditBy","Loans_ViewLogs","brokerBdm","lenderBdm","establishmentFeePercentage","scenarioKey","Create_ConstructionModal","Create_SubdivisionModal","securitySubType","valuationRequired","CreditLookup","partner","associate","dischargedDate","opacity","paddingTop","LoanCreateContext","AddInactiveFinancierConfirmationModal","confirmModal","financier","LawFirmLookup","setLawFirm","_ref$createMode","createMode","inactiveLawFirmConfirmModal","setInactiveLawFirmConfirmModal","setDefaultLawfirm","handleLawFirmChange","displayInactiveLawFirmConfirmModal","handleInactiveLawFirmConfirmModalClose","_args2","Create_AddInactiveFinancierConfirmationModal","confirm","PartnerLookup","setPriority","LOANS_SCENARIO_LOOKUP","loansScenarioLookups","SecuritySubTypeLookup","securitySubTypesList","_list$find2","setStateAndSuburbList","validateOnBlur","AssociateLookup","StatusLookup","RatingsAndReview","ratingsText","reviewText","responseText","_ref$disabledFields","disabledFields","rating","review","AddAndDeleteButton","handleAdd","listSize","AddedLendersDisplayAndUpdate","handleLenderChange","isSelected","contributionAmount","Common_AddAndDeleteButton","AddLendersModal","handleDeleteAll","lendersAddModal","handleLendersModalClose","Create_AddedLendersDisplayAndUpdate","AttributedLendersForm","tempLoanLenders","setLoanLenders","inactiveLenderConfirmModal","setInactiveLenderConfirmModal","lendersList","handleLoanLendersChange","addLoanLender","closeInactiveLenderConfirmModal","displayInactiveLenderConfirmModal","Create_AddLendersModal","l","AttributedLendersView","displayLendersModal","AddedBrokersDisplayAndUpdate","loanBrokers","handleBrokerChange","filteredList","AddBrokersModal","brokersAddModal","handleBrokersModalClose","Create_AddedBrokersDisplayAndUpdate","AttributedBrokersForm","tempLoanBrokers","setLoanBrokers","inactiveBrokerConfirmModal","setInactiveBrokerConfirmModal","brokersList","handleLoanBrokersChange","addLoanBroker","closeInactiveBrokerConfirmModal","displayInactiveBrokerConfirmModal","Create_AddBrokersModal","AttributedBrokersView","displayBrokersModal","ErrorAlertDisplay","BrokerBdmView","partnerAssociateList","LenderBdmView","ValuationRequiredLookup","LoanCreateForm","setAttributedBroker","userIsAttributedLender","userIsAttributedBroker","Common_ErrorAlertDisplay","Create_AttributedLendersView","ArrtibutedLendersForm","Create_AttributedBrokersView","Create_AttributedBrokersForm","Create_BrokerBdmView","brokerBdmId","Create_LenderBdmView","lenderBdmId","Create_SuburbAndStateLookup","Create_PriorityLookup","priorityKey","establishmentFeeWithGst","Create_ScenarioLookup","Create_SecurityTypeLookup","securityTypeKey","Create_SecuritySubTypeLookup","securitySubTypeKey","Create_ValuationRequiredLookup","Create_InterestLookup","interestKey","LawFormLookup","Create_PartnerLookup","assignedPartnerId","Create_AssociateLookup","assignedAssociateId","Create_StatusLookup","statusKey","disabledDate","isBefore","Create_RatingsAndReview","AllLoansList","_ref$selectedColumns","associatedLenderId","associatedBrokerId","mostContribution","associatedLenderCompany","columnsToShow","updatedSelection","charAt","slice","mainColumns","filteredMain","filteredExpanded","expandedColumns","scroll","y","scrollToFirstRowOnChange","LoanStatusFilter","handleStatusChange","handleOnLoad","LoanExpiryFilter","handleExpiryChange","StatusErrorModal","statusErrorModal","closeStatusErrorModal","useGetLenderBrokerId","userLenderId","setUserLenderId","userBrokerId","setUserBrokerId","_getIds","getIds","LoansCreate","_useGetLenderBrokerId","associatedBroker","setLoanId","setSecuritySubTypesList","stateAndSuburbList","setPartnerAssociateList","setLendersList","setBrokersList","setLendersAddModal","setBrokersAddModal","setStatusErrorModal","setUserIsAttributedLender","setUserIsAttributedBroker","setValidationErrors","_changeHeaderSettings","_args","changeHeaderSettings","getLoanDetail","getPartnerAssociateList","sumBy","attributedLenderErr","userLender","isAttributedLender","isAttributedBroker","LOANS_PARTNER_ASSOCIATE_LOOKUP","LOANS_PARTNER_ASSOCIATE_LOOKUP_AS_LENDER_LAW_FIRM","loansPartnerAssociateLookup","associateId","partnerId","loanLender","_ref35$isSystemUser","LOANS_LENDERS_LOOKUP","LOANS_LENDERS_LOOKUP_AS_LENDER_LAW_FIRM","loansLendersLookups","validateExistingLoan","newErrorList","q","validateNewLoan","sorted","_objectSpread3","_objectSpread6","_objectSpread7","_objectSpread8","dateIsAfterDischargedDate","isAfter","hasSettlementDate","_loanDetails$suburbSt","stateAndSub","isInValid","_ref2$value","numeralValue","higherNumeralValue","tempErrorList","higherRateError","getUpdatedErrorList","currentErrors","lowerRateError","finalErrorList","fieldError","Create_LoanCreateContext","LoanForm","loanNoError","lenderError","brokerError","lvrError","statusError","validateFormFields","useFilterView","viewFilter","setViewFilter","innerWidth","setSmallView","windowWidth","windowHeight","innerHeight","windowSize","setWindowSize","updateWindowSize","debouncedWindowSize","removeEventListener","useResizeListener","lg","cardWidth","setCardWidth","toggleViewFilter","MobileKeyMetrics","FinderUserViewMobile","mobileKeyMetrics","getSearchText","_b$value","_b$value2","_b$value3","_b$value4","_b$value5","_b$value6","_b$value7","constructionParams","set","subdivisionParams","FinderUtilityView","_useFilterView","setRadiusList","setPriorityList","setScenarioList","setSettlementList","setTermList","setInterestList","setFilters","modalProps","setModalProps","getDefaultUserType","savedUserType","getSecurityList","GENERAL_FINDER_SECURITY_TYPE_LOOKUP","FINDER_SECURITY_TYPE_LOOKUP","finderSecurityTypesLookups","getPriorityList","_ref13$generalView","GENERAL_FINDER_PRIORITY_LOOKUP","FINDER_PRIORITY_LOOKUP","finderPiorityLookup","getSettlementList","GENERAL_FINDER_SETTLEMENT_DATE_LOOKUP","FINDER_SETTLEMENT_DATE_LOOKUP","finderSettlementDateLookups","checkAuthentication","getData","updateStoredFilters","newValue","FinderUtility_FinderUtilityContext","tempFilter","_filters$value$find","currentValue","FinderUtility_header","sidebar","lenderBrokerFilter","mobileIndex","UserDisplayCard","hideOnSinglePage","finderUtilitySearchModal","tempFilters","DayActivity","FinderFunction","FundsAvailableEmail","LoanTab","privacySettingsView","_props$form2","_props$form4","setDefaultValuesUpdated","getCurrentPrivacyDate","GET_LENDER_PRIVACY_SETTINGS","getLendersPrivacySettings","finderFunctionOptIn","fundsAvailableShowCurrentLoanBook","fundsAvailableShowDischargedLoanBook","fundsAvailableShowSuburbs","loanTabShowCurrentLoanBook","loanTabShowDischargedLoanBook","ninetyDayActivityShowName","_user$roles","updateLendersPrivacySettings","_props$form","addAfter","loansDone","_props$form3","autoAddNewBrokers","fundsAvailableEmail","dayActivity","loanTab","finderFunction","SyndicateFunders","canEdit","BrokerSubscriptions","LenderSubscriptions","verifiedLenderCategories","NinetyDaysActivity","getEmailPreferences","EMAIL_PREFERENCES_URL","updateEmailPreferences","MarketingEmails","useUserHasRoles","allowed","emailSubscriptionsView","redirectionUrl","setRedirectionUrl","individual","setIndividual","setVerifiedLenderCategories","canEditLenderSubscriptions","setCanEditLenderSubscriptions","canEditBrokerSubscriptions","setCanEditBrokerSubscriptions","setIsMasterSwitchOn","userHasRoles","_updateHeaderView","updateHeaderView","getUserEmailSubscriptions","_ref$userType","GET_LAWFIRM_EMAIL_SUBSCRIPTIONS","GET_INDIVIDUAL_EMAIL_SUBSCRIPTIONS","getEmailSubscriptions","syndicateFundersConstruction","syndicateFundersFirstRanking","syndicateFundersLandBank","syndicateFundersMezzanine","syndicateFundersRural","syndicateFundersSecondRanking","lenderConstruction","lenderFirstRanking","lenderLandBank","lenderMezzanine","lenderRural","lenderSecondRanking","brokerConstruction","brokerFirstRanking","brokerLandBank","brokerMezzanine","brokerRural","brokerSecondRanking","ninetyDaysActivity","marketingEmails","indiv","individualDetails","_ref3$userType","updateEmailSubscriptions","firstName","lastName","brokerSubscriptions","lenderSubscriptions","syndicateFunders","subValue","setOptions","AllLoansPartnerLookup","handlePartnerChange","_ref35$search","GET_ALL_LOANS_PARTNER_LOOKUPS","getAllLoansPartnerLookups","AllLoansOmicronBdmLookup","handleOmicronBdmChange","_ref33$search","GET_ALL_LOANS_BDM_LOOKUP","getAllLoansBdmLookup","minPrincipal","maxPrincipal","localMinValue","setLocalMinValue","localMaxValue","setLocalMaxValue","_ref$minField","minField","_ref$maxField","maxField","minTerm","maxTerm","LawFirm","AllLoansFilters","onClearAll","onFiltersChange","filterNodes","AllFilters_LawFirm","AllFilters_AssociateLookup","AllFilters_ratings","AllFilters_LowAndHighPercentageFilters","minLowerRate","maxLowerRate","minHigherRate","maxHigherRate","minEstablishmentFee","maxEstablishmentFee","AllFilters_term","minTermKey","maxTermKey","AllFilters_suburbAndState","AllFilters_radius","radiusSearchKey","AllFilters_principal","AllFilters_securityType","Credit_Credit","AllFilters_status","expiry","expiryKey","AllFilters_Interest","minLvr","maxLvr","Valuation_Valuation","AllFilters_priority","AllFilters_scenario","AllFilters_Construction","constructionScenario.contingenciesAllowance","constructionScenario.developerSuccessfulProjects","constructionScenario.isBuilderDeveloper","constructionScenario.isBuildToHold","constructionScenario.loanAmountPercentageGstEx","constructionScenario.preCommittedCommercialTenants","constructionScenario.presalesDebtCoverRequired","constructionScenario.projectManagerRequired","constructionScenario.qSRequired","constructionScenario.tdcEquity","AllFilters_Subdivision","subdivisionScenario.contingenciesAllowance","subdivisionScenario.developerSuccessfulProjects","subdivisionScenario.isBuilderDeveloper","subdivisionScenario.isBuildToHold","subdivisionScenario.loanAmountPercentageGstEx","subdivisionScenario.presalesDebtCoverRequired","subdivisionScenario.projectManagerRequired","subdivisionScenario.qSRequired","subdivisionScenario.tdcEquity","subdivisionScenario.typeKey","tabPosition","overflowY","AllLoansColumnsSelection","isOpen","onClose","columnsList","defaultColumns","isDefault","column","useDebounceCallback","handlerRef","useRef","debouncedCallback","_len","args","_key","AllLoansSaveSearch","currentSelectedColumns","currentFilters","isFiltersEdited","onSave","_ref$idOfLoadedSave","idOfLoadedSave","setIsOpen","saveSearchName","setSaveSearchName","isSaved","setIsSaved","toggleModal","nestFilters","_saveSearch","saveLast","_saveLastSearch","Text","addonAfter","ExcelIcon","_ref$onClick","x1","x2","y1","y2","gradientUnits","stop-color","ExportLoanSearchToXls","_ref$visible","_exportXLS","exportXLS","icons_ExcelIcon","useDebounce","debouncedValue","setDebouncedValue","timer","AllLoansLoadSearch","_ref$currentLoaded","currentLoaded","onLoadSavedSearch","onLoadSavedList","shouldLoadSavedList","_ref$nameOfLatestSave","nameOfLatestSave","_ref$onClearSearch","onClearSearch","searchValue","setSearchValue","savedSearchList","setSavedSearchList","debouncedSearchValue","flattenFilters","_filters$construction","_filters$construction2","_filters$construction3","_filters$construction4","_filters$construction5","_filters$construction6","_filters$construction7","_filters$construction8","_filters$construction9","_filters$construction10","_filters$construction11","_filters$construction12","_filters$construction13","_filters$construction14","_filters$subdivisionS","_filters$subdivisionS2","_filters$subdivisionS3","_filters$subdivisionS4","_filters$subdivisionS5","_filters$subdivisionS6","_filters$subdivisionS7","_filters$subdivisionS8","_filters$subdivisionS9","_filters$subdivisionS10","_filters$subdivisionS11","_filters$subdivisionS12","_filters$subdivisionS13","_filters$subdivisionS14","loadSavedSearchList","_loadSavedSearchList","_loadLastSaved","_res$data","_res$data$filters","sortDirection","loadFiltersAndColumns","_loadFiltersAndColumns","keepLastChange","_res$filters","loadLastSaved","defaultList","baseFilters","defaultLoadedSearch","canExport","LoansView","setTotal","isColumnsDrawerOpen","setIsColumnsDrawerOpen","setColumnsList","setSelectedColumns","loadedSearch","setloadedSearch","setIsFiltersEdited","setShouldLoadSavedList","setNameOfLatestSave","_getTableColumns","getTableColumns","getSearchParams","getLoansList","clearAllFilters","resetColumnsToDefault","totalPrincipal","saveSearchFilters","gap","strong","_ref3$id","_ref3$selectedColumns","getNameOfLatestSave","Loans_AllLoansList","_objectSpread2","_objectSpread5","LawFirmProfileTabs","isSytemUser","updatedActiveSubKey","Profile_LawFirm","_useProfile","routes","redirectLawFirmOnViewOther","updatedEditMode","useProfile","lawFirmProfileTabs","TemplateLoader","_ref$initialValue","initialValue","editorRef","ts","editor","init","plugins","toolbar","relative_urls","remove_script_host","convert_urls","fontsize_formats","visual","content_css","onEditorChange","apiKey","sendEmailToTest","BULK_EMAIL_TEST_URL","sendBulkEmail","BULK_EMAIL_SEND_URL","RecipientSearch","onSelect","toSendList","recipientList","setRecipientList","getRecipients","handleSelect","parsed","isSubscribed","SYSTEM_EMAIL","CreateEmail","_ref$form","testEmail","setTestEmail","testEmailHasError","setTestEmailHasError","senderList","setSenderList","isSubmitLoading","setIsSubmitLoading","isAlertModalOpen","setIsAlertModalOpen","setToSendList","setIncludeUnsubscribed","numberOfUnsubscribedUsers","unsubscribedUsersCount","getSenders","displayToast","submit","_submit","_args3","emailBody","emailSubject","senderEmail","attachments","attachmentList","totalAttachmentSize","testEmails","companyIds","individualIds","_attachments","_attachmentList","_totalAttachmentSize","_formData","originFileObj","pow","findIndex","mode","onDeselect","itemKey","whitespace","preserve","validateTrigger","tempateLoader","multiple","beforeUpload","border","senderName","maskClosable","Marketing_CreateEmail","hasError","AllUsersList","_ref$page","_ref$total","_ref$data","displayFinancier","lastLoanId","criteria","useUpdateUsersRouteOptions","AllUsers","settledLoansKey","profileStatusKey","firstFundsAvailableKey","bdmList","setBdmList","filterProfileStatus","setFilterProfileStatus","filterFirstFundsAvailable","setFilterFirstFundsAvailable","filterFinancierType","setFilterFinancierType","filterSettledLoans","setFilterSettledLoans","setRows","changeFilterToRadio","getBdmList","usersSystemUserId","getAllUsersBdmLookup","bdm","_getAllUsers","getAllUsersList","_getFinancierTypes","financierTypeLookup","_getProfileStatuses","profileStatusLookup","_getFirstFundsAvailable","firstFundsAvailableLookup","_getSettledLoans","settledLoansLookup","changeFilter","getProfileStatuses","getFirstFundsAvailable","getFinancierTypes","getSettledLoans","getAllUsers","totalAmount","lastPrincipal","Common_RadioInCard","Users_AllUsersList","_ref16$userType","_ref16$payload","_ref26$search","SnapshotAttributedLenders","SnapshotAttributedBrokers","getLoanSnapshotDetails","LOANS_LOGS_SNAPSHOT_URL","LOANS_LOGS_SNAPSHOT_AS_SYSTEM_USER_URL","loadSnapshotDetails","lastEditByCompany","lastEditDate","Logs_SnapshotAttributedLenders","associatedLenders","Logs_SnapshotAttributedBrokers","associatedBrokers","parseFloat","EmailSubscriptions_EmailSubscriptionsPublic","defaultRoutes","path","LawFirmProfile","AddCompanyUser","FindLender","FindBroker","Notes","LoansDetailsView","LoansSnapshotView","PrivacySettingsView","EmailSubscriptionsView","CreateCompany","Index","View","exact","AuthorizedRoutes","Layout_TemplateNothing","Login_Login","Signup","pages_ForgotPassword","Layout_TemplateNavbar","FinderUtility_FinderUtilityView","Loans_LoansDetailsView","InactiveProfile","Common_Exception","Initialize","library","fab","fas","far","rootElement","es","integration_react","src_routes","navigator","serviceWorker","registration","unregister","_parseEnv","parseEnv","BE_URL","process","REACT_APP_BE_URL","_parseEnv2","CALLBACK_URL","REACT_APP_FE_CALLBACK_URL","_parseEnv3","FE_REDIRECT_URL","REACT_APP_FE_REDIRECT_URL"],"mappings":"sIAuFMA,EAAW,eApEf,SAAAC,IAME,OANaC,OAAAC,EAAA,EAAAD,CAAAE,KAAAH,GACRA,EAAgBD,WACnBI,KAAKC,MAAQ,GACbJ,EAAgBD,SAAWI,MAGtBH,EAAgBD,yEAGLM,GAClB,OAAOC,IAAEC,OACPF,EACA,SAACG,EAAYC,GACX,IAAMC,EACJD,EAAIE,cAAgBF,EAAIE,aAAaC,eAAe,WAChDH,EAAIE,aAAaE,QACjB,GACN,OAAOL,EAAWM,OAAO,CAACJ,KAE5B,6CAIoC,IAAxBK,EAAwBC,EAAxBD,OAAQE,EAAgBD,EAAhBC,aACtB,QAAKF,GAAU,KAAOA,GAAU,KAAQE,uCAQ9BC,EAAUC,EAAYC,GAAO,IAAAC,EAAAC,EAiBvC,MAAO,CACLC,KAAMJ,EACNK,MAAK,QAAAH,EAAA,OAAEH,QAAF,IAA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nC,KAAM,UAER,CACEhnH,GAAIA,KACJjV,KAAM,QACNe,MAAO,QACP+4F,OAAQlG,GACR73F,KAAMiT,GACNitH,KAAM,oBACNrlH,YAAa,UAEf,CACE3B,GAAIA,KACJjV,KAAM,QACNe,MAAO,QACP+4F,OAAQlG,GACR73F,KAAM4/F,GACNsgC,KAAM,oBACNrlH,YAAa,UAEf,CACE3B,GAAIA,KACJjV,KAAM,QACNe,MAAO,QACP+4F,OAAQlG,GACR73F,KAAMmgI,GACND,KAAM,qBACNrlH,YAAa,WAEf,CACE3B,GAAIA,KACJjV,KAAM,QACNe,MAAO,QACP+4F,OAAQlG,GACR73F,KAAMogI,GACNF,KAAM,+BAER,CACEhnH,GAAIA,KACJjV,KAAM,QACNe,MAAO,QACP+4F,OAAQlG,GACR73F,KAAMu8F,GACN2jC,KAAM,uBAER,CACEhnH,GAAIA,KACJjV,KAAM,kBACNe,MAAO,kBACP+4F,OAAQlG,GACR73F,KAAM08F,GACNwjC,KAAM,oBAER,CACEhnH,GAAIA,KACJjV,KAAM,gBACNe,MAAO,gBACP+4F,OAAQlG,GACR73F,KAAMqgI,GACNH,KAAM,kBAER,CACEhnH,GAAIA,KACJjV,KAAM,gBACNe,MAAO,gBACP+4F,OAAQlG,GACR73F,KAAMsgI,GACNJ,KAAM,kBAER,CACEhnH,GAAIA,KACJjV,KAAM,QACNe,MAAO,mBACP+4F,OAAQlG,GACR73F,KAAMugI,GACNL,KAAM,gBAGR,CACEhnH,GAAIA,KACJjV,KAAM,gBACNe,MAAO,iBACP+4F,OAAQlG,GACR73F,KAAMugI,GACNL,KAAM,gBAER,CACEhnH,GAAIA,KACJjV,KAAM,oBACNe,MAAO,qBACP+4F,OAAQlG,GACR73F,KAAMwgI,GACNN,KAAM,mBAER,CACEhnH,GAAIA,KACJjV,KAAM,4BACNe,MAAO,sBACP+4F,OAAQlG,GACR73F,KAAMygI,GACNP,KAAM,0BAER,CACEhnH,GAAIA,KACJjV,KAAM,mBACNe,MAAO,oB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,QAAAwjI,EAAEC,EAAS1hI,OAAO0K,IAAIi3H,eAAtB,IAAAF,IAAiCG,8CAAYC,wBAA7C,IAAA5jI,IAAiE,yBACxE2O,aAAY,QAAAtO,EAAA,QAAAwjI,EAAEJ,EAAS1hI,OAAO0K,IAAIq3H,qBAAtB,IAAAD,IAAuCF,8CAAYI,iCAAnD,IAAA1jI,IAAgF,sCAC5FwO,aAAY,QAAAvO,EAAA,QAAA0jI,EAAEP,EAAS1hI,OAAO0K,IAAIw3H,wBAAtB,IAAAD,IAA0CL,8CAAYO,iCAAtD,IAAA5jI,IACZ,wCAGF,SAASmjI,EAASh3H,GAEhB,MAAI,WAAWyjE,KAAKzjE,GACX,KAGFA,EAGMsvC","file":"static/js/main.572eead5.chunk.js","sourcesContent":["import ErrorMessage from \"../constants/errors\";\nimport _ from \"lodash\";\n\n/**\n * @typedef {object} ValidResponse\n * @property {string} actionType\n * @property {number} total\n * @property {any} data\n * @property {boolean} status\n */\n\n/**\n * @typedef {object} InvalidResponse\n * @property {string} message\n * @property {any} data\n * @property {boolean} status\n */\n\nclass ResponseHandler {\n constructor() {\n if (!ResponseHandler.instance) {\n this._data = [];\n ResponseHandler.instance = this;\n }\n\n return ResponseHandler.instance;\n }\n\n errorMessageBuilder(errors) {\n return _.reduce(\n errors,\n (errorArray, err) => {\n const errorDesc =\n err.errorMessage && err.errorMessage.hasOwnProperty(\"message\")\n ? err.errorMessage.message\n : \"\";\n return errorArray.concat([errorDesc]);\n },\n []\n );\n }\n\n isValidStatus({ status, isAxiosError }) {\n if ((status >= 400 && status <= 599) || isAxiosError) {\n return false;\n }\n\n return true;\n }\n\n /** @returns {ValidResponse} */\n validObject(response, actionType, model) {\n function parseResponse(toParse) {\n const hasNoModel = _.isUndefined(model);\n if (toParse && toParse.hasOwnProperty(\"rows\")) {\n if (hasNoModel) {\n return toParse.rows;\n } else {\n return toParse.rows.map(row => new model(row));\n }\n }\n\n if (!hasNoModel) {\n return new model(toParse);\n }\n\n return toParse;\n }\n return {\n type: actionType,\n total: response?.total ?? 0,\n data: parseResponse(response),\n status: true,\n page: response?.page ?? null\n };\n }\n\n /** @returns {InvalidResponse} */\n inValidObject({ status, data }) {\n return {\n message: ErrorMessage[status.toString()],\n data: data,\n status: false\n };\n }\n}\n\nconst instance = new ResponseHandler();\nObject.freeze(instance);\n\nexport default instance;\n","export * from './utilities';\nexport * from './response';\nexport * from './table';\nexport * from './icon';\nexport * from './http';\nexport * from './apiHelper';\nexport * from './dateTime';\nexport * from './common';\nexport * from './list';","import _ from \"lodash\";\nimport axios from \"axios\";\nimport authService from \"../actions/AuthorizeService\";\nimport { saveAs } from \"file-saver\";\nimport moment from \"moment\";\nimport { mustBeArray, parseMomentPropsToDate } from \"../libs/utilities\";\nimport history from \"../routes/history\";\nimport qs from \"qs\";\nimport { QueryParameterNames } from \"../constants/ApiAuthorizationConstants\";\n\nconst defaultAjaxTimeout = 30000;\nconst defaultDownloadTime = 300000; \n\nconst blobToFile = (theBlob, fileName) => {\n //A Blob() is almost a File() - it's just missing the two properties below which we will add\n return new File([theBlob], fileName);\n};\n\nlet loginRedirectRequested = false;\n\nfunction handleUnauthorizedRequest() {\n if (!loginRedirectRequested) {\n const returnUrl = window.location.href;\n const redirectUrl = `/login?${QueryParameterNames.ReturnUrl}=${encodeURI(\n returnUrl\n )}`;\n\n loginRedirectRequested = true;\n return history.push(redirectUrl, { local: true });\n }\n}\n\nconst requestPayloadWrapper = function(method) {\n return async function(url, data, queryParams) {\n const accessToken = await authService.getAccessToken();\n const headers = {\n \"Content-Type\": \"application/json\",\n Authorization: `Bearer ${accessToken}`\n };\n return axios({\n method,\n url,\n headers,\n data,\n params: queryParams,\n timeout: defaultAjaxTimeout,\n validateStatus: status => {\n if (status === 401) return handleUnauthorizedRequest();\n if ([403, 500].includes(status))\n return history.push(`/exception/${status}`, { local: true });\n if(status === 404)\n return history.push(`/`, { local: true });\n return status >= 200 && status < 500;\n }\n });\n };\n};\n\nconst requestWrapper = function(method) {\n return async function(url, cancelToken) {\n const accessToken = await authService.getAccessToken();\n const headers = {\n \"Content-Type\": \"application/json\",\n Authorization: `Bearer ${accessToken}`\n };\n return axios({\n method,\n url,\n headers,\n cancelToken,\n timeout: defaultAjaxTimeout,\n validateStatus: status => {\n if (status === 401) return handleUnauthorizedRequest();\n if ([403, 500].includes(status)){\n if(status == 403){\n if(url.includes(\"lender\") || url.includes(\"broker\"))\n return history.push('/exception/403/inactive-profile', { local: true })\n }\n\n return history.push(`/exception/${status}`, { local: true });\n }\n if(status === 404){\n return history.push(`/`, { local: true });\n }\n return status >= 200 && status < 500;\n }\n });\n };\n};\n\nconst requestGetWithParamsWrapper = function() {\n return async function(url, params, cancelToken, handleServerError) {\n const accessToken = await authService.getAccessToken();\n const headers = {\n \"Content-Type\": `application/json`,\n Authorization: `Bearer ${accessToken}`\n };\n\n return axios({\n method: \"get\",\n url,\n headers,\n params: parseMomentPropsToDate(params),\n cancelToken,\n timeout: defaultAjaxTimeout,\n paramsSerializer: params =>\n qs.stringify(params, { arrayFormat: \"repeat\" }),\n validateStatus: status => {\n if (status === 401) return handleUnauthorizedRequest();\n if (handleServerError && status === 500) return status;\n if ([403, 500].includes(status))\n return history.push(`/exception/${status}`, { local: true });\n if(status === 404)\n return history.push(`/`, { local: true });\n return status >= 200 && status < 500;\n }\n });\n };\n};\n\nconst requestFileWrapper = function(method) {\n return async function(url, payload, name, fileList) {\n const accessToken = await authService.getAccessToken();\n return new Promise((resolve, reject) => {\n const req = new XMLHttpRequest();\n const formData = new FormData();\n // const {file, name} = payload;\n // formData.append(\"file\", blobToFile(file, name));\n if (!_.isUndefined(payload)) {\n formData.append(`${name}`, JSON.stringify(payload));\n }\n mustBeArray(fileList).map((file, index) => {\n formData.append(index, blobToFile(file, file?.name));\n });\n // if(!_.isUndefined(name)){\n // formData.append(\"title\",name);\n // }\n req.open(method, url, true);\n req.setRequestHeader(\"Authorization\", `Bearer ${accessToken}`);\n req.send(formData);\n req.onreadystatechange = () => {\n return resolve(req);\n };\n });\n };\n};\n\nconst fileDownloadRequestWrapper = function(method) {\n return async (url, data) => {\n const accessToken = await authService.getAccessToken();\n const headers = {\n \"Content-Type\": \"application/octet-stream\",\n Authorization: `Bearer ${accessToken}`\n };\n\n Object.keys(data || {}).forEach(key => {\n if (data[key] instanceof moment) {\n data[key] = data[key].toDate();\n }\n });\n const fileResult = await axios({\n method,\n url,\n headers,\n params: data,\n timeout: defaultDownloadTime,\n paramsSerializer: function(params) {\n return qs.stringify(params, { arrayFormat: \"repeat\" });\n },\n validateStatus: status => {\n if (status === 401) return handleUnauthorizedRequest();\n if ([403, 500].includes(status))\n return history.push(`/exception/${status}`, { local: true });\n if(status === 404)\n return history.push(`/`, { local: true });\n return status >= 200 && status < 500;\n },\n responseType: \"blob\"\n });\n\n const contentDisposition = fileResult.request.getResponseHeader(\n \"Content-Disposition\"\n );\n let fileName = \"file\";\n if (contentDisposition && contentDisposition.includes(\"attachment\")) {\n var filenameRegex = /filename[^;=\\n]*=((['\"]).*?\\2|[^;\\n]*)/;\n var matches = filenameRegex.exec(contentDisposition);\n if (matches != null && matches[1]) {\n fileName = matches[1].replace(/['\"]/g, \"\");\n }\n }\n\n saveAs(fileResult.data, fileName);\n\n return { status: true };\n };\n};\n\nconst requestArrayBufferWrapper = function(method) {\n return async function(url, payload) {\n const accessToken = await authService.getAccessToken();\n return new Promise((resolve, reject) => {\n const req = new XMLHttpRequest();\n const formData = new FormData();\n const { file, questions, title } = payload;\n formData.append(\"file\", file);\n if (!_.isUndefined(questions)) {\n formData.append(\"questions\", JSON.stringify(questions || {}));\n }\n req.responseType = \"arraybuffer\";\n req.open(method, url, true);\n req.setRequestHeader(\"Authorization\", `bearer ${accessToken}`);\n req.send(formData);\n req.onreadystatechange = () => {\n if (req.readyState === XMLHttpRequest.DONE) {\n return resolve(req);\n }\n };\n });\n };\n};\n\nconst requestPdf = function(method) {\n return async function(url, cancelToken) {\n const accessToken = await authService.getAccessToken();\n const headers = {\n \"Content-Type\": \"application/json\",\n Authorization: `Bearer ${accessToken}`\n };\n return axios({\n method,\n url,\n headers,\n cancelToken,\n timeout: defaultAjaxTimeout,\n responseType: \"blob\",\n validateStatus: status => {\n if (status === 401) return handleUnauthorizedRequest();\n if ([403, 500].includes(status))\n return history.push(`/exception/${status}`, { local: true });\n if(status === 404)\n return history.push(`/`, { local: true });\n return status >= 200 && status < 500;\n }\n });\n };\n};\n\nconst requestFormData = function(method) {\n return async function(url, formData, cancelToken) {\n const accessToken = await authService.getAccessToken();\n const headers = {\n \"Content-Type\": \"multipart/form-data\",\n Authorization: `Bearer ${accessToken}`\n };\n return axios({\n method,\n url,\n headers,\n cancelToken,\n data: formData,\n timeout: defaultAjaxTimeout,\n validateStatus: status => {\n if (status === 401) return handleUnauthorizedRequest();\n if ([403, 500].includes(status))\n return history.push(`/exception/${status}`, { local: true });\n if(status === 404)\n return history.push(`/`, { local: true });\n return status >= 200 && status < 500;\n }\n });\n };\n};\n\nconst requuestAllWrapper = function(method) {\n return async function(requests) {\n return axios[method](requests);\n };\n};\n\n// Public requests\nconst publicRequestWrapper = function (method) {\n return async function (url, cancelToken) {\n const headers = {\n \"Content-Type\": \"application/json\",\n };\n return axios({\n method,\n url,\n headers,\n cancelToken,\n timeout: defaultAjaxTimeout,\n validateStatus: (status) => {\n return status >= 200 && status < 500;\n },\n });\n };\n};\n\nexport const http = {\n get: requestWrapper(\"get\"),\n getWithQueryParams: requestGetWithParamsWrapper(),\n put: requestPayloadWrapper(\"put\"),\n patch: requestPayloadWrapper(\"patch\"),\n post: requestPayloadWrapper(\"post\"),\n del: requestWrapper(\"delete\"),\n postFile: requestFileWrapper(\"post\"),\n postFormData: requestFormData(\"post\"),\n putFormData: requestFormData(\"put\"),\n updateFile: requestFileWrapper(\"put\"),\n downloadFile: fileDownloadRequestWrapper(\"get\"),\n all: requuestAllWrapper(\"all\"),\n postPreviewFIle: requestArrayBufferWrapper(\"post\"),\n getPdf: requestPdf(\"get\"),\n // Public Requests\n publicGet: publicRequestWrapper(\"get\")\n};\n","import env from \"../constants/env\";\nimport { templateEngine } from \"../libs/utilities\";\n\nclass ApiUrlHandler {\n constructor() {\n if (!ApiUrlHandler.instance) {\n this._urls = {\n COMPANY_URL: \"/<%userArea%>/companies\",\n BUSINESS_UNIT_URL: \"/<%userArea%>/businessunits\",\n COMPANY_LOOKUP_URL: \"/<%userArea%>/Lookups/companies\",\n };\n ApiUrlHandler.instance = this;\n }\n\n return ApiUrlHandler.instance;\n }\n\n constructEndpoint({ endpoint, options = {} }) {\n options.userArea = localStorage.getItem(\"userArea\");\n const url = env.baseurl + templateEngine(this._urls[endpoint], options);\n return url;\n }\n}\n\nconst instance = new ApiUrlHandler();\nObject.freeze(instance);\n\nexport default instance;\n","import {createBrowserHistory} from 'history';\n\nconst history = createBrowserHistory();\nexport default history;\n","import { isNullEmptyOrUndefined } from \"./utilities\"\nimport moment from 'moment';\n\nexport const formatDateTimeForPayload = value => {\n if(isNullEmptyOrUndefined(value)) return null;\n return moment(value).format();\n}","import { mustBeArray } from \"./utilities\";\n\nexport const getItemName = ({value, list, field=\"id\", outputField=\"name\" }) => {\n const name = mustBeArray(list).find(o => o[field] === value)?.[outputField];\n return name ?? null; \n }\n\nexport const getSettlementItemName = ({value, list, field=\"id\", outputField=\"name\" }) => {\n const name = mustBeArray(list).find(o => o[field] === value)?.[outputField];\n return name.replace(\"ago\", \"\").trim() ?? null; \n}\n\n export const convertCurrenyToHighestFigure = (value) => {\n const thousand = 1000;\n const million = 1000000;\n const billion = 1000000000;\n if(value >= billion){\n const amount = (value/billion).toFixed(2);\n return `$${amount}B`\n }\n if(value >= million){\n const amount = (value/million).toFixed(2);\n return `$${amount}M`\n }\n if(value){\n const amount = (value/thousand).toFixed(2);\n return `$${amount}K`\n }\n return `$${value}`;\n }\n","import env from \"./env\";\n\nexport const AUTH_CONFIG = {\n authority: env.baseurl,\n client_id: \"bransgroves.spa\",\n redirect_uri: env.callback_url,\n post_logout_redirect_uri: env.redirect_url,\n response_type: \"code\",\n scope: \"openid app.user app.user.id profile email address IdentityServerApi\",\n automaticSilentRenew : true\n}\n","import { UserManager, WebStorageStateStore } from 'oidc-client';\nimport { ApplicationName } from '../constants/ApiAuthorizationConstants'\nimport { AUTH_CONFIG } from '../constants/auth';\n\nexport class AuthorizeService {\n _callbacks = [];\n _nextSubscriptionId = 0;\n _user = null;\n _isAuthenticated = false;\n\n // By default pop ups are disabled because they don't work properly on Edge.\n // If you want to enable pop up authentication simply set this flag to false.\n _popUpDisabled = true;\n\n async isAuthenticated() {\n const user = await this.getUser();\n return !!user;\n }\n\n async getUser() {\n if (this._user && this._user.profile) {\n return this._user.profile;\n }\n\n await this.ensureUserManagerInitialized();\n const user = await this.userManager.getUser();\n return user && user.profile;\n }\n\n async getAccessToken() {\n await this.ensureUserManagerInitialized();\n const user = await this.userManager.getUser();\n return user && user.access_token;\n }\n\n // We try to authenticate the user in three different ways:\n // 1) We try to see if we can authenticate the user silently. This happens\n // when the user is already logged in on the IdP and is done using a hidden iframe\n // on the client.\n // 2) We try to authenticate the user using a PopUp Window. This might fail if there is a\n // Pop-Up blocker or the user has disabled PopUps.\n // 3) If the two methods above fail, we redirect the browser to the IdP to perform a traditional\n // redirect flow.\n async signIn(state) {\n await this.ensureUserManagerInitialized();\n try {\n const silentUser = await this.userManager.signinSilent(this.createArguments());\n this.updateState(silentUser);\n return this.success(state);\n } catch (silentError) {\n // User might not be authenticated, fallback to popup authentication\n console.log(\"Silent authentication error: \", silentError);\n\n try {\n if (this._popUpDisabled) {\n throw new Error('Popup disabled. Change \\'AuthorizeService.js:AuthorizeService._popupDisabled\\' to false to enable it.')\n }\n\n const popUpUser = await this.userManager.signinPopup(this.createArguments());\n this.updateState(popUpUser);\n return this.success(state);\n } catch (popUpError) {\n if (popUpError.message === \"Popup window closed\") {\n // The user explicitly cancelled the login action by closing an opened popup.\n return this.error(\"The user closed the window.\");\n } else if (!this._popUpDisabled) {\n console.log(\"Popup authentication error: \", popUpError);\n }\n\n // PopUps might be blocked by the user, fallback to redirect\n try {\n await this.userManager.signinRedirect(this.createArguments(state));\n return this.redirect();\n } catch (redirectError) {\n console.log(\"Redirect authentication error: \", redirectError);\n return this.error(redirectError);\n }\n }\n }\n }\n\n async completeSignIn(url) {\n try {\n await this.ensureUserManagerInitialized();\n const user = await this.userManager.signinCallback(url);\n this.updateState(user);\n return this.success(user && user.state);\n } catch (error) {\n console.log('There was an error signing in: ', error);\n return this.error('There was an error signing in.');\n }\n }\n\n // We try to sign out the user in two different ways:\n // 1) We try to do a sign-out using a PopUp Window. This might fail if there is a\n // Pop-Up blocker or the user has disabled PopUps.\n // 2) If the method above fails, we redirect the browser to the IdP to perform a traditional\n // post logout redirect flow.\n async signOut(state) {\n await this.ensureUserManagerInitialized();\n try {\n if (this._popUpDisabled) {\n throw new Error('Popup disabled. Change \\'AuthorizeService.js:AuthorizeService._popupDisabled\\' to false to enable it.')\n }\n\n await this.userManager.signoutPopup(this.createArguments());\n this.updateState(undefined);\n return this.success(state);\n } catch (popupSignOutError) {\n console.log(\"Popup signout error: \", popupSignOutError);\n try {\n await this.userManager.signoutRedirect(this.createArguments(state));\n return this.redirect();\n } catch (redirectSignOutError) {\n console.log(\"Redirect signout error: \", redirectSignOutError);\n return this.error(redirectSignOutError);\n }\n }\n }\n\n async completeSignOut(url) {\n await this.ensureUserManagerInitialized();\n try {\n const response = await this.userManager.signoutCallback(url);\n this.updateState(null);\n return this.success(response && response.data);\n } catch (error) {\n console.log(`There was an error trying to log out '${error}'.`);\n return this.error(error);\n }\n }\n\n updateState(user) {\n this._user = user;\n this._isAuthenticated = !!this._user;\n this.notifySubscribers();\n }\n\n subscribe(callback) {\n this._callbacks.push({ callback, subscription: this._nextSubscriptionId++ });\n return this._nextSubscriptionId - 1;\n }\n\n unsubscribe(subscriptionId) {\n const subscriptionIndex = this._callbacks\n .map((element, index) => element.subscription === subscriptionId ? { found: true, index } : { found: false })\n .filter(element => element.found === true);\n if (subscriptionIndex.length !== 1) {\n throw new Error(`Found an invalid number of subscriptions ${subscriptionIndex.length}`);\n }\n\n this._callbacks.splice(subscriptionIndex[0].index, 1);\n }\n\n notifySubscribers() {\n for (let i = 0; i < this._callbacks.length; i++) {\n const callback = this._callbacks[i].callback;\n callback();\n }\n }\n\n createArguments(state) {\n return { useReplaceToNavigate: true, data: state };\n }\n\n error(message) {\n return { status: AuthenticationResultStatus.Fail, message };\n }\n\n success(state) {\n return { status: AuthenticationResultStatus.Success, state };\n }\n\n redirect() {\n return { status: AuthenticationResultStatus.Redirect };\n }\n\n async ensureUserManagerInitialized() {\n if (this.userManager !== undefined) {\n return;\n }\n\n let settings = AUTH_CONFIG;\n settings.automaticSilentRenew = true;\n settings.includeIdTokenInSilentRenew = true;\n settings.userStore = new WebStorageStateStore({\n prefix: ApplicationName\n });\n\n this.userManager = new UserManager(settings);\n this.userManager.events.addUserSignedOut(async () => {\n await this.userManager.removeUser();\n this.updateState(undefined);\n });\n }\n\n static get instance() { return authService }\n}\n\nconst authService = new AuthorizeService();\n\nexport default authService;\n\nexport const AuthenticationResultStatus = {\n Redirect: 'redirect',\n Success: 'success',\n Fail: 'fail'\n};\n","export const ApplicationName = 'BRANSGROVES_FE';\n\nexport const QueryParameterNames = {\n ReturnUrl: 'returnUrl',\n Message: 'message'\n};\n\nexport const LogoutActions = {\n LogoutCallback: 'logout-callback',\n Logout: 'logout',\n LoggedOut: 'logged-out'\n};\n\nexport const LoginActions = {\n Login: 'login',\n LoginCallback: 'login-callback',\n LoginFailed: 'login-failed',\n Profile: 'profile',\n Register: 'register'\n};\n","export default {\n \"400\": \"Bad Request\",\n \"401\": \"Unauthorized\",\n \"402\": \"Payment Required\",\n \"403\": \"Forbidden\",\n \"404\": \"Not Found\",\n \"405\": \"Method Not Allowed\",\n \"406\": \"Not Acceptable\",\n \"407\": \"Authentication Required\",\n \"408\": \"Request Timeout\",\n \"500\": \"An error occured\"\n};\n\nexport const loanErrors = {\n loanNumberRequired: \"Loan number is required.\",\n loanNumberContainsSpecial: \"Loan number contains special characters\",\n attributedOmicronLenderRequired: \"Attributed Omicron Lender is required.\",\n attributedOmicronBrokerRequired: \"Attributed Omicron Broker is required.\",\n validAttributedOmicronLender:\n \"Please select valid lender and amount for Attributed Omicron Lender.\",\n principalRequired: \"Principal is required.\",\n suburbAndStateRequired: \"Suburb and State are required.\",\n lowerRateRequired: \"Lower rate is required\",\n lowerRateValidation:\n \"Lower Rate must be between 2%-80% and less than the Higher Rate\",\n higherRateRequired: \"Higher Rate is required\",\n higherRateValidation:\n \"Higher Rate must be between 2%-80% and greater than the Lower Rate\",\n lvrRequired: \"LVR is required\",\n lvrValidation: \"LVR must be between 5%-99%\",\n statusKeySettled: \"You cannot change the Status to Pre-Settlement if the Settlement Date is populated\",\n statusKeyDischarged: \"You cannot change the Status away from Discharged if the Discharged Date field is populated\",\n repaymentDateRequired: \"Repayment Date is required\",\n settlementDateRequired: \"Settlement Date is required\",\n lawfirmRequired: \"Law Firm is required\",\n priorityRequired: \"Priority is required\",\n scenarioRequired: \"Scenario is required\",\n securityTypeRequired: \"Security Type is required\",\n securitySubTypeRequired: \"Security Sub Type is required\",\n interestRequired: \"Interest Payable is required\",\n permissionAttributedLender: (lender =\"\" ) => `Ooops! You only have permissions to create loan records if ${lender} is one of the Attributed Lenders.`,\n};\n\nexport const loanFieldErrors = {\n lvrRequired: loanErrors.lvrRequired,\n lvr: loanErrors.lvrValidation,\n loanLenders: loanErrors.attributedOmicronLenderRequired,\n suburbState: loanErrors.suburbAndStateRequired,\n attributedBrokerId: loanErrors.attributedOmicronBrokerRequired,\n principal: loanErrors.principalRequired,\n higherRateRequired: loanErrors.higherRateRequired,\n higherRate: loanErrors.higherRateValidation,\n lowerRateRequired: loanErrors.loanNumberRequired,\n lowerRate: loanErrors.lowerRateValidation,\n loanNo: loanErrors.loanNumberRequired,\n loanNumberContainsSpecial: loanErrors.loanNumberRequired,\n statusKeySettled: loanErrors.statusKeySettled,\n statusKeyDischarged: loanErrors.statusKeyDischarged,\n repaymentDate: loanErrors.repaymentDateRequired,\n settlementDate: loanErrors.settlementDateRequired\n};\n","export const PARTNER_ID = \"PRTNR\";\nexport const ASSOCIATE_ID = \"ASSCT\";\nexport const PARALEGAL_ID = \"Paralegal\";\n\nexport const ADMIN_USER = \"admin\";\nexport const LENDER_USER = 'lender';\nexport const BROKER_USER = 'broker';\nexport const DUAL_USER = 'dual';\nexport const LAW_FIRM_USER = 'lawFirm';\nexport const SYSTEM_ADMIN_USER = \"systemAdmin\";","/* eslint-disable */\n\nimport _ from \"lodash\";\nimport { http } from \"./http\";\nimport atob from \"atob\";\nimport { message } from \"antd\";\nimport {\n entityType,\n lectureType,\n sectionContentType,\n workflowContentTypes\n} from \"../constants/entities\";\nimport axios from \"axios\";\nimport moment from \"moment\";\nimport { DEFAULT_DATE_FORMAT } from \"../constants/moment\";\nimport { ADMIN_USER, BROKER_USER, LENDER_USER } from \"../constants/systemUsers\"; \n\n/**\n * @typedef {(action:T) => ReturnType} DispatchAction\n */\n\nexport const getIdToken = () => {\n const idToken = localStorage.getItem(\"id_token\");\n if (!idToken) {\n throw new Error(\"No id token found\");\n }\n return idToken;\n};\n\nexport const dataUrlToBase64String = dataUrl => {\n return dataUrl.replace(/^data:image\\/(png|jpg);base64,/, \"\");\n};\n\nexport const getBase64Image = (imgUrl, callback) => {\n var img = new Image();\n\n // onload fires when the image is fully loadded, and has width and height\n\n img.onload = function() {\n var canvas = document.createElement(\"canvas\");\n canvas.width = img.width;\n canvas.height = img.height;\n var ctx = canvas.getContext(\"2d\");\n ctx.drawImage(img, 0, 0);\n var dataURL = canvas.toDataURL(\"image/png\"),\n dataURL = dataURL.replace(/^data:image\\/(png|jpg);base64,/, \"\");\n\n callback(dataURL); // the base64 string\n };\n\n // set attributes and src\n img.setAttribute(\"crossOrigin\", \"anonymous\"); //\n img.src = imgUrl;\n};\n\nexport const errorDisplay = errors => {\n mustBeArray(errors).map((error, i) => {\n return message.error(error && error.message);\n });\n};\n\nexport const errorDisplayCustom = errors => {\n mustBeArray(errors).map((error, i) => {\n return message.error(error);\n });\n};\n\nexport const getAccessToken = () => {\n const accessToken = localStorage.getItem(\"access_token\");\n if (!accessToken) {\n throw new Error(\"No access token found\");\n }\n return accessToken;\n};\n\nexport const mapWorkflowStepType = contentType => {\n let workflowType = _.find(\n workflowContentTypes,\n wc => wc.type === contentType\n );\n return workflowType.value;\n};\n\nexport const mapContentType = type => {\n let contentType = _.find(entityType, et => et.type === type);\n return contentType;\n};\n\nexport const mapSectionContentType = type => {\n let sectionConent = _.find(sectionContentType, wc => wc.value === type);\n return sectionConent.attr;\n};\nexport const mapLectureType = type => {\n let lye = _.find(lectureType, wc => wc.value === type);\n return lye.attr;\n};\n\nexport const getClaimFromToken = (token, claim) => {\n var payload = token.split(\".\")[1];\n var bin = atob(payload);\n var obj = JSON.parse(bin);\n return obj[claim];\n};\n\nexport const isNulledUndefined = value => {\n return _.isNull(value) || _.isUndefined(value);\n};\n\nexport const downloadAs = (url, name) => {\n axios\n .get(url, {\n headers: {\n \"Content-Type\": \"application/octet-stream\"\n },\n responseType: \"blob\"\n })\n .then(response => {\n const a = document.createElement(\"a\");\n const url = window.URL.createObjectURL(response.data);\n a.href = url;\n a.download = name;\n a.click();\n })\n .catch(err => {\n console.log(\"error\", err);\n });\n};\n\nexport function defaultIfUndefinedOrNull(value, defaultValue) {\n if (value === undefined || value === null) {\n return defaultValue;\n }\n\n return value;\n}\n\nexport async function evaluatePolicy(user, policy) {\n return await policy(user.roles, user.permissions, user);\n}\n\nexport const delay = ms => new Promise(resolve => setTimeout(resolve, ms));\n\nexport const getDataUrlFromBlob = blob =>\n new Promise(resolve => {\n const reader = new FileReader();\n reader.addEventListener(\"load\", () => resolve(reader.result));\n reader.readAsDataURL(blob);\n });\n\nexport const addQueryParams = (baseUrl, options) => {\n const paramString = _.isEmpty(options) ? \"\" : \"?\" + buildQueryParams(options);\n return baseUrl + paramString;\n};\n\nexport const buildQueryParams = params => {\n var esc = encodeURIComponent;\n\n return !_.isUndefined(params)\n ? Object.keys(removeUndefined(params))\n .map(k => {\n var queryString = _.isObject(params[k])\n ? buildFilterParams(params[k])\n : esc(params[k]);\n return esc(k) + \"=\" + queryString;\n })\n .join(\"&\")\n : \"\";\n};\n\nexport const toPaginationQueryParams = (params = {}) => {\n let paginationParams = {};\n paginationParams.sort = params.order;\n paginationParams.orderBy = params.field;\n paginationParams.page = params.page;\n paginationParams.pageSize = params.pageSize;\n\n return paginationParams;\n};\n\nexport const checkUndefinedInObject = object => {\n let allValuesEntered = true;\n if (_.isObject(object) && !_.isEmpty(object)) {\n _.forEach(Object.values(object), function(o) {\n if (o === \"\" || o === null || o === undefined) {\n allValuesEntered = false;\n }\n });\n } else {\n allValuesEntered = false;\n }\n return allValuesEntered;\n};\n\nexport const removeEmptyValuesInObject = object => {\n let newObject = _.clone(object);\n _.forEach(Object.keys(object), o => {\n if (object[o] === \"\" || _.isNull(object[o]) || _.isUndefined(object[o])) {\n delete newObject[o];\n }\n });\n return newObject;\n};\n\nexport const safeParseObject = (root, objString) => {\n const objArray = objString.split(\".\");\n let value = root;\n objArray.forEach(obj => {\n value = value && value[obj];\n });\n return value;\n};\n\nexport const handleFilterObject = obj => {\n let temp = _(obj)\n .omitBy(_.isEmpty)\n .assign(_.isUndefined)\n .assign(_.isNull)\n .each((index, value, item) => {\n if (value === \"isActive\") {\n item.isActive =\n Number(index) === 0 ? \"\" : Number(index) === 1 ? \"true\" : \"false\";\n }\n return item;\n });\n\n return _(temp)\n .omitBy(_.isEmpty)\n .omitBy(_.isNull)\n .value();\n};\n\nexport const buildFilterParams = params => {\n var esc = encodeURIComponent;\n\n // Special case handling for moment, we need to convert it first to Date before parsign to string\n if (params instanceof moment) {\n return esc(params.toDate().toJSON());\n }\n\n return !_.isUndefined(params)\n ? Object.keys(removeUndefined(params))\n .map(k => {\n var queryString = _.isObject(params[k])\n ? JSON.stringify(params[k])\n : esc(params[k]);\n return esc(k) + \":\" + queryString;\n })\n .join(\",\")\n : \"\";\n};\n\nexport const guid = () => {\n return \"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g, function(c) {\n var r = (Math.random() * 16) | 0;\n var v = c === \"x\" ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n};\n\nexport const checkIfValueExists = (value, alternateValue) => {\n if (value) return value;\n return alternateValue;\n};\n\nexport const removeUndefined = params => {\n _.each(params, function removeUndefined(value, key) {\n if (_.isUndefined(value)) {\n delete params[key];\n }\n if (value === \"\") {\n delete params[key];\n }\n if (_.isNull(value)) {\n delete params[key];\n }\n });\n return params;\n};\n\nexport const mustBeArray = items => {\n return _.isArray(items) ? items : [];\n};\n\nexport const disableBrowserAutocomplete = () => {\n let i;\n const el = document.getElementsByClassName(\"ant-select-search__field\");\n for (i = 0; i < el.length; i++) {\n el[i].setAttribute(\"autocomplete\", \"registration-select\");\n }\n};\n\nexport const getBase64 = (img, callback) => {\n const reader = new FileReader();\n reader.addEventListener(\"load\", () => callback(reader.result));\n reader.readAsDataURL(img);\n};\n\nexport const requestBuilder = async (\n id,\n baseUrl,\n options,\n _filters,\n cancelToken\n) => {\n const endUrl = id ? `${baseUrl}/${id}` : `${baseUrl}`;\n const paramString = _.isEmpty(options) ? \"\" : \"?\" + buildQueryParams(options);\n return await http.get(endUrl + paramString, cancelToken);\n};\n\nexport const requestBuilderBlob = async (id, baseUrl, options, cancelToken) => {\n const endUrl = id ? `${baseUrl}/${id}` : `${baseUrl}`;\n const paramString = _.isEmpty(options) ? \"\" : \"?\" + buildQueryParams(options);\n return await http.getPdf(endUrl + paramString, cancelToken);\n};\n\nexport const fetchWithId = async (id, baseUrl, options) => {\n const endUrl = id ? `${baseUrl}/${id}?` : `${baseUrl}?`;\n return await http.get(endUrl + buildQueryParams(options));\n};\n\nexport const dispatcher = (dispatch, data, action_type, storable) => {\n const actionData = { type: action_type, data: data, status: true };\n return storable ? actionData : dispatch(actionData);\n};\n\nexport const templateEngine = function(tpl, data) {\n Object.entries(data).forEach(x => {\n var re = /<%([^%>]+)?%>/g,\n match;\n while ((match = re.exec(tpl))) {\n tpl = tpl.replace(match[0], data[match[1]]);\n }\n });\n\n return tpl;\n};\n\nexport const filterGeoAddressLocation = results => {\n const address = {};\n if (_.first(results)) {\n _.each(results[0].address_components, address_component => {\n switch (_.first(address_component.types)) {\n case \"country\":\n address[\"country\"] = address_component.long_name;\n break;\n case \"street_number\":\n address[\"address1\"] = address_component.long_name;\n break;\n case \"establishment\":\n address[\"address1\"] = _.isUndefined(address[\"address1\"])\n ? address_component.long_name\n : address[\"address1\"] + \" \" + address_component.long_name;\n break;\n case \"route\":\n address[\"address1\"] = _.isUndefined(address[\"address1\"])\n ? address_component.long_name\n : address[\"address1\"] + \" \" + address_component.long_name;\n break;\n case \"postal_code\":\n address[\"postalcode\"] = address_component.long_name;\n break;\n case \"administrative_area_level_1\":\n address[\"state\"] = address_component.short_name;\n break;\n case \"locality\":\n address[\"city\"] = address_component.long_name;\n break;\n default:\n break;\n }\n });\n }\n return address;\n};\n\nexport const currencyFormater = (value, negative) => {\n return `${\n (negative || Number(value) < 0) && Math.abs(value).toFixed(2) !== \"0.00\"\n ? \"-\"\n : \"\"\n }$${Number(Math.abs(value)).format(\"0,0.00\")}`;\n};\n\n/**\n * @returns {string}\n */\nexport const asDefaultDisplayFormatDate = dateString => {\n if (typeof dateString === \"string\" && dateString !== \"\") {\n dateString = moment.utc(dateString).local();\n return moment(dateString).format(DEFAULT_DATE_FORMAT);\n }\n\n if (dateString instanceof moment) {\n return dateString.format(DEFAULT_DATE_FORMAT);\n }\n\n console.warn(\"could not parse passed object to a date format\");\n return \"\";\n};\n\n/**\n * @returns {string}\n */\nexport const asCustomFormatDate = (dateString, customFormat) => {\n if (typeof dateString === \"string\" && dateString !== \"\") {\n dateString = moment.utc(dateString).local();\n return moment(dateString).format(customFormat);\n }\n\n if (dateString instanceof moment) {\n return dateString.format(customFormat);\n }\n\n console.warn(\"could not parse passed object to a date format\");\n return \"\";\n};\n\nexport const parseMomentPropsToDate = obj => {\n Object.keys(obj ?? {}).forEach(key => {\n const prop = obj[key];\n if (prop instanceof moment) {\n obj[key] = prop.toDate();\n }\n });\n\n return obj;\n};\n\n/**\n * Runs the lambda action if the provided valid is not null, else it returns a null value\n * @template T,TReturn\n * @param {T} subject\n * @param {(subject: T) => TReturn} action\n * */\nexport const doIfNotNull = (subject, action) =>\n subject != null ? action(subject) : null;\n\nexport const jsUcfirst = string => {\n return string.charAt(0).toUpperCase() + string.slice(1);\n};\n\nexport const move = (array, moveIndex, toIndex) => {\n const item = array[moveIndex];\n const length = array.length;\n const diff = moveIndex - toIndex;\n\n if (diff > 0) {\n // move left\n return [\n ...array.slice(0, toIndex),\n item,\n ...array.slice(toIndex, moveIndex),\n ...array.slice(moveIndex + 1, length)\n ];\n } else if (diff < 0) {\n // move right\n const targetIndex = toIndex + 1;\n return [\n ...array.slice(0, moveIndex),\n ...array.slice(moveIndex + 1, targetIndex),\n item,\n ...array.slice(targetIndex, length)\n ];\n }\n return array;\n};\n\nexport const evalObject = object => {\n try {\n return mustBeArray(JSON.parse(object));\n } catch (error) {\n return [];\n }\n};\n\nexport const getAddressString = address => {\n if (!address) return \"\";\n return `${address.addressLine1 ? `${address.addressLine1}, ` : \"\"}\n ${address.addressLine2 ? `${address.addressLine2}, ` : \"\"}\n ${address.addressSuburb ? `${address.addressSuburb}, ` : \"\"}\n ${address.addressStateKey ? `${address.addressStateKey} ` : \"\"}${\n address.addressPostCode ? `${address.addressPostCode}` : \"\"\n }`;\n};\nexport const asyncLocalStorage = {\n setItem: function(key, value) {\n return Promise.resolve().then(function() {\n localStorage.setItem(key, value);\n });\n },\n getItem: function(key) {\n return Promise.resolve().then(function() {\n return localStorage.getItem(key);\n });\n }\n};\n\nexport const getProductType = ({ field }) => {\n switch (field) {\n case \"firstRanking\":\n return \"first-ranking\";\n case \"secondRanking\":\n return \"second-ranking\";\n default:\n return field;\n }\n};\n\nexport const getUsersProfileType = ({\n isSystemUser,\n profileType,\n isOwnProfile\n}) => {\n if (isSystemUser) return ADMIN_USER;\n if (profileType === \"lender\") {\n return isOwnProfile ? LENDER_USER : BROKER_USER;\n }\n return isOwnProfile ? BROKER_USER : LENDER_USER;\n};\n\nexport const userHasActionRights = ({\n profileType,\n isOwnProfile,\n isSystemUser\n}) => {\n if (isSystemUser || isOwnProfile) return true;\n return profileType !== \"lender\";\n};\n\nexport const millisecondsInADay = () => 86400000;\n\nexport const updateAmountFields = ({ actionType, value }) => {\n if (actionType === \"render\") {\n const newValue = `${value}`.replace(\"$\", \"\");\n return newValue;\n } else {\n return `$${value}`;\n }\n};\n\nexport const updatePercentageFields = ({ actionType, value }) => {\n if (actionType === \"render\") {\n const newValue = `${value}`.replace(\"%\", \"\");\n return newValue;\n } else {\n return `${value}%`;\n }\n};\n\nexport const getActiveKey = ({ activeKey, profileType }) => {\n switch (activeKey && activeKey.toLowerCase()) {\n case \"matches\":\n return \"matches\";\n case \"filenotes\":\n return \"fileNotes\";\n case \"details\":\n return profileType === \"lender\" ? \"3\" : \"details\";\n case \"firstranking\":\n return \"4\";\n case \"secondranking\":\n return \"5\";\n case \"construction\":\n return \"6\";\n case \"mezzanine\":\n return \"7\";\n case \"landbank\":\n return \"8\";\n case \"rural\":\n return \"9\";\n case \"loanCriteria\":\n return \"loanCriteria\";\n default:\n return \"loanstab\";\n }\n};\n\nexport const isDataVerified = data => {\n return data && data.isVerified ? true : false;\n};\n\nexport const isCategoryOffered = ({ data, category }) => {\n return data && data.categoriesOffered && data.categoriesOffered[category]\n ? true\n : false;\n};\n\nexport const isNullEmptyOrUndefined = (data) => {\n return (data ===null || data === undefined || data === \"\");\n}\n\nexport const parseItem = (item, defaultValue) => {\n try{\n const parsedItem = JSON.parse(item);\n return parsedItem;\n }\n catch(err){\n return defaultValue\n }\n}\n\nexport const constructUrl = website => {\n try {\n var url = new URL(website);\n return url;\n } catch (firstAttemptErr) {\n try{\n var url = new URL('https://' + website);\n return url;\n }catch (secondAttemptErr){\n return url;\n }\n \n }\n}\n\n\nexport const getRoundedRatings = value => {\n if(!value || value === 5) return value;\n const minValue = Math.floor(value);\n if(value >= minValue + 0.5) return minValue + 0.5;\n return minValue;\n}\n\nexport function flattenObject(obj, parent = '', res) {\n for (let key in obj) {\n let propName = parent ? `${parent}.${key}` : key;\n if (typeof obj[key] === 'object' && !Array.isArray(obj[key])) {\n flattenObject(obj[key], propName, res);\n } else {\n res[propName] = obj[key];\n }\n }\n return res;\n}\n\nexport function unflattenObject(data) {\n const result = {};\n for (const i in data) {\n const keys = i.split('.');\n keys.reduce((acc, key, index) => {\n return acc[key] = acc[key] || (index === keys.length - 1 ? data[i] : {});\n }, result);\n }\n return result;\n}","import React from 'react';\nimport moment from \"moment\";\nimport _ from \"lodash\";\nimport { DEFAULT_DATE_FORMAT } from \"../constants/moment\";\nimport {currencyFormater, mustBeArray, templateEngine} from './utilities';\nimport { Switch, Popconfirm, Row, Col, Icon, Checkbox, Button } from 'antd';\nimport history from '../routes/history';\n\n/** \n * @typedef {object} ColumnDef\n * @property {string} title\n * @property {string} key\n * @property {string} width\n * @property {string} align\n * @property {(record: any) => any} render\n * @property {string} dataIndex\n * @property {boolean} sorter\n * @property {\"ascend\" | \"descend\" | boolean} sortOrder\n * @property {string} dataType\n * @property {string} dateFormat\n * @param {ColumnDef[]} cols\n */\nexport const tableColumnGenerator = (cols) => {\n return _.map(cols, (col, index) => {\n let columnConfig = {\n title: col.title,\n dataIndex: col.dataIndex,\n align: col.align,\n sorter: col.sorter,\n sortOrder: col.sortOrder,\n render: (record) => {\n if (record && record.isArray) return record.join(',');\n else return record;\n }\n };\n\n if(col.width){\n columnConfig['width'] = col.width;\n }\n if(col.render){\n columnConfig['render'] = col.render;\n }\n\n const navigateUser = (url,e) => {\n if(e){\n e.preventDefault();\n }\n return history.push(url);\n }\n\n if (!_.isUndefined(col.link)) {\n columnConfig[\"render\"] = (Name, obj) => {\n const applicationUrl = window.location && window.location.origin;\n const linkUrl = templateEngine(col.link.url, obj);\n return navigateUser(linkUrl,e)} href={`${applicationUrl}${linkUrl}`} \n target=\"__blank\">{Name}\n };\n }\n\n if(col.dataType === \"date\"){\n columnConfig['render'] = value => {\n if(typeof value == \"string\") {\n value = moment.utc(value).local();\n }\n let dateFormat = col.dateFormat ? col.dateFormat : DEFAULT_DATE_FORMAT;\n return {value ? (value).format(dateFormat) : \"\"}\n }\n }\n\n if(col.dataType === \"html\"){\n columnConfig['render'] = (value) => {\n return value ?\n value.includes(\"irreport\") || value.includes(\"furreport\") ?\n
\n col.showEmailPreview(value)}\n >\n Show Report\n \n
\n :\n \n :\n \n } \n }\n\n if(col.dataType === \"fileList\"){\n columnConfig['render'] = record => {\n return mustBeArray(record.files).map((file, i) => {\n return(\n {file.filename}\n {`${(i === mustBeArray(record.files).length - 1) ? \"\": \",\"} `}\n )\n })\n }\n }\n\n if([\"stageOneAction\", \"stageTwoAction\"].includes(col.dataType)){\n columnConfig['render'] = (data,record) => {\n let boxChecked = false;\n let lable;\n switch(col.dataType){\n case \"stageOneAction\":\n lable=\"isStageOne\";\n if(record && record.isStageOne){\n boxChecked = true;\n }\n break;\n case \"stageTwoAction\":\n lable=\"isStageTwo\";\n if(record && record.isStageTwo){\n boxChecked = true;\n }\n break;\n default:\n break;\n }\n return \n \n \n \n \n col.toggleStageSelection({record, lable})} disabled={!data}/>\n \n \n }\n }\n\n if(col.dataType === \"datetime\"){\n columnConfig['render'] = value => {\n\n if(typeof value === \"string\") {\n value = moment.utc(value).local();\n }\n return {value ? (value).format(\"DD/MM/YYYY hh:mm:ss A\") : \"\"}\n }\n }\n\n if (col.dataType === \"amount\") { \n columnConfig[\"render\"] = amount => {\n return {currencyFormater(amount)};\n };\n }\n\n if (col.dataType === \"boolean\") {\n columnConfig[\"render\"] = data => {\n return {data ? \"Yes\" : \"No\"};\n };\n }\n\n \n if (col.dataType === \"toggleStatus\") {\n columnConfig[\"render\"] = (enabled, record) => {\n return (\n col.action(record)}\n >\n
\n \n
\n \n );\n };\n }\n\n return columnConfig;\n });\n};\n","export const DEFAULT_DATE_FORMAT = \"DD MMM YYYY\";\nexport const AU_DATE_FORMAT = \"DD/MM/YYYY\";\nexport const RESPONSE_DATE_FORMAT = \"YYYY-MM-DDTHH:mm:ss.SSS\";\nexport const DEFAULT_DATE_WITH_TIME_FORMAT = \"DD MMM YYYY HH:mm\"","import React from 'react';\nimport {Spin} from 'antd';\n\nconst Loading = (props) => {\n return (\n \n )\n}\n\nexport default Loading;\n","// In production, we register a service worker to serve assets from local cache.\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 the \"N+1\" visit to a page, since previously\n// cached resources are updated in the background.\n\n// To learn more about the benefits of this model, read https://goo.gl/KwvDNy.\n// This link also includes instructions on opting out of this behavior.\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(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )\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);\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 console.log(\n 'This web app is being served cache-first by a service ' +\n 'worker. To learn more, visit https://goo.gl/SC7cgQ'\n );\n });\n } else {\n // Is not local host. 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 registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the old content will have been purged and\n // the fresh content will have been added to the cache.\n // It's the perfect time to display a \"New content is\n // available; please refresh.\" message in your web app.\n console.log('New content is available; please refresh.');\n\n // Execute callback\n if (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 console.log('Content is cached for offline use.');\n\n // Execute callback\n if (config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch(error => {\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 if (\n response.status === 404 ||\n response.headers.get('content-type').indexOf('javascript') === -1\n ) {\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 console.log(\n 'No internet connection found. App is running in offline mode.'\n );\n });\n}\n\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister();\n });\n }\n}\n","const LOGIN = 'LOGIN';\nconst SIGNUP = 'SIGNUP';\nconst FORGOT_PASSWORD = 'FORGOT_PASSWORD';\nconst LOGOUT = 'LOGOUT';\nconst LIST_USERS = 'LIST_USERS';\nconst USER_DETAIL = 'USER_DETAIL';\n\nconst AUTH_USER = 'AUTH_USER';\nconst UNAUTH_USER = 'UNAUTH_USER';\nconst AUTH_IN_PROGRESS = 'AUTH_IN_PROGRESS';\nconst AUTH_ERROR = 'AUTH_ERROR';\nconst FORGOT_SUCCESS = 'FORGOT_SUCCESS';\nconst CLEARDOWN = 'CLEARDOWN';\nconst USER_PROFILE = 'USER_PROFILE';\nconst USER_AUTHORIZATION = 'USER_AUTHORIZATION';\n\n\nconst memberAction = {\n LOGIN, SIGNUP, FORGOT_PASSWORD, LOGOUT, LIST_USERS, USER_DETAIL, AUTH_USER, UNAUTH_USER,\n AUTH_IN_PROGRESS, AUTH_ERROR, FORGOT_SUCCESS, CLEARDOWN, USER_PROFILE, USER_AUTHORIZATION\n};\n\nexport default memberAction;\n","export const BGS_SYSTEM_USER_ROLE = \"SYSUSER\";\nexport const BGS_BROKER_ROLE = \"BROKER\";\nexport const BGS_LENDER_ROLE = \"LENDER\";\nexport const BGS_LAWFIRM_ROLE = \"LAWFIRM\";\n","export const BGS_SYSTEM_ADMIN_PERMISSION = \"ADMIN\";\n","import { BGS_SYSTEM_USER_ROLE } from \"../SystemRoles\";\nimport { BGS_SYSTEM_ADMIN_PERMISSION } from \"../SystemPermissions\";\n\n/** @type {import(\"./types/policy\").AuthorizationPolicy} */\nexport function isSystemAdminUserPolicy(roles, permissions, user) {\n let passed =\n (roles ?? []).some(x => x === BGS_SYSTEM_USER_ROLE) &&\n (permissions ?? []).some(x => x === BGS_SYSTEM_ADMIN_PERMISSION);\n\n return Promise.resolve(passed);\n}\n","import { BGS_SYSTEM_USER_ROLE } from \"../SystemRoles\";\n\n/** @type {import(\"./types/policy\").AuthorizationPolicy} */\nexport function isSystemUserPolicy(roles, permissions, user) {\n let passed = (roles ?? []).some(x => x === BGS_SYSTEM_USER_ROLE);\n return Promise.resolve(passed);\n}\n","import { BGS_LAWFIRM_ROLE } from \"../SystemRoles\";\n\n/** @type {import(\"./types/policy\").AuthorizationPolicy} */\nexport function isLawFirmUserPolicy(roles, permissions, user) {\n let passed = (roles ?? []).some(x => x === BGS_LAWFIRM_ROLE);\n return Promise.resolve(passed);\n}\n\n/** @type {import(\"./types/policy\").AuthorizationPolicy} */\nexport function isNotLawFirmUserPolicy(roles, permissions, user) {\n let passed = !(roles ?? []).some(x => x === BGS_LAWFIRM_ROLE);\n return Promise.resolve(passed);\n}\n\n\n/** @returns {import(\"./types/policy\").AuthorizationPolicy} */\nexport function isLawFirmOwnProfilePolicy(currentlyViewedLawFirmId) {\n return async function(roles, permissions, user) {\n if (\n currentlyViewedLawFirmId === null ||\n currentlyViewedLawFirmId === undefined\n ) {\n return false;\n }\n\n const isLawFirm = await isLawFirmUserPolicy(roles, permissions, user);\n\n return (\n isLawFirm &&\n parseInt(currentlyViewedLawFirmId) === parseInt(user[\"app.user.lawfirmid\"])\n );\n };\n}\n\n/** @returns {import(\"./types/policy\").AuthorizationPolicy} */\nexport function isNotLawFirmOwnProfilePolicy(currentlyViewedLawFirmId) {\n return async function(roles, permissions, user) {\n if (\n currentlyViewedLawFirmId === null ||\n currentlyViewedLawFirmId === undefined\n ) {\n return false;\n }\n\n const isOwnProfile = await isLawFirmOwnProfilePolicy(\n currentlyViewedLawFirmId\n )(roles, permissions, user);\n\n return !isOwnProfile;\n };\n}\n","import { BGS_BROKER_ROLE } from \"../SystemRoles\";\nimport { isLawFirmUserPolicy } from \"./isLawFirmUserPolicy\";\nimport { isLenderUserPolicy } from \"./isLenderUserPolicy\";\nimport { isSystemUserPolicy } from \"./isSystemUserPolicy\";\n\n/** @type {import(\"./types/policy\").AuthorizationPolicy} */\nexport function isBrokerUserPolicy(roles, permissions, user) {\n let passed = (roles ?? []).some(x => x === BGS_BROKER_ROLE);\n return Promise.resolve(passed);\n}\n\n/** @type {import(\"./types/policy\").AuthorizationPolicy} */\nexport async function isOnlyBrokerUserPolicy(roles, permissions, user) {\n const isBroker = await isBrokerUserPolicy(roles, permissions, user);\n const isLender = await isLenderUserPolicy(roles, permissions, user);\n const isSystemUser = await isSystemUserPolicy(roles, permissions, user); \n\n return isBroker && !isLender && !isSystemUser;\n}\n\n/** @returns {import(\"./types/policy\").AuthorizationPolicy} */\nexport function isBrokerOwnProfilePolicy(currentlyViewedBrokerId) {\n return async function(roles, permissions, user) {\n if (\n currentlyViewedBrokerId === null ||\n currentlyViewedBrokerId === undefined\n ) {\n return false;\n }\n\n const isBroker = await isBrokerUserPolicy(roles, permissions, user);\n\n return (\n isBroker &&\n parseInt(currentlyViewedBrokerId) === parseInt(user[\"app.user.brokerid\"])\n );\n };\n}\n\n/** @returns {import(\"./types/policy\").AuthorizationPolicy} */\nexport function isNotBrokerOwnProfilePolicy(currentlyViewedBrokerId) {\n return async function(roles, permissions, user) {\n if (\n currentlyViewedBrokerId === null ||\n currentlyViewedBrokerId === undefined\n ) {\n return false;\n }\n\n const isOwnProfile = await isBrokerOwnProfilePolicy(\n currentlyViewedBrokerId\n )(roles, permissions, user);\n\n return !isOwnProfile;\n };\n}\n\n/** @returns {import(\"./types/policy\").AuthorizationPolicy} */\nexport function isUserInvolvedPolicy(isMatched) {\n return async function(roles, permissions, user) {\n return isMatched;\n };\n}\n\n/** @returns {import(\"./types/policy\").AuthorizationPolicy} */\nexport function isUserUninvolvedPolicy(currentlyViewedBrokerId, isMatched) {\n return async function(roles, permissions, user) {\n const isSystemUser = await isSystemUserPolicy(roles, permissions, user);\n const isLawFirmUser = await isLawFirmUserPolicy(roles, permissions, user);\n if(isSystemUser || isLawFirmUser) {\n return false;\n }\n const isOwnProfile = await isBrokerOwnProfilePolicy(\n currentlyViewedBrokerId\n )(roles, permissions, user);\n\n return !isMatched && !isOwnProfile;\n };\n}","import { BGS_LENDER_ROLE } from \"../SystemRoles\";\nimport { isBrokerUserPolicy } from \"./isBrokerUserPolicy\";\nimport { isLawFirmUserPolicy } from \"./isLawFirmUserPolicy\";\nimport { isSystemUserPolicy } from \"./isSystemUserPolicy\";\n\n/** @type {import(\"./types/policy\").AuthorizationPolicy} */\nexport function isLenderUserPolicy(roles, permissions, user) {\n let passed = (roles ?? []).some(x => x === BGS_LENDER_ROLE);\n\n return Promise.resolve(passed);\n}\n\n/** @type {import(\"./types/policy\").AuthorizationPolicy} */\nexport async function isOnlyLenderUserPolicy(roles, permissions, user) {\n const isBroker = await isBrokerUserPolicy(roles, permissions, user);\n const isLender = await isLenderUserPolicy(roles, permissions, user);\n const isSystemUser = await isSystemUserPolicy(roles, permissions, user);\n\n return isLender && !isBroker && !isSystemUser;\n}\n\n/** @returns {import(\"./types/policy\").AuthorizationPolicy} */\nexport function isLenderOwnProfilePolicy(currentlyViewedLenderId) {\n return async function(roles, permissions, user) { \n if (\n currentlyViewedLenderId === null ||\n currentlyViewedLenderId === undefined\n ) {\n return false;\n }\n\n const isLender = await isLenderUserPolicy(roles, permissions, user);\n\n return (\n isLender &&\n parseInt(currentlyViewedLenderId) === parseInt(user[\"app.user.lenderid\"])\n );\n };\n}\n\n/** @returns {import(\"./types/policy\").AuthorizationPolicy} */\nexport function isNotLenderOwnProfilePolicy(currentlyViewedLenderId) {\n return async function(roles, permissions, user) {\n if (\n currentlyViewedLenderId === null ||\n currentlyViewedLenderId === undefined\n ) {\n return false;\n }\n\n const isOwnProfile = await isLenderOwnProfilePolicy(\n currentlyViewedLenderId\n )(roles, permissions, user);\n\n return !isOwnProfile;\n };\n}\n\n/** @returns {import(\"./types/policy\").AuthorizationPolicy} */\nexport function isUserInvolvedPolicy(isMatched) {\n return async function(roles, permissions, user) {\n return isMatched;\n };\n}\n\n/** @returns {import(\"./types/policy\").AuthorizationPolicy} */\nexport function isUserUninvolvedPolicy(currentlyViewedLenderId, isMatched) {\n return async function(roles, permissions, user) {\n const isSystemUser = await isSystemUserPolicy(roles, permissions, user);\n const isLawFirmUser = await isLawFirmUserPolicy(roles, permissions, user);\n if(isSystemUser || isLawFirmUser) {\n return false;\n }\n const isOwnProfile = await isLenderOwnProfilePolicy(\n currentlyViewedLenderId\n )(roles, permissions, user);\n return !isMatched && !isOwnProfile;\n };\n}\n\n","\nimport { isSystemAdminUserPolicy } from \"../Common/Authorization/policies/isSystemUserAdminPolicy\";\nimport { isSystemUserPolicy } from \"../Common/Authorization/policies/isSystemUserPolicy\";\nimport _ from \"lodash\";\nimport { isNotSystemUserPolicy } from \"../Common/Authorization/policies/isNotSystemUserPolicy\";\nimport { isLenderUserPolicy } from \"../Common/Authorization/policies/isLenderUserPolicy\";\nimport { isBrokerUserPolicy } from \"../Common/Authorization/policies/isBrokerUserPolicy\";\nimport { isLawFirmUserPolicy, isNotLawFirmUserPolicy } from \"../Common/Authorization/policies/isLawFirmUserPolicy\";\n\nexport const ALL_LOANS_OPTION = {\n name: \"All Loans\",\n url: \"/loans\",\n id: 19,\n};\n\nconst commonRoutingOptions = [\n {\n name: \"My Profile\",\n url: \"\",\n id: 9,\n policy: isNotSystemUserPolicy\n },\n {\n name: \"Add Loan\",\n url: \"/loans/create\",\n id: 1,\n policy: isSystemUserPolicy\n },\n {\n name: \"Add Company\",\n url: \"/companies/create\",\n id: 2,\n policy: isSystemUserPolicy\n },\n {\n name: \"Bulk Email\",\n url: \"/bulk-email\",\n id: 17,\n policy: isSystemAdminUserPolicy\n },\n {\n name: \"Add System User\",\n url: \"/systemUsers/create\",\n id: 3,\n policy: isSystemAdminUserPolicy\n },\n {\n name: \"System Users Console\",\n url: \"/users\",\n id: 4,\n policy: isSystemUserPolicy\n },\n {\n name: \"All Loans\",\n url: \"/loans\",\n id: 5,\n policy: isNotLawFirmUserPolicy\n },\n {\n name: \"All Users\",\n url: \"/users/all\",\n id: 19,\n policy: isNotLawFirmUserPolicy\n }, \n {\n name: \"Privacy Settings\",\n id: 12,\n action: \"privacySettingsOwnProfile\",\n url: \"\",\n policy: isLenderUserPolicy\n },\n];\n\nexport const EMAIL_SUBSCRIPTIONS_OPTION_SYSTEM_USER = [{\n name: \"Email Subscriptions\",\n id: 13,\n action: \"emailSubscriptions\",\n url: \"\",\n policy: isSystemUserPolicy\n}];\n\nexport const EMAIL_SUBSCRIPTIONS_OPTION_LENDER_USER = [{\n name: \"Email Subscriptions\",\n id: 13,\n action: \"emailSubscriptions\",\n url: \"\",\n policy: isLenderUserPolicy\n}];\n\nexport const EMAIL_SUBSCRIPTIONS_OPTION_BROKER_USER = [{\n name: \"Email Subscriptions\",\n id: 13,\n action: \"emailSubscriptions\",\n url: \"\",\n policy: isBrokerUserPolicy\n}];\n\nexport const EMAIL_SUBSCRIPTIONS_OPTION_LAWFIRM_USER = [{\n name: \"Email Subscriptions\",\n id: 13,\n action: \"emailSubscriptions\",\n url: \"\",\n policy: isLawFirmUserPolicy\n}];\n\n\nexport const DEFAULT_ROUTES_SYSTEM_USER = _.concat(commonRoutingOptions, [\n {\n name: \"Change your Password\",\n url: \"/change-password\",\n id: 6\n } ,\n {\n name: \"Find Broker /Find Lender\",\n action: \"finderUtility\",\n id: 15\n },\n]);\n\nexport const BROKER_PROFILE_ROUTES_WITH_LENDER_PROFILE__SYSTEM_USER = _.concat(\n commonRoutingOptions,\n EMAIL_SUBSCRIPTIONS_OPTION_SYSTEM_USER,\n EMAIL_SUBSCRIPTIONS_OPTION_SYSTEM_USER,\n EMAIL_SUBSCRIPTIONS_OPTION_LAWFIRM_USER,\n [\n {\n name: \"Delete Lender Profile from this Record\",\n url: \"\",\n id: 6,\n policy: isSystemUserPolicy,\n action: \"deleteLender\"\n },\n {\n name: \"Add User\",\n action: \"addUser\",\n url: \"\",\n id: 14,\n policy: isSystemUserPolicy\n },\n {\n name: \"Add Loan\",\n url: \"/loans/create\",\n id: 1,\n },\n {\n name: \"Change your Password\",\n url: \"/change-password\",\n id: 7\n },\n {\n name: \"Find Broker /Find Lender\",\n action: \"finderUtility\",\n id: 16\n },\n {\n name: \"Delete this Account\",\n url: \"\",\n id: 10,\n action: \"deleteFinancierAccount\",\n policy: isSystemAdminUserPolicy\n }\n ]\n);\n\nexport const BROKER_PROFILE_ROUTES_WITHOUT_LENDER_PROFILE_SYSTEM_USER = _.concat(\n commonRoutingOptions,\n EMAIL_SUBSCRIPTIONS_OPTION_SYSTEM_USER,\n [\n {\n name: \"Add Lender Profile to this Record\",\n url: \"\",\n id: 6,\n action: \"addLender\",\n policy: isSystemUserPolicy\n },\n {\n name: \"Add User\",\n action: \"addUser\",\n url: \"\",\n id: 14,\n policy: isSystemUserPolicy\n },\n {\n name: \"Change your Password\",\n url: \"/change-password\",\n id: 7\n },\n {\n name: \"Find Broker /Find Lender\",\n action: \"finderUtility\",\n id: 16\n },\n {\n name: \"Delete this Account\",\n url: \"\",\n id: 10,\n action: \"deleteFinancierAccount\",\n policy: isSystemAdminUserPolicy\n }\n ]\n);\n\nexport const LENDER_PROFILE_ROUTES_WITH_BROKER_PROFILE_SYSTEM_USER = _.concat(\n commonRoutingOptions,\n EMAIL_SUBSCRIPTIONS_OPTION_SYSTEM_USER,\n [\n {\n name: \"Delete Broker Profile from this Record\",\n url: \"\",\n id: 6,\n policy: isSystemUserPolicy,\n action: \"deleteBroker\"\n },\n {\n name: \"Add User\",\n action: \"addUser\",\n url: \"\",\n id: 14,\n policy: isSystemUserPolicy\n },\n {\n name: \"Add Loan\",\n url: \"/loans/create\",\n id: 1,\n },\n {\n name: \"Change your Password\",\n url: \"/change-password\",\n id: 7\n },\n {\n name: \"Find Broker /Find Lender\",\n action: \"finderUtility\",\n id: 16\n },\n {\n name: \"Delete this Account\",\n url: \"\",\n id: 10,\n action: \"deleteFinancierAccount\",\n policy: isSystemAdminUserPolicy\n },\n {\n name: \"Privacy Settings\",\n id: 12,\n action: \"privacySettings\",\n url: \"\",\n policy: isSystemAdminUserPolicy\n }\n ]\n);\n\nexport const LAWFIRM_PROFILE_ROUTES_SYSTEM_USER = _.concat(\n commonRoutingOptions,\n EMAIL_SUBSCRIPTIONS_OPTION_SYSTEM_USER,\n EMAIL_SUBSCRIPTIONS_OPTION_LAWFIRM_USER,\n [\n {\n name: \"Add User\",\n action: \"addUser\",\n url: \"\",\n id: 14,\n policy: isSystemUserPolicy\n },\n {\n name: \"Add Loan\",\n url: \"/loans/create\",\n id: 1,\n },\n {\n name: \"Change your Password\",\n url: \"/change-password\",\n id: 7\n },\n {\n name: \"Find Broker /Find Lender\",\n action: \"finderUtility\",\n id: 16,\n policy: isNotLawFirmUserPolicy\n },\n {\n name: \"Delete this Account\",\n url: \"\",\n id: 10,\n action: \"deleteLawFirmAccount\",\n policy: isSystemAdminUserPolicy\n },\n ]\n);\n\nexport const LENDER_PROFILE_ROUTES_WITHOUT_BROKER_PROFILE_SYSTEM_USER = _.concat(\n commonRoutingOptions,\n EMAIL_SUBSCRIPTIONS_OPTION_SYSTEM_USER,\n [\n {\n name: \"Add Broker Profile to this Record\",\n url: \"\",\n id: 6,\n policy: isSystemUserPolicy,\n action: \"addBroker\"\n },\n {\n name: \"Add User\",\n action: \"addUser\",\n url: \"\",\n id: 14,\n policy: isSystemUserPolicy\n },\n {\n name: \"Add Loan\",\n url: \"/loans/create\",\n id: 1,\n },\n {\n name: \"Change your Password\",\n url: \"/change-password\",\n id: 7\n },\n {\n name: \"Find Broker /Find Lender\",\n action: \"finderUtility\",\n id: 16\n },\n {\n name: \"Delete this Account\",\n url: \"\",\n id: 10,\n action: \"deleteFinancierAccount\",\n policy: isSystemAdminUserPolicy\n },\n {\n name: \"Privacy Settings\",\n id: 12,\n action: \"privacySettings\",\n url: \"\",\n policy: isSystemAdminUserPolicy\n }\n ]\n);\nexport const CAN_RESET_PROFILE_PASSWORD = [\n {\n name: \"Reset User's Password\",\n url: \"\",\n id: 11,\n action: \"resetPassword\",\n policy: isSystemAdminUserPolicy\n }\n];\nexport const PROFILE_HAS_NOT_ACCEPTED_INVITATION = [\n {\n name: \"Resend User Invitation\",\n url: \"\",\n id: 8,\n action: \"resendInvitation\",\n policy: isSystemAdminUserPolicy\n }\n];\n\nexport const PROFILE_EDIT_OPTION = [\n {\n name: \"Edit Account\",\n action: \"editAccount\",\n id: 18\n }\n]","import { BGS_SYSTEM_USER_ROLE } from \"../SystemRoles\";\n\n/** @type {import(\"./types/policy\").AuthorizationPolicy} */\nexport function isNotSystemUserPolicy(roles, permissions, user) {\n let passed = (roles ?? []).some(x => x !== BGS_SYSTEM_USER_ROLE);\n\n return Promise.resolve(passed);\n}\n","import {memberAction} from \"../constants/action-type/index\";\nimport { DEFAULT_ROUTES_SYSTEM_USER } from \"../constants/routeOptions\";\nimport { mustBeArray } from \"../libs/utilities\";\n\nconst initialState = {\n forgotMsg: \"\",\n error: \"\",\n timestamp: \"\",\n loading: false,\n authenticated: false,\n claims: [],\n header: {\n title: \"\",\n action: \"\",\n enableBack: false,\n editMode: false,\n showOmicronBDM: false,\n omicronBdm: undefined,\n currentPortraitIndividualId: undefined,\n showSearchBox: true,\n showDeactivatedMessage: false,\n },\n routesOptions: DEFAULT_ROUTES_SYSTEM_USER\n};\n\nconst {\n LOGIN,\n SIGNUP,\n FORGOT_PASSWORD,\n LOGOUT,\n LIST_USERS,\n USER_DETAIL,\n AUTH_USER,\n UNAUTH_USER,\n AUTH_IN_PROGRESS,\n AUTH_ERROR,\n FORGOT_SUCCESS,\n CLEARDOWN,\n USER_PROFILE,\n USER_AUTHORIZATION\n} = memberAction;\n\nexport default function userReducer(state = initialState, action){\n const {data} = action;\n switch (action.type) {\n case LOGIN: {\n return {\n ...state,\n access_token: data.access_token\n };\n }\n case USER_DETAIL: {\n return {\n ...state,\n ...data\n };\n }\n case SIGNUP: {\n return {\n ...state\n };\n }\n case FORGOT_PASSWORD: {\n return {\n ...state\n };\n }\n case USER_PROFILE: {\n return {\n ...state,\n ...data,\n user_id: data.sub\n };\n }\n\n case LOGOUT: {\n return {\n ...state,\n access_token: null\n };\n }\n\n case USER_AUTHORIZATION: {\n return {\n ...state,\n ...data\n };\n }\n\n case LIST_USERS: {\n return {\n ...state,\n users: data\n };\n }\n\n case \"UPDATE_HEADER\": {\n return {\n ...state,\n header: {\n ...state.header,\n ...data,\n showSearchBox: data? data.showSearchBox === undefined || data.showSearchBox : true, // default to true unless specified\n showDeactivatedMessage: data? data.showDeactivatedMessage === undefined ? false : data.showDeactivatedMessage : false // default to false unless specified\n }\n }\n }\n case \"CLEAR_HEADER\": {\n return {\n ...state,\n header: {\n title: \"\",\n action: \"\",\n enableBack: false,\n editMode: false,\n showSearchBox: data? data.showSearchBox === undefined || data.showSearchBox : true, // default to true unless specified\n showDeactivatedMessage: data? data.showDeactivatedMessage === undefined ? false : data.showDeactivatedMessage : false // default to false unless specified\n }\n }\n }\n\n case \"UPDATE_ROUTE_OPTIONS\": {\n if (data[0].policy) {\n return {\n ...state,\n routesOptions: mustBeArray(data)\n };\n }\n }\n\n case CLEARDOWN:\n return { ...state };\n case AUTH_USER:\n return { ...state, authenticated: true };\n case AUTH_IN_PROGRESS:\n return { ...state, loading: true };\n case UNAUTH_USER:\n return { ...state, authenticated: false };\n case FORGOT_SUCCESS:\n return { ...state, forgotMsg: action.message };\n case AUTH_ERROR:\n return {\n ...state,\n error: action.error,\n timestamp: action.timestamp\n };\n\n default:\n return state;\n }\n}\n","const CALLBACK_IN_PROGRESS = 'CALLBACK_IN_PROGRESS';\nconst CALLBACK_COMPLETE = 'CALLBACK_COMPLETE';\nconst CLEARDOWN = 'CLEARDOWN';\n\nexport const callBackAction = {\n CALLBACK_IN_PROGRESS,\n CALLBACK_COMPLETE,\n CLEARDOWN\n};\n","import {callBackAction} from '../constants/action-type/callback';\n\nconst {\n CALLBACK_IN_PROGRESS,\n CALLBACK_COMPLETE,\n CLEARDOWN\n} = callBackAction;\n\nconst INIT = {\n error: '',\n loading: false\n}\n\nexport default function (state = {}, action) {\n switch (action.type) {\n case CLEARDOWN:\n return {...state, ...INIT};\n case CALLBACK_COMPLETE:\n return {...state, ...INIT};\n case CALLBACK_IN_PROGRESS:\n return {...state, ...INIT, loading: true};\n default:\n return state;\n }\n}\n","const initialState = {};\n\nexport default function uiReducer(state = initialState, action) {\n const {type} = action;\n switch (type) {\n case 'SET_PROGRESS_BAR':\n return {\n ...state,\n progressBarStatus: true\n }\n case 'UNSET_PROGRESS_BAR':\n return {\n ...state,\n progressBarStatus: false\n }\n default:\n return state;\n }\n}\n","const initialState = {};\n\nexport default function uiNavbar(state = initialState, action) {\n const {type,data} = action;\n switch (type) {\n case 'SET_HEADER':\n return {\n ...state,\n data:data\n };\n case 'UNSET_HEADER':\n return {\n ...state,\n data:{}\n };\n default:\n return state;\n }\n}\n","export const GET_LOGGED_IN_USER_PROFILE = \"GET_LOGGED_IN_USER_PROFILE\";\nexport const IS_USER_LOGGED_IN = \"IS_USER_LOGGED_IN\";\nexport const CHANGE_LOGGEDIN_USER_PASSWORD = \"CHANGE_LOGGEDIN_USER_PASSWORD\";\nexport const USER_LOGGED_OUT = \"USER_LOGGED_OUT\";\nexport const LAST_VISITED_PROFILE = \"LAST_VISITED_PROFILE\";\nexport const UPDATE_LAST_VISITED_PROFILE = \"UPDATE_LAST_VISITED_PROFILE\";\nexport const INDIVIDUAL_USER_DETAIL = \"INDIVIDUAL_USER_DETAIL\";\n","import produce from \"immer\";\nimport {\n GET_LOGGED_IN_USER_PROFILE,\n IS_USER_LOGGED_IN,\n LAST_VISITED_PROFILE,\n USER_LOGGED_OUT,\n INDIVIDUAL_USER_DETAIL\n} from \"../constants/action-type/authorization\";\n\nconst defaultState = {\n user: {\n permissions: [],\n roles: []\n \n },\n lastVisitedProfile: {},\n individualUser: {companyName:''}\n};\n\nexport default produce((draft, action) => {\n const { user, isLoggedIn, lastVisitedProfile, individualUser } = action;\n switch (action.type) {\n case GET_LOGGED_IN_USER_PROFILE: {\n draft.user = user;\n draft.user.fullName = `${user.given_name} ${user.family_name}`;\n break;\n }\n case IS_USER_LOGGED_IN: {\n draft.isLoggedIn = isLoggedIn;\n break;\n }\n case USER_LOGGED_OUT: {\n draft.user = {\n ...defaultState.user\n };\n draft.lastVisitedProfile = {};\n break;\n }\n case LAST_VISITED_PROFILE: {\n if (lastVisitedProfile.status === 404) {\n draft.lastVisitedProfile = {\n status: lastVisitedProfile.status\n };\n } else {\n draft.lastVisitedProfile = {\n ...lastVisitedProfile.data,\n status: lastVisitedProfile.status\n };\n }\n\n break;\n }\n case INDIVIDUAL_USER_DETAIL: {\n if(individualUser.status === 200)\n {\n draft.individualUser.companyName = individualUser.data.companyName;\n }\n \n break;\n }\n }\n}, defaultState);\n","const initialState = {\n actions: {\n list: [],\n total: 0\n },\n claims: {}\n};\n \n export default function dashboardReducer(state = initialState, action){\n const {type, data, total} = action;\n switch (type) {\n case 'LIST_DASHBOARD_ACTIONS': {\n return {\n ...state,\n actions: {\n list: data,\n total\n }\n };\n }\n case 'GET_DASHBOARD_CLAIMS_DETAIL': {\n return{\n ...state,\n claims: data\n }\n }\n default:\n return state;\n }\n }\n ","export const GET_BROKER_PROFILE = \"GET_BROKER_PROFILE\";\nexport const GET_BROKER_MATCHES = \"GET_BROKER_MATCHES\";\nexport const GET_BROKER_MATCHES_STATUS_LOOKUP =\n \"GET_BROKER_MATCHES_STATUS_LOOKUP\";\n","export const SAVE_INDIVIDUAL_PROFILE = \"SAVE_INDIVIDUAL_PROFILE\";\nexport const CLEAR_CURRENT_PROFILE_PICTURE = \"CLEAR_CURRENT_PROFILE_PICTURE\";\nexport const CLEAR_PROFILE_DETAILS = \"CLEAR_PROFILE_DETAILS\";\nexport const GET_INDIVIDUAL_DETAILS = \"GET_INDIVIDUAL_DETAILS\"\nexport const UPDATE_CURRENT_PROFILE_LOADING = \"UPDATE_CURRENT_PROFILE_LOADING\";\nexport const UPDATE_ACTIVE_PORTRAIT = \"UPDATE_ACTIVE_PORTRAIT\";\nexport const GET_LAW_FIRM_PROFILE = \"GET_LAW_FIRM_PROFILE\";\n","export const GET_LENDER_PROFILE = \"GET_LENDER_PROFILE\";\n","export const SET_ACTIVE_PROFILE = \"SET_ACTIVE_PROFILE\";\nexport const SELECT_ACTIVE_PROFILE = \"SELECT_ACTIVE_PROFILE\";\nexport const SET_TAB_PROFILE_SETTINGS = \"SET_TAB_PROFILE_SETTINGS\";\nexport const BROKER_PROFILE_ACTIVE = \"profile:broker\";\nexport const LENDER_PROFILE_ACTIVE = \"profile:lender\";\n","import { GET_BROKER_PROFILE } from \"../constants/action-type/brokers\";\nimport {\n UPDATE_CURRENT_PROFILE_LOADING,\n CLEAR_CURRENT_PROFILE_PICTURE,\n CLEAR_PROFILE_DETAILS,\n UPDATE_ACTIVE_PORTRAIT,\n GET_LAW_FIRM_PROFILE\n} from \"../constants/action-type/individual\";\nimport { GET_LENDER_PROFILE } from \"../constants/action-type/lenderProfile\";\nimport {\n SET_ACTIVE_PROFILE,\n SET_TAB_PROFILE_SETTINGS\n} from \"../constants/action-type/profile\";\n\nconst initialState = {\n details: {},\n matchesList: [],\n matchesTotal: 0,\n lender: {},\n broker: {},\n firstRanking: {},\n activeProfile: {},\n fileNotesList: [],\n fileNotesTotal: 0,\n profileLoading: false,\n activePortrait: {},\n lawFirm: {},\n};\n\nexport default function profileReducer(state = initialState, action) {\n const { type, data, total } = action;\n switch (type) {\n case \"SAVE_PROFILE\": {\n return {\n ...state,\n details: {\n ...data\n }\n };\n }\n case SET_ACTIVE_PROFILE:\n return {\n ...state,\n activeProfile: {\n ...data\n }\n };\n case \"CLEAR_PROFILE\": {\n return {\n ...state,\n details: {},\n matchesList: [],\n matchesTotal: 0,\n lender: {},\n broker: {},\n lawFirm: {},\n firstRanking: {},\n fileNotesList: [],\n fileNotesTotal: 0\n };\n }\n case GET_LENDER_PROFILE: {\n return {\n ...state,\n lender: {\n ...data\n },\n broker: {},\n lawFirm: {}\n };\n }\n case GET_LAW_FIRM_PROFILE: {\n return {\n ...state, lawFirm: {...data}, lender: {}, broker: {}\n }\n }\n case \"GET_LENDERS_FIRST_RANKING_PROFILE\": {\n return {\n ...state,\n firstRanking: {\n ...data\n }\n };\n }\n case \"GET_LENDERS_SECOND_RANKING_PROFILE\": {\n return {\n ...state,\n secondRanking: {\n ...data\n }\n };\n }\n case \"GET_LENDERS_CONSTRUCTION_PROFILE\": {\n return {\n ...state,\n construction: {\n ...data\n }\n };\n }\n case \"GET_LENDERS_MEZZANINE_PROFILE\": {\n return {\n ...state,\n mezzanine: {\n ...data\n }\n };\n }\n case \"GET_LENDERS_LANDBANK_PROFILE\": {\n return {\n ...state,\n landbank: {\n ...data\n }\n };\n }\n case \"GET_LENDERS_RURAL_PROFILE\": {\n return {\n ...state,\n rural: {\n ...data\n }\n };\n }\n case \"GET_LENDERS_PROFESSIONAL_DETAIL_PROFILE\": {\n return {\n ...state,\n professionalDetails: {\n ...data\n }\n };\n }\n case GET_BROKER_PROFILE: {\n return {\n ...state,\n broker: {\n ...data\n },\n lender: {},\n lawFirm: {}\n };\n }\n case CLEAR_CURRENT_PROFILE_PICTURE: {\n return {\n ...state,\n broker: {\n ...state.broker,\n imageFile: null\n },\n lender: {\n ...state.lender,\n imageFile: null\n }\n };\n }\n case CLEAR_PROFILE_DETAILS: {\n return {\n ...state,\n broker: {},\n lender: {},\n lawFirm: {}\n };\n }\n case SET_TAB_PROFILE_SETTINGS: {\n return {\n ...state,\n broker: {\n ...state.broker,\n resetTab: action.resetActiveTab\n },\n lender: {\n ...state.lender,\n resetTab: action.resetActiveTab\n }\n };\n }\n // Master Switch\n case \"LENDER_MASTER_SWITCH_TURN_OFF\": {\n return {\n ...state,\n lender: {\n ...state.lender,\n isMasterSwitchOn: false\n }\n };\n }\n case \"LENDER_MASTER_SWITCH_TURN_ON\": {\n return {\n ...state,\n lender: {\n ...state.lender,\n isMasterSwitchOn: true\n }\n };\n }\n case \"BROKER_MASTER_SWITCH_TURN_OFF\": {\n return {\n ...state,\n broker: {\n ...state.broker,\n isMasterSwitchOn: false\n }\n };\n }\n case \"BROKER_MASTER_SWITCH_TURN_ON\": {\n return {\n ...state,\n broker: {\n ...state.broker,\n isMasterSwitchOn: true\n }\n };\n }\n\n\n case \"LAWFIRM_MASTER_SWITCH_TURN_OFF\": {\n return {\n ...state,\n lawFirm: {\n ...state.lawFirm,\n isMasterSwitchOn: false\n }\n };\n }\n case \"LAWFIRM_MASTER_SWITCH_TURN_ON\": {\n return {\n ...state,\n lawFirm: {\n ...state.lawFirm,\n isMasterSwitchOn: true\n }\n };\n }\n // Profile Status\n case \"LENDER_PROFILE_STATUS_TURN_OFF\": {\n return {\n ...state,\n lender: {\n ...state.lender,\n isProfileActive: false\n }\n };\n }\n case \"LENDER_PROFILE_STATUS_TURN_ON\": {\n return {\n ...state,\n lender: {\n ...state.lender,\n isProfileActive: true\n }\n };\n }\n case \"BROKER_PROFILE_STATUS_TURN_OFF\": {\n return {\n ...state,\n broker: {\n ...state.broker,\n isProfileActive: false\n }\n };\n }\n case \"BROKER_PROFILE_STATUS_TURN_ON\": {\n return {\n ...state,\n broker: {\n ...state.broker,\n isProfileActive: true\n }\n };\n }\n case \"LAWFIRM_PROFILE_STATUS_TURN_OFF\": {\n return {\n ...state,\n lawFirm: {\n ...state.lawFirm,\n isProfileActive: false\n }\n };\n }\n case \"LAWFIRM_PROFILE_STATUS_TURN_ON\": {\n return {\n ...state,\n lawFirm: {\n ...state.lawFirm,\n isProfileActive: true\n }\n };\n }\n case \"GET_BROKERS_PERSONAL_DETAIL_PROFILE\":\n case \"GET_LAW_FIRM_PERSONAL_DETAIL_PROFILE\":\n case \"GET_BROKERS_PROFESSIONAL_DETAIL_PROFILE\":\n case \"GET_LENDERS_PERSONAL_DETAIL_PROFILE\": {\n return {\n ...state,\n personalDetails: {\n ...data\n }\n };\n }\n\n case \"GET_LENDERS_FILE_NOTES\":\n case \"GET_LAW_FIRM_FILE_NOTES\":\n case \"GET_BROKERS_FILE_NOTES\":\n case \"GET_NOTES_SYSTEM_USER\":\n case \"GET_NOTES_NON_SYSTEM_USER\": {\n return {\n ...state,\n fileNotesList: data,\n fileNotesTotal: total\n };\n }\n\n case \"GET_MONTHLYSCORES_SYSTEM_USER\": {\n return {\n ...state,\n fileNotesList: data,\n fileNotesTotal: total\n }\n }\n\n case UPDATE_CURRENT_PROFILE_LOADING: {\n return {\n ...state,\n profileLoading: data\n }\n }\n\n case UPDATE_ACTIVE_PORTRAIT: {\n return {\n ...state,\n activePortrait: data\n }\n }\n\n default:\n return state;\n }\n}\n","export const LIST_TRIGGERS = \"LIST_TRIGGERS\";\nexport const LIST_TRIGGERS_LOOKUP = \"TRIGGERS_LOOKUP\";\nexport const MARK_TRIGGER_DONE = \"MARK_TRIGGER_DONE\";\n","import { LIST_TRIGGERS, LIST_TRIGGERS_LOOKUP } from \"../constants/action-type/triggers\";\n\nconst initState = {\n triggerList: [],\n lookup: []\n};\n\n/**\n *\n * @param {{ type: string, data: any, total: number }} action\n */\nexport default function triggersReducer(\n state = initState,\n action\n) {\n const { type, data } = action;\n switch (type) {\n case LIST_TRIGGERS:\n return {\n ...state,\n triggerList: data ?? [],\n };\n case LIST_TRIGGERS_LOOKUP:\n return {\n ...state,\n lookup: data ?? []\n };\n default:\n return state;\n }\n}\n","const initialState = {\n details: {},\n currentList: [],\n currentTotal: 0,\n formerList: [],\n formerTotal: 0\n};\n\nexport default function usersReducer(state = initialState, action) {\n const { type, data, total } = action;\n switch (type) {\n case \"LIST_USERS_CURRENT\": {\n return {\n ...state,\n currentList: [...data],\n currentTotal: total\n };\n }\n case \"LIST_USERS_FORMER\": {\n return {\n ...state,\n formerList: [...data],\n formerTotal: total\n };\n }\n case \"CLEAR_USERS\": {\n return {\n ...state,\n details: {},\n currentList: [],\n currentTotal: 0,\n formerList: [],\n formerTotal: 0\n };\n }\n default:\n return state;\n }\n}\n","export const SET_DAILY_SCORE_PAGE = \"SET_DAILY_SCORE_PAGE\";\nexport const SET_MONTHLY_SCORE_PAGE = \"SET_MONTHLY_SCORE_PAGE\";\nexport const SET_NOTE_ACTION = \"SET_NOTE_ACTION\";\n","import {\n SET_DAILY_SCORE_PAGE,\n SET_MONTHLY_SCORE_PAGE,\n SET_NOTE_ACTION\n} from \"../constants/action-type/notes\";\n\nconst initialState = {\n dailyScorePage: 1,\n monthlyScorePage: 1,\n noteAction: \"\"\n};\n\nexport default function notesReducer(state = initialState, action) {\n const { type, data } = action;\n switch (type) {\n case SET_DAILY_SCORE_PAGE: {\n return {\n ...state,\n dailyScorePage: data.dailyScorePage\n };\n }\n case SET_MONTHLY_SCORE_PAGE: {\n return {\n ...state,\n monthlyScorePage: data.monthlyScorePage\n };\n }\n case SET_NOTE_ACTION: {\n return {\n ...state,\n noteAction: data.noteAction\n };\n }\n default:\n return state;\n }\n}\n","import member from \"./member\";\nimport callback from \"./callback\";\nimport ui from \"./ui\";\nimport navbar from \"./navbar\";\nimport authorization from \"./authorization\";\nimport dashboard from \"./dashboard\";\nimport profile from \"./profile\";\nimport triggers from \"./triggers\";\nimport users from \"./users\";\nimport notes from \"./notes\";\n\nconst rehydrated = (state = false, action) => {\n switch (action.type) {\n case \"persist/REHYDRATE\":\n return true;\n default:\n return state;\n }\n};\nexport default {\n rehydrated,\n member,\n callback,\n ui,\n navbar,\n authorization,\n dashboard,\n triggers,\n profile,\n users,\n notes\n};\n","/* global window */\nimport {applyMiddleware, compose, createStore} from 'redux';\nimport {persistCombineReducers, persistStore} from 'redux-persist';\nimport {BUILD_VERSION} from '../constants/version';\nimport storage from 'redux-persist/es/storage'; // default: localStorage if web, AsyncStorage if react-native\nimport thunk from 'redux-thunk';\nimport reducers from '../reducers';\n\n// Redux Persist config\nconst config = {\n key: `root${BUILD_VERSION}`,\n storage,\n blacklist: ['status']\n};\n\nconst reducer = persistCombineReducers(config, reducers);\n\nconst middleware = [thunk];\n\nconst configureStore = () => {\n const store = createStore(\n reducer,\n compose(applyMiddleware(...middleware)),\n );\n\n const persistor = persistStore(\n store,\n null,\n () => {\n store.getState();\n },\n );\n\n return {persistor, store};\n};\n\nexport default configureStore;\n","export const BUILD_VERSION = '0.0.1'","import React from \"react\";\nconst Logo = ({ width }) => {\n return (\n
\n \n
\n );\n};\n\nexport default Logo;\n","import React, { Component, Fragment } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Col, Row, Skeleton } from \"antd\";\nimport Logo from \"../components/Logo\";\n\nclass TemplateNothing extends Component {\n render() {\n return (\n \n \n \n \n \n \n \n \n \n
\n
\n

Please wait a bit while we process your request...

\n
\n \n \n {this.props.children}\n \n \n \n \n
\n \n \n
\n
\n );\n }\n}\n\nTemplateNothing.propTypes = { children: PropTypes.element.isRequired };\n\nexport default TemplateNothing;\n","import React, { Fragment } from \"react\";\nimport { Component } from \"react\";\nimport authService from \"../actions/AuthorizeService\";\nimport { AuthenticationResultStatus } from \"../actions/AuthorizeService\";\nimport {\n LoginActions,\n QueryParameterNames\n} from \"../constants/ApiAuthorizationConstants\";\nimport _ from \"lodash\";\n\n// The main responsibility of this component is to handle the user's login process.\n// This is the starting point for the login process. Any component that needs to authenticate\n// a user can simply perform a redirect to this component with a returnUrl query parameter and\n// let the component perform the login and return back to the return url.\nexport class Login extends Component {\n constructor(props) {\n super(props);\n\n this.state = {\n message: undefined\n };\n }\n\n componentDidMount() {\n const action = this.props.action;\n switch (action) {\n case LoginActions.Login:\n this.login(this.getReturnUrl());\n break;\n case LoginActions.LoginCallback:\n this.processLoginCallback();\n break;\n case LoginActions.LoginFailed:\n const params = new URLSearchParams(window.location.search);\n const error = params.get(QueryParameterNames.Message);\n this.setState({ message: error });\n break;\n case LoginActions.Profile:\n break;\n case LoginActions.Register:\n break;\n default:\n throw new Error(`Invalid action '${action}'`);\n }\n }\n\n login = async returnUrl => {\n const state = { returnUrl };\n const result = await authService.signIn(state);\n switch (result && result.status) {\n case AuthenticationResultStatus.Redirect:\n break;\n case AuthenticationResultStatus.Success:\n this.navigateToReturnUrl(returnUrl);\n break;\n case AuthenticationResultStatus.Fail:\n this.setState({ message: result.message });\n break;\n default:\n throw new Error(`Invalid status result ${result.status}.`);\n }\n };\n\n processLoginCallback = async () => {\n const url = window.location.href;\n const result = await authService.completeSignIn(url);\n switch (result.status) {\n case AuthenticationResultStatus.Redirect:\n // There should not be any redirects as the only time completeSignIn finishes\n // is when we are doing a redirect sign in flow.\n throw new Error(\"Should not redirect.\");\n case AuthenticationResultStatus.Success:\n this.navigateToReturnUrl(this.getReturnUrl(result.state));\n break;\n case AuthenticationResultStatus.Fail:\n this.setState({\n message: `${result.message} retrying login process...`\n });\n await this.login(this.getReturnUrl(result.state));\n break;\n default:\n throw new Error(\n `Invalid authentication result status '${result.status}'.`\n );\n }\n };\n\n getReturnUrl = state => {\n const params = new URLSearchParams(window.location.search);\n const fromQuery = params.get(QueryParameterNames.ReturnUrl);\n if (fromQuery && !fromQuery.startsWith(`${window.location.origin}/`)) {\n // This is an extra check to prevent open redirects.\n throw new Error(\n \"Invalid return url. The return url needs to have the same origin as the current page.\"\n );\n }\n return (\n (state && state.returnUrl) || fromQuery || `${window.location.origin}`\n );\n };\n\n redirectToApiAuthorizationPath = apiAuthorizationPath => {\n const redirectUrl = `${window.location.origin}${apiAuthorizationPath}`;\n // It's important that we do a replace here so that when the user hits the back arrow on the\n // browser he gets sent back to where it was on the app instead of to an endpoint on this\n // component.\n window.location.replace(redirectUrl);\n };\n\n navigateToReturnUrl = returnUrl => {\n // It's important that we do a replace here so that we remove the callback uri with the\n // fragment containing the tokens from the browser history.\n window.location.replace(returnUrl);\n };\n\n render() {\n const action = this.props.action;\n const { message } = this.state;\n if (!!message) {\n return (\n \n
{_.isObject(message) ? message.message : message}
\n
\n );\n } else {\n switch (action) {\n case LoginActions.Login:\n return (\n \n
Processing login
\n
\n );\n case LoginActions.LoginCallback:\n return (\n \n
Confirming Login...
\n
\n );\n case LoginActions.Profile:\n case LoginActions.Register:\n return
;\n default:\n throw new Error(`Invalid action '${action}'`);\n }\n }\n }\n}\n","import env from \"./env\";\nimport { templateEngine } from \"../libs/utilities\";\n\nclass ApiUrlHandler {\n constructor() {\n if (!ApiUrlHandler.instance) {\n this.apiUrls = {\n // Dashboard\n DASHBOARD_STATS_URL: \"/api/dashboard/stats/<%area%>\",\n //\"/api/dashboard/stats/500\", //\n DASHBOARD_ACTION_URL: \"/api/dashboard/action-list\",\n\n // Account\n ACCOUNTS_ME: \"/api/accounts/me\",\n ACCOUNTS_ME_LAST_VISITED: \"/api/accounts/me/last-visited\",\n ACCOUNTS_PASSWORD_CHANGE: \"/api/accounts/me/password-change\",\n\n // Users\n USERS_URL: \"/api/users\",\n USERS_DETAIL_URL: \"/api/users/<%id%>\",\n\n INDIVIDUAL_USER_DETAIL: \"/api/individuals/me\",\n\n // All Users\n USERS_ALL_USER_SEARCH_URL: \"/api/users/all\",\n USERS_ALL_SYSTEM_USER_SEARCH_URL: \"/api/users/all/system-user\",\n USERS_ALL_FINANCIER_TYPE_URL: \"/api/users/all/financier-type/search-lookup\",\n USERS_ALL_SETTLED_LOANS_URL: \"/api/users/all/settled-loans/search-lookup\",\n USERS_ALL_FIRST_FUNDS_AVAILABLE_URL: \"/api/users/all/first-funds-available/search-lookup\",\n USERS_ALL_PROFILE_STATUS_URL: \"/api/users/all/profile-status/search-lookup\",\n GET_ALL_USERS_BDM_LOOKUP: \"/api/users/all/omicron-bdm/search-lookup\",\n\n // All Users\n USERS_ALL_USER_SEARCH_URL: \"/api/users/all\",\n USERS_ALL_SYSTEM_USER_SEARCH_URL: \"/api/users/all/system-user\",\n USERS_ALL_FINANCIER_TYPE_URL: \"/api/users/all/financier-type/search-lookup\",\n USERS_ALL_SETTLED_LOANS_URL: \"/api/users/all/settled-loans/search-lookup\",\n USERS_ALL_FIRST_FUNDS_AVAILABLE_URL: \"/api/users/all/first-funds-available/search-lookup\",\n USERS_ALL_PROFILE_STATUS_URL: \"/api/users/all/profile-status/search-lookup\",\n\n //Companies\n COMPANIES_URL: \"/api/companies\",\n COMPANIES_LENDER_PROFILE_REMOVE_URL:\n \"/api/companies/<%id%>/lender/remove\",\n COMPANIES_BROKER_PROFILE_REMOVE_URL:\n \"/api/companies/<%id%>/broker/remove\",\n COMPANIES_DELETE_URL: \"/api/companies/<%id%>/delete\",\n COMPANIES_DELETE_LAWFIRM_URL: \"/api/companies/<%id%>/delete/law-firm\",\n COMPANIES_UPDATE_LEAD_SCORE: \"/api/companies/<%id%>/lead-score\",\n COMPANIES_UPDATE_LEAD_SCORE_AS_SYSTEM_USER: \"/api/companies/<%id%>/lead-score/system-user\",\n COMPANIES_UPDATE_FOLLOWUP_DATE: \"/api/companies/<%id%>/followup-date\",\n COMPANIES_UPDATE_FOLLOWUP_DATE_AS_SYSTEM_USER: \"/api/companies/<%id%>/followup-date/system-user\",\n\n // Individual profiles\n INDIVIDUALS_LIST_URL: \"/api/individuals\",\n INDIVIDUAL_DETAIL_URL: \"/api/individuals/<%id%>\",\n INDIVIDUAL_DETAIL_SYSTEM_USER_URL:\n \"/api/individuals/<%id%>/system-user\",\n COMPANIES_ADD_BROKER_PROFILE_URL: \"/api/companies/<%id%>/broker\",\n INDIVIDUALS_BROKER_PROFILE_REMOVE_URL:\n \"/api/individuals/<%id%>/broker/remove\",\n COMPANIES_ADD_LENDER_PROFILE_URL: \"/api/companies/<%id%>/lender\",\n INDIVIDUALS_LENDER_PROFILE_REMOVE_URL:\n \"/api/individuals/<%id%>/lender/remove\",\n INDIVIDUALS_DELETE_URL: \"/api/individuals/<%id%>/delete\",\n\n INDIVIDUALS_RESEND_INVITATION:\n \"/api/individuals/<%id%>/resend-invitation\",\n INDIVIDUALS_RESET_PASSWORD: \"/api/individuals/<%id%>/reset-password\",\n\n // V2 apis for lender update\n LENDER_UPDATE_INDIVIDUAL_URL: \"/api/lenders/<%id%>\",\n LENDER_UPDATE_SYSTEM_USER_URL: \"/api/lenders/<%id%>/system-user\",\n\n // v2 apis for broker update\n BROKER_UPDATE_INDIVIDUAL_URL: \"/api/brokers/<%id%>\",\n BROKER_UPDATE_SYSTEM_USER_URL: \"/api/brokers/<%id%>/system-user\",\n\n // Master Switch\n MASTER_SWITCH_TURN_OFF_URL:\n \"/api/companies/<%id%>/master-switch/turn-off\",\n MASTER_SWITCH_TURN_ON_URL:\n \"/api/companies/<%id%>/master-switch/turn-on\",\n\n // Profile Status\n LENDER_PROFILE_STATUS_OFF_URL: \"/api/lenders/<%id%>/pause-profile\",\n LENDER_PROFILE_STATUS_ON_URL: \"/api/lenders/<%id%>/activate-profile\",\n BROKER_PROFILE_STATUS_OFF_URL: \"/api/brokers/<%id%>/pause-profile\",\n BROKER_PROFILE_STATUS_ON_URL: \"/api/brokers/<%id%>/activate-profile\",\n\n // Products\n LENDER_PRODUCT_STATUS_TOGGLE:\n \"/api/lenders/<%id%>/categories/<%productType%>/toggle-status\",\n BROKER_PRODUCT_STATUS_TOGGLE:\n \"/api/brokers/<%id%>/subscriptions/<%productType%>/toggle-status\",\n\n // File notes\n LENDER_FILE_NOTES_URL: \"/api/lenders/<%id%>/file-notes\",\n LENDER_FILE_NOTES_SYSTEM_USER_URL:\n \"/api/lenders/<%id%>/file-notes/system-user\",\n LENDER_FILE_NOTES_DELETE_URL: \"/api/lenders/<%id%>/file-notes/delete\",\n LENDER_FILE_NOTES_DELETE_SYSTEM_USER_URL:\n \"/api/lenders/<%id%>/file-notes/delete/system-user\",\n BROKER_FILE_NOTES_URL: \"/api/brokers/<%id%>/file-notes\",\n BROKER_FILE_NOTES_SYSTEM_USER_URL:\n \"/api/brokers/<%id%>/file-notes/system-user\",\n BROKER_FILE_NOTES_DELETE_URL: \"/api/brokers/<%id%>/file-notes/delete\",\n BROKER_FILE_NOTES_DELETE_SYSTEM_USER_URL:\n \"/api/brokers/<%id%>/file-notes/delete/system-user\",\n\n //NOTES PAGE\n NOTES_SYSTEM_USER_URL: \"/api/notes/system-user\",\n NOTES_NON_SYSTEM_USER_URL: \"/api/notes\",\n MONTHLYSCORES_SYSTEM_USER_URL: \"/api/notes/scores/monthly/system-user\",\n DAILYSCORES_SYSTEM_USER_URL: \"/api/notes/scores/daily/system-user\",\n MONTHLYSCORES_INDIVIDUAL_USER_URL: \"/api/notes/scores/monthly\",\n DAILYSCORES_INDIVIDUAL_USER_URL: \"/api/notes/scores/daily\",\n\n NOTE_TYPE_URL: \"/api/notes/note-type-dropdown\",\n\n //LOANS\n LOANS_VERIFY_LOANNO: \"/api/loans/<%id%>/verify/loan-no\",\n NEW_LOANS_VERIFY_LOANNO: \"/api/loans/verify/loan-no\",\n\n // CREATE BY SYSTEM USER\n LOANS_CREATE: \"/api/loans/system-user\",\n LOANS_CREATE_AS_LENDER: \"/api/loans/lender\",\n LOANS_CREATE_AS_LAW_FIRM: \"/api/loans/lawfirm\",\n LOANS_EDIT: \"/api/loans/<%id%>/system-user\",\n LOANS_EDIT_AS_LENDER: \"/api/loans/<%id%>/lender\",\n LOANS_EDIT_AS_LAW_FIRM: \"/api/loans/<%id%>/lawfirm\",\n\n // LOOKUPS\n COMPANY_OMICRON_BDM_LOOKUP: \"/api/companies/omicron-bdm/search-lookup\",\n LOANS_SECURITY_TYPE_LOOKUP: \"/api/loans/security-type/search-lookup\",\n LOANS_STATUS_LOOKUP: \"/api/loans/status/search-lookup\",\n LOANS_INTEREST_LOOKUP: \"/api/loans/interest/search-lookup\",\n LOANS_SCENARIO_LOOKUP: \"/api/loans/scenario/search-lookup\",\n LOANS_SUBURB_STATES_LOOKUP: \"/api/loans/suburb-states/search-lookup\",\n LOANS_PRIORITY_LOOKUP: \"/api/loans/priority/search-lookup\",\n LOANS_CREDIT_LOOKUP: \"/api/loans/credits/search-lookup\",\n LOANS_SUBDIVISION_TYPE_LOOKUP: \"/api/loans/scenario/subdivision/type/search-lookup\",\n \n //---Check User Involvement\n CHECK_USER_INVOLVEMENT: \"/api/loans/<%id%>/check-user-involvement\",\n\n //---UNINVOLVED USER\n GET_LOAN_DETAILS_FOR_UNINVOLVED_USER: \"/api/loans/<%id%>/details\",\n GET_LOAN_DETAILS_FOR_BROKER_USER: \"/api/loans/<%id%>/broker/details\",\n GET_LOAN_DETAILS_FOR_LENDER_USER: \"/api/loans/<%id%>/lender/details\",\n\n // LOOKUPS\n LOANS_LENDERS_LOOKUP: \"/api/loans/lenders/search-lookup/system-user\",\n LOANS_LENDERS_LOOKUP_AS_LENDER_LAW_FIRM: \"/api/loans/lenders/search-lookup\",\n LOANS_BROKERS_LOOKUP: \"/api/loans/brokers/search-lookup/system-user\",\n LOANS_BROKERS_LOOKUP_AS_LENDER_LAW_FIRM: \"/api/loans/brokers/search-lookup\",\n LOANS_PARTNER_ASSOCIATE_LOOKUP: \"/api/loans/bdm/search-lookup/system-user\",\n LOANS_PARTNER_ASSOCIATE_LOOKUP_AS_LENDER_LAW_FIRM: \"/api/loans/bdm/search-lookup\",\n LOANS_LAWFIRM_LOOKUP: \"/api/loans/law-firms/search-lookup/system-user\",\n LOANS_LAWFIRM_LOOKUP_AS_LENDER_LAW_FIRM: \"/api/loans/law-firms/search-lookup\",\n LOANS_LAWFIRM_USERS_LOOKUP:\n \"/api/loans/law-firms/<%id%>/users/search-lookup/system-user\",\n LOANS_LAWFIRM_USERS_LOOKUP_AS_LENDER_LAW_FIRM:\n \"/api/loans/law-firms/<%id%>/users/search-lookup\",\n\n // PRIVACY SETTINGS\n GET_LENDER_PRIVACY_SETTINGS: \"/api/lenders/<%id%>/privacy-settings\",\n\n // PRIVACY SETTINGS\n GET_INDIVIDUAL_EMAIL_SUBSCRIPTIONS:\n \"/api/individuals/<%id%>/email-subscriptions\",\n GET_LAWFIRM_EMAIL_SUBSCRIPTIONS:\n \"/api/individuals/<%id%>/law-firm/email-subscriptions\",\n\n //---GETTING LOAN DETAILS\n GET_LOAN_DETAILS_FOR_SYSTEM_USER:\n \"/api/loans/<%id%>/system-user/details\",\n GET_BROKER_LOAN_DETAILS_FOR_SYSTEM_USER:\n \"/api/loans/<%id%>/broker/details\",\n GET_LENDER_LOAN_DETAILS_FOR_SYSTEM_USER:\n \"/api/loans/<%id%>/lender/details\",\n GET_LOAN_ATTRIBUTED_LENDER_FOR_SYSTEM_USER:\n \"/api/loans/<%id%>/details/loan-lenders/system-user\",\n GET_LOAN_ATTRIBUTED_LENDER: \"/api/loans/<%id%>/details/loan-lenders\",\n GET_LOAN_ATTRIBUTED_BROKERS_FOR_SYSTEM_USER:\n \"/api/loans/<%id%>/details/brokers/system-user\",\n GET_LOAN_ATTRIBUTED_BROKERS: \"/api/loans/<%id%>/details/brokers\",\n\n GET_MATCHING_LOANS_FOR_LENDER_URL: \"/api/lenders/<%id%>/loans/search\",\n GET_MATCHING_LOANS_FOR_LENDER_URL_AS_SYSTEM_USER:\n \"/api/lenders/<%id%>/loans/search/system-user\",\n GET_MATCHING_LOANS_FOR_BROKER_URL: \"/api/brokers/<%id%>/loans/search\",\n GET_MATCHING_LOANS_FOR_BROKER_URL_AS_SYSTEM_USER:\n \"/api/brokers/<%id%>/loans/search/system-user\",\n //---PRESETTLED LOANS\n GET_PRESETTLED_LOANS_FOR_LENDER_URL:\n \"/api/loans/lender/<%id%>/presettled\",\n GET_PRESETTLED_LOANS_FOR_BROKER_URL:\n \"/api/loans/broker/<%id%>/presettled\",\n GET_PRESETTLED_LOANS_FOR_LAW_FIRM_URL:\n \"/api/lawfirms/<%id%>/loans/presettled\",\n\n GET_PRESETTLED_LOANS_FOR_LENDER_AS_ADMIN_URL:\n \"/api/loans/lender/<%id%>/presettled/system-user\",\n\n GET_PRESETTLED_LOANS_FOR_BROKER_AS_ADMIN_URL:\n \"/api/loans/broker/<%id%>/presettled/system-user\",\n GET_PRESETTLED_LOANS_FOR_LAW_FIRM_URL_AS_ADMIN_URL:\n \"/api/lawfirms/<%id%>/loans/presettled/system-user\",\n\n DELETE_LOAN_AS_SYSTEM_USER: \"/api/loans/<%id%>/delete\",\n\n UPDATE_LOAN_IN_VIEW_AS_SYSTEM_USER: \"/api/loans/<%loanid%>/system-user\",\n\n //Update loan reviews when viewing a loan\n UPDATE_LOAN_IN_VIEW_AS_LENDER: \"/api/loans/<%loanid%>/reviews/lender\",\n UPDATE_LOAN_IN_VIEW_AS_BROKER: \"/api/loans/<%loanid%>/reviews/broker\",\n UPDATE_LOAN_IN_VIEW_AS_LAWFIRM: \"/api/loans/<%loanid%>/reviews/lawfirm\",\n UPDATE_LOAN_IN_VIEW_AS_DUAL: \"/api/loans/<%loanid%>/reviews/dual\",\n\n GET_PRESETTLED_LOANS_FOR_LENDER: \"/api/loans/<%id%>\",\n\n //---CURRENT LOANS\n GET_CURRENT_LOANS_FOR_LENDER_URL: \"/api/loans/lender/<%id%>/current\",\n GET_CURRENT_LOANS_FOR_LENDER_URL_AS_SYSTEM_USER:\n \"/api/loans/lender/<%id%>/current/system-user\",\n GET_CURRENT_LOANS_FOR_BROKER_URL: \"/api/loans/broker/<%id%>/current\",\n GET_CURRENT_LOANS_FOR_BROKER_URL_AS_SYSTEM_USER:\n \"/api/loans/broker/<%id%>/current/system-user\",\n GET_CURRENT_LOANS_FOR_LAW_FIRM_URL:\n \"/api/lawfirms/<%id%>/loans/current\",\n GET_CURRENT_LOANS_FOR_LAW_FIRM_URL_AS_SYSTEM_USER:\n \"/api/lawfirms/<%id%>/loans/current/system-user\",\n\n //---DISCHARGED LOANS\n GET_DISCHARGED_LOANS_FOR_LENDER_URL:\n \"/api/loans/lender/<%id%>/discharged\",\n GET_DISCHARGED_LOANS_FOR_LENDER_URL_AS_SYSTEM_USER:\n \"/api/loans/lender/<%id%>/discharged/system-user\",\n GET_DISCHARGED_LOANS_FOR_BROKER_URL:\n \"/api/loans/broker/<%id%>/discharged\",\n GET_DISCHARGED_LOANS_FOR_BROKER_URL_AS_SYSTEM_USER:\n \"/api/loans/broker/<%id%>/discharged/system-user\",\n GET_DISCHARGED_LOANS_FOR_LAW_FIRM_URL:\n \"/api/lawfirms/<%id%>/loans/discharged\",\n GET_DISCHARGED_LOANS_FOR_LAW_FIRM_URL_AS_SYSTEM_USER:\n \"/api/lawfirms/<%id%>/loans/discharged/system-user\",\n\n // ALL LOANS\n GET_ALL_LOANS_AS_SYSTEM_USER: \"/api/loans/all/system-user\",\n GET_ALL_LOANS_AS_INDIVIDUAL: \"/api/loans/all\",\n\n // ALL LOANS LOOKUPS\n GET_ALL_LOANS_COLUMNS_LOOKUPS: \"/api/loans/all/columns\",\n GET_ALL_LOANS_EXPIRY_LOOKUPS: \"/api/loans/all/expiry/search-lookup\",\n GET_ALL_LOANS_BDM_LOOKUP: \"/api/loans/all/omicron-bdm/search-lookup\",\n GET_ALL_LOANS_PARTNER_LOOKUPS: \"/api/loans/all/law-firms/<%id%>/partners/search-lookup\",\n\n // All Loans saved searches\n ALL_LOANS_SAVED_SEARCHES_AS_SYSTEM_USER: \"/api/saved-searches/loans/system-user\",\n ALL_LOANS_SAVED_SEARCHES_AS_INDIVIDUAL: \"/api/saved-searches/loans\",\n ALL_LOANS_SAVED_SEARCH_ITEM_AS_SYSTEM_USER: \"/api/saved-searches/loans/<%id%>/system-user\",\n ALL_LOANS_SAVED_SEARCH_ITEM_AS_INDIVIDUAL: \"/api/saved-searches/loans/<%id%>\",\n ALL_LOANS_SAVED_SEARCH_ITEM_EXPORT_AS_SYSTEM_USER: \"/api/saved-searches/loans/<%id%>/export/system-user\",\n ALL_LOANS_SAVED_SEARCH_ITEM_EXPORT_AS_INDIVIDUAL: \"/api/saved-searches/loans/<%id%>/export\",\n ALL_LOANS_LAST_SEARCH: \"/api/accounts/me/preferences/loans/last-search\",\n EXPORT_LOAN_SEARCH_TO_XLS_AS_SYSTEM_USER: \"/api/saved-searches/loans/<%id%>/export/system-user\",\n EXPORT_LOAN_SEARCH_TO_XLS_INDIVIDUAL: \"/api/saved-searches/loans/<%id%>/export\",\n\n // Finder Utility\n FINDER_SECURITY_TYPE_LOOKUP: \"/api/finder/security-type/search-lookup\",\n FINDER_SETTLEMENT_DATE_LOOKUP:\n \"/api/finder/settlement-date/search-lookup\",\n FINDER_SCENARIO_LOOKUP: \"/api/finder/scenario/search-lookup\",\n FINDER_LENDERS_LOOKUP: \"/api/finder/lenders/search\",\n FINDER_LENDERS_LOOKUP_AS_SYSTEM_USER:\n \"/api/finder/lenders/search/system-user\",\n FINDER_BROKERS_LOOKUP: \"/api/finder/brokers/search\",\n FINDER_SUBURB_STATES_LOOKUP: \"/api/finder/suburb-states/search-lookup\",\n FINDER_PRIORITY_LOOKUP: \"/api/finder/priority/search-lookup\",\n FINDER_RADIUS_LOOKUP: \"/api/finder/radius/search-lookup\",\n FINDER_TERM_LOWER_LOOKUP: \"/api/finder/term/lower/search-lookup\",\n FINDER_TERM_HIGHER_LOOKUP: \"/api/finder/term/higher/search-lookup\",\n FINDER_CREDIT_LOOKUP: \"/api/finder/credits/search-lookup\",\n FINDER_INTEREST_LOOKUP: \"/api/finder/interest/search-lookup\",\n FINDER_SCENARIO_SUBDIVISION_TYPE_LOOKUP: \"/api/finder/scenario/subdivision/type/search-lookup\",\n\n // Finder Public\n // Finder Utility\n GENERAL_FINDER_SECURITY_TYPE_LOOKUP:\n \"/api/general-public/finder/security-type/search-lookup\",\n GENERAL_FINDER_SETTLEMENT_DATE_LOOKUP:\n \"/api/general-public/finder/settlement-date/search-lookup\",\n GENERAL_FINDER_SCENARIO_LOOKUP:\n \"/api/general-public/finder/scenario/search-lookup\",\n GENERAL_FINDER_LENDERS_LOOKUP:\n \"/api/general-public/finder/lenders/search\",\n GENERAL_FINDER_BROKERS_LOOKUP:\n \"/api/general-public/finder/brokers/search\",\n GENERAL_FINDER_SUBURB_STATES_LOOKUP:\n \"/api/general-public/finder/suburb-states/search-lookup\",\n GENERAL_FINDER_PRIORITY_LOOKUP:\n \"/api/general-public/finder/priority/search-lookup\",\n GENERAL_FINDER_RADIUS_LOOKUP:\n \"/api/general-public/finder/radius/search-lookup\",\n GENERAL_FINDER_TERM_LOWER_LOOKUP:\n \"/api/general-public/finder/term/lower/search-lookup\",\n GENERAL_FINDER_TERM_HIGHER_LOOKUP:\n \"/api/general-public/finder/term/higher/search-lookup\",\n GENERAL_FINDER_CREDIT_LOOKUP:\n \"/api/general-public/finder/credits/search-lookup\",\n GENERAL_FINDER_INTEREST_LOOKUP:\n \"/api/general-public/finder/interest/search-lookup\",\n GENERAL_FINDER_SCENARIO_SUBDIVISION_TYPE_LOOKUP:\n \"/api/general-public/loans/scenario/subdivision/type/search-lookup\",\n\n //SYSTEM USER ACTIONS\n UPDATE_LENDER_FILE_NOTES_AS_SYSTEM_ADMIN_URL:\n \"/api/notes/lender/<%id%>/system-user\",\n UPDATE_BROKER_FILE_NOTES_AS_SYSTEM_ADMIN_URL:\n \"/api/notes/broker/<%id%>/system-user\",\n UPDATE_LAWFIRM_FILE_NOTES_AS_SYSTEM_ADMIN_URL:\n \"/api/notes/lawfirm/<%id%>/system-user\",\n DELETE_LENDER_FILE_NOTES_AS_SYSTEM_ADMIN_URL:\n \"/api/notes/lender/<%id%>/delete/system-user\",\n DELETE_BROKER_FILE_NOTES_AS_SYSTEM_ADMIN_URL:\n \"/api/notes/broker/<%id%>/delete/system-user\",\n DELETE_LAWFIRM_FILE_NOTES_AS_SYSTEM_ADMIN_URL:\n \"/api/notes/lawfirm/<%id%>/delete/system-user\",\n\n //INDIVIDUAL USER ACTIONS\n UPDATE_LENDER_FILE_NOTES_AS_INDIVIDUAL_URL: \"/api/notes/lender/<%id%>\",\n UPDATE_BROKER_FILE_NOTES_AS_INDIVIDUAL_URL: \"/api/notes/broker/<%id%>\",\n UPDATE_LAWFIRM_FILE_NOTES_AS_INDIVIDUAL_URL:\n \"/api/notes/lawfirm/<%id%>\",\n DELETE_LENDER_FILE_NOTES_AS_INDIVIDUAL_URL:\n \"/api/notes/lender/<%id%>/delete\",\n DELETE_BROKER_FILE_NOTES_AS_INDIVIDUAL_URL:\n \"/api/notes/broker/<%id%>/delete\",\n DELETE_LAWFIRM_FILE_NOTES_AS_INDIVIDUAL_URL:\n \"/api/notes/lawfirm/<%id%>/delete\",\n INDIVIDUALS_DETAIL_URL: \"/api/individuals/<%id%>\",\n\n // Brokers:\n BROKER_DETAIL_URL: \"/api/brokers/<%id%>\",\n BROKER_SELF_DETAIL_URL: \"/api/brokers/<%id%>/me\",\n BROKER_DETAIL_SYSTEM_USER_URL: \"/api/brokers/<%id%>/system-user\",\n BROKER_MATCHES_URL: \"/api/brokers/<%id%>/matches\",\n BROKER_ADMIN_MATCHES_URL: \"/api/brokers/<%id%>/matches/system-user\",\n BROKER_PROFESSIONAL_DETAIL_URL:\n \"/api/brokers/<%id%>/detail/professional\",\n BROKER_PERSONAL_DETAIL_URL: \"/api/brokers/<%id%>/detail/personal\",\n BROKER_PROFESSIONAL_DETAIL_SYSTEM_USER_URL:\n \"/api/brokers/<%id%>/detail/professional-system-user\",\n BROKER_PERSONAL_DETAIL_SYSTEM_USER_URL:\n \"/api/brokers/<%id%>/detail/personal-system-user\",\n BROKER_LOANS_DONE_WITH_YOU: \"/api/brokers/<%id%>/loans/done-with-you\",\n\n // Lenders:\n LENDERS_DETAIL_URL: \"/api/lenders/<%id%>\",\n LENDERS_SELF_DETAIL_URL: \"/api/lenders/<%id%>/me\",\n LENDERS_DETAIL_SYSTEM_USER_URL: \"/api/lenders/<%id%>/system-user\",\n LENDERS_PROFESSIONAL_DETAIL_URL:\n \"/api/lenders/<%id%>/detail/professional\",\n LENDERS_PROFESSIONAL_DETAIL_SYSTEM_USER_URL:\n \"/api/lenders/<%id%>/detail/professional-system-user\",\n LENDERS_PERSONAL_DETAIL_URL: \"/api/lenders/<%id%>/detail/personal\",\n LENDERS_PERSONAL_DETAIL_SYSTEM_USER_URL:\n \"/api/lenders/<%id%>/detail/personal-system-user\",\n LENDERS_FILE_NOTES_URL: \"/api/lenders/<%id%>/file-notes\",\n LENDERS_FILE_NOTES_DELETE_URL: \"/api/lenders/<%id%>/file-notes/delete\",\n LENDERS_FILE_NOTES_BY_SYSTEM_USER_URL:\n \"/api/lenders/<%id%>/file-notes/system-user\",\n LENDERS_FILE_NOTES_BY_SYSTEM_USER_DELETE_URL:\n \"/api/lenders/<%id%>/file-notes/delete/system-user\",\n\n LENDERS_FIRST_RANKING_DETAIL_PROFILE_URL:\n \"/api/lenders/<%id%>/categories/first-ranking\",\n LENDERS_ADMIN_FIRST_RANKING_DETAIL_PROFILE_URL:\n \"/api/lenders/<%id%>/categories/first-ranking/system-user\",\n LENDERS_FIRST_RANKING_VERIFY_URL:\n \"/api/lenders/<%id%>/categories/first-ranking/verify\",\n LENDERS_ADMIN_FIRST_RANKING_VERIFY_URL:\n \"/api/lenders/<%id%>/categories/first-ranking/verify/system-user\",\n\n LENDERS_SECOND_RANKING_DETAIL_PROFILE_URL:\n \"/api/lenders/<%id%>/categories/second-ranking\",\n LENDERS_ADMIN_SECOND_RANKING_DETAIL_PROFILE_URL:\n \"/api/lenders/<%id%>/categories/second-ranking/system-user\",\n LENDERS_SECOND_RANKING_VERIFY_URL:\n \"/api/lenders/<%id%>/categories/second-ranking/verify\",\n LENDERS_ADMIN_SECOND_RANKING_VERIFY_URL:\n \"/api/lenders/<%id%>/categories/second-ranking/verify/system-user\",\n\n LENDERS_CONSTRUCTION_DETAIL_PROFILE_URL:\n \"/api/lenders/<%id%>/categories/construction\",\n LENDERS_ADMIN_CONSTRUCTION_DETAIL_PROFILE_URL:\n \"/api/lenders/<%id%>/categories/construction/system-user\",\n LENDERS_CONSTRUCTION_VERIFY_URL:\n \"/api/lenders/<%id%>/categories/construction/verify\",\n LENDERS_ADMIN_CONSTRUCTION_VERIFY_URL:\n \"/api/lenders/<%id%>/categories/construction/verify/system-user\",\n\n LENDERS_MEZZANINE_DETAIL_PROFILE_URL:\n \"/api/lenders/<%id%>/categories/mezzanine\",\n LENDERS_ADMIN_MEZZANINE_DETAIL_PROFILE_URL:\n \"/api/lenders/<%id%>/categories/mezzanine/system-user\",\n LENDERS_MEZZANINE_VERIFY_URL:\n \"/api/lenders/<%id%>/categories/mezzanine/verify\",\n LENDERS_ADMIN_MEZZANINE_VERIFY_URL:\n \"/api/lenders/<%id%>/categories/mezzanine/verify/system-user\",\n\n LENDERS_LANDBANK_DETAIL_PROFILE_URL:\n \"/api/lenders/<%id%>/categories/land-bank\",\n LENDERS_ADMIN_LANDBANK_DETAIL_PROFILE_URL:\n \"/api/lenders/<%id%>/categories/land-bank/system-user\",\n LENDERS_LANDBANK_VERIFY_URL:\n \"/api/lenders/<%id%>/categories/land-bank/verify\",\n LENDERS_ADMIN_LANDBANK_VERIFY_URL:\n \"/api/lenders/<%id%>/categories/land-bank/verify/system-user\",\n\n LENDERS_RURAL_DETAIL_PROFILE_URL:\n \"/api/lenders/<%id%>/categories/rural\",\n LENDERS_ADMIN_RURAL_DETAIL_PROFILE_URL:\n \"/api/lenders/<%id%>/categories/rural/system-user\",\n LENDERS_RURAL_VERIFY_URL: \"/api/lenders/<%id%>/categories/rural/verify\",\n LENDERS_ADMIN_RURAL_VERIFY_URL:\n \"/api/lenders/<%id%>/categories/rural/verify/system-user\",\n\n LENDERS_MATCHES_URL: \"/api/lenders/<%id%>/matches\",\n LENDERS_ADMIN_MATCHES_URL: \"/api/lenders/<%id%>/matches/system-user\",\n\n LENDERS_ADMIN_CLEAR_DETAILS_URL:\n \"/api/lenders/<%id%>/loan-criteria/clear/system-user\",\n LENDERS_CLEAR_DETAILS_URL: \"/api/lenders/<%id%>/loan-criteria/clear\",\n // Saving of lender's profile drafts before they are verified for the first time\n\n LENDERS_FIRST_RANKING_VERIFY_DRAFT_URL:\n \"/api/lenders/<%id%>/categories/first-ranking/draft\",\n LENDERS_ADMIN_FIRST_RANKING_VERIFY_DRAFT_URL:\n \"/api/lenders/<%id%>/categories/first-ranking/draft/system-user\",\n\n LENDERS_SECOND_RANKING_VERIFY_DRAFT_URL:\n \"/api/lenders/<%id%>/categories/second-ranking/draft\",\n LENDERS_ADMIN_SECOND_RANKING_VERIFY_DRAFT_URL:\n \"/api/lenders/<%id%>/categories/second-ranking/draft/system-user\",\n\n LENDERS_CONSTRUCTION_VERIFY_DRAFT_URL:\n \"/api/lenders/<%id%>/categories/construction/draft\",\n LENDERS_ADMIN_CONSTRUCTION_VERIFY_DRAFT_URL:\n \"/api/lenders/<%id%>/categories/construction/draft/system-user\",\n\n LENDERS_MEZZANINE_VERIFY_DRAFT_URL:\n \"/api/lenders/<%id%>/categories/mezzanine/draft\",\n LENDERS_ADMIN_MEZZANINE_VERIFY_DRAFT_URL:\n \"/api/lenders/<%id%>/categories/mezzanine/draft/system-user\",\n\n LENDERS_LANDBANK_VERIFY_DRAFT_URL:\n \"/api/lenders/<%id%>/categories/land-bank/draft\",\n LENDERS_ADMIN_LANDBANK_VERIFY_DRAFT_URL:\n \"/api/lenders/<%id%>/categories/land-bank/draft/system-user\",\n\n LENDERS_RURAL_VERIFY_DRAFT_URL:\n \"/api/lenders/<%id%>/categories/rural/draft\",\n LENDERS_ADMIN_RURAL_VERIFY_DRAFT_URL:\n \"/api/lenders/<%id%>/categories/rural/draft/system-user\",\n\n LENDERS_LOANS_DONE_WITH_YOU: \"/api/lenders/<%id%>/loans/done-with-you\",\n\n //\n\n // Permissions\n SYSTEM_PERMISSIONS_URL: \"/api/roles/system-permissions\",\n SYSTEM_PERMISSIONS_URL_ADMIN: \"/api/roles/system-permissions/admin\",\n\n // Lookup Url\n POSITIONS_LOOKUP_URL: \"/api/users/position/search-lookup\",\n STATES_LOOKUP_URL: \"/api​/users​/states​/search-lookup\",\n\n // Search Box Lookup\n SEARCH_BOX_URL: \"/api/search\",\n SEARCH_BOX_FOR_SYSTEM_USER_URL:\"/api/search/system-user\",\n\n // Lenders Lookup\n LENDERS_FIRST_RANKING_SECURITY_TYPE_LOOKUP_URL:\n \"/api/lenders/categories/first-ranking/security-type/search-lookup\",\n LENDERS_SECOND_RANKING_SECURITY_TYPE_LOOKUP_URL:\n \"/api/lenders/categories/second-ranking/security-type/search-lookup\",\n LENDERS_CONSTRUCTION_SECURITY_TYPE_LOOKUP_URL:\n \"/api/lenders/categories/construction/security-type/search-lookup\",\n LENDERS_MEZZANINE_SECURITY_TYPE_LOOKUP_URL:\n \"/api/lenders/categories/mezzanine/security-type/search-lookup\",\n LENDERS_LAND_BANK_ZONING_LOOKUP_URL:\n \"/api/lenders/categories/land-bank/zoning/search-lookup\",\n LENDERS_LAND_BANK_AGRICULTURE_TYPE_LOOKUP_URL:\n \"/api/lenders/categories/rural/agriculture-type/search-lookup\",\n LENDERS_STATES_SUBURBS_LOOKUP_URL:\n \"/api/lenders/states-suburbs/search-lookup\",\n LENDERS_STATES_REGIONS_LOOKUP_URL:\n \"/api/lenders/states-regions/search-lookup\",\n LENDERS_DISTANCES_LOOKUP_URL: \"/api/lenders/distances/search-lookup\",\n LENDERS_SEARCH_LOOKUP_URL: \"/api/lenders/search-lookup\",\n LENDERS_SEARCH_LOOKUP_SYSTEM_USER_URL:\n \"/api/lenders/search-lookup/system-user\",\n\n //Brokers Lookup\n BROKERS_SEARCH_LOOKUP_URL: \"/api/brokers/search-lookup\",\n BROKERS_SEARCH_LOOKUP_SYSTEM_USER_URL:\n \"/api/brokers/search-lookup/system-user\",\n\n // Matches\n LENDERS_MATCHES_STATUS_LOOKUP_URL: \"/api/matches/status/search-lookup/\",\n LENDERS_ADMIN_MATCHES_STATUS_LOOKUP_URL:\n \"/api/matches/status/search-lookup/system-user\",\n UPDATE_MATCHES_STATUS_URL: \"/api/matches/status/omicron\",\n UPDATE_MATCHES_STATUS_LENDER_URL: \"/api/matches/status/lender\",\n UPDATE_MATCHES_STATUS_BROKER_URL: \"/api/matches/status/broker\",\n\n // Law Firm\n LAW_FIRM_DETAIL_URL: \"/api/lawfirms/<%id%>\",\n LAW_FIRM_SELF_DETAIL_URL: \"/api/lawfirms/<%id%>/me\",\n LAW_FIRM_DETAIL_SYSTEM_USER_URL: \"/api/lawfirms/<%id%>/system-user\",\n LAW_FIRM_PAUSE_PROFILE_URL: \"/api/lawfirms/<%id%>/pause-profile\",\n LAW_FIRM_ACTIVATE_PROFILE_URL: \"/api/lawfirms/<%id%>/activate-profile\",\n LAW_FIRM_PROFESSIONAL_DETAIL_URL:\n \"/api/lawfirms/<%id%>/detail/professional\",\n LAW_FIRM_PROFESSIONAL_DETAIL_SYSTEM_USER_URL:\n \"/api/lawfirms/<%id%>/detail/professional/system-user\",\n LAW_FIRM_PERSONAL_DETAIL_URL: \"/api/lawfirms/<%id%>/detail/personal\",\n LAW_FIRM_PERSONAL_DETAIL_SYSTEM_USER_URL:\n \"/api/lawfirms/<%id%>/detail/personal/system-user\",\n LAW_FIRM_FILE_NOTES_URL: \"/api/lawfirms/<%id%>/file-notes\",\n LAW_FIRM_FILE_NOTES_DELETE_URL:\n \"/api/lawfirms/<%id%>/file-notes/delete\",\n LAW_FIRM_FILE_NOTES_SYSTEM_USER_URL:\n \"/api/lawfirms/<%id%>/file-notes/system-user\",\n LAW_FIRM_FILE_NOTES_DELETE_SYSTEM_USER_URL:\n \"/api/lawfirms/<%id%>/file-notes/delete/system-user\",\n\n // Marketing Email Lookups\n MARKETING_LOOKUP_COMPANIES_URL:\n \"/api/marketing-email/company/search-lookup\",\n MARKETING_LOOKUP_USERS_URL: \"/api/marketing-email/user/search-lookup\",\n MARKETING_LOOKUP_STATE_URL: \"/api/marketing-email/state/search-lookup\",\n MARKETING_LOOKUP_USER_TYPE_URL:\n \"/api/marketing-email/user-type/search-lookup\",\n MARKETING_LOOKUP_VISIBLE_USER_URL:\n \"/api/marketing-email/visible-user/search-lookup\",\n MARKETING_LOOKUP_CATEGORY_SUBSCRIBE_URL:\n \"/api/marketing-email/category-subscribe/search-lookup\",\n MARKETING_LOOKUP_DAYS_SUBSCRIBE_URL:\n \"/api/marketing-email/days-subscribe/search-lookup\",\n MARKETING_LOOKUP_SENDERS_URL: \"/api/marketing-email/sender/search-lookup\",\n\n // Bulk Email\n BULK_EMAIL_RECIPIENTS_LOOKUP_URL: \"/api/bulk-email/recipients/search-lookup\",\n BULK_EMAIL_SEND_URL: \"/api/bulk-email/send\",\n BULK_EMAIL_TEST_URL: \"/api/bulk-email/send/test-email\",\n\n // Marketing Email Send endpoints\n MARKETING_SEND_COMAPANY_URL: \"/api/marketing-email/send/company\",\n MARKETING_SEND_USER_URL: \"/api/marketing-email/send/user\",\n MARKETING_SEND_TEST_URL: \"/api/marketing-email/send/test-email\",\n // Public Brokers/Loans\n PUBLIC_BROKER_DETAILS_URL: \"/api/general-public/broker/<%id%>\",\n PUBLIC_MATCHING_LOANS_FOR_BROKER_URL: \"/api/general-public/broker/<%id%>/loans/search\",\n PUBLIC_BROKER_DETAILS_CURRENT_LOANS_URL: \"/api/general-public/loans/broker/<%id%>/current\",\n PUBLIC_BROKER_DETAILS_DISCHARGED_LOANS_URL: \"/api/general-public/loans/broker/<%id%>/discharged\",\n PUBLIC_LOANS_DETAILS_URL: \"/api/general-public/loans/<%id%>/details\",\n PUBLIC_LOANS_DETAILS_ATTRIBUTED_BROKERS_URL: \"/api/general-public/loans/<%id%>/details/brokers\",\n PUBLIC_LOANS_CREDIT_LOOKUP: \"/api/general-public/loans/credits/search-lookup\",\n PUBLIC_LOANS_SUBDIVISION_TYPE_LOOKUP: \"/api/general-public/loans/credits/search-lookup\",\n\n // Loans History\n LOANS_LOGS_URL: \"/api/loans/<%id%>/logs\",\n LOANS_LOGS_AS_SYSTEM_USER_URL: \"/api/loans/<%id%>/logs/system-user\",\n LOANS_LOGS_SNAPSHOT_URL: \"/api/loans/<%loanId%>/logs/<%logId%>\",\n LOANS_LOGS_SNAPSHOT_AS_SYSTEM_USER_URL: \"/api/loans/<%loanId%>/logs/<%logId%>/system-user\",\n\n // Email preferences\n EMAIL_PREFERENCES_URL: \"/api/email-preferences/<%token%>\",\n };\n ApiUrlHandler.instance = this;\n }\n\n return ApiUrlHandler.instance;\n }\n\n /**\n * @typedef ConstructEndpointParams\n * @property {string} endpoint\n * @property {Object=} options\n * @property {boolean=} isMocked\n * \n * @param {ConstructEndpointParams} param \n * @returns {string}\n * \n * \n * Options contain any amount of properties to be extracted and replaced in endpoint string using the \n * template of <%property%>\n */\n constructEndpoint({ endpoint, options = {}, isMocked }) {\n // If endpoint is not in the apiUrls, it's likely a raw URL\n if (!(endpoint in this.apiUrls)) {\n return isMocked\n ? endpoint\n : env.baseurl + templateEngine(endpoint, options);\n }\n\n return isMocked\n ? this.apiUrls[endpoint]\n : env.baseurl + templateEngine(this.apiUrls[endpoint], options);\n }\n}\n\nconst instance = new ApiUrlHandler();\nObject.freeze(instance);\n\nexport const apiUrls = instance.apiUrls;\nexport default instance;\n","import { http } from \"../libs/http\";\nimport ResponseHandler from \"../libs/response\";\nimport { memberAction } from \"../constants/action-type/index\";\nimport _ from \"lodash\";\nimport APIHelper from \"../libs/apiHelper\";\nimport APIHandler from \"../constants/apiUrl\";\nimport history from \"../routes/history\";\n\nconst {\n LOGIN,\n SIGNUP,\n FORGOT_PASSWORD,\n USER_DETAIL,\n AUTH_IN_PROGRESS,\n AUTH_ERROR,\n CLEARDOWN,\n USER_AUTHORIZATION\n} = memberAction;\n\n/**\n * @typedef IHeader\n * @property {string=} title\n * @property {string=} action\n * @property {string=} page\n * @property {boolean=} enableBack\n * @property {boolean=} showSettings\n * @property {boolean=} showMasterSwitch\n * @property {boolean=} showIsProfileActive\n * @property {boolean=} hasSwitchProfile\n * @property {boolean=} editMode\n * @property {boolean=} showNotesButton\n * @property {boolean=} showOmicronBDM\n * @property {?string=} omicronBdm\n * @property {boolean=} showPageTitle\n * @property {boolean=} allowSwitchProfile\n * @property {boolean=} showSearchBox\n * \n * @typedef UpdateHeaderProps\n * @property {IHeader} header\n * \n * @param {UpdateHeaderProps} param \n * @returns \n */\nexport function updateHeader({ header }) {\n return dispatch => {\n return new Promise(async (resolve, reject) => {\n let response = { status: 200, data: header };\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data,\n !_.isEmpty(header) ? \"UPDATE_HEADER\" : \"CLEAR_HEADER\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n };\n}\n\nexport function getUserData() {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const USER_DETAIL_URL = APIHelper.constructEndpoint({\n endpoint: \"IDENTITY_URL\",\n options: {},\n isMocked: true\n });\n const response = await http.get(USER_DETAIL_URL);\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(ResponseHandler.validObject(response, USER_DETAIL))\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n}\n\nexport function login(formData) {\n const { username } = formData;\n\n return dispatch =>\n new Promise(async (resolve, reject) => {\n let userMode = \"\";\n const LOGIN_URL = \"\";\n switch (username) {\n case \"admin@email.com\":\n userMode = \"admin\";\n break;\n case \"client@email.com\":\n userMode = \"client\";\n break;\n default:\n userMode = \"admin\";\n }\n const response = await http.get(LOGIN_URL);\n\n if (response) {\n localStorage.setItem(\"authentication\", JSON.stringify(response.data));\n localStorage.setItem(\"userMode\", userMode);\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(ResponseHandler.validObject(response, LOGIN))\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }\n }).catch(async err => {\n throw err.message;\n });\n}\n\nexport function signUp(formData) {\n //const { firstName, lastName, email, password } = formData;\n\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const SIGNUP_URL = \"\";\n const response = await http.post(SIGNUP_URL, formData);\n if (response && response.data) {\n if (Object.keys(response.data).length !== 0) {\n localStorage.setItem(\"authentication\", JSON.stringify(response.data));\n return resolve(\n dispatch({\n type: SIGNUP,\n data: response.data\n })\n );\n } else {\n return resolve(\n dispatch({\n type: \"ERROR\",\n data: response.statusText\n })\n );\n }\n }\n }).catch(async err => {\n throw err.message;\n });\n}\n\nexport function forgotPassword(formData) {\n //const { username } = formData;\n\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const FORGOT_PASSWORD_URL = \"\";\n const response = await http.post(FORGOT_PASSWORD_URL, formData);\n if (response && response.data) {\n if (Object.keys(response.data).length !== 0) {\n return resolve(\n dispatch({\n type: FORGOT_PASSWORD,\n data: response.data\n })\n );\n } else {\n return resolve(\n dispatch({\n type: \"ERROR\",\n data: response.statusText\n })\n );\n }\n }\n }).catch(async err => {\n throw err.message;\n });\n}\n\nexport function logOut() {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n localStorage.setItem(\"authentication\", null);\n return resolve({\n status: true\n });\n }).catch(async err => {\n throw err.message;\n });\n}\n\n// Auth code copied form global dashbaord\nconst auth = {};\n\nexport function signinUser(callback) {\n return function(dispatch) {\n dispatch({ type: AUTH_IN_PROGRESS });\n auth.signin();\n };\n}\n\nexport function checkSession() {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const response = await auth.checkSession();\n }).catch(async err => {\n throw err.message;\n });\n}\n\nexport const getUserClaims = role => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const date = new Date();\n const timestamp = date.getTime();\n const url = APIHandler.constructEndpoint({\n endpoint: \"IDENTITY_URL\",\n isMocked: true\n });\n const response = await http.get(url);\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(response.data.result, \"UPDATE_CLAIMS\")\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const getProfileInfo = () => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n try {\n if (_.isNull(localStorage.getItem(\"access_token\"))) auth.signout();\n const response = await auth.getProfile();\n if (response)\n return resolve(\n dispatch(ResponseHandler.validObject(response, \"USER_PROFILE\"))\n );\n } catch (ex) {\n if (ex.statusCode === 401) auth.signout();\n throw ex;\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const getUserAuthorization = ({ id }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHelper.constructEndpoint({\n endpoint: \"CALLBACK\",\n isMocked: false\n });\n const response = await http.get(url);\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data.result,\n USER_AUTHORIZATION\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n });\n};\n\nexport const updateNavBar = ({\n title,\n action,\n enableBack,\n total,\n buttonText\n}) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n return dispatch({\n type: \"SET_HEADER\",\n data: { title, action, enableBack, total, buttonText }\n });\n });\n};\n\nexport function authError(error) {\n const timestamp = Date.now();\n return {\n type: AUTH_ERROR,\n error,\n timestamp\n };\n}\n\nexport function signoutUser() {\n history.push(\"/logout\", { local: true });\n}\n\nexport function cleardown() {\n return {\n type: CLEARDOWN\n };\n}\n\nexport function updateRouteOptions({ routeOptions }) {\n return dispatch => {\n return new Promise(async (resolve, _reject) => {\n let response = { status: 200, data: routeOptions };\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(response.data, \"UPDATE_ROUTE_OPTIONS\")\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n };\n}\n","import React, {Component} from 'react'\nimport {Button, Col, Form, Icon, Input, Row} from 'antd';\nimport {Link} from 'react-router-dom';\nimport history from '../routes/history';\nimport {connect} from 'react-redux';\nimport {forgotPassword, getUserData, login, signUp} from '../actions/member';\n\nconst FormItem = Form.Item;\n\nclass NormalSignUpForm extends Component {\n constructor(props) {\n super(props);\n this.state = {\n loadingSubmit: false,\n errorDisplay: 'none',\n }\n }\n\n handleSubmit = (e) => {\n e.preventDefault();\n this.props.form.validateFields((err, values) => {\n if (err) {\n console.log(err)\n return;\n }\n this.setState({loadingSubmit: true});\n this.props.onSignUpUser(values).then((resp, reject) => {\n if (resp && resp.type === 'SIGNUP') {\n history.push('/');\n } else {\n // handle reject\n console.log('login rejects', reject);\n }\n })\n });\n }\n\n compareToFirstPassword = (rule, value, callback) => {\n const form = this.props.form;\n if (value && value !== form.getFieldValue('password')) {\n callback('Two passwords that you enter is inconsistent!');\n } else {\n callback();\n }\n }\n\n validateToNextPassword = (rule, value, callback) => {\n const form = this.props.form;\n if (value) {\n form.validateFields(['confirm'], {force: true});\n }\n callback();\n }\n\n render() {\n const {getFieldDecorator} = this.props.form;\n return (\n
\n\n \n \n {this.props.error}\n \n \n\n \n \n \n {getFieldDecorator('firstName', {\n rules: [\n {required: true, message: 'Please input your first name'},\n ],\n })(\n \n )}\n \n \n\n\n \n \n {getFieldDecorator('lastName', {\n rules: [\n {required: true, message: 'Please input your Last name'},\n ],\n })(\n \n )}\n \n \n \n\n \n {getFieldDecorator('email', {\n rules: [\n {type: 'email', message: 'The input is not valid E-mail!'},\n {required: true, message: 'Please input your email'},\n ],\n })(\n }\n placeholder={'yourname@example.com'}\n size=\"large\"/>\n )}\n \n\n \n {getFieldDecorator('password', {\n rules: [{required: true, message: 'Please input your Password'},\n {validator: this.validateToNextPassword},\n ],\n })(\n }\n type=\"password\" placeholder={\"********\"}\n size=\"large\"/>\n )}\n \n\n \n {getFieldDecorator('confirmPassword', {\n rules: [{\n required: true, message: 'Please confirm your password!',\n }, {\n validator: this.compareToFirstPassword,\n }],\n })(\n }\n type=\"password\" placeholder={\"********\"}\n size=\"large\"/>\n )}\n \n\n \n \n Go back and login\n \n \n );\n }\n}\nconst mapStateToProps = state => ({\n member: state.member || {},\n});\n\nconst mapDispatchToProps = {\n getUserData,\n onLoginUser: login,\n onSignUpUser: signUp,\n onForgotPassword: forgotPassword,\n};\n\nexport default connect(mapStateToProps, mapDispatchToProps)(Form.create()(NormalSignUpForm));\n","import React from 'react';\nimport {Button, Form, Icon, Input} from 'antd';\nimport {Link} from 'react-router-dom';\nimport {connect} from 'react-redux';\nimport {forgotPassword, getUserData, login, signUp} from '../actions/member';\n\nconst FormItem = Form.Item;\n\nclass ForgotPassword extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n loadingSubmit: false,\n errorDisplay: 'none',\n }\n }\n\n handleSubmit = (e) => {\n e.preventDefault();\n this.props.form.validateFields((err, values) => {\n if (err) {\n console.log(err, 'error');\n return\n }\n this.setState({loadingSubmit: true})\n this.props.onForgotPassword(values).then((resp, reject) => {\n console.log(\"forgotPassword response\", resp, 'reject', reject);\n })\n });\n }\n\n\n render() {\n const {getFieldDecorator} = this.props.form;\n return (\n
\n \n
Recover Password
\n
\n\n \n \n {this.props.error}\n \n \n\n \n {getFieldDecorator('username', {\n rules: [\n {type: 'email', message: 'The input is not valid E-mail!'},\n {required: true, message: 'Please input your username'},\n ],\n })(\n }\n placeholder={'yourname@example.com'}\n size=\"large\"/>\n )}\n \n\n \n\n \n Go back and login\n \n \n );\n }\n}\n\nconst mapStateToProps = state => ({\n member: state.member || {},\n});\n\nconst mapDispatchToProps = {\n getUserData,\n onLoginUser: login,\n onSignUpUser: signUp,\n onForgotPassword: forgotPassword,\n};\n\nexport default connect(mapStateToProps, mapDispatchToProps)(Form.create()(ForgotPassword));\n","import Axios from \"axios\";\nimport ResponseHandler from \"../libs/response\";\nimport { errorDisplay } from \"../libs/utilities\";\n\n/**\n * @typedef {(dispatch) => Promise {\n const user = await authService.getUser();\n dispatch({\n type: GET_LOGGED_IN_USER_PROFILE,\n user:\n {\n ...user,\n permissions: processPermission(user),\n roles: processRoles(user)\n } ?? {}\n });\n };\n}\n\nexport function getLoggedInIndividualUserDetails() {\n return async dispatch => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.INDIVIDUAL_USER_DETAIL\n });\n\n try {\n const response = await http.get(url);\n return dispatch({\n type: INDIVIDUAL_USER_DETAIL,\n individualUser: response\n });\n } catch (err) {\n return processRequest(dispatch, err);\n }\n };\n}\n\nlet currentProfileSyncTimer = null;\n\nconst debouncedUpdateLastVisited = (dispatch, profileId, profileType) => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.ACCOUNTS_ME_LAST_VISITED\n });\n if (currentProfileSyncTimer) {\n clearTimeout(currentProfileSyncTimer);\n }\n\n currentProfileSyncTimer = setTimeout(() => {\n http.put(url, null, {\n profileId,\n profileType\n });\n }, 10000 /** 10 sec */);\n return dispatch({\n type: UPDATE_LAST_VISITED_PROFILE\n });\n};\n\nexport function updateActiveProfile(profileId, profileType) {\n return dispatch =>\n debouncedUpdateLastVisited(dispatch, profileId, profileType);\n}\n\nexport function getLastVisitedProfile() {\n return async dispatch => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.ACCOUNTS_ME_LAST_VISITED\n });\n\n try {\n const response = await http.get(url);\n return dispatch({\n type: LAST_VISITED_PROFILE,\n lastVisitedProfile: response\n });\n } catch (err) {\n return processRequest(dispatch, err);\n }\n };\n}\n\nexport function getUserAuthenticationStatus() {\n return async dispatch => {\n const isLoggedIn = await authService.isAuthenticated();\n\n dispatch({\n type: IS_USER_LOGGED_IN,\n isLoggedIn\n });\n };\n}\n\nexport function changeLoggedInUserPassword(changePasswordRequest) {\n return async dispatch => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.ACCOUNTS_PASSWORD_CHANGE\n });\n try {\n const response = await http.put(url, changePasswordRequest);\n return processRequest(dispatch, response, CHANGE_LOGGEDIN_USER_PASSWORD);\n } catch (err) {\n return processRequest(dispatch, err);\n }\n };\n}\n\nexport function logoutUser() {\n return async dispatch => {\n dispatch({\n type: USER_LOGGED_OUT,\n user: {}\n });\n };\n}\n","import { http } from \"../libs/http\";\nimport ResponseHandler from \"../libs/response\";\nimport APIHandler, { apiUrls } from \"../constants/apiUrl\";\nimport { processRequest } from \"./asyncActionProcessor\";\nimport { GET_LENDER_PROFILE } from \"../constants/action-type/lenderProfile\";\nimport { ADMIN_USER, LAW_FIRM_USER, LENDER_USER } from \"../constants/systemUsers\";\nimport {\n SAVE_INDIVIDUAL_PROFILE,\n CLEAR_CURRENT_PROFILE_PICTURE,\n CLEAR_PROFILE_DETAILS,\n GET_INDIVIDUAL_DETAILS,\n UPDATE_CURRENT_PROFILE_LOADING,\n UPDATE_ACTIVE_PORTRAIT,\n GET_LAW_FIRM_PROFILE\n} from \"../constants/action-type/individual\";\nimport { getProductType, mustBeArray, requestBuilder } from \"../libs/utilities\";\nimport { GET_BROKER_PROFILE } from \"../constants/action-type/brokers\";\nimport {\n SET_ACTIVE_PROFILE,\n SELECT_ACTIVE_PROFILE,\n LENDER_PROFILE_ACTIVE,\n BROKER_PROFILE_ACTIVE,\n SET_TAB_PROFILE_SETTINGS\n} from \"../constants/action-type/profile\";\nimport history from \"../routes/history\";\nimport { updateActiveProfile } from \"./authorization\";\nimport { isSystemUserPolicy } from \"../Common/Authorization/policies/isSystemUserPolicy\";\n\nexport function updateIndividualProfile(\n id,\n details,\n imageBlob,\n logoBlob,\n isSystemUser\n) {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint: isSystemUser\n ? apiUrls.INDIVIDUAL_DETAIL_SYSTEM_USER_URL\n : apiUrls.INDIVIDUAL_DETAIL_URL,\n options: { id }\n });\n\n try {\n const data = new FormData();\n if (imageBlob) {\n data.append(\"0\", imageBlob);\n }\n\n if (logoBlob) {\n data.append(\"logo\", logoBlob);\n }\n data.append(\"individual\", JSON.stringify(details));\n const response = await http.putFormData(url, data);\n resolve(processRequest(dispatch, response, SAVE_INDIVIDUAL_PROFILE));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n}\n\nexport function updateIndividualProfileV2(\n details,\n isSystemUser,\n type,\n id,\n generalView = false\n) {\n return dispatch =>\n new Promise(async resolve => {\n let apiUrl = \"\";\n switch (type) {\n case \"lender\":\n apiUrl = isSystemUser\n ? apiUrls.LENDER_UPDATE_SYSTEM_USER_URL\n : apiUrls.LENDER_UPDATE_INDIVIDUAL_URL;\n break;\n case LAW_FIRM_USER:\n apiUrl = isSystemUser\n ? apiUrls.LAW_FIRM_DETAIL_SYSTEM_USER_URL\n : apiUrls.LAW_FIRM_DETAIL_URL;\n break;\n default:\n apiUrl = isSystemUser\n ? apiUrls.BROKER_UPDATE_SYSTEM_USER_URL\n : apiUrls.BROKER_UPDATE_INDIVIDUAL_URL;\n break;\n }\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrl,\n options: { id }\n });\n\n try {\n const data = new FormData();\n let tempPortraits = mustBeArray(details.portraits);\n tempPortraits = tempPortraits.map(portrait => {\n let tempPortrait = { ...portrait };\n if (tempPortrait.previewProfileImage) {\n data.append(\n `individual${tempPortrait.previewProfileImage.individualId}`,\n tempPortrait.previewProfileImage.file\n );\n tempPortrait.imageFileForDeletion = tempPortrait.imageFile\n ? { fileId: tempPortrait.imageFile.fileId }\n : null;\n tempPortrait.individualImageFileDto = tempPortrait.imageFile;\n }\n\n delete tempPortrait.state;\n delete tempPortrait.imageFile;\n delete tempPortrait.previewProfileImage;\n delete tempPortrait.hasAcceptedInvitation;\n\n if (!isSystemUser) {\n delete tempPortrait.firstname;\n delete tempPortrait.lastname;\n delete tempPortrait.mobileNumber;\n delete tempPortrait.email;\n }\n\n return tempPortrait;\n });\n\n let payload = { ...details, portraits: tempPortraits };\n if (payload.previewCompanyLogo) {\n data.append(\"logo\", payload.previewCompanyLogo.file);\n delete payload.previewCompanyLogo;\n payload.logoFileForDeletion = payload.logoFile\n ? { fileId: payload.logoFile.fileId }\n : null;\n }\n delete payload.individualId;\n data.append(\"company\", JSON.stringify(payload));\n const response = await http.putFormData(url, data);\n resolve(processRequest(dispatch, response, SAVE_INDIVIDUAL_PROFILE));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n}\n\nexport const deleteIndividualPortrait = ({ id, cancelToken }) => {\n return dispatch =>\n new Promise(async resolve => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.INDIVIDUALS_DELETE_URL,\n options: { id }\n });\n const response = await http.post(url, {}, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"DELETE_INDIVIDUAL_PORTRAIT\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport function clearCurrentProfilePicture() {\n return async dispatch => {\n return dispatch({\n type: CLEAR_CURRENT_PROFILE_PICTURE\n });\n };\n}\n\nexport function setProfileTabSettings(resetActiveTab) {\n return dispatch => {\n dispatch({\n type: SET_TAB_PROFILE_SETTINGS,\n resetActiveTab\n });\n };\n}\n\nexport function getIndividualDetails({ id, userType = LENDER_USER, notClearProfileImage }) {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n if (!notClearProfileImage) {\n dispatch(clearCurrentProfilePicture());\n }\n const url = APIHandler.constructEndpoint({\n endpoint: userType === LAW_FIRM_USER ? apiUrls.LAW_FIRM_DETAIL_URL : apiUrls.INDIVIDUALS_DETAIL_URL,\n options: { id }\n });\n try {\n const response = await http.get(url);\n resolve(processRequest(dispatch, response, GET_INDIVIDUAL_DETAILS));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n}\n\nexport function getBrokerProfile({\n id,\n userType,\n notClearProfileImage,\n doNotResetCurrentTab,\n isUserViewingSelfProfile,\n generalView = false\n}) {\n return dispatch =>\n new Promise(async resolve => {\n\n if (!id) {\n throw new Error(\"Id is required\");\n }\n if (!notClearProfileImage) {\n dispatch(clearCurrentProfilePicture());\n }\n dispatch(setProfileTabSettings(!doNotResetCurrentTab));\n const url = generalView ? APIHandler.constructEndpoint({\n endpoint: apiUrls.PUBLIC_BROKER_DETAILS_URL,\n options: { id }\n }) : APIHandler.constructEndpoint({\n endpoint:\n userType === ADMIN_USER\n ? apiUrls.BROKER_DETAIL_SYSTEM_USER_URL\n : isUserViewingSelfProfile\n ? apiUrls.BROKER_SELF_DETAIL_URL\n : apiUrls.BROKER_DETAIL_URL,\n options: { id }\n });\n try {\n const response = await http.get(url);\n resolve(processRequest(dispatch, response, GET_BROKER_PROFILE));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n}\n\nexport function getLenderProfile({\n id,\n userType,\n notClearProfileImage,\n doNotResetCurrentTab,\n isUserViewingSelfProfile\n}) {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n if (!notClearProfileImage) {\n dispatch(clearCurrentProfilePicture());\n }\n dispatch(setProfileTabSettings(!doNotResetCurrentTab));\n const url = APIHandler.constructEndpoint({\n endpoint:\n userType === ADMIN_USER\n ? apiUrls.LENDERS_DETAIL_SYSTEM_USER_URL\n : isUserViewingSelfProfile\n ? apiUrls.LENDERS_SELF_DETAIL_URL\n : apiUrls.LENDERS_DETAIL_URL,\n options: { id }\n });\n try {\n const response = await http.get(url);\n resolve(processRequest(dispatch, response, GET_LENDER_PROFILE));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n}\n\nexport function getLendersFirstRankingProfile({ id }) {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.LENDERS_FIRST_RANKING_DETAIL_PROFILE_URL,\n options: { id }\n });\n try {\n const response = await http.get(url);\n resolve(\n processRequest(\n dispatch,\n response,\n \"GET_LENDERS_FIRST_RANKING_PROFILE\"\n )\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n}\n\nexport function getLendersSecondRankingProfile({ id }) {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.LENDERS_SECOND_RANKING_DETAIL_PROFILE_URL,\n options: { id }\n });\n try {\n const response = await http.get(url);\n resolve(\n processRequest(\n dispatch,\n response,\n \"GET_LENDERS_SECOND_RANKING_PROFILE\"\n )\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n}\n\nexport function getLendersConstructionProfile({ id }) {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.LENDERS_CONSTRUCTION_DETAIL_PROFILE_URL,\n options: { id }\n });\n try {\n const response = await http.get(url);\n resolve(\n processRequest(dispatch, response, \"GET_LENDERS_CONSTRUCTION_PROFILE\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n}\n\nexport function getLendersMezzanineProfile({ id }) {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.LENDERS_MEZZANINE_DETAIL_PROFILE_URL,\n options: { id }\n });\n try {\n const response = await http.get(url);\n resolve(\n processRequest(dispatch, response, \"GET_LENDERS_MEZZANINE_PROFILE\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n}\n\nexport function getLendersLandBankProfile({ id }) {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.LENDERS_LANDBANK_DETAIL_PROFILE_URL,\n options: { id }\n });\n try {\n const response = await http.get(url);\n resolve(\n processRequest(dispatch, response, \"GET_LENDERS_LANDBANK_PROFILE\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n}\n\nexport function getLendersRuralProfile({ id }) {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.LENDERS_RURAL_DETAIL_PROFILE_URL,\n options: { id }\n });\n try {\n const response = await http.get(url);\n resolve(\n processRequest(dispatch, response, \"GET_LENDERS_RURAL_PROFILE\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n}\n\nexport const saveProfile = ({ cancelToken, payLoad }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({ endpoint: \"OPEN_CASES_URL\" });\n const response = await http.post(url, payLoad, cancelToken);\n\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"SAVE_PROFILE\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const saveFirstRankingField = ({ cancelToken, payLoad, id }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint:\n payLoad && payLoad.lastVerifiedDate\n ? apiUrls.LENDERS_FIRST_RANKING_DETAIL_PROFILE_URL\n : apiUrls.LENDERS_FIRST_RANKING_VERIFY_DRAFT_URL,\n options: { id }\n });\n const response = await http.put(url, payLoad, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"SAVE_PROFILE\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const saveFirstRankingFieldAsAdmin = ({ cancelToken, payLoad, id }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint:\n payLoad && payLoad.lastVerifiedDate\n ? apiUrls.LENDERS_ADMIN_FIRST_RANKING_DETAIL_PROFILE_URL\n : apiUrls.LENDERS_ADMIN_FIRST_RANKING_VERIFY_DRAFT_URL,\n options: { id }\n });\n const response = await http.put(url, payLoad, cancelToken);\n\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"SAVE_PROFILE\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const saveSecondRankingField = ({ cancelToken, payLoad, id }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint:\n payLoad && payLoad.lastVerifiedDate\n ? apiUrls.LENDERS_SECOND_RANKING_DETAIL_PROFILE_URL\n : apiUrls.LENDERS_SECOND_RANKING_VERIFY_DRAFT_URL,\n options: { id }\n });\n const response = await http.put(url, payLoad, cancelToken);\n\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"SAVE_PROFILE\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const saveSecondRankingFieldAsAdmin = ({ cancelToken, payLoad, id }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint:\n payLoad && payLoad.lastVerifiedDate\n ? apiUrls.LENDERS_ADMIN_SECOND_RANKING_DETAIL_PROFILE_URL\n : apiUrls.LENDERS_ADMIN_SECOND_RANKING_VERIFY_DRAFT_URL,\n options: { id }\n });\n const response = await http.put(url, payLoad, cancelToken);\n\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"SAVE_PROFILE\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const saveConstructionField = ({ cancelToken, payLoad, id }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint:\n payLoad && payLoad.lastVerifiedDate\n ? apiUrls.LENDERS_CONSTRUCTION_DETAIL_PROFILE_URL\n : apiUrls.LENDERS_CONSTRUCTION_VERIFY_DRAFT_URL,\n options: { id }\n });\n const response = await http.put(url, payLoad, cancelToken);\n\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"SAVE_PROFILE\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const saveConstructionFieldAsAdmin = ({ cancelToken, payLoad, id }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint:\n payLoad && payLoad.lastVerifiedDate\n ? apiUrls.LENDERS_ADMIN_CONSTRUCTION_DETAIL_PROFILE_URL\n : apiUrls.LENDERS_ADMIN_CONSTRUCTION_VERIFY_DRAFT_URL,\n options: { id }\n });\n const response = await http.put(url, payLoad, cancelToken);\n\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"SAVE_PROFILE\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const saveMezzanineField = ({ cancelToken, payLoad, id }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint:\n payLoad && payLoad.lastVerifiedDate\n ? apiUrls.LENDERS_MEZZANINE_DETAIL_PROFILE_URL\n : apiUrls.LENDERS_MEZZANINE_VERIFY_DRAFT_URL,\n options: { id }\n });\n const response = await http.put(url, payLoad, cancelToken);\n\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"SAVE_PROFILE\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const saveMezzanineFieldAsAdmin = ({ cancelToken, payLoad, id }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint:\n payLoad && payLoad.lastVerifiedDate\n ? apiUrls.LENDERS_ADMIN_MEZZANINE_DETAIL_PROFILE_URL\n : apiUrls.LENDERS_ADMIN_MEZZANINE_VERIFY_DRAFT_URL,\n options: { id }\n });\n const response = await http.put(url, payLoad, cancelToken);\n\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"SAVE_PROFILE\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const saveLandBankField = ({ cancelToken, payLoad, id }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint:\n payLoad && payLoad.lastVerifiedDate\n ? apiUrls.LENDERS_LANDBANK_DETAIL_PROFILE_URL\n : apiUrls.LENDERS_LANDBANK_VERIFY_DRAFT_URL,\n options: { id }\n });\n const response = await http.put(url, payLoad, cancelToken);\n\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"SAVE_PROFILE\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const saveLandBankFieldAsAdmin = ({ cancelToken, payLoad, id }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint:\n payLoad && payLoad.lastVerifiedDate\n ? apiUrls.LENDERS_ADMIN_LANDBANK_DETAIL_PROFILE_URL\n : apiUrls.LENDERS_ADMIN_LANDBANK_VERIFY_DRAFT_URL,\n options: { id }\n });\n const response = await http.put(url, payLoad, cancelToken);\n\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"SAVE_PROFILE\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const saveRuralField = ({ cancelToken, payLoad, id }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint:\n payLoad && payLoad.lastVerifiedDate\n ? apiUrls.LENDERS_RURAL_DETAIL_PROFILE_URL\n : apiUrls.LENDERS_RURAL_VERIFY_DRAFT_URL,\n options: { id }\n });\n const response = await http.put(url, payLoad, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"SAVE_PROFILE\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const saveRuralFieldAsAdmin = ({ cancelToken, payLoad, id }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint:\n payLoad && payLoad.lastVerifiedDate\n ? apiUrls.LENDERS_ADMIN_RURAL_DETAIL_PROFILE_URL\n : apiUrls.LENDERS_ADMIN_RURAL_VERIFY_DRAFT_URL,\n options: { id }\n });\n const response = await http.put(url, payLoad, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"SAVE_PROFILE\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\n// Matches\nexport const listLendersMatches = ({\n cancelToken,\n queryParams = {},\n id,\n userType\n}) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint:\n userType === ADMIN_USER\n ? apiUrls.LENDERS_ADMIN_MATCHES_URL\n : apiUrls.LENDERS_MATCHES_URL,\n options: { id }\n });\n const response = await requestBuilder(\n null,\n url,\n queryParams,\n cancelToken\n );\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"LIST_LENDERS_MATCHES\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const updateMatches = ({ cancelToken, payLoad = {} }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.UPDATE_MATCHES_STATUS_URL,\n options: {}\n });\n const response = await http.put(url, payLoad, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"UPDATE_LENDERS_MATCHES\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const updateMatchesLender = ({ cancelToken, payLoad = {} }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.UPDATE_MATCHES_STATUS_LENDER_URL,\n options: {}\n });\n const response = await http.put(url, payLoad, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n // TODO: Assign correct reducer\n \"UPDATE_LENDERS_MATCHES\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const updateMatchesBroker = ({ cancelToken, payLoad = {} }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.UPDATE_MATCHES_STATUS_BROKER_URL,\n options: {}\n });\n const response = await http.put(url, payLoad, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n // TODO: Assign correct reducer\n \"UPDATE_LENDERS_MATCHES\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\n// Add Profiles\nexport const addBrokerProfile = ({ cancelToken, payLoad = {}, id }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.COMPANIES_ADD_BROKER_PROFILE_URL,\n options: { id }\n });\n const response = await http.post(url, payLoad, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"ADD_BROKER_PROFILE_URL\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\nexport const deleteBrokerProfile = ({ cancelToken, payLoad = {}, id }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.COMPANIES_BROKER_PROFILE_REMOVE_URL,\n options: { id }\n });\n const response = await http.post(url, payLoad, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"UPDATE_LENDERS_MATCHES\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const addLenderProfile = ({ cancelToken, payLoad = {}, id }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.COMPANIES_ADD_LENDER_PROFILE_URL,\n options: { id }\n });\n const response = await http.post(url, payLoad, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"ADD_LENDER_PROFILE\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\nexport const deleteLenderProfile = ({ cancelToken, payLoad = {}, id }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.COMPANIES_LENDER_PROFILE_REMOVE_URL,\n options: { id }\n });\n const response = await http.post(url, payLoad, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"LENDER_PROFILE_DELETE_URL\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport function setActiveProfile(brokerId, lenderId, active) {\n return (dispatch, store) =>\n new Promise(async resolve => {\n const response = {\n status: 200,\n data: {\n brokerId,\n lenderId,\n active\n }\n };\n const user = store().authorization.user;\n const isSystemUser = await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n if (active === BROKER_PROFILE_ACTIVE && isSystemUser) {\n await dispatch(updateActiveProfile(brokerId, \"BROKER\"));\n } else if (active === LENDER_PROFILE_ACTIVE && isSystemUser) {\n await dispatch(updateActiveProfile(lenderId, \"LENDER\"));\n }\n resolve(processRequest(dispatch, response, SET_ACTIVE_PROFILE));\n });\n}\n\nexport function clearProfileDetails () {\n return dispatch => {\n new Promise(async (resolve) => {\n const response = {\n type: CLEAR_PROFILE_DETAILS,\n status: 200,\n data: {}\n }\n return resolve(dispatch(response));\n\n }).catch(async error => {throw error.message});\n };\n}\n\nexport function updateProfileLoading (profileLoading) {\n return dispatch => {\n new Promise(async (resolve) => {\n const response = {\n type: UPDATE_CURRENT_PROFILE_LOADING,\n status: 200,\n data: profileLoading\n }\n return resolve(dispatch(response));\n\n }).catch(async error => {throw error.message});\n };\n}\n\nexport function switchActiveProfile(active) {\n return (dispatch, store) =>\n new Promise(async resolve => {\n const activeProfile = store().profile.activeProfile;\n await dispatch(\n setActiveProfile(activeProfile.brokerId, activeProfile.lenderId, active)\n );\n\n if (active === BROKER_PROFILE_ACTIVE) {\n history.push(`/users/${activeProfile.brokerId}/broker`);\n } else if (active === LENDER_PROFILE_ACTIVE) {\n history.push(`/users/${activeProfile.lenderId}/lender`);\n }\n\n const response = {\n status: 200,\n data: {}\n };\n resolve(processRequest(dispatch, response, SELECT_ACTIVE_PROFILE));\n });\n}\n\nexport function masterSwitchTurnOn({ id, profileType }) {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n\n try {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.MASTER_SWITCH_TURN_ON_URL,\n options: { id }\n });\n const response = await http.put(url, {});\n resolve(\n processRequest(\n dispatch,\n response,\n `${profileType.toUpperCase()}_MASTER_SWITCH_TURN_ON`\n )\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n}\nexport const getPersonalDetails = ({ id, userType, profileType=LENDER_USER }) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n let endpoint = \n userType === ADMIN_USER\n ? apiUrls.LENDERS_PERSONAL_DETAIL_SYSTEM_USER_URL\n : apiUrls.LENDERS_PERSONAL_DETAIL_URL;\n if(profileType === LAW_FIRM_USER){\n endpoint = userType === ADMIN_USER ? apiUrls.LAW_FIRM_PERSONAL_DETAIL_SYSTEM_USER_URL : apiUrls.LAW_FIRM_PERSONAL_DETAIL_URL\n }\n const url = APIHandler.constructEndpoint({\n endpoint,\n options: { id }\n });\n try {\n const response = await http.get(url);\n resolve(\n processRequest(\n dispatch,\n response,\n \"GET_LENDERS_PERSONAL_DETAIL_PROFILE\"\n )\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const getProfessionalDetails = ({ id, userType, profileType=LENDER_USER }) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n let endpoint = userType === ADMIN_USER\n ? apiUrls.LENDERS_PROFESSIONAL_DETAIL_SYSTEM_USER_URL\n : apiUrls.LENDERS_PROFESSIONAL_DETAIL_URL\n if(profileType === LAW_FIRM_USER){\n endpoint = userType === ADMIN_USER ? apiUrls.LAW_FIRM_PROFESSIONAL_DETAIL_SYSTEM_USER_URL : apiUrls.LAW_FIRM_PROFESSIONAL_DETAIL_URL\n }\n const url = APIHandler.constructEndpoint({\n endpoint,\n options: { id }\n });\n try {\n const response = await http.get(url);\n resolve(\n processRequest(\n dispatch,\n response,\n \"GET_LENDERS_PROFESSIONAL_DETAIL_PROFILE\"\n )\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport function masterSwitchTurnOff({ id, profileType }) {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.MASTER_SWITCH_TURN_OFF_URL,\n options: { id }\n });\n try {\n const response = await http.put(url, {});\n resolve(\n processRequest(\n dispatch,\n response,\n `${profileType.toUpperCase()}_MASTER_SWITCH_TURN_OFF`\n )\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n}\n\nexport const saveProfessionalDetailsField = ({\n payLoad,\n id,\n userType,\n profileType=LENDER_USER\n}) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n let endpoint = userType === ADMIN_USER\n ? apiUrls.LENDERS_PROFESSIONAL_DETAIL_SYSTEM_USER_URL\n : apiUrls.LENDERS_PROFESSIONAL_DETAIL_URL\n if(profileType === LAW_FIRM_USER){\n endpoint = userType === ADMIN_USER ? apiUrls.LAW_FIRM_PROFESSIONAL_DETAIL_SYSTEM_USER_URL : apiUrls.LAW_FIRM_PROFESSIONAL_DETAIL_URL\n }\n const url = APIHandler.constructEndpoint({\n endpoint,\n options: { id }\n });\n const response = await http.put(url, payLoad);\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"SAVE_PROFILE\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const savePersonalDetailsField = ({\n cancelToken,\n payLoad,\n id,\n userType,\n profileType=LENDER_USER\n}) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n let endpoint = \n userType === ADMIN_USER\n ? apiUrls.LENDERS_PERSONAL_DETAIL_SYSTEM_USER_URL\n : apiUrls.LENDERS_PERSONAL_DETAIL_URL;\n if(profileType === LAW_FIRM_USER){\n endpoint = userType === ADMIN_USER ? apiUrls.LAW_FIRM_PERSONAL_DETAIL_SYSTEM_USER_URL : apiUrls.LAW_FIRM_PERSONAL_DETAIL_URL\n }\n const url = APIHandler.constructEndpoint({\n endpoint,\n options: { id }\n });\n const response = await http.put(url, payLoad, cancelToken);\n\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"SAVE_PROFILE\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\n// Profile status\n\nexport function profileStatusTurnOff({ id, profileType }) {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n let apiUrl = \"\";\n switch(profileType) {\n case \"lender\":\n apiUrl = apiUrls.LENDER_PROFILE_STATUS_OFF_URL;\n break;\n case LAW_FIRM_USER:\n apiUrl = apiUrls.LAW_FIRM_PAUSE_PROFILE_URL;\n break;\n default:\n apiUrl = apiUrls.BROKER_PROFILE_STATUS_OFF_URL;\n break;\n }\n const url = APIHandler.constructEndpoint({\n endpoint:apiUrl,\n options: { id }\n });\n try {\n const response = await http.put(url, {});\n resolve(\n processRequest(\n dispatch,\n response,\n `${profileType.toUpperCase()}_PROFILE_STATUS_TURN_OFF`\n )\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n}\n\nexport function profileStatusTurnOn({ id, profileType }) {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n let endpoint = \"\";\n switch(profileType) {\n case \"lender\":\n endpoint = apiUrls.LENDER_PROFILE_STATUS_ON_URL;\n break;\n case LAW_FIRM_USER:\n endpoint = apiUrls.LAW_FIRM_ACTIVATE_PROFILE_URL;\n break;\n default:\n endpoint = apiUrls.BROKER_PROFILE_STATUS_ON_URL;\n break;\n }\n try {\n const url = APIHandler.constructEndpoint({\n endpoint,\n options: { id }\n });\n const response = await http.put(url, {});\n resolve(\n processRequest(\n dispatch,\n response,\n `${profileType.toUpperCase()}_PROFILE_STATUS_TURN_ON`\n )\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n}\n\nexport function toggleSubscriptions({ id, profileType, productType }) {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n\n try {\n const url = APIHandler.constructEndpoint({\n endpoint:\n profileType === \"lender\"\n ? apiUrls.LENDER_PRODUCT_STATUS_TOGGLE\n : apiUrls.BROKER_PRODUCT_STATUS_TOGGLE,\n options: { id, productType: getProductType({ field: productType }) }\n });\n const response = await http.put(url, {});\n resolve(\n processRequest(\n dispatch,\n response,\n `${profileType.toUpperCase()}_UPDATE_PRODUCT_STATUS`\n )\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n}\n\nexport const verifyFirstRankingFields = ({ id }) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.LENDERS_FIRST_RANKING_VERIFY_URL,\n options: { id }\n });\n try {\n const response = await http.get(url);\n resolve(\n processRequest(\n dispatch,\n response,\n \"GET_LENDERS_FIRST_RANKING_PROFILE\"\n )\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const verifyFirstRankingFieldsAsAdmin = ({ id }) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.LENDERS_ADMIN_FIRST_RANKING_VERIFY_URL,\n options: { id }\n });\n try {\n const response = await http.get(url);\n resolve(\n processRequest(\n dispatch,\n response,\n \"GET_LENDERS_FIRST_RANKING_PROFILE\"\n )\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const clearDetailsFieldsAsAdmin = ({ id, categoryType, cancelToken }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.LENDERS_ADMIN_CLEAR_DETAILS_URL,\n options: { id }\n });\n const response = await http.put(url, categoryType, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"SAVE_PROFILE\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const clearDetailsFields = ({ id, categoryType, cancelToken }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.LENDERS_CLEAR_DETAILS_URL,\n options: { id }\n });\n const response = await http.put(url, categoryType, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"SAVE_PROFILE\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const verifySecondRankingFields = ({ id }) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.LENDERS_SECOND_RANKING_VERIFY_URL,\n options: { id }\n });\n try {\n const response = await http.get(url);\n resolve(\n processRequest(\n dispatch,\n response,\n \"GET_LENDERS_SECOND_RANKING_PROFILE\"\n )\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const verifySecondRankingFieldsAsAdmin = ({ id }) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.LENDERS_ADMIN_SECOND_RANKING_VERIFY_URL,\n options: { id }\n });\n try {\n const response = await http.get(url);\n resolve(\n processRequest(\n dispatch,\n response,\n \"GET_LENDERS_SECOND_RANKING_PROFILE\"\n )\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const verifyConstructionFields = ({ id }) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.LENDERS_CONSTRUCTION_VERIFY_URL,\n options: { id }\n });\n try {\n const response = await http.get(url);\n resolve(\n processRequest(dispatch, response, \"GET_LENDERS_CONSTRUCTION_PROFILE\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const verifyConstructionFieldsAsAdmin = ({ id }) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.LENDERS_ADMIN_CONSTRUCTION_VERIFY_URL,\n options: { id }\n });\n try {\n const response = await http.get(url);\n resolve(\n processRequest(dispatch, response, \"GET_LENDERS_CONSTRUCTION_PROFILE\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const verifyMezzanineFields = ({ id }) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.LENDERS_MEZZANINE_VERIFY_URL,\n options: { id }\n });\n try {\n const response = await http.get(url);\n resolve(\n processRequest(dispatch, response, \"GET_LENDERS_MEZZANINE_PROFILE\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const verifyMezzanineFieldsAsAdmin = ({ id }) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.LENDERS_ADMIN_MEZZANINE_VERIFY_URL,\n options: { id }\n });\n try {\n const response = await http.get(url);\n resolve(\n processRequest(dispatch, response, \"GET_LENDERS_MEZZANINE_PROFILE\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const verifyLandBankFields = ({ id }) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.LENDERS_LANDBANK_VERIFY_URL,\n options: { id }\n });\n try {\n const response = await http.get(url);\n resolve(\n processRequest(dispatch, response, \"GET_LENDERS_LANDBANK_PROFILE\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const verifyLandBankFieldsAsAdmin = ({ id }) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.LENDERS_ADMIN_LANDBANK_VERIFY_URL,\n options: { id }\n });\n try {\n const response = await http.get(url);\n resolve(\n processRequest(dispatch, response, \"GET_LENDERS_LANDBANK_PROFILE\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const verifyRuralFields = ({ id }) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.LENDERS_RURAL_VERIFY_URL,\n options: { id }\n });\n try {\n const response = await http.get(url);\n resolve(\n processRequest(dispatch, response, \"GET_LENDERS_RURAL_PROFILE\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const verifyRuralFieldsAsAdmin = ({ id }) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.LENDERS_ADMIN_RURAL_VERIFY_URL,\n options: { id }\n });\n try {\n const response = await http.get(url);\n resolve(\n processRequest(dispatch, response, \"GET_LENDERS_RURAL_PROFILE\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const getBrokerPersonalDetails = ({ id, userType }) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint:\n userType === ADMIN_USER\n ? apiUrls.BROKER_PERSONAL_DETAIL_SYSTEM_USER_URL\n : apiUrls.BROKER_PERSONAL_DETAIL_URL,\n options: { id }\n });\n try {\n const response = await http.get(url);\n resolve(\n processRequest(\n dispatch,\n response,\n \"GET_BROKERS_PERSONAL_DETAIL_PROFILE\"\n )\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\n// File notes for Lender\nexport const updateLenderFileNotes = ({\n id,\n userType,\n payLoad,\n cancelToken\n}) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint:\n userType === ADMIN_USER\n ? apiUrls.LENDER_FILE_NOTES_SYSTEM_USER_URL\n : apiUrls.LENDER_FILE_NOTES_URL,\n options: { id }\n });\n try {\n const response = await http.put(url, payLoad, cancelToken);\n resolve(\n processRequest(dispatch, response, \"UPDATE_LENDERS_FILE_NOTES\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const createLenderFileNotes = ({\n id,\n userType,\n payLoad,\n cancelToken\n}) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint:\n userType === ADMIN_USER\n ? apiUrls.LENDER_FILE_NOTES_SYSTEM_USER_URL\n : apiUrls.LENDER_FILE_NOTES_URL,\n options: { id }\n });\n try {\n const response = await http.post(url, payLoad, cancelToken);\n resolve(\n processRequest(dispatch, response, \"CREATE_LENDERS_FILE_NOTES\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const deleteLenderFileNotes = ({\n id,\n userType,\n payLoad,\n cancelToken\n}) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint:\n userType === ADMIN_USER\n ? apiUrls.LENDER_FILE_NOTES_DELETE_SYSTEM_USER_URL\n : apiUrls.LENDER_FILE_NOTES_DELETE_URL,\n options: { id }\n });\n try {\n const response = await http.put(\n `${url}?id=${payLoad && payLoad.id}`,\n payLoad,\n cancelToken\n );\n resolve(\n processRequest(dispatch, response, \"DELETE_LENDERS_FILE_NOTES\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\n// File Notes for Broker\n\nexport const getBrokerFileNotes = ({\n id,\n userType,\n cancelToken,\n queryParams\n}) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint:\n userType === ADMIN_USER\n ? apiUrls.BROKER_FILE_NOTES_SYSTEM_USER_URL\n : apiUrls.BROKER_FILE_NOTES_URL,\n options: { id }\n });\n try {\n const response = await requestBuilder(\n null,\n url,\n queryParams,\n cancelToken\n );\n resolve(processRequest(dispatch, response, \"GET_BROKERS_FILE_NOTES\"));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const updateBrokerFileNotes = ({\n id,\n userType,\n payLoad,\n cancelToken\n}) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint:\n userType === ADMIN_USER\n ? apiUrls.BROKER_FILE_NOTES_SYSTEM_USER_URL\n : apiUrls.BROKER_FILE_NOTES_URL,\n options: { id }\n });\n try {\n const response = await http.put(url, payLoad, cancelToken);\n resolve(\n processRequest(dispatch, response, \"UPDATE_BROKERS_FILE_NOTES\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const createBrokerFileNotes = ({\n id,\n userType,\n payLoad,\n cancelToken\n}) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint:\n userType === ADMIN_USER\n ? apiUrls.BROKER_FILE_NOTES_SYSTEM_USER_URL\n : apiUrls.BROKER_FILE_NOTES_URL,\n options: { id }\n });\n try {\n const response = await http.post(url, payLoad, cancelToken);\n resolve(\n processRequest(dispatch, response, \"UPDATE_BROKERS_FILE_NOTES\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const deleteBrokerFileNotes = ({\n id,\n userType,\n payLoad,\n cancelToken\n}) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint:\n userType === ADMIN_USER\n ? apiUrls.BROKER_FILE_NOTES_DELETE_SYSTEM_USER_URL\n : apiUrls.BROKER_FILE_NOTES_DELETE_URL,\n options: { id }\n });\n try {\n const response = await http.put(\n `${url}?id=${payLoad && payLoad.id}`,\n payLoad,\n cancelToken\n );\n resolve(\n processRequest(dispatch, response, \"DELETE_BROKERS_FILE_NOTES\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\nexport const saveBrokerProfessionalDetailsField = ({\n payLoad,\n id,\n userType\n}) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint:\n userType === ADMIN_USER\n ? apiUrls.BROKER_PROFESSIONAL_DETAIL_SYSTEM_USER_URL\n : apiUrls.BROKER_PROFESSIONAL_DETAIL_URL,\n options: { id }\n });\n const response = await http.put(url, payLoad);\n\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"SAVE_PROFILE\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const saveBrokerPersonalDetailsField = ({\n payLoad,\n id,\n userType\n}) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint:\n userType === ADMIN_USER\n ? apiUrls.BROKER_PERSONAL_DETAIL_SYSTEM_USER_URL\n : apiUrls.BROKER_PERSONAL_DETAIL_URL,\n options: { id }\n });\n const response = await http.put(url, payLoad);\n\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"SAVE_PROFILE\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\nexport const getLenderFileNotes = ({ id, userType }) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint:\n userType === ADMIN_USER\n ? apiUrls.LENDER_FILE_NOTES_SYSTEM_USER_URL\n : apiUrls.LENDER_FILE_NOTES_URL,\n options: { id }\n });\n try {\n const response = await http.get(url);\n resolve(processRequest(dispatch, response, \"GET_LENDERS_FILE_NOTES\"));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const getLawFirmFileNotes = ({ id, userType, queryParams, cancelToken }) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const endpoint = userType === ADMIN_USER ? apiUrls.LAW_FIRM_FILE_NOTES_SYSTEM_USER_URL : apiUrls.LAW_FIRM_FILE_NOTES_URL;\n const actionType = \"GET_LAW_FIRM_FILE_NOTES\";\n const url = APIHandler.constructEndpoint({\n endpoint,\n options: { id }\n });\n try {\n const response = await requestBuilder(\n null,\n url,\n queryParams ? queryParams : {},\n cancelToken\n );\n resolve(processRequest(dispatch, response, actionType));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const updateLawFirmFileNotes = ({\n id,\n userType,\n payLoad,\n cancelToken\n}) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint:\n userType === ADMIN_USER\n ? apiUrls.LAW_FIRM_FILE_NOTES_SYSTEM_USER_URL\n : apiUrls.LAW_FIRM_FILE_NOTES_URL,\n options: { id }\n });\n try {\n const response = await http.put(url, payLoad, cancelToken);\n resolve(\n processRequest(dispatch, response, \"UPDATE_LAW_FIRM_FILE_NOTES\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const createLawFirmFileNotes = ({\n id,\n userType,\n payLoad,\n cancelToken\n}) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint:\n userType === ADMIN_USER\n ? apiUrls.LAW_FIRM_FILE_NOTES_SYSTEM_USER_URL\n : apiUrls.LAW_FIRM_FILE_NOTES_URL,\n options: { id }\n });\n try {\n const response = await http.post(url, payLoad, cancelToken);\n resolve(\n processRequest(dispatch, response, \"CREATE_LAW_FIRM_FILE_NOTES\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const deleteLawFirmFileNotes = ({\n id,\n userType,\n payLoad,\n cancelToken\n}) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint:\n userType === ADMIN_USER\n ? apiUrls.LAW_FIRM_FILE_NOTES_DELETE_SYSTEM_USER_URL\n : apiUrls.LAW_FIRM_FILE_NOTES_DELETE_URL,\n options: { id }\n });\n try {\n const response = await http.put(\n `${url}?id=${payLoad && payLoad.id}`,\n payLoad,\n cancelToken\n );\n resolve(\n processRequest(dispatch, response, \"DELETE_LAW_FIRM_FILE_NOTES\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const getBrokerProfessionalDetails = ({ id, userType }) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint:\n userType === ADMIN_USER\n ? apiUrls.BROKER_PROFESSIONAL_DETAIL_SYSTEM_USER_URL\n : apiUrls.BROKER_PROFESSIONAL_DETAIL_URL,\n options: { id }\n });\n try {\n const response = await http.get(url);\n resolve(\n processRequest(\n dispatch,\n response,\n \"GET_BROKERS_PROFESSIONAL_DETAIL_PROFILE\"\n )\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const resendInvitation = ({ id }) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n\n try {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.INDIVIDUALS_RESEND_INVITATION,\n options: { id }\n });\n const response = await http.put(url, {});\n resolve(processRequest(dispatch, response, \"RESEND_INVITATION\"));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const resetPassword = ({ id }) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n\n try {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.INDIVIDUALS_RESET_PASSWORD,\n options: { id }\n });\n const response = await http.post(url, {});\n resolve(processRequest(dispatch, response, \"RESET_PASSWORD\"));\n return response;\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const deleteFinancierAccount = ({ cancelToken, payLoad = {}, id }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.COMPANIES_DELETE_URL,\n options: { id }\n });\n const response = await http.post(url, payLoad, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"COMPANIES_DELETE_URL\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport function updateActivePortrait (activePortrait) {\n return dispatch => {\n new Promise(async (resolve) => {\n const response = {\n type: UPDATE_ACTIVE_PORTRAIT,\n status: 200,\n data: activePortrait\n }\n return resolve(dispatch(response));\n }).catch(async error => {throw error.message});\n };\n}\n\n// Law Firm\nexport function getLawFirmProfile({\n id,\n isUserViewingSelfProfile,\n isAdmin\n}) {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n\n const url = APIHandler.constructEndpoint({\n endpoint: isAdmin\n ? apiUrls.LAW_FIRM_DETAIL_SYSTEM_USER_URL\n : isUserViewingSelfProfile\n ? apiUrls.LAW_FIRM_SELF_DETAIL_URL\n : apiUrls.LAW_FIRM_DETAIL_URL,\n options: { id }\n });\n try {\n const response = await http.get(url);\n return resolve(processRequest(dispatch, response, GET_LAW_FIRM_PROFILE));\n } catch (err) {\n return resolve(processRequest(dispatch, err));\n }\n });\n}\n\nexport const deleteLawFirmAccount = ({ cancelToken, payLoad = {}, id }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.COMPANIES_DELETE_LAWFIRM_URL,\n options: { id }\n });\n const response = await http.post(url, payLoad, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"COMPANIES_DELETE_LAWFIRM_URL\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\n// Lead Score\n/**\n * @typedef UpdateLeadScorePayload\n * @property {string} id\n * @property {string} leadScore\n * \n * @param {any} cancelToken\n * @param {UpdateLeadScorePayload} [payload]\n * @param {boolean} [isSystemUser=false] \n */\nexport async function updateLeadScore(\n cancelToken,\n payload,\n isSystemUser = false\n) {\n const url = APIHandler.constructEndpoint({\n endpoint: isSystemUser\n ? apiUrls.COMPANIES_UPDATE_LEAD_SCORE_AS_SYSTEM_USER\n : apiUrls.COMPANIES_UPDATE_LEAD_SCORE,\n options: {\n id: payload.id\n }\n });\n const response = await http.put(\n url,\n {\n leadScore: payload.leadScore\n },\n cancelToken\n );\n return response;\n}\n\n// Follow Up\n/**\n * @typedef UpdateFollowUpDatePayload\n * @property {string} id\n * @property {string} followupDate\n * \n * @param {any} cancelToken\n * @param {UpdateFollowUpDatePayload} [payload]\n * @param {boolean} [isSystemUser=false] \n */\nexport async function updateFollowUpDate(\n cancelToken,\n payload,\n isSystemUser = false\n) {\n const url = APIHandler.constructEndpoint({\n endpoint: isSystemUser\n ? apiUrls.COMPANIES_UPDATE_FOLLOWUP_DATE_AS_SYSTEM_USER\n : apiUrls.COMPANIES_UPDATE_FOLLOWUP_DATE,\n options: {\n id: payload.id\n }\n });\n const response = await http.put(\n url,\n {\n followupDate: payload.followupDate\n },\n cancelToken\n );\n return response;\n}","import React, { useEffect, useState } from \"react\";\nimport { connect } from \"react-redux\";\nimport history from \"../routes/history\";\nimport authService from \"../actions/AuthorizeService\";\nimport {\n getLastVisitedProfile,\n getLoggedInUserProfile,\n getLoggedInIndividualUserDetails\n} from \"../actions/authorization\";\nimport { isSystemUserPolicy } from \"../Common/Authorization/policies/isSystemUserPolicy\";\nimport { isBrokerUserPolicy } from \"../Common/Authorization/policies/isBrokerUserPolicy\";\nimport { isLawFirmUserPolicy } from \"../Common/Authorization/policies/isLawFirmUserPolicy\";\nimport { Spin } from \"antd\";\nimport { isLenderUserPolicy } from \"../Common/Authorization/policies/isLenderUserPolicy\";\nimport { clearProfileDetails } from \"../actions/profile\";\n\nfunction redirect(url) {\n history.push(url);\n}\n\nconst InitializeApplication = ({\n dispatch,\n user,\n lastVisitedProfile,\n individualUser\n}) => {\n useEffect(() => {\n onInit();\n }, []);\n\n useEffect(() => {\n completeUserLogin();\n }, [user, individualUser, lastVisitedProfile]);\n\n async function completeUserLogin() {\n const authenticated = await authService.isAuthenticated();\n if (!authenticated) {\n history.push(\"/login\");\n }\n \n if(user.roles.length > 0){\n const lenderUser = await isLenderUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n const systemUser = await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n const brokerUser = await isBrokerUserPolicy(\n user.roles, \n user.permissions,\n user\n );\n\n const lawFirmUser = await isLawFirmUserPolicy(user.roles);\n\n dispatch(clearProfileDetails());\n \n \n if(!systemUser)\n await dispatch(getLoggedInIndividualUserDetails());\n\n if (lenderUser && brokerUser) {\n return redirect(`/users/${user[\"app.user.lenderid\"]}/lender`);\n } \n if (brokerUser) {\n return redirect(`/users/${user[\"app.user.brokerid\"]}/broker`);\n } \n if (lenderUser) {\n return redirect(`/users/${user[\"app.user.lenderid\"]}/lender`);\n } \n if (systemUser) {\n return redirect(`/users/notes`);\n }\n if(lawFirmUser) {\n return redirect(`/users/${user[\"app.user.lawfirmid\"]}/lawfirm`);\n }\n }\n \n }\n\n async function onInit() {\n const systemUser = await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n \n await dispatch(getLoggedInUserProfile());\n\n if(systemUser)\n await dispatch(getLastVisitedProfile());\n }\n\n return ;\n};\n\nconst mapStateToProps = state => {\n return {\n authenticated: authService.isAuthenticated,\n user: state.authorization.user,\n lastVisitedProfile: state.authorization.lastVisitedProfile,\n individualUser: state.authorization.individualUser\n };\n};\n\nexport default connect(mapStateToProps)(InitializeApplication);\n","/**\n * For reference purposes\n * @typedef ExceptionConfigItem\n * @property {string} img\n * @property {string} title\n * @property {string} desc\n * @property {string=} redirect\n * @property {string=} backText\n */\n\nconst config = {\n 401: {\n img: \"https://gw.alipayobjects.com/zos/rmsportal/wZcnGqRDyhPOEYFcZDnb.svg\",\n title: \"401\",\n desc: \"You do not have access to view this page\",\n redirect: \"/general/finder-utility\"\n },\n 403: {\n img: \"https://gw.alipayobjects.com/zos/rmsportal/wZcnGqRDyhPOEYFcZDnb.svg\",\n title: \"403\",\n desc: \"You do not have access to view this page\",\n redirect: \"/general/finder-utility\"\n },\n 404: {\n img: \"https://gw.alipayobjects.com/zos/rmsportal/KpnpchXsobRgLElEozzI.svg\",\n title: \"404\",\n desc: \"Page is still undergoing construction. Please check back later.\",\n redirect: \"/general/finder-utility\"\n },\n 500: {\n img: \"https://gw.alipayobjects.com/zos/rmsportal/RVRUAYdCGeYNBWoKiIwB.svg\",\n title: \"500\",\n desc: \"An unexpected error occured. Please try again later.\",\n redirect: \"/general/finder-utility\"\n }\n};\n\nexport default config;\n","import React, { createElement } from \"react\";\nimport { Button, Col } from \"antd\";\nimport { connect } from \"react-redux\";\nimport config from \"./typeConfig\";\nimport authService from \"../../actions/AuthorizeService\";\n\nclass Exception extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n authenticated: false\n };\n }\n\n async componentDidMount(){\n await this.populateAuthenticationState();\n }\n\n async populateAuthenticationState() {\n const authenticated = await authService.isAuthenticated();\n this.setState({ authenticated });\n }\n\n render() {\n const {\n backText = \"Back to home\",\n linkElement = \"a\",\n title,\n img,\n actions,\n redirect = \"/\",\n match\n } = this.props;\n const { authenticated } = this.state;\n const type = match && match.params && match.params.type;\n const pageType = type && config[type] ? type : \"404\";\n return (\n \n \n \n \n \n
\n {title || config[pageType].title}\n
\n
{config[pageType].desc}
\n
\n {actions ||\n createElement(\n linkElement,\n {\n to: authenticated ? redirect : config[pageType].redirect,\n href: authenticated ? redirect : config[pageType].redirect\n },\n \n )}\n
\n \n \n );\n }\n}\n\nconst mapStateToProps = () => ({});\n\nconst mapDispatchToProps = {};\n\nexport default connect(\n mapStateToProps,\n mapDispatchToProps\n)(Exception);\n","import React, { createElement } from \"react\";\nimport { Button, Col } from \"antd\";\nimport { connect } from \"react-redux\";\n\nclass InactiveProfileException extends React.Component {\n static defaultProps = {\n backText: \"Back to home\",\n redirect: \"/\"\n };\n\n render() {\n const {\n backText,\n linkElement = \"a\",\n title,\n img,\n actions,\n redirect,\n match\n } = this.props;\n const type = match && match.params && match.params.type;\n const pageType = \"inactive\";\n const config = {\n img: \"https://gw.alipayobjects.com/zos/rmsportal/wZcnGqRDyhPOEYFcZDnb.svg\",\n title: \"403\",\n desc: \"The profile you are attempting to access is inactive and therefore can not be viewed\"\n }\n \n return (\n \n \n \n \n \n
\n {title || config.title}\n
\n
{config.desc}
\n
\n {actions ||\n createElement(\n linkElement,\n {\n to: redirect,\n href: redirect\n },\n \n )}\n
\n \n \n );\n }\n}\n\nconst mapStateToProps = () => ({});\n\nconst mapDispatchToProps = {};\n\nexport default connect(\n mapStateToProps,\n mapDispatchToProps\n)(InactiveProfileException);\n","import React, { Component, Fragment } from \"react\";\nimport { Redirect } from \"react-router-dom\";\nimport { connect } from \"react-redux\";\nimport authService from \"../../actions/AuthorizeService\";\nimport { QueryParameterNames } from \"../../constants/ApiAuthorizationConstants\";\nimport { Spin } from \"antd\";\n\nclass AuthorizedRoute extends Component {\n _subscription = {};\n\n constructor(props) {\n super(props);\n\n this.state = {\n ready: false,\n authenticated: false\n };\n }\n\n async componentDidMount() {\n await authService.ensureUserManagerInitialized();\n this._subscription = authService.subscribe(() =>\n this.authenticationChanged()\n );\n await this.authenticationChanged();\n }\n\n componentWillUnmount() {\n authService.unsubscribe(this._subscription);\n }\n\n async populateAuthenticationState() {\n const authenticated = await authService.isAuthenticated();\n this.setState({ ready: true, authenticated });\n }\n\n async authenticationChanged() {\n this.setState({ ready: false, authenticated: false });\n await this.populateAuthenticationState();\n }\n\n render() {\n const { ready, authenticated } = this.state;\n var link = document.createElement(\"a\");\n link.href = this.props.location.pathname;\n const returnUrl = `${link.protocol}//${link.host}${link.pathname}${link.search}${link.hash}`;\n const redirectUrl = `/login?${QueryParameterNames.ReturnUrl}=${encodeURI(\n returnUrl\n )}`;\n\n const children = this.props.children;\n\n if (!ready) {\n return (\n \n \n \n );\n } else {\n if (authenticated) {\n return {children};\n } else {\n return ;\n }\n }\n }\n}\n\nconst mapStateToProps = state => ({\n isLoggedIn: state.authorization.isLoggedIn\n});\n\nexport default connect(mapStateToProps)(AuthorizedRoute);\n","import { http } from \"../libs/http\";\nimport ResponseHandler from \"../libs/response\";\nimport { processRequest } from \"./asyncActionProcessor\";\nimport APIHandler, { apiUrls } from \"../constants/apiUrl\";\nimport {\n LENDERS_CONSTRUCTION_SECURITY_TYPE,\n LENDERS_DISTANCES_TYPE,\n LENDERS_FIRST_RANKING_SECURITY_TYPE,\n LENDERS_LAND_BANK_AGRICULTURE_TYPE,\n LENDERS_LAND_BANK_ZONING_TYPE,\n LENDERS_MEZZANINE_SECURITY_TYPE,\n LENDERS_SECOND_RANKING_SECURITY_TYPE,\n LENDERS_STATES_REGIONS_TYPE,\n LENDERS_STATES_SUBURBS_TYPE\n} from \"../constants/lookup\";\nimport { requestBuilder } from \"../libs/utilities\";\nimport { ADMIN_USER, LENDER_USER } from \"../constants/systemUsers\";\nimport { GET_BROKER_MATCHES_STATUS_LOOKUP } from \"../constants/action-type/brokers\";\nimport environment from \"../constants/env\";\n\nexport function positionsLookup() {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint: \"POSITIONS_LOOKUP_URL\",\n options: {}\n });\n const response = await http.get(url);\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(ResponseHandler.validObject(response, \"LIST_USERS_POSITION\"))\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n}\n\nexport const statesLookup = () => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint: \"STATES_LOOKUP_URL\",\n options: {}\n });\n const response = await http.get(\n `${environment.baseurl}/api/users/states/search-lookup`\n );\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(ResponseHandler.validObject(response, \"LIST_STATES\"))\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const getOmicronBdmLookup = ({\n search=\"\"\n}) => {\n return dispatch =>\n new Promise(async resolve => { \n const apiUrl = APIHandler.constructEndpoint({\n endpoint: apiUrls.COMPANY_OMICRON_BDM_LOOKUP,\n options: {}\n });\n const url = search ? `${apiUrl}?search=${search}` : apiUrl;\n try {\n const response = await http.get(url);\n return(resolve(processRequest(dispatch, response, \"COMPANY_OMICRON_BDM_LOOKUP\")));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\n//NOTES DROPDOWN\nexport const notesDropdownLookUpHandler = ({}) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint: \"NOTE_TYPE_URL\"\n });\n const response = await http.get(\n `${environment.baseurl}/api/notes/note-type-dropdown`\n );\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(ResponseHandler.validObject(response, \"LIST_STATES\"))\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\n//UNIVERSAL SEARCH BOX DROPDOWN\nexport const searchBoxHandler = ({\n queryParams = {},\n action,\n userType,\n id,\n cancelToken\n}) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n let action_match = true;\n let response = {\n status: 200\n };\n let url = \"\";\n const queryOptions = {\n page: 1,\n ...queryParams\n };\n\n switch (action) {\n case \"SEARCH_BOX_URL\":\n url = APIHandler.constructEndpoint({\n endpoint: \"SEARCH_BOX_URL\"\n });\n response = await requestBuilder(null, url, queryOptions);\n break;\n case \"SEARCH_BOX_FOR_SYSTEM_USER\":\n url = APIHandler.constructEndpoint({\n endpoint: \"SEARCH_BOX_FOR_SYSTEM_USER_URL\"\n });\n response = await requestBuilder(null, url, queryOptions);\n break;\n }\n if (action_match) {\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n action || \"MATCHES_LOOKUP\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n } else {\n return resolve({ status: false });\n }\n });\n};\n\n// Lenders\nexport const lendersLookUpHandler = ({\n queryParams = {},\n action,\n userType,\n id,\n cancelToken\n}) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n let action_match = true;\n let response = {\n status: 200\n };\n let url = \"\";\n const queryOptions = {\n page: 1,\n ...queryParams\n };\n\n switch (action) {\n case LENDERS_FIRST_RANKING_SECURITY_TYPE:\n url = APIHandler.constructEndpoint({\n endpoint: \"LENDERS_FIRST_RANKING_SECURITY_TYPE_LOOKUP_URL\"\n });\n response = await requestBuilder(null, url, queryOptions);\n break;\n case LENDERS_SECOND_RANKING_SECURITY_TYPE:\n url = APIHandler.constructEndpoint({\n endpoint: \"LENDERS_SECOND_RANKING_SECURITY_TYPE_LOOKUP_URL\"\n });\n response = await requestBuilder(null, url, queryOptions);\n break;\n case LENDERS_CONSTRUCTION_SECURITY_TYPE:\n url = APIHandler.constructEndpoint({\n endpoint: \"LENDERS_CONSTRUCTION_SECURITY_TYPE_LOOKUP_URL\"\n });\n response = await requestBuilder(null, url, queryOptions);\n break;\n case LENDERS_MEZZANINE_SECURITY_TYPE:\n url = APIHandler.constructEndpoint({\n endpoint: \"LENDERS_MEZZANINE_SECURITY_TYPE_LOOKUP_URL\"\n });\n response = await requestBuilder(null, url, queryOptions);\n break;\n case LENDERS_LAND_BANK_ZONING_TYPE:\n url = APIHandler.constructEndpoint({\n endpoint: \"LENDERS_LAND_BANK_ZONING_LOOKUP_URL\"\n });\n response = await requestBuilder(null, url, queryOptions);\n break;\n case LENDERS_LAND_BANK_AGRICULTURE_TYPE:\n url = APIHandler.constructEndpoint({\n endpoint: \"LENDERS_LAND_BANK_AGRICULTURE_TYPE_LOOKUP_URL\"\n });\n response = await requestBuilder(null, url, queryOptions);\n break;\n case LENDERS_DISTANCES_TYPE:\n url = APIHandler.constructEndpoint({\n endpoint: \"LENDERS_DISTANCES_LOOKUP_URL\"\n });\n response = await requestBuilder(null, url, queryOptions);\n break;\n case LENDERS_STATES_SUBURBS_TYPE:\n url = APIHandler.constructEndpoint({\n endpoint: \"LENDERS_STATES_SUBURBS_LOOKUP_URL\"\n });\n response = await requestBuilder(null, url, queryOptions);\n break;\n case LENDERS_STATES_REGIONS_TYPE:\n url = APIHandler.constructEndpoint({\n endpoint: \"LENDERS_STATES_REGIONS_LOOKUP_URL\"\n });\n response = await requestBuilder(null, url, queryOptions);\n break;\n case \"LENDER_MATCHES_STATUS_LOOKUP\":\n url = APIHandler.constructEndpoint({\n endpoint:\n userType === ADMIN_USER\n ? apiUrls.LENDERS_ADMIN_MATCHES_STATUS_LOOKUP_URL\n : apiUrls.LENDERS_MATCHES_STATUS_LOOKUP_URL,\n options: { id }\n });\n response = await http.get(url, cancelToken);\n break;\n case \"LENDERS_SEARCH_LOOKUP\":\n url = APIHandler.constructEndpoint({\n endpoint:\n userType === ADMIN_USER\n ? \"LENDERS_SEARCH_LOOKUP_SYSTEM_USER_URL\"\n : \"LENDERS_SEARCH_LOOKUP_URL\"\n });\n response = await requestBuilder(null, url, queryOptions);\n break;\n default:\n action_match = false;\n break;\n }\n\n if (action_match) {\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n action || \"MATCHES_LOOKUP\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n } else {\n return resolve({ status: false });\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\n// Lenders\nexport const brokersLookUpHandler = ({\n queryParams = {},\n action,\n userType,\n id,\n cancelToken\n}) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n let action_match = true;\n let response = {\n status: 200\n };\n let url = \"\";\n const queryOptions = {\n page: 1,\n ...queryParams\n };\n\n switch (action) {\n case \"BROKERS_SEARCH_LOOKUP\":\n url = APIHandler.constructEndpoint({\n endpoint:\n userType === ADMIN_USER\n ? \"BROKERS_SEARCH_LOOKUP_SYSTEM_USER_URL\"\n : \"BROKERS_SEARCH_LOOKUP_URL\"\n });\n response = await requestBuilder(null, url, queryOptions, cancelToken);\n break;\n case GET_BROKER_MATCHES_STATUS_LOOKUP:\n url = APIHandler.constructEndpoint({\n endpoint:\n userType === ADMIN_USER\n ? apiUrls.LENDERS_ADMIN_MATCHES_STATUS_LOOKUP_URL\n : apiUrls.LENDERS_MATCHES_STATUS_LOOKUP_URL,\n options: { id }\n });\n response = await http.get(url, cancelToken);\n break;\n default:\n action_match = false;\n break;\n }\n\n if (action_match) {\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n action || \"MATCHES_LOOKUP\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n } else {\n return resolve({ status: false });\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const listLendersMatchesLookup = ({ cancelToken, id, userType }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint:\n userType === ADMIN_USER\n ? apiUrls.LENDERS_ADMIN_MATCHES_STATUS_LOOKUP_URL\n : apiUrls.LENDERS_MATCHES_STATUS_LOOKUP_URL,\n options: { id }\n });\n const response = await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"LIST_LENDERS_MATCHES_LOOKUP\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n console.log(\"err\", err);\n throw err.message;\n });\n};\n\n// LOANS LOOKUPS\n\nexport const loansSecurityTypesLookups = ({ cancelToken }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.LOANS_SECURITY_TYPE_LOOKUP,\n options: { }\n });\n const response = await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n};\n\n\nexport const loansStatesAndSuburbsLookups = ({ cancelToken, search=\"\" }) => {\n return async() => {\n const apiUrl = APIHandler.constructEndpoint({\n endpoint: apiUrls.LOANS_SUBURB_STATES_LOOKUP,\n options: {}\n });\n const url = search ? `${apiUrl}?search=${search}` : apiUrl;\n const response = await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n};\n\nexport const loansStatusLookups = ({ cancelToken }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.LOANS_STATUS_LOOKUP,\n options: {}\n });\n const response = await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n};\n\n/**\n * \n * @param {{cancelToken: any}} param0 \n * @returns {Promise}\n */\nexport const loansInterestLookups = ({ cancelToken }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.LOANS_INTEREST_LOOKUP,\n options: {}\n });\n const response = await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n};\n\n/**\n * \n * @param {{cancelToken: any}} param0 \n * @returns {Promise}\n */\nexport const loansSubdivisionTypeLookups = ({ cancelToken }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.LOANS_SUBDIVISION_TYPE_LOOKUP,\n options: {}\n });\n const response = await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n};\n\nexport const loansScenarioLookups = ({ cancelToken }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.LOANS_SCENARIO_LOOKUP,\n options: {}\n });\n const response = await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n};\n\nexport const loansBrokersLookups = ({ cancelToken, search, isSystemUser = true }) => {\n return async() => {\n const apiUrl = APIHandler.constructEndpoint({\n endpoint: isSystemUser ? apiUrls.LOANS_BROKERS_LOOKUP : apiUrls.LOANS_BROKERS_LOOKUP_AS_LENDER_LAW_FIRM,\n options: {}\n });\n const url = search ? `${apiUrl}?search=${search}` : apiUrl;\n const response = await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n};\n\nexport const loansLendersLookups = ({ cancelToken, isSystemUser = true }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: isSystemUser ? apiUrls.LOANS_LENDERS_LOOKUP: apiUrls.LOANS_LENDERS_LOOKUP_AS_LENDER_LAW_FIRM,\n options: {}\n });\n const response = await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n};\n\nexport const loansPartnerAssociateLookup = ({ cancelToken, isSystemUser = true }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: isSystemUser ? apiUrls.LOANS_PARTNER_ASSOCIATE_LOOKUP : apiUrls.LOANS_PARTNER_ASSOCIATE_LOOKUP_AS_LENDER_LAW_FIRM,\n options: {}\n });\n const response = await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n};\n\nexport const loansLawFirmLookup = ({cancelToken, search = '' , isSystemUser = true}) => {\n return async() => {\n const apiUrl = APIHandler.constructEndpoint({\n endpoint: isSystemUser ? apiUrls.LOANS_LAWFIRM_LOOKUP : apiUrls.LOANS_LAWFIRM_LOOKUP_AS_LENDER_LAW_FIRM,\n options: {}\n });\n const url = search ? `${apiUrl}?search=${search}` : apiUrl;\n const response = await http.get(url, cancelToken);\n\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n};\n\nexport const loansLawFirmUsersLookup = ({cancelToken, id, search = '', isSystemUser = true }) => {\n return async() => {\n const apiUrl = APIHandler.constructEndpoint({\n endpoint: isSystemUser ? apiUrls.LOANS_LAWFIRM_USERS_LOOKUP : apiUrls.LOANS_LAWFIRM_USERS_LOOKUP_AS_LENDER_LAW_FIRM,\n options: { id }\n });\n const url = search ? `${apiUrl}?search=${search}` : apiUrl;\n const response = await http.get(url, cancelToken);\n\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n};\n\nexport const loansPiorityLookup = ({ cancelToken }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.LOANS_PRIORITY_LOOKUP,\n options: {}\n });\n const response = await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n};\n\n// TODO: Update this to get omicronBDM list\nexport const omicronBDMLookups = ({ cancelToken, search=\"\" }) => {\n return async() => {\n const apiUrl = APIHandler.constructEndpoint({\n endpoint: apiUrls.COMPANY_OMICRON_BDM_LOOKUP,\n options: {}\n });\n const url = search ? `${apiUrl}?search=${search}` : apiUrl;\n const response = await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n};\n\n/**\n * \n * @param {{cancelToken: any, search?: string}} param0 \n * @returns {Promise}\n */\nexport const marketingCompaniesLookup = ({ cancelToken, search = \"\" }) => {\n return async () => {\n const apiUrl = APIHandler.constructEndpoint({\n endpoint: apiUrls.MARKETING_LOOKUP_COMPANIES_URL\n });\n const url = search ? `${apiUrl}?search=${search}` : apiUrl;\n const response = await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return response.data && response.data.result\n ? response.data.result\n : response.data;\n } else {\n return ResponseHandler.inValidObject(response);\n }\n };\n};\n\n/**\n * \n * @param {{cancelToken: any, search?: string}} param0 \n * @returns {Promise}\n */\nexport const marketingUsersLookup = ({ cancelToken, search = \"\" }) => {\n return async () => {\n const apiUrl = APIHandler.constructEndpoint({\n endpoint: apiUrls.MARKETING_LOOKUP_USERS_URL\n });\n const url = search ? `${apiUrl}?search=${search}` : apiUrl;\n const response = await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return response.data && response.data.result\n ? response.data.result\n : response.data;\n } else {\n return ResponseHandler.inValidObject(response);\n }\n };\n};\n\n/**\n * \n * @param {{cancelToken: any}} param0 \n * @returns {Promise} \n */\nexport const marketingStatesLookup = ({ cancelToken }) => {\n return async () => {\n const apiUrl = APIHandler.constructEndpoint({\n endpoint: apiUrls.MARKETING_LOOKUP_STATE_URL\n });\n const response = await http.get(apiUrl, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return response.data && response.data.result\n ? response.data.result\n : response.data;\n } else {\n return ResponseHandler.inValidObject(response);\n }\n };\n};\n\n/**\n * \n * @param {{cancelToken: any}} param0 \n * @returns {Promise} \n */\nexport const marketingUserTypesLookup = ({ cancelToken }) => {\n return async () => {\n const apiUrl = APIHandler.constructEndpoint({\n endpoint: apiUrls.MARKETING_LOOKUP_USER_TYPE_URL\n });\n const response = await http.get(apiUrl, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return response.data && response.data.result\n ? response.data.result\n : response.data;\n } else {\n return ResponseHandler.inValidObject(response);\n }\n };\n};\n\n/**\n * \n * @param {{cancelToken: any}} param0 \n * @returns {Promise} \n */\nexport const marketingVisibleUserLookup = ({ cancelToken }) => {\n return async () => {\n const apiUrl = APIHandler.constructEndpoint({\n endpoint: apiUrls.MARKETING_LOOKUP_VISIBLE_USER_URL\n });\n const response = await http.get(apiUrl, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return response.data && response.data.result\n ? response.data.result\n : response.data;\n } else {\n return ResponseHandler.inValidObject(response);\n }\n };\n};\n/**\n * \n * @param {{cancelToken: any}} param0 \n * @returns {Promise} \n */\nexport const marketingCategorySubscribeLookup = ({ cancelToken}) => {\n return async () => {\n const apiUrl = APIHandler.constructEndpoint({\n endpoint: apiUrls.MARKETING_LOOKUP_CATEGORY_SUBSCRIBE_URL\n });\n const response = await http.get(apiUrl, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return response.data && response.data.result\n ? response.data.result\n : response.data;\n } else {\n return ResponseHandler.inValidObject(response);\n }\n };\n};\n\n/**\n * \n * @param {{cancelToken: any}} param0 \n * @returns {Promise} \n */\nexport const marketingDaysSubscribeLookup = ({ cancelToken}) => {\n return async () => {\n const apiUrl = APIHandler.constructEndpoint({\n endpoint: apiUrls.MARKETING_LOOKUP_DAYS_SUBSCRIBE_URL\n });\n const response = await http.get(apiUrl, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return response.data && response.data.result\n ? response.data.result\n : response.data;\n } else {\n return ResponseHandler.inValidObject(response);\n }\n };\n};\n\n/**\n * \n * @param {{cancelToken: any, search:string}} param0 \n * @returns {Promise} \n */\nexport const marketingSenderLookup = ({ cancelToken, search}) => {\n return async () => {\n const apiUrl = APIHandler.constructEndpoint({\n endpoint: apiUrls.MARKETING_LOOKUP_SENDERS_URL\n });\n const url = search ? `${apiUrl}?search=${search}` : apiUrl;\n const response = await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return response.data && response.data.result\n ? response.data.result\n : response.data;\n } else {\n return ResponseHandler.inValidObject(response);\n }\n };\n};\n\n/**\n * \n * @param {{cancelToken: any, generalView: boolean}} params\n * @returns {Promise[]>} \n */\nexport const loansCreditLookups = ({ cancelToken,generalView = false }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: generalView ? apiUrls.PUBLIC_LOANS_CREDIT_LOOKUP : apiUrls.LOANS_CREDIT_LOOKUP,\n options: {}\n });\n const response = await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n};\n\n/**\n * \n * @returns {Promise}\n */\nexport const allLoansColumnsLookups = () => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.GET_ALL_LOANS_COLUMNS_LOOKUPS,\n });\n const response = await http.get(url);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n};\n\n/**\n * \n * @param {{cancelToken: any, search?: string, includeUnsubscribed: boolean}} param0 \n * @returns {Promise}\n */\nexport const bulkEmailRecipientsLookup = ({ cancelToken, search = \"\", includeUnsubscribed }) => {\n return async () => {\n const apiUrl = APIHandler.constructEndpoint({\n endpoint: apiUrls.BULK_EMAIL_RECIPIENTS_LOOKUP_URL\n });\n const url = search ? `${apiUrl}?search=${search}&includeUnsubscribed=${includeUnsubscribed}` : apiUrl;\n const response = await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return response.data && response.data.result\n ? response.data.result\n : response.data;\n } else {\n return ResponseHandler.inValidObject(response);\n }\n };\n};","export const LENDERS_CONSTRUCTION_SECURITY_TYPE =\n \"LENDERS_CONSTRUCTION_SECURITY_TYPE\";\nexport const LENDERS_DISTANCES_TYPE = \"LENDERS_DISTANCES_TYPE\";\nexport const LENDERS_FIRST_RANKING_SECURITY_TYPE =\n \"LENDERS_FIRST_RANKING_SECURITY_TYPE\";\nexport const LENDERS_SECOND_RANKING_SECURITY_TYPE =\n \"LENDERS_SECOND_RANKING_SECURITY_TYPE\";\nexport const LENDERS_MEZZANINE_SECURITY_TYPE =\n \"LENDERS_MEZZANINE_SECURITY_TYPE\";\nexport const LENDERS_STATES_SUBURBS_TYPE = \"LENDERS_STATES_SUBURBS_TYPE\";\nexport const LENDERS_STATES_REGIONS_TYPE = \"LENDERS_STATES_REGIONS_TYPE\";\nexport const LENDERS_LAND_BANK_ZONING_TYPE = \"LENDERS_LAND_BANK_ZONING_TYPE\";\nexport const LENDERS_LAND_BANK_AGRICULTURE_TYPE =\n \"LENDERS_LAND_BANK_AGRICULTURE_TYPE\";\n","import React, { Children, cloneElement, isValidElement } from \"react\";\n\nexport const Visible = ({ visible, children, ...ascyclicalProps }) => {\n if (visible) {\n return Children.map(children, child => {\n if (isValidElement(child)) {\n return cloneElement(child, {\n ...ascyclicalProps\n });\n }\n\n return child;\n });\n }\n\n return null;\n};\n","import React, {\n Fragment,\n Children,\n isValidElement,\n cloneElement\n} from \"react\";\nimport { connect } from \"react-redux\";\nimport {\n getUserAuthenticationStatus,\n getLoggedInUserProfile\n} from \"../../actions/authorization\";\nimport { Visible } from \"../../components/Common/visiblityWrapper\";\n\n/**\n * @typedef {object} PropTypes\n * @property {import(\"./policies/types/policy\").AuthorizationPolicy | import(\"./policies/types/policy\").AuthorizationPolicy[]} policy\n * @property {\"and\" | \"or\" | undefined} policyBehavior\n * @property {{ permissions: string[], role: string }} user\n * @property {boolean} isLoggedIn\n * @property {any} notAuthorizedContent\n * @property {import(\"../../libs/utilities\").DispatchAction} dispatch\n */\n\n/**\n * @typedef {object} StateTypes\n * @property {boolean} policyPassed\n */\n\n/** @extends {React.Component} */\nclass AuthorizedViewImpl extends React.Component {\n /** @type {StateTypes} */\n state = {\n policyPassed: false\n };\n\n _subscription = {};\n\n async componentDidMount() {\n const { dispatch } = this.props;\n await Promise.all([\n dispatch(getUserAuthenticationStatus()),\n dispatch(getLoggedInUserProfile())\n ]);\n await this.authorize();\n }\n\n async authorize() {\n const { policy, user, isLoggedIn, policyBehavior } = this.props;\n if (isLoggedIn) {\n if (typeof policy === \"function\") {\n const policyPassed = await policy(user.roles, user.permissions, user); \n this.setState({ policyPassed });\n\n return;\n }\n\n // Array of policies\n if (typeof policy === \"object\" && policy?.length > 0) {\n // Default behavior is \"and\"\n if (policyBehavior === \"and\" || !policyBehavior) {\n const policyPassed = (await Promise.all(\n policy.map(p => p(user.roles, user.permissions, user))\n )).every(x => x);\n this.setState({ policyPassed });\n } else if (policyBehavior === \"or\") {\n const policyPassed = (await Promise.all(\n policy.map(p => p(user.roles, user.permissions, user))\n )).some(x => x);\n this.setState({ policyPassed });\n }\n\n return;\n }\n\n this.setState({ policyPassed: true });\n\n return;\n }\n\n this.setState({ policyPassed: false });\n\n return;\n }\n\n async componentDidUpdate(prevProps) {\n const { user, policy } = prevProps;\n if (user !== this.props.user || policy !== this.props.policy) {\n await this.authorize();\n }\n }\n\n decoratedChildrenWithProps() {\n let { children, ...acyclicalProps } = this.props;\n\n // Remove AuthorizedViewProps\n delete acyclicalProps.policy;\n delete acyclicalProps.user;\n delete acyclicalProps.isLoggedIn;\n delete acyclicalProps.notAuthorizedContent;\n delete acyclicalProps.dispatch;\n delete acyclicalProps.policy;\n\n return Children.map(children, child => {\n if (isValidElement(child)) {\n return cloneElement(child, { ...acyclicalProps, ...child.props });\n }\n\n return child;\n });\n }\n\n render() {\n const { policyPassed, notAuthorizedContent } = this.state;\n\n return (\n \n \n \n {this.decoratedChildrenWithProps()}\n \n \n {notAuthorizedContent}\n \n \n \n );\n }\n}\n\nconst stateProps = state => {\n return {\n user: state.authorization.user,\n isLoggedIn: state.authorization.isLoggedIn\n };\n};\n\nexport const AuthorizedView = connect(stateProps)(AuthorizedViewImpl);\n","import { Checkbox, Col, Radio, Row, Skeleton } from \"antd\";\nimport React, { Fragment } from \"react\";\nimport { mustBeArray } from \"../../libs/utilities\";\nimport { Visible } from \"../Common/visiblityWrapper\";\n\nconst StatesForm = props => {\n const {\n statesList,\n handleChangeDistance,\n regionsList,\n distancesList,\n handleChangeState,\n loading,\n fields,\n handleChangeRegion,\n userHasPermissionToUpdate\n } = props;\n return (\n \n \n \n \n \n
\n
\n
States
\n
\n {mustBeArray(statesList).map((state, i) => {\n return (\n 0 &&\n fields.stateRegionDetails\n .map(x => x.stateKey)\n .includes(state.id)\n }\n onChange={e =>\n handleChangeState({\n isChecked: e.target.checked,\n value: e.target.value\n })\n }\n disabled={!userHasPermissionToUpdate}\n value={state.id}\n key={i}\n className=\"p-b-6\"\n >\n {state.id}\n \n );\n })}\n \n *{\" \"}\n \n
\n
\n {mustBeArray(regionsList).map((state, j) => {\n return (\n \n {state.id}\n
\n
{state.capitalCity}
\n
\n x.stateKey === state.id\n )?.distanceKey\n }\n disabled={!userHasPermissionToUpdate}\n className=\"flex space-between\"\n onChange={e =>\n handleChangeDistance({\n value: e.target.value,\n stateId: state.id\n })\n }\n >\n {mustBeArray(distancesList).map((distance, i) => {\n return (\n \n {distance.name}\n \n );\n })}\n \n *{\" \"}\n \n \n
\n
\n
\n \n {mustBeArray(state.states).map((region, i) => {\n return (\n \n 0 &&\n fields.stateRegionDetails.find(\n st => st.stateKey === state.id\n ) !== undefined &&\n fields.stateRegionDetails\n .find(st => st.stateKey === state.id)\n .regionKeys?.includes(region.id)\n }\n onChange={e =>\n handleChangeRegion({\n isChecked: e.target.checked,\n value: e.target.value,\n stateId: state.id\n })\n }\n key={region.id}\n className=\"p-b-6 flex-1-1-25\"\n >\n {region.name}\n \n \n );\n })}\n \n
\n
\n );\n })}\n
\n
\n
\n );\n};\nexport default StatesForm;\n","// Profile Status\n// Lender\nexport const LENDER_PROFILE_STATUS_ACTIVE_SYSTEM_USER_WARNING =\n \"You have chosen to make this profile active. This means the Lender will now be included on Funds Available emails for the Categories Offered whose verifications are up to date. You should only do this if you are instructed to do so. Are you sure you wish to proceed?\";\nexport const LENDER_PROFILE_STATUS_PAUSE_SYSTEM_USER_WARNING =\n \"You have chosen to make this Lender profile inactive. This means the Lender will not be included on any Funds Available emails. You should only do this if you are instructed to do so. Are you sure you wish to proceed?\";\nexport const LENDER_PROFILE_STATUS_ACTIVE_SELF_WARNING =\n \"You have chosen to make your profile active. This means you will now send Funds Available emails to Brokers for the categories you have chosen. Are you sure you wish to proceed?\";\nexport const LENDER_PROFILE_STATUS_PAUSE_SELF_WARNING =\n \"You have chosen to make your profile inactive. This means you will no longer send Funds Available emails to Brokers. Are you sure you wish to proceed?\";\n\n// Broker\nexport const BROKER_PROFILE_STATUS_ACTIVE_SYSTEM_USER_WARNING =\n \"You have chosen to make this Broker profile active. This means the Broker will now receive Funds Available emails for the categories chosen. You should only do this if you are instructed to do so. Are you sure you wish to proceed?\";\nexport const BROKER_PROFILE_STATUS_PAUSE_SYSTEM_USER_WARNING =\n \"You have chosen to make this Broker profile inactive. This means the Broker will no longer receive Funds Available emails. You should only do this if you are instructed to do so. Are you sure you wish to proceed?\";\nexport const BROKER_PROFILE_STATUS_ACTIVE_SELF_WARNING =\n \"You have chosen to make your profile active. This means you will now receive Funds Available emails for the categories you have chosen. Are you sure you wish to proceed? \";\nexport const BROKER_PROFILE_STATUS_PAUSE_SELF_WARNING =\n \"You have chosen to make your profile inactive. This means you will no longer receive Funds Available emails. Are you sure you wish to proceed?\";\n\n// Law Firm\nexport const LAW_FIRM_PROFILE_STATUS_ACTIVE_SYSTEM_USER_WARNING =\n \"You have chosen to make this Law firm profile active. Are you sure you wish to proceed?\";\nexport const LAW_FIRM_PROFILE_STATUS_PAUSE_SYSTEM_USER_WARNING =\n \"You have chosen to make this Law firm profile inactive. Are you sure you wish to proceed?\";\nexport const LAW_FIRM_PROFILE_STATUS_ACTIVE_SELF_WARNING =\n\"You have chosen to make your profile active. Are you sure you wish to proceed? \";\nexport const LAW_FIRM_PROFILE_STATUS_PAUSE_SELF_WARNING =\n\"You have chosen to make your profile inactive. Are you sure you wish to proceed?\";\n\n// Inactive Account\nexport const INACTIVE_ACCOUNT_SUBSCRIPTION_CHANGE_WARNING =\n \"Your profile status is currently set to inactive. Even though you have turned on this category brokers will not see it until you unpause your profile.\";\nexport const AT_LEAST_ONE_FIELD_SELECTED_SUBSCRIPTION_WARNING =\n \"Your profile status is currently set to active. This means you must have at least one category turned on. If you do not want to offer any categories on you should pause your profile.\";\n\n// Incomplete lender categories warning\nexport const LENDER_PROFILE_INCOMPLETE_MANATORY_FIELD_WARNING =\n \"This category is currently not visible to brokers because it has incomplete mandatory fields.\";\nexport const LENDER_PROFILE_UNVERIFIED_WARNING =\n \"This category is currently not visible to brokers because it has not been verified.\";\nexport const LENDER_PROFILE_MORE_THAN_MONTH_LAST_VERIFIED_WARNING =\n \"This category is currently not visible to brokers because it has been more than 30 days since it was last verified.\";\n\nexport const STATE_REQUIRED_WARNING = \"State is required.\";\n\n// Master switch off errors\nexport const MASTER_SWITCH_OFF_OMICRON_STATUS_CHANGE_ERROR =\n \"The Master Switch on this Profile has been switched off. To change the matching status you must first of all turn the master switch on.\";\n\n// Inactive Profile warnings\nexport const INACTIVE_PROFILE_MATCHES_LIST_WARNING =\n \"This profile is currently inactive and so there is no matching being done. To change the matching status you must first of all make the profile active.\";\n\n// 0 in available warnings\nexport const ZERO_AVAILABLE_WARNING_OFFERED_CATEGORY =\n \"This is not possible because you cannot offer $0 to brokers looking for funds. Instead you need to pause offering this category. Your criteria will be preserved for when you do once again have funds to offer. Pause now?\";\nexport const ZERO_AVAILABLE_WARNING_CATEGORY_NOT_OFFERED =\n \"This is not possible because you cannot offer $0 to brokers looking for funds.\";\n\n// Master Switch Confirmation messages\nexport const LENDER_MASTER_SWITCH_OFF_CONFIRMATION_TEXT =\n \"You have chosen to turn off the Master Switch OFF for this Lender. The Lender will no longer be able to log in or receive automated email. Brokers will no longer receive emails featuring this lender or see the Lender in their match lists. Are you sure you wish to proceed?\";\nexport const LENDER_MASTER_SWITCH_ON_CONFIRMATION_TEXT =\n \"You have chosen to turn the Master Switch ON for this Lender. The Lender will now be able to log in and configure their profile. Brokers will receive Fund Available emails (if they are set in matches to do so). Are you sure you wish to proceed?\";\nexport const BROKER_MASTER_SWITCH_OFF_CONFIRMATION_TEXT =\n \"You have chosen to turn off the Master Switch OFF for this Broker. The Broker will no longer be able to log in or receive automated email. Lenders will no longer receive emails featuring this broker or see the Broker in their match lists. Are you sure you wish to proceed?\";\nexport const BROKER_MASTER_SWITCH_ON_CONFIRMATION_TEXT =\n \"You have chosen to turn the Master Switch ON for this Broker. The Broker will now be able to log in and configure their profile. Lenders will receive Fund Available emails (if they are set in matches to do so). Are you sure you wish to proceed?\";\n export const LAW_FIRM_MASTER_SWITCH_OFF_CONFIRMATION_TEXT = \"You have chosen to turn off the Master Switch OFF for this Law Firm. The Law Firm will no longer be able to log in or receive automated email. Are you sure you wish to proceed?\";\n export const LAW_FIRM_MASTER_SWITCH_ON_CONFIRMATION_TEXT = \"You have chosen to turn the Master Switch ON for this Law Firm. The Law Firm will now be able to log in and configure their profile. Are you sure you wish to proceed?\";","import React from 'react';\nimport { Button, Modal } from \"antd\";\nimport { ZERO_AVAILABLE_WARNING_CATEGORY_NOT_OFFERED, ZERO_AVAILABLE_WARNING_OFFERED_CATEGORY } from \"../../constants/warnings\";\n\nconst ZeroAvailableWarning = props => {\n const {handleCancel, handleOk, visible, isCategoryOffered, pauseLoading} = props;\n return(\n \n Yes\n ,\n \n Cancel\n \n ] :\n [\n \n Cancel\n \n ]}\n >\n
\n {\n isCategoryOffered ?\n ZERO_AVAILABLE_WARNING_OFFERED_CATEGORY :\n ZERO_AVAILABLE_WARNING_CATEGORY_NOT_OFFERED\n }\n
\n \n )\n}\nexport default ZeroAvailableWarning;\n","import {\n Alert,\n Button,\n Card,\n Checkbox,\n Col,\n Input,\n InputNumber,\n message,\n Radio,\n Row,\n Skeleton,\n Modal\n} from \"antd\";\nimport React, { useCallback, useEffect, useState } from \"react\";\nimport {\n LENDERS_DISTANCES_TYPE,\n LENDERS_FIRST_RANKING_SECURITY_TYPE,\n LENDERS_STATES_SUBURBS_TYPE\n} from \"../../constants/lookup\";\nimport {\n asDefaultDisplayFormatDate,\n defaultIfUndefinedOrNull,\n delay,\n errorDisplay,\n errorDisplayCustom,\n isCategoryOffered,\n millisecondsInADay,\n mustBeArray\n} from \"../../libs/utilities\";\nimport StatesForm from \"./StatesForm\";\nimport Axios from \"axios\";\nimport _, { first } from \"lodash\";\nimport produce from \"immer\";\nimport {\n getLendersFirstRankingProfile,\n saveFirstRankingField,\n saveFirstRankingFieldAsAdmin,\n verifyFirstRankingFields,\n verifyFirstRankingFieldsAsAdmin,\n clearDetailsFieldsAsAdmin,\n clearDetailsFields\n} from \"../../actions/profile\";\nimport { lendersLookUpHandler } from \"../../actions/lookup\";\nimport { connect } from \"react-redux\";\nimport { Visible } from \"../Common/visiblityWrapper\";\nimport { ADMIN_USER } from \"../../constants/systemUsers\";\nimport {\n LENDER_PROFILE_INCOMPLETE_MANATORY_FIELD_WARNING,\n LENDER_PROFILE_MORE_THAN_MONTH_LAST_VERIFIED_WARNING,\n STATE_REQUIRED_WARNING\n} from \"../../constants/warnings\";\nimport moment from \"moment\";\nimport ZeroAvailableWarning from \"./ZeroAvailableWarning\";\nimport authService from \"../../actions/AuthorizeService\";\nimport RadioGroup from \"antd/lib/radio/group\";\n\nconst FirstRankingImprovedImpl = ({\n activeKey,\n activeSubKey,\n dispatch,\n userId,\n userType,\n isSystemUser,\n lender,\n userHasPermissionToUpdate,\n profileType,\n broker,\n getLenderProfile,\n getBrokerProfile,\n toggleSubscriptions\n}) => {\n const [firstRanking, setFirstRanking] = useState({\n available: null,\n bookSize: null,\n bransgrovesComments: null,\n distanceKey: null,\n estabFeeMin: null,\n estabFeeMax: null,\n isVerified: false,\n lastVerifiedByFirstName: null,\n lastVerifiedByLastName: null,\n lastVerifiedDate: null,\n lenderId: \"\",\n lenderCategoryId: \"\",\n lvrNonResidentialMin: null,\n lvrNonResidentialMax: null,\n lvrResidentialMin: null,\n lvrResidentialMax: null,\n pointOfDifference: null,\n preferredParcelSizeMax: null,\n preferredParcelSizeMin: null,\n rateMax: null,\n rateMin: null,\n higherRateMax: null,\n higerRateMin: null,\n securityTypeKeys: [],\n stateRegionDetails: [],\n isSyndicateLender: false,\n advertiseToOtherSyndicateLenders: false\n });\n const [pageLoad, setPageLoad] = useState(true);\n const [errorsList, setErrorsList] = useState([]);\n const [\n zeroAvailableWarningVisible,\n setZeroAvailableWarningVisible\n ] = useState(false);\n const [pauseLoading, setPauseLoading] = useState(false);\n const [isPrivate, setIsPrivate] = useState(false);\n const [securityList, setSecurityList] = useState([]);\n const [residentialType, setResidentialType] = useState([]);\n const [industrialType, setIndustrialType] = useState([]);\n const [commercialType, setCommercialType] = useState([]);\n const [specialisedType, setSpecialisedType] = useState([]);\n const [statesList, setStatesList] = useState([]);\n const [selectedStates, setSelectedStates] = useState([]);\n const [regionsList, setRegionsList] = useState([]);\n const [selectedRegion, setSelectedRegion] = useState(\"\");\n const [distancesList, setDistancesList] = useState([]);\n const [selectedDistance, setSelectedDistance] = useState(\"\");\n const [lookupsLoading, setLookupsLoading] = useState(false);\n const [isResidential, setIsResidential] = useState(false);\n const [isNonResidential, setIsNonResidential] = useState(false);\n const [isInitialized, setIsInitialized] = useState(false);\n const [isVerifying, setIsVerifying] = useState(false);\n const [isSaving, setIsSaving] = useState(false);\n const [isNotAvailableToBrokers, setIsNotAvailableToBrokers] = useState(false);\n const [\n hasIncompleteMandatoryFields,\n setHasIncompleteMandatoryFields\n ] = useState(false);\n const [isVerifiedButNotSwitchedOn, setIsVerifiedButNotSwitchedOn] = useState(\n false\n );\n const [hasPendingSave, setHasPendingSave] = useState(false);\n const debounceHanldeSave = useCallback(\n _.debounce(options => saveChangesImpl(options), 2000),\n []\n );\n const [showClearDetailsModal, setShowClearDetailsModal] = useState(false);\n const [isClearingDetails, setClearingDetails] = useState(false);\n \n useEffect(() => {\n checkIfCategoriesEnabled({\n data: profileType === \"lender\" ? lender : broker,\n firstRankingData: firstRanking\n });\n }, [profileType === \"lender\" ? lender : broker]);\n\n useEffect(() => {\n const { min, max } = recalculateTotalCostOfFunds(\n firstRanking.rateMin,\n firstRanking.rateMax,\n firstRanking.estabFeeMin,\n firstRanking.estabFeeMax\n );\n setFirstRanking(\n produce(firstRanking, x => {\n x.totalCostOfFundsLow = min;\n x.totalCostOfFundsHigh = max;\n })\n );\n }, [\n firstRanking.rateMax,\n firstRanking.rateMin,\n firstRanking.estabFeeMin,\n firstRanking.estabFeeMax\n ]);\n\n function recalculateTotalCostOfFunds(\n rateMin,\n rateMax,\n estabFeeMin,\n estabFeeMax\n ) {\n return {\n min:\n defaultIfUndefinedOrNull(rateMin, 0) +\n defaultIfUndefinedOrNull(estabFeeMin, 0),\n max:\n defaultIfUndefinedOrNull(rateMax, 0) +\n defaultIfUndefinedOrNull(estabFeeMax, 0)\n };\n }\n\n const checkIfCategoriesEnabled = ({ data, firstRankingData }) => {\n if (data && data.categoriesOffered && firstRankingData) {\n let isSwitchedOn = data.categoriesOffered.firstRanking;\n setIsVerifiedButNotSwitchedOn(\n firstRankingData.isVerified === true && !isSwitchedOn ? true : false\n );\n }\n };\n\n useEffect(() => {\n // if (activeSubKey === \"4\") {\n if (activeSubKey === \"4\") {\n onInitialized();\n }\n }, [activeSubKey, lender]);\n\n useEffect(() => {\n var hasResidential =\n residentialType.filter(type =>\n firstRanking.securityTypeKeys.includes(type)\n ).length > 0;\n var hasNonResidential =\n [...industrialType, ...commercialType, ...specialisedType].filter(type =>\n firstRanking.securityTypeKeys.includes(type)\n ).length > 0;\n if (!hasNonResidential) {\n setFirstRanking(\n produce(firstRanking, x => {\n x.lvrNonResidentialMin = null;\n x.lvrNonResidentialMax = null;\n })\n );\n }\n if (!hasResidential) {\n setFirstRanking(\n produce(firstRanking, x => {\n x.lvrResidentialMin = null;\n x.lvrResidentialMax = null;\n })\n );\n }\n setIsResidential(hasResidential);\n setIsNonResidential(hasNonResidential);\n }, [firstRanking.securityTypeKeys]);\n\n useEffect(() => {\n setLookupsLoading(regionsList.length === 0);\n }, [regionsList]);\n\n async function onInitialized() {\n setIsInitialized(false);\n await Promise.all([\n listDistances(),\n listSecurityTypes(),\n getFirstRankingDetails()\n ]).then(resp => {\n setIsInitialized(true);\n });\n }\n\n useEffect(() => {\n if (isInitialized && firstRanking.id !== null) {\n let cancelToken = Axios.CancelToken.source();\n setHasPendingSave(true);\n debounceHanldeSave({\n cancelToken,\n firstRanking,\n userId,\n residentialType,\n specialisedType,\n industrialType,\n commercialType,\n userType\n });\n }\n }, [firstRanking]);\n\n const getUserProfile = async () => {\n let userDetails = await authService.getUser();\n let usersLenderId = userDetails[\"app.user.lenderid\"];\n let usersBrokerId = userDetails[\"app.user.brokerid\"];\n const actionName =\n profileType === \"lender\" ? getLenderProfile : getBrokerProfile;\n actionName({\n id: userId,\n userType,\n notClearProfileImage: true,\n doNotResetCurrentTab: true,\n isUserViewingSelfProfile:\n (profileType === \"lender\" ? usersLenderId : usersBrokerId) === userId\n });\n };\n\n function onStateChanged(stateCheckBoxDetails) {\n if (\n !stateCheckBoxDetails.isChecked &&\n mustBeArray(selectedStates).length === 1\n ) {\n return message.warning(STATE_REQUIRED_WARNING);\n }\n if (\n stateCheckBoxDetails.isChecked === true &&\n !selectedStates.map(x => x.id).includes(stateCheckBoxDetails.value)\n ) {\n let stateToAppend = statesList.find(\n x => x.id === stateCheckBoxDetails.value\n );\n selectedStates.push(stateToAppend);\n setRegionsList(\n selectedStates.map(s => ({\n id: s.id,\n capitalCity: s.capitalCity + \"+\",\n states: s.states\n }))\n );\n\n setFirstRanking(\n produce(firstRanking, x => {\n x.stateRegionDetails.push({\n stateKey: stateCheckBoxDetails.value,\n distanceKey: null,\n regionKeys: []\n });\n })\n );\n } else if (\n stateCheckBoxDetails.isChecked === false &&\n selectedStates.map(x => x.id).includes(stateCheckBoxDetails.value)\n ) {\n let filteredStates = selectedStates.filter(\n x => x.id !== stateCheckBoxDetails.value\n );\n setSelectedStates(filteredStates);\n setRegionsList(\n filteredStates.map(s => ({\n id: s.id,\n capitalCity: s.capitalCity + \"+\",\n states: s.states\n }))\n );\n setFirstRanking(\n produce(firstRanking, x => {\n x.stateRegionDetails = x.stateRegionDetails.filter(\n x => x.stateKey !== stateCheckBoxDetails.value\n );\n })\n );\n }\n }\n\n const checkProductState = async () => {\n const resp = await dispatch(getLendersFirstRankingProfile({ id: userId }));\n let responseData = resp.data;\n let today = new Date();\n\n if (responseData.modifiedDate) {\n let modifiedDate = new Date(responseData.modifiedDate);\n setIsNotAvailableToBrokers(\n !responseData.isVerified &&\n Math.round((today - modifiedDate) / millisecondsInADay)\n );\n }\n\n if (responseData.lastVerifiedDate) {\n setIsNotAvailableToBrokers(\n moment().diff(responseData.lastVerifiedDate, \"days\") > 30\n );\n }\n\n // let isSwitchedOn = lender.categoriesOffered.firstRanking === true;\n let isSwitchedOn =\n (lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.firstRanking) === true;\n\n setIsVerifiedButNotSwitchedOn(\n responseData.isVerified === true && !isSwitchedOn\n );\n\n setHasIncompleteMandatoryFields(hasMissingMandatoryFields(responseData));\n };\n\n const getFirstRankingDetails = async () => {\n const resp = await dispatch(getLendersFirstRankingProfile({ id: userId }));\n const initialStates = await listStates();\n const hasNoStateRegionDetail =\n resp.data.stateRegionDetails.map(x => x.stateKey).length < 1;\n if (hasNoStateRegionDetail) {\n resp.data.stateRegionDetails.push({\n stateKey: \"NSW\",\n distanceKey: null,\n regionKeys: []\n });\n }\n var stateKeyInitial = resp.data.stateRegionDetails.map(x => x.stateKey);\n setFirstRanking(\n produce(firstRanking, x => {\n const selectedStatesFromKeys = initialStates.filter(x =>\n stateKeyInitial.includes(x.id)\n );\n const selectedRegions = selectedStatesFromKeys.map(s => ({\n id: s.id,\n capitalCity: s.capitalCity + \"+\",\n states: s.states\n }));\n setSelectedStates(selectedStatesFromKeys);\n setRegionsList(\n produce(regionsList, x => {\n x = selectedRegions;\n return x;\n })\n );\n\n let responseData = resp.data;\n\n let today = new Date();\n\n if (responseData.modifiedDate) {\n let modifiedDate = new Date(responseData.modifiedDate);\n setIsNotAvailableToBrokers(\n !responseData.isVerified &&\n Math.round((today - modifiedDate) / millisecondsInADay)\n );\n }\n\n if (responseData.lastVerifiedDate) {\n setIsNotAvailableToBrokers(\n moment().diff(responseData.lastVerifiedDate, \"days\") > 30\n );\n }\n\n let isSwitchedOn =\n (lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.firstRanking) === true;\n\n setIsVerifiedButNotSwitchedOn(\n responseData.isVerified === true && !isSwitchedOn\n );\n\n setHasIncompleteMandatoryFields(\n hasMissingMandatoryFields(responseData)\n );\n\n return resp.data;\n })\n );\n setPageLoad(false);\n };\n\n const hasMissingMandatoryFields = data => {\n return (\n !(\n data.securityTypeKeys.length > 0 &&\n data.available &&\n data.preferredParcelSizeMin &&\n data.preferredParcelSizeMax &&\n data.rateMin &&\n data.rateMax &&\n data.higherRateMax &&\n data.higherRateMin &&\n (data.estabFeeMin || data.estabFeeMin === 0) &&\n (data.estabFeeMax || data.estabFeeMax === 0) &&\n data.stateRegionDetails &&\n _.isEmpty(\n mustBeArray(data.stateRegionDetails).filter(\n x => x.distanceKey === null && x.regionKeys.length < 1\n )\n ) &&\n data.pointOfDifference &&\n data.pointOfDifference.length >= 10\n ) === true\n );\n };\n\n const listStates = async () => {\n const resp = await dispatch(\n lendersLookUpHandler({ action: LENDERS_STATES_SUBURBS_TYPE, userType })\n );\n if (resp.status) {\n setStatesList(\n produce(statesList, x => {\n return resp.data;\n })\n );\n\n return resp.data;\n } else {\n errorDisplay(resp.data.errors);\n }\n };\n\n const listDistances = async () => {\n const resp = await dispatch(\n lendersLookUpHandler({ action: LENDERS_DISTANCES_TYPE, userType })\n );\n if (resp.status) {\n setDistancesList(\n produce(distancesList, x => {\n return resp.data;\n })\n );\n } else {\n errorDisplay(resp.data.errors);\n }\n };\n\n const listSecurityTypes = async () => {\n const resp = await dispatch(\n lendersLookUpHandler({\n action: LENDERS_FIRST_RANKING_SECURITY_TYPE,\n userType\n })\n );\n if (resp.status) {\n setSecurityList(\n produce(securityList, x => {\n return resp.data;\n })\n );\n\n setResidentialType(\n produce(residentialType, x => {\n return resp.data\n .find(x => x.id === \"Residential\")\n .securityTypes.map(x => x.id);\n })\n );\n\n setIndustrialType(\n produce(industrialType, x => {\n return resp.data\n .find(x => x.id === \"Industrial\")\n .securityTypes.map(x => x.id);\n })\n );\n\n setCommercialType(\n produce(commercialType, x => {\n return resp.data\n .find(x => x.id === \"Commercial\")\n .securityTypes.map(x => x.id);\n })\n );\n\n setSpecialisedType(\n produce(specialisedType, x => {\n return resp.data\n .find(x => x.id === \"Specialised\")\n .securityTypes.map(x => x.id);\n })\n );\n } else {\n errorDisplay(resp.data.errors);\n }\n };\n\n const saveChangesImpl = async options => {\n const {\n cancelToken,\n firstRanking,\n userId,\n residentialType,\n specialisedType,\n industrialType,\n commercialType,\n userType\n } = options;\n if (\n firstRanking &&\n Number(firstRanking.available) === 0 &&\n (firstRanking.isVerified || !hasMissingMandatoryFields(firstRanking))\n ) {\n return setZeroAvailableWarningVisible(true);\n }\n setIsSaving(true);\n let payLoad = { ...firstRanking };\n if (\n _.isEmpty(\n residentialType.filter(type =>\n firstRanking.securityTypeKeys.includes(type)\n )\n )\n ) {\n payLoad = {\n ...payLoad,\n lvrResidentialMin: null,\n lvrResidentialMax: null\n };\n }\n if (\n _.isEmpty(\n [...industrialType, ...commercialType, ...specialisedType].filter(\n type => firstRanking.securityTypeKeys.includes(type)\n )\n )\n ) {\n payLoad = {\n ...payLoad,\n lvrNonResidentialMin: null,\n lvrNonResidentialMax: null\n };\n }\n if (userType === ADMIN_USER) {\n await dispatch(\n saveFirstRankingFieldAsAdmin({\n cancelToken: cancelToken,\n payLoad: payLoad,\n id: userId\n })\n ).then(resp => {\n if (!resp.status) {\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, []);\n // errorDisplay(resp.data.errors);\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n }\n checkProductState();\n setHasPendingSave(false);\n setIsSaving(false);\n });\n } else {\n await dispatch(\n saveFirstRankingField({\n cancelToken: cancelToken,\n payLoad: payLoad,\n id: userId\n })\n ).then(resp => {\n if (!resp.status) {\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, []);\n // errorDisplay(resp.data.errors);\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n }\n checkProductState();\n setIsSaving(false);\n setHasPendingSave(false);\n });\n }\n };\n\n const handleSavingErrors = ({ resp, data }) => {\n if (resp.data.errors.length > 0) {\n setErrorsList(mustBeArray(resp && resp.data && resp.data.errors));\n } else if (data && data.isVerified) {\n if (!resp.status) {\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, []);\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n }\n } else {\n setErrorsList(mustBeArray(resp && resp.data && resp.data.errors));\n }\n };\n\n const verify = async () => {\n if (firstRanking && Number(firstRanking.available) === 0) {\n return setZeroAvailableWarningVisible(true);\n }\n setIsVerifying(true);\n if (userType === ADMIN_USER) {\n await dispatch(\n verifyFirstRankingFieldsAsAdmin({\n id: userId\n })\n ).then(resp => {\n setIsVerifying(false);\n handleSavingErrors({ resp, data: firstRanking });\n onInitialized();\n delay(500).then(() => {\n getUserProfile();\n });\n });\n } else {\n await dispatch(\n verifyFirstRankingFields({\n id: userId\n })\n ).then(resp => {\n setIsVerifying(false);\n handleSavingErrors({ resp, data: firstRanking });\n onInitialized();\n delay(500).then(() => {\n getUserProfile();\n });\n });\n }\n };\n\n const handleCancel = () => {\n setPauseLoading(false);\n setZeroAvailableWarningVisible(false);\n };\n const handleOk = () => {\n setPauseLoading(true);\n toggleSubscriptions({\n profileType,\n productType: \"firstRanking\",\n id: userId\n }).then(resp => {\n setPauseLoading(false);\n setZeroAvailableWarningVisible(false);\n if (resp.status) {\n message.success(\n profileType === \"lender\"\n ? \"Categories offered updated successfully.\"\n : \"Categories subscribed to updated successfully.\"\n );\n getUserProfile();\n }\n });\n };\n const isResidentialSecurityTypeValidated = () => {\n if (!firstRanking) return false;\n if (\n isResidential &&\n (!firstRanking.lvrResidentialMin || !firstRanking.lvrResidentialMax)\n )\n return false;\n return true;\n };\n const isNonResidentialSecurityTypeValidated = () => {\n if (!firstRanking) return false;\n if (\n isNonResidential &&\n (!firstRanking.lvrNonResidentialMin || !firstRanking.lvrNonResidentialMax)\n )\n return false;\n return true;\n };\n const isEstabFeeValidated = () => {\n if (!firstRanking) return false;\n if (!(firstRanking.estabFeeMin || firstRanking.estabFeeMin === 0))\n return false;\n if (!(firstRanking.estabFeeMax || firstRanking.estabFeeMax === 0))\n return false;\n if (Number(firstRanking.estabFeeMin) > Number(firstRanking.estabFeeMax))\n return false;\n return true;\n };\n const getMissingRequiredFields = () => {\n if (!firstRanking || pageLoad) return true;\n if (\n !isResidentialSecurityTypeValidated() ||\n !isNonResidentialSecurityTypeValidated() ||\n !isEstabFeeValidated()\n ) {\n return true;\n }\n return false;\n };\n const handleShowClearDetailsModal = () => {\n setShowClearDetailsModal(true);\n }\n const handleClearDetailsModalClose = () => {\n setShowClearDetailsModal(false);\n }\n const handleClearDetailsChange = async options => {\n if(!isVerifying && !isSaving){\n let cancelToken = Axios.CancelToken.source();\n\n setClearingDetails(true);\n let categoryType = {\n categoryType: \"FirstRanking\"\n };\n if (userType === ADMIN_USER) {\n await dispatch(\n clearDetailsFieldsAsAdmin({\n id: userId,\n categoryType: categoryType,\n cancelToken: cancelToken\n })\n ).then(resp => {\n if(!resp.status){\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, [])\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n onInitialized();\n delay(500).then(() => {\n getUserProfile();\n });\n }\n\n setClearingDetails(false);\n setShowClearDetailsModal(false);\n });\n }\n else {\n await dispatch(\n clearDetailsFields({\n id: userId,\n categoryType: categoryType,\n cancelToken: cancelToken\n })\n ).then(resp => {\n if(!resp.status){\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, [])\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n onInitialized();\n delay(500).then(() => {\n getUserProfile();\n });\n }\n\n setClearingDetails(false);\n setShowClearDetailsModal(false);\n });\n }\n }\n }\n return (\n \n \n \n \n \n \n \n \n
\n
\n \n \n \n \n \n \n
\n
\n \n \n \n \n \n \n
\n
\n {!_.isEmpty(errorsList) && (\n \n \n \n
\n The following errors must be resolved before this criteria\n can be verified:\n
\n
    \n {errorsList.map((errors, i) => {\n return
  • {errors}
  • ;\n })}\n
\n \n }\n type=\"warning\"\n />\n \n
\n )}\n\n \n Verifying...\n \n \n Saving...\n \n \n Clearing...\n \n\n \n \n
\n
\n
\n Available  \n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n onChange={e =>\n setFirstRanking(\n produce(firstRanking, x => {\n x.available = e;\n })\n )\n }\n className=\"w-150 m-l-6 hideNumberPointers\"\n disabled={!userHasPermissionToUpdate}\n value={firstRanking.available}\n />\n
\n \n *{\" \"}\n \n
\n
\n
\n
\n
\n
\n \n
\n LVR (residential)  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setFirstRanking(\n produce(firstRanking, x => {\n x.lvrResidentialMin = e;\n })\n )\n }\n className=\"w-80 m-l-4 hideNumberPointers\"\n disabled={!userHasPermissionToUpdate}\n value={firstRanking.lvrResidentialMin}\n />\n
\n \n *{\" \"}\n \n
\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setFirstRanking(\n produce(firstRanking, x => {\n x.lvrResidentialMax = e;\n })\n )\n }\n className=\"w-80 m-l-4 hideNumberPointers\"\n disabled={!userHasPermissionToUpdate}\n value={firstRanking.lvrResidentialMax}\n />\n
\n \n *{\" \"}\n \n
\n
\n
\n
\n
\n Preferred parcel size  \n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n onChange={e =>\n setFirstRanking(\n produce(firstRanking, x => {\n x.preferredParcelSizeMin = e;\n })\n )\n }\n className=\"w-150 m-l-4 m-b-6 m-r-10 hideNumberPointers\"\n disabled={!userHasPermissionToUpdate}\n value={firstRanking.preferredParcelSizeMin}\n />\n \n *{\" \"}\n \n to  \n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n onChange={e =>\n setFirstRanking(\n produce(firstRanking, x => {\n x.preferredParcelSizeMax = e;\n })\n )\n }\n className=\"w-150 m-l-4 m-b-6 hideNumberPointers\"\n value={firstRanking.preferredParcelSizeMax}\n disabled={!userHasPermissionToUpdate}\n />\n \n *{\" \"}\n \n
\n \n
\n
\n LVR (non-residential)  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setFirstRanking(\n produce(firstRanking, x => {\n x.lvrNonResidentialMin = e;\n })\n )\n }\n className=\"w-80 m-l-4 m-b-6 hideNumberPointers\"\n value={firstRanking.lvrNonResidentialMin}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setFirstRanking(\n produce(firstRanking, x => {\n x.lvrNonResidentialMax = e;\n })\n )\n }\n className=\"w-80 m-l-4 m-b-6 hideNumberPointers\"\n value={firstRanking.lvrNonResidentialMax}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n
\n
\n \n \n \n
Security type
\n\n \n \n \n \n {securityList.map((data, i) => {\n return (\n
\n
{`${data.name}:`}
\n
\n {mustBeArray(data.securityTypes).map(\n (security, j) => {\n return (\n 0 &&\n firstRanking.securityTypeKeys.includes(\n security.id\n )\n }\n disabled={!userHasPermissionToUpdate}\n value={security.id}\n key={j}\n onChange={e =>\n setFirstRanking(\n produce(firstRanking, x => {\n let checkBoxValue = e.target.value;\n let checked = e.target.checked;\n if (\n checked === true &&\n !x.securityTypeKeys.includes(\n checkBoxValue\n )\n ) {\n x.securityTypeKeys.push(\n checkBoxValue\n );\n } else if (\n checked === false &&\n x.securityTypeKeys.includes(\n checkBoxValue\n )\n ) {\n x.securityTypeKeys = x.securityTypeKeys.filter(\n s => s !== checkBoxValue\n );\n }\n })\n )\n }\n >\n {security.name}\n \n );\n }\n )}\n
\n
\n );\n })}\n
\n
\n \n setFirstRanking(\n produce(firstRanking, x => {\n x.stateRegionDetails.forEach(s => {\n if (s.stateKey === stateId) {\n s.distanceKey = value;\n }\n });\n return x;\n })\n )\n }\n handleChangeState={key => onStateChanged(key)}\n disabled={!userHasPermissionToUpdate}\n handleChangeRegion={({ isChecked, value, stateId }) =>\n setFirstRanking(\n produce(firstRanking, x => {\n x.stateRegionDetails.forEach(s => {\n if (s.stateKey === stateId) {\n let regionKeys = s.regionKeys;\n if (isChecked === true) {\n if (!regionKeys.includes(value)) {\n s.regionKeys.push(value);\n }\n } else if (isChecked === false) {\n if (regionKeys.includes(value)) {\n s.regionKeys = s.regionKeys.filter(\n rk => rk !== value\n );\n }\n }\n }\n });\n return x;\n })\n )\n }\n />\n \n \n *{\" \"}\n \n\n \n
\n
\n Lower Rate  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setFirstRanking(\n produce(firstRanking, x => {\n x.rateMin = e;\n })\n )\n }\n className=\"w-80 m-l-4 m-b-6 hideNumberPointers\"\n value={firstRanking.rateMin}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setFirstRanking(\n produce(firstRanking, x => {\n x.rateMax = e;\n })\n )\n }\n className=\"w-80 m-l-4 m-b-6 hideNumberPointers\"\n value={firstRanking.rateMax}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n\n
\n
\n Higher Rate  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setFirstRanking(\n produce(firstRanking, x => {\n x.higherRateMin = e;\n })\n )\n }\n className=\"w-80 m-l-4 m-b-6 hideNumberPointers\"\n value={firstRanking.higherRateMin}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setFirstRanking(\n produce(firstRanking, x => {\n x.higherRateMax = e;\n })\n )\n }\n className=\"w-80 m-l-4 m-b-6 hideNumberPointers\"\n value={firstRanking.higherRateMax}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n\n
\n
\n
\n Estab Fee  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setFirstRanking(\n produce(firstRanking, x => {\n x.estabFeeMin = e;\n })\n )\n }\n className=\"w-80 m-l-4 hideNumberPointers\"\n value={firstRanking.estabFeeMin}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setFirstRanking(\n produce(firstRanking, x => {\n x.estabFeeMax = e;\n })\n )\n }\n className=\"w-80 m-l-4 hideNumberPointers\"\n value={firstRanking.estabFeeMax}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n
\n
\n
\n Total Cost of Funds  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"w-80 m-l-4 m-b-6 hideNumberPointers\"\n value={firstRanking.totalCostOfFundsLow}\n disabled={true}\n />\n
\n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"w-80 m-l-4 m-b-6 hideNumberPointers\"\n value={firstRanking.totalCostOfFundsHigh}\n disabled={true}\n />\n
\n
\n
\n \n \n \n \n \n Point of difference\n \n \n setFirstRanking(\n produce(firstRanking, x => {\n x.pointOfDifference = e.currentTarget.value;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}\n />\n \n \n *{\" \"}\n \n \n \n Syndicate loans\n Are you prepared to loan in a Syndicate using the Bransgroves Lawyers double blind syndicate\n deed and Bransgroves Lawyers trustee?\n \n \n setFirstRanking(\n produce(firstRanking, x=> {\n x.isSyndicateLender = true;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}>\n Yes\n \n \n setFirstRanking(\n produce(firstRanking, x=> {\n x.isSyndicateLender = false;\n x.advertiseToOtherSyndicateLenders = false;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}>\n No\n \n \n \n \n \n \n Do you want to advertise this category to other Syndicate Lenders only?\n \n \n setFirstRanking(\n produce(firstRanking, x=> {\n x.advertiseToOtherSyndicateLenders = true;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}>\n Yes\n \n \n setFirstRanking(\n produce(firstRanking, x=> {\n x.advertiseToOtherSyndicateLenders = false;\n })\n )\n }\n disabled={!userHasPermissionToUpdate} >\n No\n \n \n \n \n \n Last Verified\n \n \n {userHasPermissionToUpdate && (\n \n \n Verify\n \n \n You must verify every calendar month or this matrix will be\n paused\n \n \n )}\n \n \n \n \n \n handleClearDetailsChange(options)\n }\n disabled={isClearingDetails}\n >\n Okay\n ,\n \n ]}\n >\n
\n Are you sure you wish to proceed on clearing the form?\n
\n \n \n );\n};\n\nexport default connect()(FirstRankingImprovedImpl);\n","import {\n Alert,\n Button,\n Card,\n Checkbox,\n Col,\n Input,\n InputNumber,\n message,\n Radio,\n Row,\n Skeleton,\n Modal\n} from \"antd\";\nimport React, { useCallback, useEffect, useState } from \"react\";\nimport {\n LENDERS_DISTANCES_TYPE,\n LENDERS_SECOND_RANKING_SECURITY_TYPE,\n LENDERS_STATES_SUBURBS_TYPE\n} from \"../../constants/lookup\";\nimport {\n asDefaultDisplayFormatDate,\n defaultIfUndefinedOrNull,\n delay,\n errorDisplay,\n errorDisplayCustom,\n isCategoryOffered,\n millisecondsInADay,\n mustBeArray\n} from \"../../libs/utilities\";\nimport StatesForm from \"./StatesForm\";\nimport _ from \"lodash\";\nimport AwesomeDebouncePromise from \"awesome-debounce-promise\";\nimport Axios from \"axios\";\nimport { connect } from \"react-redux\";\nimport { Visible } from \"../Common/visiblityWrapper\";\nimport produce from \"immer\";\nimport { lendersLookUpHandler } from \"../../actions/lookup\";\nimport {\n getLendersSecondRankingProfile,\n saveSecondRankingField,\n saveSecondRankingFieldAsAdmin,\n verifySecondRankingFields,\n verifySecondRankingFieldsAsAdmin,\n clearDetailsFieldsAsAdmin,\n clearDetailsFields\n} from \"../../actions/profile\";\nimport { ADMIN_USER } from \"../../constants/systemUsers\";\nimport {\n LENDER_PROFILE_INCOMPLETE_MANATORY_FIELD_WARNING,\n LENDER_PROFILE_MORE_THAN_MONTH_LAST_VERIFIED_WARNING,\n STATE_REQUIRED_WARNING\n} from \"../../constants/warnings\";\nimport moment from \"moment\";\nimport ZeroAvailableWarning from \"./ZeroAvailableWarning\";\nimport authService from \"../../actions/AuthorizeService\";\n\nconst SecondRankingImprovedImpl = ({\n activeKey,\n activeSubKey,\n dispatch,\n userId,\n userType,\n isSystemUser,\n lender,\n userHasPermissionToUpdate,\n broker,\n profileType,\n getLenderProfile,\n getBrokerProfile,\n toggleSubscriptions\n}) => {\n const [secondRanking, setSecondRanking] = useState({\n available: null,\n bookSize: null,\n bransgrovesComments: null,\n distanceKey: null,\n estabFeeMin: null,\n estabFeeMax: null,\n isVerified: false,\n lastVerifiedByFirstName: null,\n lastVerifiedByLastName: null,\n lastVerifiedDate: null,\n lenderId: \"\",\n lenderCategoryId: \"\",\n lvrNonResidentialMin: null,\n lvrNonResidentialMax: null,\n lvrResidentialMin: null,\n lvrResidentialMax: null,\n pointOfDifference: null,\n preferredParcelSizeMax: null,\n preferredParcelSizeMin: null,\n rateMax: null,\n rateMin: null,\n higherRateMax: null,\n higerRateMin: null,\n estabFeeMin: null,\n estabFeeMax: null,\n securityTypeKeys: [],\n stateRegionDetails: [],\n totalCostOfFundsHigh: 0,\n totalCostOfFundsLow: 0,\n isSyndicateLender: false,\n advertiseToOtherSyndicateLenders: false\n });\n\n const [errorsList, setErrorsList] = useState([]);\n const [\n zeroAvailableWarningVisible,\n setZeroAvailableWarningVisible\n ] = useState(false);\n const [pauseLoading, setPauseLoading] = useState(false);\n const [isPrivate, setIsPrivate] = useState(false);\n const [selectedCity, setSelectedCity] = useState(\"Sydney+\");\n const [securityList, setSecurityList] = useState([]);\n const [residentialType, setResidentialType] = useState([]);\n const [industrialType, setIndustrialType] = useState([]);\n const [commercialType, setCommercialType] = useState([]);\n const [specialisedType, setSpecialisedType] = useState([]);\n const [statesList, setStatesList] = useState([]);\n const [selectedStates, setSelectedStates] = useState([]);\n const [regionsList, setRegionsList] = useState([]);\n const [selectedRegion, setSelectedRegion] = useState(\"\");\n const [distancesList, setDistancesList] = useState([]);\n const [selectedDistance, setSelectedDistance] = useState(\"\");\n const [lookupsLoading, setLookupsLoading] = useState(false);\n const [isResidential, setIsResidential] = useState(false);\n const [isNonResidential, setIsNonResidential] = useState(false);\n const [isInitialized, setIsInitialized] = useState(false);\n const [isVerifying, setIsVerifying] = useState(false);\n const [isSaving, setIsSaving] = useState(false);\n const [isNotAvailableToBrokers, setIsNotAvailableToBrokers] = useState(false);\n const [\n hasIncompleteMandatoryFields,\n setHasIncompleteMandatoryFields\n ] = useState(false);\n const [isVerifiedButNotSwitchedOn, setIsVerifiedButNotSwitchedOn] = useState(\n false\n );\n const [hasPendingSave, setHasPendingSave] = useState(false);\n // debouce implementation\n const debounceHanldeSave = useCallback(\n _.debounce(options => saveChangesImpl(options), 2000),\n []\n );\n\n const [showClearDetailsModal, setShowClearDetailsModal] = useState(false);\n const [isClearingDetails, setClearingDetails] = useState(false);\n\n useEffect(() => {\n checkIfCategoriesEnabled({\n data: profileType === \"lender\" ? lender : broker,\n secondRankingData: secondRanking\n });\n }, [profileType === \"lender\" ? lender : broker]);\n\n const checkIfCategoriesEnabled = ({ data, secondRankingData }) => {\n if (data && data.categoriesOffered && secondRankingData) {\n let isSwitchedOn = data.categoriesOffered.secondRanking;\n setIsVerifiedButNotSwitchedOn(\n secondRankingData.isVerified === true && !isSwitchedOn ? true : false\n );\n }\n };\n\n useEffect(() => {\n const { min, max } = recalculateTotalCostOfFunds(\n secondRanking.rateMin,\n secondRanking.rateMax,\n secondRanking.estabFeeMin,\n secondRanking.estabFeeMax\n );\n setSecondRanking(\n produce(secondRanking, x => {\n x.totalCostOfFundsLow = min;\n x.totalCostOfFundsHigh = max;\n })\n );\n }, [\n secondRanking.rateMax,\n secondRanking.rateMin,\n secondRanking.estabFeeMin,\n secondRanking.estabFeeMax\n ]);\n\n function recalculateTotalCostOfFunds(\n rateMin,\n rateMax,\n estabFeeMin,\n estabFeeMax\n ) {\n return {\n min:\n defaultIfUndefinedOrNull(rateMin, 0) +\n defaultIfUndefinedOrNull(estabFeeMin, 0),\n max:\n defaultIfUndefinedOrNull(rateMax, 0) +\n defaultIfUndefinedOrNull(estabFeeMax, 0)\n };\n }\n\n useEffect(() => {\n // if (activeKey === \"5\") {\n if (activeSubKey === \"5\") {\n onInitialized();\n }\n }, [activeSubKey, lender]);\n // }, [activeKey, lender]);\n\n useEffect(() => {\n var hasResidential =\n residentialType.filter(type =>\n secondRanking.securityTypeKeys.includes(type)\n ).length > 0;\n var hasNonResidential =\n [...industrialType, ...commercialType, ...specialisedType].filter(type =>\n secondRanking.securityTypeKeys.includes(type)\n ).length > 0;\n\n if (!hasNonResidential) {\n setSecondRanking(\n produce(secondRanking, x => {\n x.lvrNonResidentialMin = null;\n x.lvrNonResidentialMax = null;\n })\n );\n }\n if (!hasResidential) {\n setSecondRanking(\n produce(secondRanking, x => {\n x.lvrResidentialMin = null;\n x.lvrResidentialMax = null;\n })\n );\n }\n setIsResidential(hasResidential);\n setIsNonResidential(hasNonResidential);\n }, [secondRanking.securityTypeKeys]);\n\n useEffect(() => {\n setLookupsLoading(regionsList.length === 0);\n }, [regionsList]);\n\n async function onInitialized() {\n setIsInitialized(false);\n await Promise.all([\n listDistances(),\n listSecurityTypes(),\n getSecondRankingDetails()\n ]).then(resp => {\n setIsInitialized(true);\n });\n }\n\n useEffect(() => {\n if (isInitialized && secondRanking.id !== null) {\n let cancelToken = Axios.CancelToken.source();\n setHasPendingSave(true);\n debounceHanldeSave({\n cancelToken,\n secondRanking,\n userId,\n industrialType,\n residentialType,\n userType,\n commercialType,\n specialisedType\n });\n // saveChanges(cancelToken, secondRanking, userId);\n }\n }, [secondRanking]);\n\n function onStateChanged(stateCheckBoxDetails) {\n if (\n !stateCheckBoxDetails.isChecked &&\n mustBeArray(selectedStates).length === 1\n ) {\n return message.warning(STATE_REQUIRED_WARNING);\n }\n if (\n stateCheckBoxDetails.isChecked === true &&\n !selectedStates.map(x => x.id).includes(stateCheckBoxDetails.value)\n ) {\n let stateToAppend = statesList.find(\n x => x.id === stateCheckBoxDetails.value\n );\n selectedStates.push(stateToAppend);\n setRegionsList(\n selectedStates.map(s => ({\n id: s.id,\n capitalCity: s.capitalCity + \"+\",\n states: s.states\n }))\n );\n\n setSecondRanking(\n produce(secondRanking, x => {\n x.stateRegionDetails.push({\n stateKey: stateCheckBoxDetails.value,\n distanceKey: null,\n regionKeys: []\n });\n })\n );\n } else if (\n stateCheckBoxDetails.isChecked === false &&\n selectedStates.map(x => x.id).includes(stateCheckBoxDetails.value)\n ) {\n let filteredStates = selectedStates.filter(\n x => x.id !== stateCheckBoxDetails.value\n );\n setSelectedStates(filteredStates);\n setRegionsList(\n filteredStates.map(s => ({\n id: s.id,\n capitalCity: s.capitalCity + \"+\",\n states: s.states\n }))\n );\n setSecondRanking(\n produce(secondRanking, x => {\n x.stateRegionDetails = x.stateRegionDetails.filter(\n x => x.stateKey !== stateCheckBoxDetails.value\n );\n })\n );\n }\n }\n\n const getUserProfile = async () => {\n let userDetails = await authService.getUser();\n let usersLenderId = userDetails[\"app.user.lenderid\"];\n let usersBrokerId = userDetails[\"app.user.brokerid\"];\n const actionName =\n profileType === \"lender\" ? getLenderProfile : getBrokerProfile;\n actionName({\n id: userId,\n userType,\n notClearProfileImage: true,\n doNotResetCurrentTab: true,\n isUserViewingSelfProfile:\n (profileType === \"lender\" ? usersLenderId : usersBrokerId) === userId\n });\n };\n\n const checkProductState = async () => {\n const resp = await dispatch(getLendersSecondRankingProfile({ id: userId }));\n\n let responseData = resp.data;\n\n let today = new Date();\n\n if (responseData.modifiedDate) {\n let modifiedDate = new Date(responseData.modifiedDate);\n setIsNotAvailableToBrokers(\n !responseData.isVerified &&\n Math.round((today - modifiedDate) / millisecondsInADay)\n );\n }\n\n if (responseData.lastVerifiedDate) {\n setIsNotAvailableToBrokers(\n moment().diff(responseData.lastVerifiedDate, \"days\") > 30\n );\n }\n\n // let isSwitchedOn = lender.categoriesOffered.secondRanking === true;\n let isSwitchedOn =\n (lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.secondRanking) === true;\n\n setIsVerifiedButNotSwitchedOn(\n responseData.isVerified === true && !isSwitchedOn\n );\n setHasIncompleteMandatoryFields(hasMissingMandatoryFields(responseData));\n };\n\n const getSecondRankingDetails = async () => {\n const resp = await dispatch(getLendersSecondRankingProfile({ id: userId }));\n const initialStates = await listStates();\n const hasNoStateRegionDetail =\n resp.data.stateRegionDetails.map(x => x.stateKey).length < 1;\n if (hasNoStateRegionDetail) {\n resp.data.stateRegionDetails.push({\n stateKey: \"NSW\",\n distanceKey: null,\n regionKeys: []\n });\n }\n var stateKeyInitial = resp.data.stateRegionDetails.map(x => x.stateKey);\n setSecondRanking(\n produce(secondRanking, x => {\n const selectedStatesFromKeys = initialStates.filter(x =>\n stateKeyInitial.includes(x.id)\n );\n const selectedRegions = selectedStatesFromKeys.map(s => ({\n id: s.id,\n capitalCity: s.capitalCity + \"+\",\n states: s.states\n }));\n setSelectedStates(selectedStatesFromKeys);\n setRegionsList(\n produce(regionsList, x => {\n x = selectedRegions;\n return x;\n })\n );\n\n let responseData = resp.data;\n\n let today = new Date();\n\n if (responseData.modifiedDate) {\n let modifiedDate = new Date(responseData.modifiedDate);\n setIsNotAvailableToBrokers(\n !responseData.isVerified &&\n Math.round((today - modifiedDate) / millisecondsInADay)\n );\n }\n\n if (responseData.lastVerifiedDate) {\n setIsNotAvailableToBrokers(\n moment().diff(responseData.lastVerifiedDate, \"days\") > 30\n );\n }\n\n let isSwitchedOn =\n (lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.secondRanking) === true;\n\n setIsVerifiedButNotSwitchedOn(\n responseData.isVerified === true && !isSwitchedOn\n );\n setHasIncompleteMandatoryFields(\n hasMissingMandatoryFields(responseData)\n );\n return resp.data;\n })\n );\n };\n\n const hasMissingMandatoryFields = data => {\n return (\n !(\n data.securityTypeKeys.length > 0 &&\n data.available &&\n data.preferredParcelSizeMin &&\n data.preferredParcelSizeMax &&\n data.rateMin &&\n data.rateMax &&\n data.higherRateMin &&\n data.higherRateMax &&\n (data.estabFeeMin || data.estabFeeMin === 0) &&\n (data.estabFeeMax || data.estabFeeMax === 0) &&\n _.isEmpty(\n mustBeArray(data.stateRegionDetails).filter(\n x => x.distanceKey === null && x.regionKeys.length < 1\n )\n ) &&\n data.pointOfDifference &&\n data.pointOfDifference.length >= 10\n ) === true\n );\n };\n\n const listStates = async () => {\n const resp = await dispatch(\n lendersLookUpHandler({ action: LENDERS_STATES_SUBURBS_TYPE, userType })\n );\n if (resp.status) {\n setStatesList(\n produce(statesList, x => {\n return resp.data;\n })\n );\n\n return resp.data;\n } else {\n errorDisplay(resp.data.errors);\n }\n };\n\n const listDistances = async () => {\n const resp = await dispatch(\n lendersLookUpHandler({ action: LENDERS_DISTANCES_TYPE, userType })\n );\n if (resp.status) {\n setDistancesList(\n produce(distancesList, x => {\n return resp.data;\n })\n );\n } else {\n errorDisplay(resp.data.errors);\n }\n };\n\n const listSecurityTypes = async () => {\n const resp = await dispatch(\n lendersLookUpHandler({\n action: LENDERS_SECOND_RANKING_SECURITY_TYPE,\n userType\n })\n );\n if (resp.status) {\n setSecurityList(\n produce(securityList, x => {\n return resp.data;\n })\n );\n setResidentialType(\n produce(residentialType, x => {\n return resp.data\n .find(x => x.id === \"Residential\")\n .securityTypes.map(x => x.id);\n })\n );\n\n setIndustrialType(\n produce(industrialType, x => {\n return resp.data\n .find(x => x.id === \"Industrial\")\n .securityTypes.map(x => x.id);\n })\n );\n\n setCommercialType(\n produce(commercialType, x => {\n return resp.data\n .find(x => x.id === \"Commercial\")\n .securityTypes.map(x => x.id);\n })\n );\n\n setSpecialisedType(\n produce(specialisedType, x => {\n return resp.data\n .find(x => x.id === \"Specialised\")\n .securityTypes.map(x => x.id);\n })\n );\n } else {\n errorDisplay(resp.data.errors);\n }\n };\n\n const saveChangesImpl = async options => {\n const {\n cancelToken,\n secondRanking,\n userId,\n industrialType,\n residentialType,\n userType,\n commercialType,\n specialisedType\n } = options;\n if (\n secondRanking &&\n Number(secondRanking.available) === 0 &&\n (secondRanking.isVerified || !hasMissingMandatoryFields(secondRanking))\n ) {\n return setZeroAvailableWarningVisible(true);\n }\n let payLoad = { ...secondRanking };\n setIsSaving(true);\n if (\n _.isEmpty(\n residentialType.filter(type =>\n secondRanking.securityTypeKeys.includes(type)\n )\n )\n ) {\n payLoad = {\n ...payLoad,\n lvrResidentialMin: null,\n lvrResidentialMax: null\n };\n }\n if (\n _.isEmpty(\n [...industrialType, ...commercialType, ...specialisedType].filter(\n type => secondRanking.securityTypeKeys.includes(type)\n )\n )\n ) {\n payLoad = {\n ...payLoad,\n lvrNonResidentialMin: null,\n lvrNonResidentialMax: null\n };\n }\n if (userType === ADMIN_USER) {\n await dispatch(\n saveSecondRankingFieldAsAdmin({\n cancelToken: cancelToken,\n payLoad: payLoad,\n id: userId\n })\n ).then(resp => {\n if (!resp.status) {\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, []);\n // errorDisplay(resp.data.errors);\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n }\n checkProductState();\n setHasPendingSave(false);\n setIsSaving(false);\n });\n } else {\n await dispatch(\n saveSecondRankingField({\n cancelToken: cancelToken,\n payLoad: payLoad,\n id: userId\n })\n ).then(resp => {\n if (!resp.status) {\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, []);\n // errorDisplay(resp.data.errors);\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n }\n checkProductState();\n setHasPendingSave(false);\n setIsSaving(false);\n });\n }\n };\n\n const handleSavingErrors = ({ resp, data }) => {\n if (resp.data.errors.length > 0) {\n setErrorsList(mustBeArray(resp && resp.data && resp.data.errors));\n } else if (data && data.isVerified) {\n if (!resp.status) {\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, []);\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n }\n } else {\n setErrorsList(mustBeArray(resp && resp.data && resp.data.errors));\n }\n };\n\n const verify = async () => {\n if (secondRanking && Number(secondRanking.available) === 0) {\n return setZeroAvailableWarningVisible(true);\n }\n setIsVerifying(true);\n if (userType === ADMIN_USER) {\n await dispatch(\n verifySecondRankingFieldsAsAdmin({\n id: userId\n })\n ).then(resp => {\n setIsVerifying(false);\n handleSavingErrors({ resp, data: secondRanking });\n onInitialized();\n delay(500).then(() => {\n getUserProfile();\n });\n });\n } else {\n await dispatch(\n verifySecondRankingFields({\n id: userId\n })\n ).then(resp => {\n setIsVerifying(false);\n handleSavingErrors({ resp, data: secondRanking });\n onInitialized();\n delay(500).then(() => {\n getUserProfile();\n });\n });\n }\n };\n\n const handleCancel = () => {\n setPauseLoading(false);\n setZeroAvailableWarningVisible(false);\n };\n const handleOk = () => {\n setPauseLoading(true);\n toggleSubscriptions({\n profileType,\n productType: \"secondRanking\",\n id: userId\n }).then(resp => {\n setPauseLoading(false);\n setZeroAvailableWarningVisible(false);\n if (resp.status) {\n message.success(\n profileType === \"lender\"\n ? \"Categories offered updated successfully.\"\n : \"Categories subscribed to updated successfully.\"\n );\n getUserProfile();\n }\n });\n };\n\n const isSecurityTypeValidated = () => {\n if (!secondRanking) return false;\n if (\n isResidential &&\n (!secondRanking.lvrResidentialMin || !secondRanking.lvrResidentialMax)\n )\n return false;\n if (\n isNonResidential &&\n (!secondRanking.lvrNonResidentialMin ||\n !secondRanking.lvrNonResidentialMax)\n )\n return false;\n return true;\n };\n\n const handleShowClearDetailsModal = () => {\n setShowClearDetailsModal(true);\n }\n const handleClearDetailsModalClose = () => {\n setShowClearDetailsModal(false);\n }\n const handleClearDetailsChange = async options => {\n if(!isVerifying && !isSaving){\n let cancelToken = Axios.CancelToken.source();\n\n setClearingDetails(true);\n let categoryType = {\n categoryType: \"SecondRanking\"\n };\n if (userType === ADMIN_USER) {\n await dispatch(\n clearDetailsFieldsAsAdmin({\n id: userId,\n categoryType: categoryType,\n cancelToken: cancelToken\n })\n ).then(resp => {\n if(!resp.status){\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, [])\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n onInitialized();\n delay(500).then(() => {\n getUserProfile();\n });\n }\n\n setClearingDetails(false);\n setShowClearDetailsModal(false);\n });\n }\n else {\n await dispatch(\n clearDetailsFields({\n id: userId,\n categoryType: categoryType,\n cancelToken: cancelToken\n })\n ).then(resp => {\n if(!resp.status){\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, [])\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n onInitialized();\n delay(500).then(() => {\n getUserProfile();\n });\n }\n\n setClearingDetails(false);\n setShowClearDetailsModal(false);\n });\n }\n }\n }\n\n return (\n \n \n \n \n \n \n \n \n
\n
\n \n \n \n \n \n \n
\n
\n \n \n \n \n \n \n
\n
\n {!_.isEmpty(errorsList) && (\n \n \n \n
\n The following errors must be resolved before this criteria\n can be verified:\n
\n
    \n {errorsList.map((errors, i) => {\n return
  • {errors}
  • ;\n })}\n
\n
\n }\n type=\"warning\"\n />\n \n \n )}\n \n Verifying...\n \n \n Saving...\n \n \n Clearing...\n \n \n \n
\n
\n
\n Available  \n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n onChange={e =>\n setSecondRanking(\n produce(secondRanking, x => {\n x.available = e;\n })\n )\n }\n className=\"w-150 m-l-6 hideNumberPointers\"\n value={secondRanking.available}\n disabled={!userHasPermissionToUpdate}\n />\n \n *{\" \"}\n \n
\n
\n
\n
\n
\n
\n
\n \n
\n LVR (residential)  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setSecondRanking(\n produce(secondRanking, x => {\n x.lvrResidentialMin = e;\n })\n )\n }\n className=\"w-80 m-l-4 hideNumberPointers\"\n value={secondRanking.lvrResidentialMin}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setSecondRanking(\n produce(secondRanking, x => {\n x.lvrResidentialMax = e;\n })\n )\n }\n className=\"w-80 m-l-4 hideNumberPointers\"\n value={secondRanking.lvrResidentialMax}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n
\n
\n
\n
\n Preferred parcel size  \n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n onChange={e =>\n setSecondRanking(\n produce(secondRanking, x => {\n x.preferredParcelSizeMin = e;\n })\n )\n }\n className=\"w-170 m-l-6 m-r-6 m-b-6 hideNumberPointers\"\n value={secondRanking.preferredParcelSizeMin}\n disabled={!userHasPermissionToUpdate}\n />\n \n *{\" \"}\n \n to  \n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n onChange={e =>\n setSecondRanking(\n produce(secondRanking, x => {\n x.preferredParcelSizeMax = e;\n })\n )\n }\n className=\"w-170 m-l-6 m-b-6 hideNumberPointers\"\n value={secondRanking.preferredParcelSizeMax}\n disabled={!userHasPermissionToUpdate}\n />\n \n *{\" \"}\n \n
\n \n
\n
\n LVR (non-residential)  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setSecondRanking(\n produce(secondRanking, x => {\n x.lvrNonResidentialMin = e;\n })\n )\n }\n className=\"w-80 m-l-4 m-b-6 hideNumberPointers\"\n value={secondRanking.lvrNonResidentialMin}\n disabled={!userHasPermissionToUpdate}\n />\n \n *{\" \"}\n \n
\n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setSecondRanking(\n produce(secondRanking, x => {\n x.lvrNonResidentialMax = e;\n })\n )\n }\n className=\"w-80 m-l-4 m-b-6 hideNumberPointers\"\n value={secondRanking.lvrNonResidentialMax}\n disabled={!userHasPermissionToUpdate}\n />\n \n *{\" \"}\n \n
\n
\n
\n
\n \n \n \n
Security type
\n \n \n \n \n {securityList.map((data, i) => {\n return (\n
\n
{`${data.name}:`}
\n
\n {mustBeArray(data.securityTypes).map(\n (security, j) => {\n return (\n 0 &&\n secondRanking.securityTypeKeys.includes(\n security.id\n )\n }\n value={security.id}\n key={j}\n disabled={!userHasPermissionToUpdate}\n onChange={e =>\n setSecondRanking(\n produce(secondRanking, x => {\n let checkBoxValue = e.target.value;\n let checked = e.target.checked;\n if (\n checked === true &&\n !x.securityTypeKeys.includes(\n checkBoxValue\n )\n ) {\n x.securityTypeKeys.push(\n checkBoxValue\n );\n } else if (\n checked === false &&\n x.securityTypeKeys.includes(\n checkBoxValue\n )\n ) {\n x.securityTypeKeys = x.securityTypeKeys.filter(\n s => s !== checkBoxValue\n );\n }\n })\n )\n }\n >\n {security.name}\n \n );\n }\n )}\n
\n
\n );\n })}\n
\n
\n \n setSecondRanking(\n produce(secondRanking, x => {\n x.stateRegionDetails.forEach(s => {\n if (s.stateKey === stateId) {\n s.distanceKey = value;\n }\n });\n return x;\n })\n )\n }\n handleChangeState={key => onStateChanged(key)}\n disabled={!userHasPermissionToUpdate}\n handleChangeRegion={({ isChecked, value, stateId }) =>\n setSecondRanking(\n produce(secondRanking, x => {\n x.stateRegionDetails.forEach(s => {\n if (s.stateKey === stateId) {\n let regionKeys = s.regionKeys;\n if (isChecked === true) {\n if (!regionKeys.includes(value)) {\n s.regionKeys.push(value);\n }\n } else if (isChecked === false) {\n if (regionKeys.includes(value)) {\n s.regionKeys = s.regionKeys.filter(\n rk => rk !== value\n );\n }\n }\n }\n });\n return x;\n })\n )\n }\n />\n \n \n *{\" \"}\n \n \n
\n
\n Lower Rate  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setSecondRanking(\n produce(secondRanking, x => {\n x.rateMin = e;\n })\n )\n }\n className=\"w-80 m-l-4 hideNumberPointers\"\n value={secondRanking.rateMin}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setSecondRanking(\n produce(secondRanking, x => {\n x.rateMax = e;\n })\n )\n }\n className=\"w-80 m-l-4 hideNumberPointers\"\n value={secondRanking.rateMax}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n
\n
\n Higher Rate  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setSecondRanking(\n produce(secondRanking, x => {\n x.higherRateMin = e;\n })\n )\n }\n className=\"w-80 m-l-4 hideNumberPointers\"\n value={secondRanking.higherRateMin}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setSecondRanking(\n produce(secondRanking, x => {\n x.higherRateMax = e;\n })\n )\n }\n className=\"w-80 m-l-4 hideNumberPointers\"\n value={secondRanking.higherRateMax}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n
\n
\n
\n Estab Fee  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setSecondRanking(\n produce(secondRanking, x => {\n x.estabFeeMin = e;\n })\n )\n }\n className=\"w-80 m-l-4 hideNumberPointers\"\n value={secondRanking.estabFeeMin}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setSecondRanking(\n produce(secondRanking, x => {\n x.estabFeeMax = e;\n })\n )\n }\n className=\"w-80 m-l-4 hideNumberPointers\"\n value={secondRanking.estabFeeMax}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n
\n
\n
\n Total Cost of Funds  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"w-80 m-l-4 m-b-6 hideNumberPointers\"\n value={secondRanking.totalCostOfFundsLow}\n disabled={true}\n />\n
\n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"w-80 m-l-4 m-b-6 hideNumberPointers\"\n value={secondRanking.totalCostOfFundsHigh}\n disabled={true}\n />\n
\n
\n
\n \n \n \n \n \n Point of difference\n \n \n setSecondRanking(\n produce(secondRanking, x => {\n x.pointOfDifference = e.currentTarget.value;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}\n />\n \n \n *{\" \"}\n \n \n \n Syndicate loans\n Are you prepared to loan in a Syndicate using the Bransgroves Lawyers double blind syndicate\n deed and Bransgroves Lawyers trustee?\n \n \n setSecondRanking(\n produce(secondRanking, x=> {\n x.isSyndicateLender = true;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}>\n Yes\n \n \n setSecondRanking(\n produce(secondRanking, x=> {\n x.isSyndicateLender = false;\n x.advertiseToOtherSyndicateLenders = false;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}>\n No\n \n \n \n \n \n \n Do you want to advertise this category to other Syndicate Lenders only?\n \n \n setSecondRanking(\n produce(secondRanking, x=> {\n x.advertiseToOtherSyndicateLenders = true;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}>\n Yes\n \n \n setSecondRanking(\n produce(secondRanking, x=> {\n x.advertiseToOtherSyndicateLenders = false;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}>\n No\n \n \n \n \n \n Last Verified\n \n \n {userHasPermissionToUpdate && (\n \n \n Verify\n \n \n You must verify every calendar month or this matrix will be\n paused\n \n \n )}\n \n \n \n \n \n handleClearDetailsChange(options)\n }\n disabled={isClearingDetails}\n >\n Okay\n ,\n \n ]}\n >\n
\n Are you sure you wish to proceed on clearing the form?\n
\n \n \n );\n};\nexport default connect()(SecondRankingImprovedImpl);\n","import {\n Alert,\n Button,\n Card,\n Checkbox,\n Col,\n Input,\n InputNumber,\n message,\n Radio,\n Row,\n Skeleton,\n Modal\n} from \"antd\";\nimport React, { useCallback, useEffect, useState } from \"react\";\nimport {\n LENDERS_DISTANCES_TYPE,\n LENDERS_CONSTRUCTION_SECURITY_TYPE,\n LENDERS_STATES_SUBURBS_TYPE\n} from \"../../constants/lookup\";\nimport {\n asDefaultDisplayFormatDate,\n defaultIfUndefinedOrNull,\n delay,\n errorDisplay,\n errorDisplayCustom,\n isCategoryOffered,\n millisecondsInADay,\n mustBeArray\n} from \"../../libs/utilities\";\nimport StatesForm from \"./StatesForm\";\nimport _ from \"lodash\";\nimport AwesomeDebouncePromise from \"awesome-debounce-promise\";\nimport Axios from \"axios\";\nimport { connect } from \"react-redux\";\nimport { Visible } from \"../Common/visiblityWrapper\";\nimport produce from \"immer\";\nimport { lendersLookUpHandler } from \"../../actions/lookup\";\nimport {\n getLendersConstructionProfile,\n saveConstructionField,\n saveConstructionFieldAsAdmin,\n verifyConstructionFields,\n verifyConstructionFieldsAsAdmin,\n clearDetailsFieldsAsAdmin,\n clearDetailsFields\n} from \"../../actions/profile\";\nimport { ADMIN_USER } from \"../../constants/systemUsers\";\nimport {\n LENDER_PROFILE_INCOMPLETE_MANATORY_FIELD_WARNING,\n LENDER_PROFILE_MORE_THAN_MONTH_LAST_VERIFIED_WARNING,\n STATE_REQUIRED_WARNING\n} from \"../../constants/warnings\";\nimport moment from \"moment\";\nimport ZeroAvailableWarning from \"./ZeroAvailableWarning\";\nimport authService from \"../../actions/AuthorizeService\";\n\nconst ConstructionImpl = ({\n activeKey,\n activeSubKey,\n dispatch,\n userId,\n userType,\n isSystemUser,\n lender,\n userHasPermissionToUpdate,\n broker,\n profileType,\n getLenderProfile,\n getBrokerProfile,\n toggleSubscriptions\n}) => {\n const [construction, setConstruction] = useState({\n available: null,\n bookSize: null,\n bransgrovesComments: null,\n distanceKey: null,\n estabFeeMin: null,\n estabFeeMax: null,\n isVerified: false,\n lastVerifiedByFirstName: null,\n lastVerifiedByLastName: null,\n lastVerifiedDate: null,\n lenderId: \"\",\n lenderCategoryId: \"\",\n lineFeeMin: null,\n lineFeeMax: null,\n lvrMin: null,\n lvrMax: null,\n pointOfDifference: null,\n preferredParcelSizeMax: null,\n preferredParcelSizeMin: null,\n rateMax: null,\n rateMin: null,\n higherRateMin: null,\n higherRateMax: null,\n estabFeeMin: null,\n estabFeeMax: null,\n securityTypeKeys: [],\n stateRegionDetails: [],\n isSyndicateLender: false,\n advertiseToOtherSyndicateLenders: false\n });\n\n const [errorsList, setErrorsList] = useState([]);\n const [\n zeroAvailableWarningVisible,\n setZeroAvailableWarningVisible\n ] = useState(false);\n const [pauseLoading, setPauseLoading] = useState(false);\n const [isPrivate, setIsPrivate] = useState(false);\n const [selectedCity, setSelectedCity] = useState(\"Sydney+\");\n const [securityList, setSecurityList] = useState([]);\n const [statesList, setStatesList] = useState([]);\n const [selectedStates, setSelectedStates] = useState([]);\n const [regionsList, setRegionsList] = useState([]);\n const [selectedRegion, setSelectedRegion] = useState(\"\");\n const [distancesList, setDistancesList] = useState([]);\n const [selectedDistance, setSelectedDistance] = useState(\"\");\n const [lookupsLoading, setLookupsLoading] = useState(false);\n const [isInitialized, setIsInitialized] = useState(false);\n const [isVerifying, setIsVerifying] = useState(false);\n const [isSaving, setIsSaving] = useState(false);\n const [isNotAvailableToBrokers, setIsNotAvailableToBrokers] = useState(false);\n const [\n hasIncompleteMandatoryFields,\n setHasIncompleteMandatoryFields\n ] = useState(false);\n const [isVerifiedButNotSwitchedOn, setIsVerifiedButNotSwitchedOn] = useState(\n false\n );\n const [hasPendingSave, setHasPendingSave] = useState(false);\n const [showClearDetailsModal, setShowClearDetailsModal] = useState(false);\n const [isClearingDetails, setClearingDetails] = useState(false);\n\n useEffect(() => {\n checkIfCategoriesEnabled({\n data: profileType === \"lender\" ? lender : broker,\n constructionData: construction\n });\n }, [profileType === \"lender\" ? lender : broker]);\n\n const checkIfCategoriesEnabled = ({ data, constructionData }) => {\n if (data && data.categoriesOffered && constructionData) {\n let isSwitchedOn = data.categoriesOffered.construction;\n setIsVerifiedButNotSwitchedOn(\n constructionData.isVerified === true && !isSwitchedOn ? true : false\n );\n }\n };\n\n useEffect(() => {\n if (activeSubKey === \"6\") {\n onInitialized();\n }\n }, [activeSubKey, lender]);\n\n useEffect(() => {\n setLookupsLoading(regionsList.length === 0);\n }, [regionsList]);\n\n async function onInitialized() {\n setIsInitialized(false);\n await Promise.all([\n listDistances(),\n listSecurityTypes(),\n getConstructionDetails()\n ]).then(resp => {\n setIsInitialized(true);\n });\n }\n\n useEffect(() => {\n if (isInitialized && construction.id !== null) {\n let cancelToken = Axios.CancelToken.source();\n setHasPendingSave(true);\n saveChanges(cancelToken, construction, userId);\n }\n }, [construction]);\n\n useEffect(() => {\n const { min, max } = recalculateTotalCostOfFunds(\n construction.rateMin,\n construction.rateMax,\n construction.estabFeeMin,\n construction.estabFeeMax,\n construction.lineFeeMin,\n construction.lineFeeMax\n );\n setConstruction(\n produce(construction, x => {\n x.totalCostOfFundsLow = min;\n x.totalCostOfFundsHigh = max;\n })\n );\n }, [\n construction.rateMax,\n construction.rateMin,\n construction.estabFeeMin,\n construction.estabFeeMax,\n construction.lineFeeMin,\n construction.lineFeeMax\n ]);\n\n function recalculateTotalCostOfFunds(\n rateMin,\n rateMax,\n estabFeeMin,\n estabFeeMax,\n lineFeeMin,\n lineFeeMax\n ) {\n return {\n min:\n defaultIfUndefinedOrNull(rateMin, 0) +\n defaultIfUndefinedOrNull(estabFeeMin, 0) +\n defaultIfUndefinedOrNull(lineFeeMin, 0),\n max:\n defaultIfUndefinedOrNull(rateMax, 0) +\n defaultIfUndefinedOrNull(estabFeeMax, 0) +\n defaultIfUndefinedOrNull(lineFeeMax, 0)\n };\n }\n\n function onStateChanged(stateCheckBoxDetails) {\n if (\n !stateCheckBoxDetails.isChecked &&\n mustBeArray(selectedStates).length === 1\n ) {\n return message.warning(STATE_REQUIRED_WARNING);\n }\n if (\n stateCheckBoxDetails.isChecked === true &&\n !selectedStates.map(x => x.id).includes(stateCheckBoxDetails.value)\n ) {\n let stateToAppend = statesList.find(\n x => x.id === stateCheckBoxDetails.value\n );\n selectedStates.push(stateToAppend);\n setRegionsList(\n selectedStates.map(s => ({\n id: s.id,\n capitalCity: s.capitalCity + \"+\",\n states: s.states\n }))\n );\n\n setConstruction(\n produce(construction, x => {\n x.stateRegionDetails.push({\n stateKey: stateCheckBoxDetails.value,\n distanceKey: null,\n regionKeys: []\n });\n })\n );\n } else if (\n stateCheckBoxDetails.isChecked === false &&\n selectedStates.map(x => x.id).includes(stateCheckBoxDetails.value)\n ) {\n let filteredStates = selectedStates.filter(\n x => x.id !== stateCheckBoxDetails.value\n );\n setSelectedStates(filteredStates);\n setRegionsList(\n filteredStates.map(s => ({\n id: s.id,\n capitalCity: s.capitalCity + \"+\",\n states: s.states\n }))\n );\n setConstruction(\n produce(construction, x => {\n x.stateRegionDetails = x.stateRegionDetails.filter(\n x => x.stateKey !== stateCheckBoxDetails.value\n );\n })\n );\n }\n }\n\n const checkProductState = async () => {\n const resp = await dispatch(getLendersConstructionProfile({ id: userId }));\n let responseData = resp.data;\n let today = new Date();\n if (responseData.modifiedDate) {\n let modifiedDate = new Date(responseData.modifiedDate);\n setIsNotAvailableToBrokers(\n !responseData.isVerified &&\n Math.round((today - modifiedDate) / millisecondsInADay)\n );\n }\n\n if (responseData.lastVerifiedDate) {\n setIsNotAvailableToBrokers(\n moment().diff(responseData.lastVerifiedDate, \"days\") > 30\n );\n }\n\n let isSwitchedOn =\n (lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.construction) === true;\n setIsVerifiedButNotSwitchedOn(\n responseData.isVerified === true && !isSwitchedOn\n );\n\n setHasIncompleteMandatoryFields(hasMissingMandatoryFields(responseData));\n };\n\n const getUserProfile = async () => {\n let userDetails = await authService.getUser();\n let usersLenderId = userDetails[\"app.user.lenderid\"];\n let usersBrokerId = userDetails[\"app.user.brokerid\"];\n\n const actionName =\n profileType === \"lender\" ? getLenderProfile : getBrokerProfile;\n actionName({\n id: userId,\n userType,\n notClearProfileImage: true,\n doNotResetCurrentTab: true,\n isUserViewingSelfProfile:\n (profileType === \"lender\" ? usersLenderId : usersBrokerId) === userId\n });\n };\n\n const getConstructionDetails = async () => {\n const resp = await dispatch(getLendersConstructionProfile({ id: userId }));\n const initialStates = await listStates();\n const hasNoStateRegionDetail =\n resp.data.stateRegionDetails.map(x => x.stateKey).length < 1;\n if (hasNoStateRegionDetail) {\n resp.data.stateRegionDetails.push({\n stateKey: \"NSW\",\n distanceKey: null,\n regionKeys: []\n });\n }\n var stateKeyInitial = resp.data.stateRegionDetails.map(x => x.stateKey);\n setConstruction(\n produce(construction, x => {\n const selectedStatesFromKeys = initialStates.filter(x =>\n stateKeyInitial.includes(x.id)\n );\n const selectedRegions = selectedStatesFromKeys.map(s => ({\n id: s.id,\n capitalCity: s.capitalCity + \"+\",\n states: s.states\n }));\n setSelectedStates(selectedStatesFromKeys);\n setRegionsList(\n produce(regionsList, x => {\n x = selectedRegions;\n return x;\n })\n );\n\n let responseData = resp.data;\n\n let today = new Date();\n\n if (responseData.modifiedDate) {\n let modifiedDate = new Date(responseData.modifiedDate);\n setIsNotAvailableToBrokers(\n !responseData.isVerified &&\n Math.round((today - modifiedDate) / millisecondsInADay)\n );\n }\n\n if (responseData.lastVerifiedDate) {\n setIsNotAvailableToBrokers(\n moment().diff(responseData.lastVerifiedDate, \"days\") > 30\n );\n }\n\n let isSwitchedOn =\n (lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.construction) === true;\n\n setIsVerifiedButNotSwitchedOn(\n responseData.isVerified === true && !isSwitchedOn\n );\n\n setHasIncompleteMandatoryFields(\n hasMissingMandatoryFields(responseData)\n );\n\n return resp.data;\n })\n );\n };\n\n const hasMissingMandatoryFields = data => {\n return (\n !(\n data.securityTypeKeys.length > 0 &&\n data.available &&\n data.preferredParcelSizeMin &&\n data.preferredParcelSizeMax &&\n data.rateMin &&\n data.rateMax &&\n data.higherRateMin &&\n data.higherRateMax &&\n (data.estabFeeMin || data.estabFeeMin === 0) &&\n (data.estabFeeMax || data.estabFeeMax === 0) &&\n data.preSales &&\n _.isEmpty(\n mustBeArray(data.stateRegionDetails).filter(\n x => x.distanceKey === null && x.regionKeys.length < 1\n )\n ) &&\n data.lvrMin &&\n data.lvrMax &&\n (data.lineFeeMin || data.lineFeeMin === 0) &&\n (data.lineFeeMax || data.lineFeeMax === 0) &&\n data.pointOfDifference &&\n data.pointOfDifference.length >= 10\n ) === true\n );\n };\n\n const listStates = async () => {\n const resp = await dispatch(\n lendersLookUpHandler({ action: LENDERS_STATES_SUBURBS_TYPE, userType })\n );\n if (resp.status) {\n setStatesList(\n produce(statesList, x => {\n return resp.data;\n })\n );\n\n return resp.data;\n } else {\n errorDisplay(resp.data.errors);\n }\n };\n\n const listDistances = async () => {\n const resp = await dispatch(\n lendersLookUpHandler({ action: LENDERS_DISTANCES_TYPE, userType })\n );\n if (resp.status) {\n setDistancesList(\n produce(distancesList, x => {\n return resp.data;\n })\n );\n } else {\n errorDisplay(resp.data.errors);\n }\n };\n\n const listSecurityTypes = async () => {\n const resp = await dispatch(\n lendersLookUpHandler({\n action: LENDERS_CONSTRUCTION_SECURITY_TYPE,\n userType\n })\n );\n if (resp.status) {\n setSecurityList(\n produce(securityList, x => {\n return resp.data;\n })\n );\n } else {\n errorDisplay(resp.data.errors);\n }\n };\n\n const saveChangesImpl = async (cancelToken, payLoad, id) => {\n if (\n payLoad &&\n Number(payLoad.available) === 0 &&\n (payLoad.isVerified || !hasMissingMandatoryFields(payLoad))\n ) {\n return setZeroAvailableWarningVisible(true);\n }\n setIsSaving(true);\n if (userType === ADMIN_USER) {\n await dispatch(\n saveConstructionFieldAsAdmin({\n cancelToken: cancelToken,\n payLoad: payLoad,\n id: id\n })\n ).then(resp => {\n if (!resp.status) {\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, []);\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n }\n checkProductState();\n setHasPendingSave(false);\n setIsSaving(false);\n });\n } else {\n await dispatch(\n saveConstructionField({\n cancelToken: cancelToken,\n payLoad: payLoad,\n id: id\n })\n ).then(resp => {\n if (!resp.status) {\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, []);\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n }\n checkProductState();\n setHasPendingSave(false);\n setIsSaving(false);\n });\n }\n };\n\n const saveChanges = useCallback(\n AwesomeDebouncePromise(saveChangesImpl, 2000),\n []\n );\n\n const handleSavingErrors = ({ resp, data }) => {\n if (resp.data.errors.length > 0) {\n setErrorsList(mustBeArray(resp && resp.data && resp.data.errors));\n } else if (data && data.isVerified) {\n if (!resp.status) {\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, []);\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n }\n } else {\n setErrorsList(mustBeArray(resp && resp.data && resp.data.errors));\n }\n };\n\n const verify = async () => {\n if (construction && Number(construction.available) === 0) {\n return setZeroAvailableWarningVisible(true);\n }\n setIsVerifying(true);\n if (userType === ADMIN_USER) {\n await dispatch(\n verifyConstructionFieldsAsAdmin({\n id: userId\n })\n ).then(resp => {\n setIsVerifying(false);\n handleSavingErrors({ resp, data: construction });\n onInitialized();\n delay(500).then(() => {\n getUserProfile();\n });\n });\n } else {\n await dispatch(\n verifyConstructionFields({\n id: userId\n })\n ).then(resp => {\n setIsVerifying(false);\n handleSavingErrors({ resp, data: construction });\n onInitialized();\n delay(500).then(() => {\n getUserProfile();\n });\n });\n }\n };\n\n const handleCancel = () => {\n setPauseLoading(false);\n setZeroAvailableWarningVisible(false);\n };\n const handleOk = () => {\n setPauseLoading(true);\n toggleSubscriptions({\n profileType,\n productType: \"construction\",\n id: userId\n }).then(resp => {\n setPauseLoading(false);\n setZeroAvailableWarningVisible(false);\n if (resp.status) {\n message.success(\n profileType === \"lender\"\n ? \"Categories offered updated successfully.\"\n : \"Categories subscribed to updated successfully.\"\n );\n getUserProfile();\n }\n });\n };\n\n const handleShowClearDetailsModal = () => {\n setShowClearDetailsModal(true);\n }\n const handleClearDetailsModalClose = () => {\n setShowClearDetailsModal(false);\n }\n const handleClearDetailsChange = async options => {\n if(!isVerifying && !isSaving){\n let cancelToken = Axios.CancelToken.source();\n\n setClearingDetails(true);\n let categoryType = {\n categoryType: \"Construction\"\n };\n if (userType === ADMIN_USER) {\n await dispatch(\n clearDetailsFieldsAsAdmin({\n id: userId,\n categoryType: categoryType,\n cancelToken: cancelToken\n })\n ).then(resp => {\n if(!resp.status){\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, [])\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n onInitialized();\n delay(500).then(() => {\n getUserProfile();\n });\n }\n\n setClearingDetails(false);\n setShowClearDetailsModal(false);\n });\n }\n else {\n await dispatch(\n clearDetailsFields({\n id: userId,\n categoryType: categoryType,\n cancelToken: cancelToken\n })\n ).then(resp => {\n if(!resp.status){\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, [])\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n onInitialized();\n delay(500).then(() => {\n getUserProfile();\n });\n }\n\n setClearingDetails(false);\n setShowClearDetailsModal(false);\n });\n }\n }\n }\n\n return (\n \n \n \n \n \n \n \n \n
\n
\n \n \n \n \n \n \n
\n
\n \n \n \n \n \n \n
\n
\n {!_.isEmpty(errorsList) && (\n \n \n \n
\n The following errors must be resolved before this criteria\n can be verified:\n
\n
    \n {errorsList.map((errors, i) => {\n return
  • {errors}
  • ;\n })}\n
\n
\n }\n type=\"warning\"\n />\n \n \n )}\n \n Verifying...\n \n \n Saving...\n \n \n Clearing...\n \n \n \n
\n
\n
\n Available\n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n onChange={e =>\n setConstruction(\n produce(construction, x => {\n x.available = e;\n })\n )\n }\n className=\"w-150 m-l-6 m-b-6 hideNumberPointers\"\n value={construction.available}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n
\n
\n
\n
\n
\n
\n Line Fee  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setConstruction(\n produce(construction, x => {\n x.lineFeeMin = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={construction.lineFeeMin}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setConstruction(\n produce(construction, x => {\n x.lineFeeMax = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={construction.lineFeeMax}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n
\n\n
\n
\n Preferred parcel size\n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n onChange={e =>\n setConstruction(\n produce(construction, x => {\n x.preferredParcelSizeMin = e;\n })\n )\n }\n className=\"w-150 m-r-6 m-l-6 m-b-6 hideNumberPointers\"\n value={construction.preferredParcelSizeMin}\n disabled={!userHasPermissionToUpdate}\n />\n \n *{\" \"}\n \n to\n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n onChange={e =>\n setConstruction(\n produce(construction, x => {\n x.preferredParcelSizeMax = e;\n })\n )\n }\n className=\"w-170 m-r-6 m-l-6 m-b-6 hideNumberPointers\"\n value={construction.preferredParcelSizeMax}\n disabled={!userHasPermissionToUpdate}\n />\n \n *{\" \"}\n \n
\n
\n
\n LVR (% of end value)  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setConstruction(\n produce(construction, x => {\n x.lvrMin = e;\n })\n )\n }\n className=\"w-80 m-l-6 m-b-6 hideNumberPointers\"\n value={construction.lvrMin}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setConstruction(\n produce(construction, x => {\n x.lvrMax = e;\n })\n )\n }\n className=\"w-80 m-l-6 m-b-6 hideNumberPointers\"\n value={construction.lvrMax}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n
\n
\n
\n Pre-Sales\n \n setConstruction(\n produce(construction, x => {\n x.preSales = e.currentTarget.value;\n })\n )\n }\n rows={1}\n className=\"m-l-10 flex-1-1-80\"\n value={construction.preSales}\n />\n
\n\n
\n
\n Lower Rate  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setConstruction(\n produce(construction, x => {\n x.rateMin = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={construction.rateMin}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setConstruction(\n produce(construction, x => {\n x.rateMax = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={construction.rateMax}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n\n
\n
\n Higher Rate  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setConstruction(\n produce(construction, x => {\n x.higherRateMin = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={construction.higherRateMin}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setConstruction(\n produce(construction, x => {\n x.higherRateMax = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={construction.higherRateMax}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n
\n
\n\n \n \n \n
Security type
\n \n \n \n \n \n {securityList.map((data, i) => {\n return (\n \n 0 &&\n construction.securityTypeKeys.includes(data.id)\n }\n value={data.id}\n disabled={!userHasPermissionToUpdate}\n key={i}\n onChange={e =>\n setConstruction(\n produce(construction, x => {\n let checkBoxValue = e.target.value;\n let checked = e.target.checked;\n if (\n checked === true &&\n !x.securityTypeKeys.includes(checkBoxValue)\n ) {\n x.securityTypeKeys.push(checkBoxValue);\n } else if (\n checked === false &&\n x.securityTypeKeys.includes(checkBoxValue)\n ) {\n x.securityTypeKeys = x.securityTypeKeys.filter(\n s => s !== checkBoxValue\n );\n }\n })\n )\n }\n >\n {data.name}\n \n \n );\n })}\n \n \n
\n\n \n setConstruction(\n produce(construction, x => {\n x.stateRegionDetails.forEach(s => {\n if (s.stateKey === stateId) {\n s.distanceKey = value;\n }\n });\n return x;\n })\n )\n }\n handleChangeState={key => onStateChanged(key)}\n disabled={!userHasPermissionToUpdate}\n handleChangeRegion={({ isChecked, value, stateId }) =>\n setConstruction(\n produce(construction, x => {\n x.stateRegionDetails.forEach(s => {\n if (s.stateKey === stateId) {\n let regionKeys = s.regionKeys;\n if (isChecked === true) {\n if (!regionKeys.includes(value)) {\n s.regionKeys.push(value);\n }\n } else if (isChecked === false) {\n if (regionKeys.includes(value)) {\n s.regionKeys = s.regionKeys.filter(\n rk => rk !== value\n );\n }\n }\n }\n });\n return x;\n })\n )\n }\n />\n \n \n *{\" \"}\n \n \n
\n
\n
\n Estab Fee  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setConstruction(\n produce(construction, x => {\n x.estabFeeMin = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={construction.estabFeeMin}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setConstruction(\n produce(construction, x => {\n x.estabFeeMax = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={construction.estabFeeMax}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n
\n
\n
\n Total Cost of Funds  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"w-80 m-l-4 m-b-6 hideNumberPointers\"\n value={construction.totalCostOfFundsLow}\n disabled={true}\n />\n
\n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"w-80 m-l-4 m-b-6 hideNumberPointers\"\n value={construction.totalCostOfFundsHigh}\n disabled={true}\n />\n
\n
\n
\n \n \n \n \n \n Point of difference\n \n \n setConstruction(\n produce(construction, x => {\n x.pointOfDifference = e.currentTarget.value;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}\n />\n \n \n *{\" \"}\n \n \n \n Syndicate loans\n Are you prepared to loan in a Syndicate using the Bransgroves Lawyers double blind syndicate\n deed and Bransgroves Lawyers trustee?\n \n \n setConstruction(\n produce(construction, x=> {\n x.isSyndicateLender = true;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}>\n Yes\n \n \n setConstruction(\n produce(construction, x=> {\n x.isSyndicateLender = false;\n x.advertiseToOtherSyndicateLenders = false;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}>\n No\n \n \n \n \n \n \n Do you want to advertise this category to other Syndicate Lenders only?\n \n \n setConstruction(\n produce(construction, x=> {\n x.advertiseToOtherSyndicateLenders = true;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}>\n Yes\n \n \n setConstruction(\n produce(construction, x=> {\n x.advertiseToOtherSyndicateLenders = false;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}>\n No\n \n \n \n \n \n Last Verified\n \n \n {userHasPermissionToUpdate && (\n \n \n Verify\n \n \n You must verify every calendar month or this matrix will be\n paused\n \n \n )}\n \n \n \n \n \n handleClearDetailsChange(options)\n }\n disabled={isClearingDetails}\n >\n Okay\n ,\n \n ]}\n >\n
\n Are you sure you wish to proceed on clearing the form?\n
\n \n \n );\n};\n\nexport default connect()(ConstructionImpl);\n","import {\n Alert,\n Button,\n Card,\n Checkbox,\n Col,\n Input,\n InputNumber,\n message,\n Radio,\n Row,\n Skeleton,\n Modal\n} from \"antd\";\nimport React, { useCallback, useEffect, useState } from \"react\";\nimport {\n LENDERS_DISTANCES_TYPE,\n LENDERS_MEZZANINE_SECURITY_TYPE,\n LENDERS_STATES_SUBURBS_TYPE\n} from \"../../constants/lookup\";\nimport {\n asDefaultDisplayFormatDate,\n defaultIfUndefinedOrNull,\n delay,\n errorDisplay,\n errorDisplayCustom,\n isCategoryOffered,\n millisecondsInADay,\n mustBeArray\n} from \"../../libs/utilities\";\nimport _ from \"lodash\";\nimport StatesForm from \"./StatesForm\";\nimport AwesomeDebouncePromise from \"awesome-debounce-promise\";\nimport Axios from \"axios\";\nimport { connect } from \"react-redux\";\nimport { Visible } from \"../Common/visiblityWrapper\";\nimport produce from \"immer\";\nimport { lendersLookUpHandler } from \"../../actions/lookup\";\nimport {\n getLendersMezzanineProfile,\n saveMezzanineField,\n saveMezzanineFieldAsAdmin,\n verifyMezzanineFields,\n verifyMezzanineFieldsAsAdmin,\n clearDetailsFieldsAsAdmin,\n clearDetailsFields\n} from \"../../actions/profile\";\nimport { ADMIN_USER } from \"../../constants/systemUsers\";\nimport {\n LENDER_PROFILE_INCOMPLETE_MANATORY_FIELD_WARNING,\n LENDER_PROFILE_MORE_THAN_MONTH_LAST_VERIFIED_WARNING,\n STATE_REQUIRED_WARNING\n} from \"../../constants/warnings\";\nimport moment from \"moment\";\nimport ZeroAvailableWarning from \"./ZeroAvailableWarning\";\nimport authService from \"../../actions/AuthorizeService\";\n\nconst MezzanineImpl = ({\n activeKey,\n activeSubKey,\n dispatch,\n userId,\n userType,\n isSystemUser,\n lender,\n userHasPermissionToUpdate,\n profileType,\n broker,\n getLenderProfile,\n getBrokerProfile,\n toggleSubscriptions\n}) => {\n const [mezzanine, setMezzanine] = useState({\n available: null,\n bookSize: null,\n bransgrovesComments: null,\n distanceKey: null,\n estabFeeMin: null,\n estabFeeMax: null,\n isVerified: false,\n lastVerifiedByFirstName: null,\n lastVerifiedByLastName: null,\n lastVerifiedDate: null,\n lenderId: \"\",\n lenderCategoryId: \"\",\n lineFeeMin: null,\n lineFeeMax: null,\n lvrMin: null,\n lvrMax: null,\n pointOfDifference: null,\n preferredParcelSizeMax: null,\n preferredParcelSizeMin: null,\n rateMax: null,\n rateMin: null,\n higherRateMax: null,\n higherRateMin: null,\n securityTypeKeys: [],\n stateRegionDetails: [],\n estabFeeMin: null,\n estabFeeMax: null,\n isSyndicateLender: false,\n advertiseToOtherSyndicateLenders: false\n });\n\n const [errorsList, setErrorsList] = useState([]);\n const [\n zeroAvailableWarningVisible,\n setZeroAvailableWarningVisible\n ] = useState(false);\n const [pauseLoading, setPauseLoading] = useState(false);\n const [isPrivate, setIsPrivate] = useState(false);\n const [selectedCity, setSelectedCity] = useState(\"Sydney+\");\n const [securityList, setSecurityList] = useState([]);\n const [statesList, setStatesList] = useState([]);\n const [selectedStates, setSelectedStates] = useState([]);\n const [regionsList, setRegionsList] = useState([]);\n const [selectedRegion, setSelectedRegion] = useState(\"\");\n const [distancesList, setDistancesList] = useState([]);\n const [selectedDistance, setSelectedDistance] = useState(\"\");\n const [lookupsLoading, setLookupsLoading] = useState(false);\n const [isInitialized, setIsInitialized] = useState(false);\n const [isVerifying, setIsVerifying] = useState(false);\n const [isSaving, setIsSaving] = useState(false);\n const [isNotAvailableToBrokers, setIsNotAvailableToBrokers] = useState(false);\n const [\n hasIncompleteMandatoryFields,\n setHasIncompleteMandatoryFields\n ] = useState(false);\n const [isVerifiedButNotSwitchedOn, setIsVerifiedButNotSwitchedOn] = useState(\n false\n );\n const [hasPendingSave, setHasPendingSave] = useState(false);\n const [showClearDetailsModal, setShowClearDetailsModal] = useState(false);\n const [isClearingDetails, setClearingDetails] = useState(false);\n\n useEffect(() => {\n checkIfCategoriesEnabled({\n data: profileType === \"lender\" ? lender : broker,\n mezzanineData: mezzanine\n });\n }, [profileType === \"lender\" ? lender : broker]);\n\n const checkIfCategoriesEnabled = ({ data, mezzanineData }) => {\n if (data && data.categoriesOffered && mezzanineData) {\n let isSwitchedOn = data.categoriesOffered.mezzanine;\n setIsVerifiedButNotSwitchedOn(\n mezzanineData.isVerified === true && !isSwitchedOn ? true : false\n );\n }\n };\n\n useEffect(() => {\n if (activeSubKey === \"7\") {\n onInitialized();\n }\n }, [activeSubKey, lender]);\n\n useEffect(() => {\n setLookupsLoading(regionsList.length === 0);\n }, [regionsList]);\n\n async function onInitialized() {\n setIsInitialized(false);\n await Promise.all([\n listDistances(),\n listSecurityTypes(),\n getMezzanineDetails()\n ]).then(resp => {\n setIsInitialized(true);\n });\n }\n\n useEffect(() => {\n if (isInitialized && mezzanine.id !== null) {\n let cancelToken = Axios.CancelToken.source();\n setHasPendingSave(true);\n saveChanges(cancelToken, mezzanine, userId);\n }\n }, [mezzanine]);\n\n useEffect(() => {\n const { min, max } = recalculateTotalCostOfFunds(\n defaultIfUndefinedOrNull(mezzanine.rateMin, 0),\n defaultIfUndefinedOrNull(mezzanine.rateMax, 0),\n defaultIfUndefinedOrNull(mezzanine.estabFeeMin, 0),\n defaultIfUndefinedOrNull(mezzanine.estabFeeMax, 0),\n defaultIfUndefinedOrNull(mezzanine.lineFeeMin, 0),\n defaultIfUndefinedOrNull(mezzanine.lineFeeMax, 0)\n );\n setMezzanine(\n produce(mezzanine, x => {\n x.totalCostOfFundsLow = min;\n x.totalCostOfFundsHigh = max;\n })\n );\n }, [\n mezzanine.rateMax,\n mezzanine.rateMin,\n mezzanine.estabFeeMin,\n mezzanine.estabFeeMax,\n mezzanine.lineFeeMin,\n mezzanine.lineFeeMax\n ]);\n\n function recalculateTotalCostOfFunds(\n rateMin,\n rateMax,\n estabFeeMin,\n estabFeeMax,\n lineFeeMin,\n lineFeeMax\n ) {\n return {\n min: rateMin + estabFeeMin + lineFeeMin,\n max: rateMax + estabFeeMax + lineFeeMax\n };\n }\n\n function onStateChanged(stateCheckBoxDetails) {\n if (\n !stateCheckBoxDetails.isChecked &&\n mustBeArray(selectedStates).length === 1\n ) {\n return message.warning(STATE_REQUIRED_WARNING);\n }\n if (\n stateCheckBoxDetails.isChecked === true &&\n !selectedStates.map(x => x.id).includes(stateCheckBoxDetails.value)\n ) {\n let stateToAppend = statesList.find(\n x => x.id === stateCheckBoxDetails.value\n );\n selectedStates.push(stateToAppend);\n setRegionsList(\n selectedStates.map(s => ({\n id: s.id,\n capitalCity: s.capitalCity + \"+\",\n states: s.states\n }))\n );\n\n setMezzanine(\n produce(mezzanine, x => {\n x.stateRegionDetails.push({\n stateKey: stateCheckBoxDetails.value,\n distanceKey: null,\n regionKeys: []\n });\n })\n );\n } else if (\n stateCheckBoxDetails.isChecked === false &&\n selectedStates.map(x => x.id).includes(stateCheckBoxDetails.value)\n ) {\n let filteredStates = selectedStates.filter(\n x => x.id !== stateCheckBoxDetails.value\n );\n setSelectedStates(filteredStates);\n setRegionsList(\n filteredStates.map(s => ({\n id: s.id,\n capitalCity: s.capitalCity + \"+\",\n states: s.states\n }))\n );\n setMezzanine(\n produce(mezzanine, x => {\n x.stateRegionDetails = x.stateRegionDetails.filter(\n x => x.stateKey !== stateCheckBoxDetails.value\n );\n })\n );\n }\n }\n\n const checkProductState = async () => {\n const resp = await dispatch(getLendersMezzanineProfile({ id: userId }));\n\n let responseData = resp.data;\n\n let today = new Date();\n\n if (responseData.modifiedDate) {\n let modifiedDate = new Date(responseData.modifiedDate);\n setIsNotAvailableToBrokers(\n !responseData.isVerified &&\n Math.round((today - modifiedDate) / millisecondsInADay)\n );\n }\n\n if (responseData.lastVerifiedDate) {\n setIsNotAvailableToBrokers(\n moment().diff(responseData.lastVerifiedDate, \"days\") > 30\n );\n }\n\n let isSwitchedOn =\n (lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.mezzanine) === true;\n\n setIsVerifiedButNotSwitchedOn(\n responseData.isVerified === true && !isSwitchedOn\n );\n\n setHasIncompleteMandatoryFields(hasMissingMandatoryFields(responseData));\n };\n\n const getMezzanineDetails = async () => {\n const resp = await dispatch(getLendersMezzanineProfile({ id: userId }));\n const initialStates = await listStates();\n const hasNoStateRegionDetail =\n resp.data.stateRegionDetails.map(x => x.stateKey).length < 1;\n if (hasNoStateRegionDetail) {\n resp.data.stateRegionDetails.push({\n stateKey: \"NSW\",\n distanceKey: null,\n regionKeys: []\n });\n }\n var stateKeyInitial = resp.data.stateRegionDetails.map(x => x.stateKey);\n setMezzanine(\n produce(mezzanine, x => {\n const selectedStatesFromKeys = initialStates.filter(x =>\n stateKeyInitial.includes(x.id)\n );\n const selectedRegions = selectedStatesFromKeys.map(s => ({\n id: s.id,\n capitalCity: s.capitalCity + \"+\",\n states: s.states\n }));\n setSelectedStates(selectedStatesFromKeys);\n setRegionsList(\n produce(regionsList, x => {\n x = selectedRegions;\n return x;\n })\n );\n\n let responseData = resp.data;\n\n let today = new Date();\n\n if (responseData.modifiedDate) {\n let modifiedDate = new Date(responseData.modifiedDate);\n setIsNotAvailableToBrokers(\n !responseData.isVerified &&\n Math.round((today - modifiedDate) / millisecondsInADay)\n );\n }\n\n if (responseData.lastVerifiedDate) {\n setIsNotAvailableToBrokers(\n moment().diff(responseData.lastVerifiedDate, \"days\") > 30\n );\n }\n\n let isSwitchedOn =\n (lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.mezzanine) === true;\n\n setIsVerifiedButNotSwitchedOn(\n responseData.isVerified === true && !isSwitchedOn\n );\n\n setHasIncompleteMandatoryFields(\n hasMissingMandatoryFields(responseData)\n );\n\n return resp.data;\n })\n );\n };\n\n const hasMissingMandatoryFields = data => {\n return (\n !(\n data.securityTypeKeys.length > 0 &&\n data.available &&\n data.preferredParcelSizeMin &&\n data.preferredParcelSizeMax &&\n data.rateMin &&\n data.rateMax &&\n data.higherRateMin &&\n data.higherRateMax &&\n (data.estabFeeMin || data.estabFeeMin === 0) &&\n (data.estabFeeMax || data.estabFeeMax === 0) &&\n _.isEmpty(\n mustBeArray(data.stateRegionDetails).filter(\n x => x.distanceKey === null && x.regionKeys.length < 1\n )\n ) &&\n data.lvrMin &&\n data.lvrMax &&\n (data.lineFeeMin || data.lineFeeMin === 0) &&\n (data.lineFeeMax || data.lineFeeMax === 0) &&\n data.pointOfDifference &&\n data.pointOfDifference.length >= 10\n ) === true\n );\n };\n\n const getUserProfile = async () => {\n let userDetails = await authService.getUser();\n let usersLenderId = userDetails[\"app.user.lenderid\"];\n let usersBrokerId = userDetails[\"app.user.brokerid\"];\n const actionName =\n profileType === \"lender\" ? getLenderProfile : getBrokerProfile;\n actionName({\n id: userId,\n userType,\n notClearProfileImage: true,\n doNotResetCurrentTab: true,\n isUserViewingSelfProfile:\n (profileType === \"lender\" ? usersLenderId : usersBrokerId) === userId\n });\n };\n\n const listStates = async () => {\n const resp = await dispatch(\n lendersLookUpHandler({ action: LENDERS_STATES_SUBURBS_TYPE, userType })\n );\n if (resp.status) {\n setStatesList(\n produce(statesList, x => {\n return resp.data;\n })\n );\n\n return resp.data;\n } else {\n errorDisplay(resp.data.errors);\n }\n };\n\n const listDistances = async () => {\n const resp = await dispatch(\n lendersLookUpHandler({ action: LENDERS_DISTANCES_TYPE, userType })\n );\n if (resp.status) {\n setDistancesList(\n produce(distancesList, x => {\n return resp.data;\n })\n );\n } else {\n errorDisplay(resp.data.errors);\n }\n };\n\n const listSecurityTypes = async () => {\n const resp = await dispatch(\n lendersLookUpHandler({\n action: LENDERS_MEZZANINE_SECURITY_TYPE,\n userType\n })\n );\n if (resp.status) {\n setSecurityList(\n produce(securityList, x => {\n return resp.data;\n })\n );\n } else {\n errorDisplay(resp.data.errors);\n }\n };\n\n const saveChangesImpl = async (cancelToken, payLoad, id) => {\n if (\n payLoad &&\n Number(payLoad.available) === 0 &&\n (payLoad.isVerified || !hasMissingMandatoryFields(payLoad))\n ) {\n return setZeroAvailableWarningVisible(true);\n }\n setIsSaving(true);\n if (userType === ADMIN_USER) {\n await dispatch(\n saveMezzanineFieldAsAdmin({\n cancelToken: cancelToken,\n payLoad: payLoad,\n id: id\n })\n ).then(resp => {\n if (!resp.status) {\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, []);\n // errorDisplay(resp.data.errors);\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n }\n checkProductState();\n setHasPendingSave(false);\n setIsSaving(false);\n });\n } else {\n await dispatch(\n saveMezzanineField({\n cancelToken: cancelToken,\n payLoad: payLoad,\n id: id\n })\n ).then(resp => {\n if (!resp.status) {\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, []);\n // errorDisplay(resp.data.errors);\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n }\n checkProductState();\n setHasPendingSave(false);\n setIsSaving(false);\n });\n }\n };\n\n const saveChanges = useCallback(\n AwesomeDebouncePromise(saveChangesImpl, 2000),\n []\n );\n\n const handleSavingErrors = ({ resp, data }) => {\n if (resp.data.errors.length > 0) {\n setErrorsList(mustBeArray(resp && resp.data && resp.data.errors));\n } else if (data && data.isVerified) {\n if (!resp.status) {\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, []);\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n }\n } else {\n setErrorsList(mustBeArray(resp && resp.data && resp.data.errors));\n }\n };\n\n const verify = async () => {\n if (mezzanine && Number(mezzanine.available) === 0) {\n return setZeroAvailableWarningVisible(true);\n }\n setIsVerifying(true);\n if (userType === ADMIN_USER) {\n await dispatch(\n verifyMezzanineFieldsAsAdmin({\n id: userId\n })\n ).then(resp => {\n setIsVerifying(false);\n handleSavingErrors({ resp, data: mezzanine });\n onInitialized();\n delay(500).then(() => {\n getUserProfile();\n });\n });\n } else {\n await dispatch(\n verifyMezzanineFields({\n id: userId\n })\n ).then(resp => {\n setIsVerifying(false);\n handleSavingErrors({ resp, data: mezzanine });\n onInitialized();\n delay(500).then(() => {\n getUserProfile();\n });\n });\n }\n };\n\n const handleCancel = () => {\n setPauseLoading(false);\n setZeroAvailableWarningVisible(false);\n };\n const handleOk = () => {\n setPauseLoading(true);\n toggleSubscriptions({\n profileType,\n productType: \"mezzanine\",\n id: userId\n }).then(resp => {\n setPauseLoading(false);\n setZeroAvailableWarningVisible(false);\n if (resp.status) {\n message.success(\n profileType === \"lender\"\n ? \"Categories offered updated successfully.\"\n : \"Categories subscribed to updated successfully.\"\n );\n getUserProfile();\n }\n });\n };\n\n const handleShowClearDetailsModal = () => {\n setShowClearDetailsModal(true);\n }\n const handleClearDetailsModalClose = () => {\n setShowClearDetailsModal(false);\n }\n const handleClearDetailsChange = async options => {\n if(!isVerifying && !isSaving){\n let cancelToken = Axios.CancelToken.source();\n\n setClearingDetails(true);\n let categoryType = {\n categoryType: \"Mezzanine\"\n };\n if (userType === ADMIN_USER) {\n await dispatch(\n clearDetailsFieldsAsAdmin({\n id: userId,\n categoryType: categoryType,\n cancelToken: cancelToken\n })\n ).then(resp => {\n if(!resp.status){\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, [])\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n onInitialized();\n delay(500).then(() => {\n getUserProfile();\n });\n }\n\n setClearingDetails(false);\n setShowClearDetailsModal(false);\n });\n }\n else {\n await dispatch(\n clearDetailsFields({\n id: userId,\n categoryType: categoryType,\n cancelToken: cancelToken\n })\n ).then(resp => {\n if(!resp.status){\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, [])\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n onInitialized();\n delay(500).then(() => {\n getUserProfile();\n });\n }\n\n setClearingDetails(false);\n setShowClearDetailsModal(false);\n });\n }\n }\n }\n\n return (\n \n \n \n \n \n \n \n \n
\n
\n \n \n \n \n \n \n
\n
\n \n \n \n \n \n \n
\n
\n {!_.isEmpty(errorsList) && (\n \n \n \n
\n The following errors must be resolved before this criteria\n can be verified:\n
\n
    \n {errorsList.map((errors, i) => {\n return
  • {errors}
  • ;\n })}\n
\n
\n }\n type=\"warning\"\n />\n \n \n )}\n \n Verifying...\n \n \n Saving...\n \n \n Clearing...\n \n \n \n
\n
\n
\n Available\n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n onChange={e =>\n setMezzanine(\n produce(mezzanine, x => {\n x.available = e;\n })\n )\n }\n className=\"w-150 m-l-6 m-b-6 hideNumberPointers\"\n value={mezzanine.available}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n
\n
\n
\n
\n
\n
\n Line Fee  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setMezzanine(\n produce(mezzanine, x => {\n x.lineFeeMin = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={mezzanine.lineFeeMin}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setMezzanine(\n produce(mezzanine, x => {\n x.lineFeeMax = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={mezzanine.lineFeeMax}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n
\n\n
\n
\n Preferred parcel size\n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n onChange={e =>\n setMezzanine(\n produce(mezzanine, x => {\n x.preferredParcelSizeMin = e;\n })\n )\n }\n className=\"w-150 m-l-6 m-r-6 m-b-6 hideNumberPointers\"\n value={mezzanine.preferredParcelSizeMin}\n disabled={!userHasPermissionToUpdate}\n />\n \n *{\" \"}\n \n to\n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n onChange={e =>\n setMezzanine(\n produce(mezzanine, x => {\n x.preferredParcelSizeMax = e;\n })\n )\n }\n className=\"w-170 m-l-6 m-b-6 hideNumberPointers\"\n value={mezzanine.preferredParcelSizeMax}\n disabled={!userHasPermissionToUpdate}\n />\n \n *{\" \"}\n \n
\n
\n
\n LVR (% of end value)  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setMezzanine(\n produce(mezzanine, x => {\n x.lvrMin = e;\n })\n )\n }\n className=\"w-80 m-l-6 m-b-6 hideNumberPointers\"\n value={mezzanine.lvrMin}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setMezzanine(\n produce(mezzanine, x => {\n x.lvrMax = e;\n })\n )\n }\n className=\"w-80 m-l-6 m-b-6 hideNumberPointers\"\n value={mezzanine.lvrMax}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n
\n \n \n \n
Security type
\n \n \n \n \n \n {securityList.map((data, i) => {\n return (\n \n 0 &&\n mezzanine.securityTypeKeys.includes(data.id)\n }\n value={data.id}\n key={i}\n onChange={e =>\n setMezzanine(\n produce(mezzanine, x => {\n let checkBoxValue = e.target.value;\n let checked = e.target.checked;\n if (\n checked === true &&\n !x.securityTypeKeys.includes(checkBoxValue)\n ) {\n x.securityTypeKeys.push(checkBoxValue);\n } else if (\n checked === false &&\n x.securityTypeKeys.includes(checkBoxValue)\n ) {\n x.securityTypeKeys = x.securityTypeKeys.filter(\n s => s !== checkBoxValue\n );\n }\n })\n )\n }\n disabled={!userHasPermissionToUpdate}\n >\n {data.name}\n \n \n );\n })}\n \n \n
\n \n setMezzanine(\n produce(mezzanine, x => {\n x.stateRegionDetails.forEach(s => {\n if (s.stateKey === stateId) {\n s.distanceKey = value;\n }\n });\n return x;\n })\n )\n }\n handleChangeState={key => onStateChanged(key)}\n disabled={!userHasPermissionToUpdate}\n handleChangeRegion={({ isChecked, value, stateId }) =>\n setMezzanine(\n produce(mezzanine, x => {\n x.stateRegionDetails.forEach(s => {\n if (s.stateKey === stateId) {\n let regionKeys = s.regionKeys;\n if (isChecked === true) {\n if (!regionKeys.includes(value)) {\n s.regionKeys.push(value);\n }\n } else if (isChecked === false) {\n if (regionKeys.includes(value)) {\n s.regionKeys = s.regionKeys.filter(\n rk => rk !== value\n );\n }\n }\n }\n });\n return x;\n })\n )\n }\n />\n \n \n *{\" \"}\n \n \n
\n
\n Lower Rate  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setMezzanine(\n produce(mezzanine, x => {\n x.rateMin = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={mezzanine.rateMin}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setMezzanine(\n produce(mezzanine, x => {\n x.rateMax = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={mezzanine.rateMax}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n\n
\n
\n Higher Rate  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setMezzanine(\n produce(mezzanine, x => {\n x.higherRateMin = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={mezzanine.higherRateMin}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setMezzanine(\n produce(mezzanine, x => {\n x.higherRateMax = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={mezzanine.higherRateMax}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n\n
\n
\n
\n Estab Fee  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setMezzanine(\n produce(mezzanine, x => {\n x.estabFeeMin = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={mezzanine.estabFeeMin}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setMezzanine(\n produce(mezzanine, x => {\n x.estabFeeMax = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={mezzanine.estabFeeMax}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n
\n
\n
\n Total Cost of Funds  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"w-80 m-l-4 m-b-6 hideNumberPointers\"\n value={mezzanine.totalCostOfFundsLow}\n disabled={true}\n />\n
\n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"w-80 m-l-4 m-b-6 hideNumberPointers\"\n value={mezzanine.totalCostOfFundsHigh}\n disabled={true}\n />\n
\n
\n
\n \n \n \n \n \n Point of difference\n \n \n setMezzanine(\n produce(mezzanine, x => {\n x.pointOfDifference = e.currentTarget.value;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}\n />\n \n \n *{\" \"}\n \n \n \n Syndicate loans\n Are you prepared to loan in a Syndicate using the Bransgroves Lawyers double blind syndicate\n deed and Bransgroves Lawyers trustee?\n \n \n setMezzanine(\n produce(mezzanine, x=> {\n x.isSyndicateLender = true;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}>\n Yes\n \n \n setMezzanine(\n produce(mezzanine, x=> {\n x.isSyndicateLender = false;\n x.advertiseToOtherSyndicateLenders = false;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}>\n No\n \n \n \n \n \n \n Do you want to advertise this category to other Syndicate Lenders only?\n \n \n setMezzanine(\n produce(mezzanine, x=> {\n x.advertiseToOtherSyndicateLenders = true;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}>\n Yes\n \n \n setMezzanine(\n produce(mezzanine, x=> {\n x.advertiseToOtherSyndicateLenders = false;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}>\n No\n \n \n \n \n \n Last Verified\n \n \n {userHasPermissionToUpdate && (\n \n \n Verify\n \n \n You must verify every calendar month or this matrix will be\n paused\n \n \n )}\n \n \n \n \n \n handleClearDetailsChange(options)\n }\n disabled={isClearingDetails}\n >\n Okay\n ,\n \n ]}\n >\n
\n Are you sure you wish to proceed on clearing the form?\n
\n \n \n );\n};\n\nexport default connect()(MezzanineImpl);\n","import {\n Alert,\n Button,\n Card,\n Checkbox,\n Col,\n Input,\n InputNumber,\n message,\n Radio,\n Row,\n Skeleton,\n Modal\n} from \"antd\";\nimport React, { useCallback, useEffect, useState } from \"react\";\nimport {\n LENDERS_DISTANCES_TYPE,\n LENDERS_LAND_BANK_ZONING_TYPE,\n LENDERS_STATES_SUBURBS_TYPE\n} from \"../../constants/lookup\";\nimport {\n asDefaultDisplayFormatDate,\n defaultIfUndefinedOrNull,\n delay,\n errorDisplay,\n errorDisplayCustom,\n isCategoryOffered,\n millisecondsInADay,\n mustBeArray\n} from \"../../libs/utilities\";\nimport StatesForm from \"./StatesForm\";\nimport _ from \"lodash\";\nimport AwesomeDebouncePromise from \"awesome-debounce-promise\";\nimport Axios from \"axios\";\nimport { connect } from \"react-redux\";\nimport { Visible } from \"../Common/visiblityWrapper\";\nimport produce from \"immer\";\nimport { lendersLookUpHandler } from \"../../actions/lookup\";\nimport {\n getLendersLandBankProfile,\n saveLandBankField,\n saveLandBankFieldAsAdmin,\n verifyLandBankFields,\n verifyLandBankFieldsAsAdmin,\n clearDetailsFieldsAsAdmin,\n clearDetailsFields\n} from \"../../actions/profile\";\nimport { ADMIN_USER } from \"../../constants/systemUsers\";\nimport {\n LENDER_PROFILE_INCOMPLETE_MANATORY_FIELD_WARNING,\n LENDER_PROFILE_MORE_THAN_MONTH_LAST_VERIFIED_WARNING,\n STATE_REQUIRED_WARNING\n} from \"../../constants/warnings\";\nimport moment from \"moment\";\nimport ZeroAvailableWarning from \"./ZeroAvailableWarning\";\nimport authService from \"../../actions/AuthorizeService\";\n\nconst LandBankImpl = ({\n activeKey,\n activeSubKey,\n dispatch,\n userId,\n userType,\n isSystemUser,\n lender,\n userHasPermissionToUpdate,\n broker,\n profileType,\n getLenderProfile,\n getBrokerProfile,\n toggleSubscriptions\n}) => {\n const [landBank, setLandBank] = useState({\n available: null,\n bookSize: null,\n bransgrovesComments: null,\n distanceKey: null,\n estabFeeMin: null,\n estabFeeMax: null,\n isVerified: false,\n lastVerifiedByFirstName: null,\n lastVerifiedByLastName: null,\n lastVerifiedDate: null,\n lenderId: \"\",\n lenderCategoryId: \"\",\n lvrNonResidentialMin: null,\n lvrResidentialMin: null,\n lvrNonResidentialMax: null,\n lvrResidentialMax: null,\n pointOfDifference: null,\n preferredParcelSizeMax: null,\n preferredParcelSizeMin: null,\n rateMax: null,\n rateMin: null,\n higherRateMax: null,\n higherRateMin: null,\n estabFeeMin: null,\n estabFeeMax: null,\n zoningKeys: [],\n stateRegionDetails: [],\n isSyndicateLender: false,\n advertiseToOtherSyndicateLenders: false\n });\n\n const [errorsList, setErrorsList] = useState([]);\n const [\n zeroAvailableWarningVisible,\n setZeroAvailableWarningVisible\n ] = useState(false);\n const [pauseLoading, setPauseLoading] = useState(false);\n const [isPrivate, setIsPrivate] = useState(false);\n const [selectedCity, setSelectedCity] = useState(\"Sydney+\");\n const [zoningList, setZoningList] = useState([]);\n const [statesList, setStatesList] = useState([]);\n const [selectedStates, setSelectedStates] = useState([]);\n const [regionsList, setRegionsList] = useState([]);\n const [selectedRegion, setSelectedRegion] = useState(\"\");\n const [distancesList, setDistancesList] = useState([]);\n const [selectedDistance, setSelectedDistance] = useState(\"\");\n const [lookupsLoading, setLookupsLoading] = useState(false);\n const [isInitialized, setIsInitialized] = useState(false);\n const [isVerifying, setIsVerifying] = useState(false);\n const [isSaving, setIsSaving] = useState(false);\n const [isNotAvailableToBrokers, setIsNotAvailableToBrokers] = useState(false);\n const [\n hasIncompleteMandatoryFields,\n setHasIncompleteMandatoryFields\n ] = useState(false);\n const [isVerifiedButNotSwitchedOn, setIsVerifiedButNotSwitchedOn] = useState(\n false\n );\n const [hasPendingSave, setHasPendingSave] = useState(false);\n const [showClearDetailsModal, setShowClearDetailsModal] = useState(false);\n const [isClearingDetails, setClearingDetails] = useState(false);\n\n useEffect(() => {\n checkIfCategoriesEnabled({\n data: profileType === \"lender\" ? lender : broker,\n landBankData: landBank\n });\n }, [profileType === \"lender\" ? lender : broker]);\n\n const checkIfCategoriesEnabled = ({ landBankData }) => {\n if (lender && lender.categoriesOffered && landBankData) {\n let isSwitchedOn = lender.categoriesOffered.landBank;\n setIsVerifiedButNotSwitchedOn(\n landBankData.isVerified === true && !isSwitchedOn ? true : false\n );\n }\n };\n\n useEffect(() => {\n if (activeSubKey === \"8\") {\n onInitialized();\n }\n }, [activeSubKey, lender]);\n\n useEffect(() => {\n setLookupsLoading(regionsList.length === 0);\n }, [regionsList]);\n\n async function onInitialized() {\n setIsInitialized(false);\n await Promise.all([\n listDistances(),\n listSecurityTypes(),\n getLandBankDetails()\n ]).then(resp => {\n setIsInitialized(true);\n });\n }\n\n useEffect(() => {\n if (isInitialized && landBank.id !== null) {\n let cancelToken = Axios.CancelToken.source();\n setHasPendingSave(true);\n saveChanges(cancelToken, landBank, userId);\n }\n }, [landBank]);\n\n useEffect(() => {\n const { min, max } = recalculateTotalCostOfFunds(\n defaultIfUndefinedOrNull(landBank.rateMin, 0),\n defaultIfUndefinedOrNull(landBank.rateMax, 0),\n defaultIfUndefinedOrNull(landBank.estabFeeMin, 0),\n defaultIfUndefinedOrNull(landBank.estabFeeMax, 0)\n );\n setLandBank(\n produce(landBank, x => {\n x.totalCostOfFundsLow = min;\n x.totalCostOfFundsHigh = max;\n })\n );\n }, [\n landBank.rateMax,\n landBank.rateMin,\n landBank.estabFeeMin,\n landBank.estabFeeMax\n ]);\n\n function recalculateTotalCostOfFunds(\n rateMin,\n rateMax,\n estabFeeMin,\n estabFeeMax\n ) {\n return {\n min: rateMin + estabFeeMin,\n max: rateMax + estabFeeMax\n };\n }\n\n function onStateChanged(stateCheckBoxDetails) {\n if (\n !stateCheckBoxDetails.isChecked &&\n mustBeArray(selectedStates).length === 1\n ) {\n return message.warning(STATE_REQUIRED_WARNING);\n }\n if (\n stateCheckBoxDetails.isChecked === true &&\n !selectedStates.map(x => x.id).includes(stateCheckBoxDetails.value)\n ) {\n let stateToAppend = statesList.find(\n x => x.id === stateCheckBoxDetails.value\n );\n selectedStates.push(stateToAppend);\n setRegionsList(\n selectedStates.map(s => ({\n id: s.id,\n capitalCity: s.capitalCity + \"+\",\n states: s.states\n }))\n );\n\n setLandBank(\n produce(landBank, x => {\n x.stateRegionDetails.push({\n stateKey: stateCheckBoxDetails.value,\n distanceKey: null,\n regionKeys: []\n });\n })\n );\n } else if (\n stateCheckBoxDetails.isChecked === false &&\n selectedStates.map(x => x.id).includes(stateCheckBoxDetails.value)\n ) {\n let filteredStates = selectedStates.filter(\n x => x.id !== stateCheckBoxDetails.value\n );\n setSelectedStates(filteredStates);\n setRegionsList(\n filteredStates.map(s => ({\n id: s.id,\n capitalCity: s.capitalCity + \"+\",\n states: s.states\n }))\n );\n setLandBank(\n produce(landBank, x => {\n x.stateRegionDetails = x.stateRegionDetails.filter(\n x => x.stateKey !== stateCheckBoxDetails.value\n );\n })\n );\n }\n }\n\n const checkProductState = async () => {\n const resp = await dispatch(getLendersLandBankProfile({ id: userId }));\n\n let responseData = resp.data;\n\n let today = new Date();\n\n if (responseData.modifiedDate) {\n let modifiedDate = new Date(responseData.modifiedDate);\n setIsNotAvailableToBrokers(\n !responseData.isVerified &&\n Math.round((today - modifiedDate) / millisecondsInADay)\n );\n }\n\n if (responseData.lastVerifiedDate) {\n setIsNotAvailableToBrokers(\n moment().diff(responseData.lastVerifiedDate, \"days\") > 30\n );\n }\n\n checkIfCategoriesEnabled({ landBankData: responseData });\n setHasIncompleteMandatoryFields(hasMissingMandatoryFields(responseData));\n };\n\n const getLandBankDetails = async () => {\n const resp = await dispatch(getLendersLandBankProfile({ id: userId }));\n const initialStates = await listStates();\n const hasNoStateRegionDetail =\n resp.data.stateRegionDetails.map(x => x.stateKey).length < 1;\n if (hasNoStateRegionDetail) {\n resp.data.stateRegionDetails.push({\n stateKey: \"NSW\",\n distanceKey: null,\n regionKeys: []\n });\n }\n var stateKeyInitial = resp.data.stateRegionDetails.map(x => x.stateKey);\n setLandBank(\n produce(landBank, x => {\n const selectedStatesFromKeys = initialStates.filter(x =>\n stateKeyInitial.includes(x.id)\n );\n const selectedRegions = selectedStatesFromKeys.map(s => ({\n id: s.id,\n capitalCity: s.capitalCity + \"+\",\n states: s.states\n }));\n setSelectedStates(selectedStatesFromKeys);\n setRegionsList(\n produce(regionsList, x => {\n x = selectedRegions;\n return x;\n })\n );\n\n let responseData = resp.data;\n\n let today = new Date();\n\n if (responseData.modifiedDate) {\n let modifiedDate = new Date(responseData.modifiedDate);\n setIsNotAvailableToBrokers(\n !responseData.isVerified &&\n Math.round((today - modifiedDate) / millisecondsInADay)\n );\n }\n\n if (responseData.lastVerifiedDate) {\n setIsNotAvailableToBrokers(\n moment().diff(responseData.lastVerifiedDate, \"days\") > 30\n );\n }\n checkIfCategoriesEnabled({ landBankData: responseData });\n setHasIncompleteMandatoryFields(\n hasMissingMandatoryFields(responseData)\n );\n return resp.data;\n })\n );\n };\n\n const getUserProfile = async () => {\n let userDetails = await authService.getUser();\n let usersLenderId = userDetails[\"app.user.lenderid\"];\n let usersBrokerId = userDetails[\"app.user.brokerid\"];\n const actionName =\n profileType === \"lender\" ? getLenderProfile : getBrokerProfile;\n actionName({\n id: userId,\n userType,\n notClearProfileImage: true,\n doNotResetCurrentTab: true,\n isUserViewingSelfProfile:\n (profileType === \"lender\" ? usersLenderId : usersBrokerId) === userId\n });\n };\n\n const hasMissingMandatoryFields = data => {\n return (\n !(\n data.zoningKeys.length > 0 &&\n data.available &&\n data.preferredParcelSizeMin &&\n data.preferredParcelSizeMax &&\n data.rateMin &&\n data.rateMax &&\n data.higherRateMin &&\n data.higherRateMax &&\n (data.estabFeeMin || data.estabFeeMin === 0) &&\n (data.estabFeeMax || data.estabFeeMax === 0) &&\n _.isEmpty(\n mustBeArray(data.stateRegionDetails).filter(\n x => x.distanceKey === null && x.regionKeys.length < 1\n )\n ) &&\n data.lvrResidentialMin &&\n data.lvrNonResidentialMin &&\n data.lvrResidentialMax &&\n data.lvrNonResidentialMax &&\n data.pointOfDifference &&\n data.pointOfDifference.length >= 10\n ) === true\n );\n };\n\n const listStates = async () => {\n const resp = await dispatch(\n lendersLookUpHandler({ action: LENDERS_STATES_SUBURBS_TYPE, userType })\n );\n if (resp.status) {\n setStatesList(\n produce(statesList, x => {\n return resp.data;\n })\n );\n\n return resp.data;\n } else {\n errorDisplay(resp.data.errors);\n }\n };\n\n const listDistances = async () => {\n const resp = await dispatch(\n lendersLookUpHandler({ action: LENDERS_DISTANCES_TYPE, userType })\n );\n if (resp.status) {\n setDistancesList(\n produce(distancesList, x => {\n return resp.data;\n })\n );\n } else {\n errorDisplay(resp.data.errors);\n }\n };\n\n const listSecurityTypes = async () => {\n const resp = await dispatch(\n lendersLookUpHandler({\n action: LENDERS_LAND_BANK_ZONING_TYPE,\n userType\n })\n );\n if (resp.status) {\n setZoningList(\n produce(zoningList, x => {\n return resp.data;\n })\n );\n } else {\n errorDisplay(resp.data.errors);\n }\n };\n\n const saveChangesImpl = async (cancelToken, payLoad, id) => {\n if (\n payLoad &&\n Number(payLoad.available) === 0 &&\n (payLoad.isVerified || !hasMissingMandatoryFields(payLoad))\n ) {\n return setZeroAvailableWarningVisible(true);\n }\n setIsSaving(true);\n if (userType === ADMIN_USER) {\n await dispatch(\n saveLandBankFieldAsAdmin({\n cancelToken: cancelToken,\n payLoad: payLoad,\n id: id\n })\n ).then(resp => {\n if (!resp.status) {\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, []);\n // errorDisplay(resp.data.errors);\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n }\n checkProductState();\n setHasPendingSave(false);\n setIsSaving(false);\n });\n } else {\n await dispatch(\n saveLandBankField({\n cancelToken: cancelToken,\n payLoad: payLoad,\n id: id\n })\n ).then(resp => {\n if (!resp.status) {\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, []);\n // errorDisplay(resp.data.errors);\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n }\n checkProductState();\n setHasPendingSave(false);\n setIsSaving(false);\n });\n }\n };\n\n const saveChanges = useCallback(\n AwesomeDebouncePromise(saveChangesImpl, 2000),\n []\n );\n\n const handleSavingErrors = ({ resp, data }) => {\n if (resp.data.errors.length > 0) {\n setErrorsList(mustBeArray(resp && resp.data && resp.data.errors));\n } else if (data && data.isVerified) {\n if (!resp.status) {\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, []);\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n }\n } else {\n setErrorsList(mustBeArray(resp && resp.data && resp.data.errors));\n }\n };\n\n const verify = async () => {\n if (landBank && Number(landBank.available) === 0) {\n return setZeroAvailableWarningVisible(true);\n }\n setIsVerifying(true);\n if (userType === ADMIN_USER) {\n await dispatch(\n verifyLandBankFieldsAsAdmin({\n id: userId\n })\n ).then(resp => {\n setIsVerifying(false);\n handleSavingErrors({ resp, data: landBank });\n onInitialized();\n delay(500).then(() => {\n getUserProfile();\n });\n });\n } else {\n await dispatch(\n verifyLandBankFields({\n id: userId\n })\n ).then(resp => {\n setIsVerifying(false);\n handleSavingErrors({ resp, data: landBank });\n onInitialized();\n delay(500).then(() => {\n getUserProfile();\n });\n });\n }\n };\n const handleCancel = () => {\n setPauseLoading(false);\n setZeroAvailableWarningVisible(false);\n };\n const handleOk = () => {\n setPauseLoading(true);\n toggleSubscriptions({\n profileType,\n productType: \"landBank\",\n id: userId\n }).then(resp => {\n setPauseLoading(false);\n setZeroAvailableWarningVisible(false);\n if (resp.status) {\n message.success(\n profileType === \"lender\"\n ? \"Categories offered updated successfully.\"\n : \"Categories subscribed to updated successfully.\"\n );\n getUserProfile();\n }\n });\n };\n\n const handleShowClearDetailsModal = () => {\n setShowClearDetailsModal(true);\n }\n const handleClearDetailsModalClose = () => {\n setShowClearDetailsModal(false);\n }\n const handleClearDetailsChange = async options => {\n if(!isVerifying && !isSaving){\n let cancelToken = Axios.CancelToken.source();\n\n setClearingDetails(true);\n let categoryType = {\n categoryType: \"LandBank\"\n };\n if (userType === ADMIN_USER) {\n await dispatch(\n clearDetailsFieldsAsAdmin({\n id: userId,\n categoryType: categoryType,\n cancelToken: cancelToken\n })\n ).then(resp => {\n if(!resp.status){\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, [])\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n onInitialized();\n delay(500).then(() => {\n getUserProfile();\n });\n }\n\n setClearingDetails(false);\n setShowClearDetailsModal(false);\n });\n } else {\n await dispatch(\n clearDetailsFields({\n id: userId,\n categoryType: categoryType,\n cancelToken: cancelToken\n })\n ).then(resp => {\n if(!resp.status){\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, [])\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n onInitialized();\n delay(500).then(() => {\n getUserProfile();\n });\n }\n\n setClearingDetails(false);\n setShowClearDetailsModal(false);\n });\n }\n }\n }\n\n return (\n \n \n \n \n \n \n \n \n
\n
\n \n \n \n \n \n \n
\n
\n \n \n \n \n \n \n
\n
\n {!_.isEmpty(errorsList) && (\n \n \n \n
\n The following errors must be resolved before this criteria\n can be verified:\n
\n
    \n {errorsList.map((errors, i) => {\n return
  • {errors}
  • ;\n })}\n
\n
\n }\n type=\"warning\"\n />\n \n \n )}\n \n Verifying...\n \n \n Saving...\n \n \n Clearing...\n \n \n \n
\n
\n
\n Available\n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n onChange={e =>\n setLandBank(\n produce(landBank, x => {\n x.available = e;\n })\n )\n }\n className=\"w-150 m-l-6 m-b-6 hideNumberPointers\"\n value={landBank.available}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n
\n
\n
\n
\n
\n
\n LVR (residential)  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setLandBank(\n produce(landBank, x => {\n x.lvrResidentialMin = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={landBank.lvrResidentialMin}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setLandBank(\n produce(landBank, x => {\n x.lvrResidentialMax = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={landBank.lvrResidentialMax}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n
\n
\n
\n Preferred parcel size\n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n onChange={e =>\n setLandBank(\n produce(landBank, x => {\n x.preferredParcelSizeMin = e;\n })\n )\n }\n className=\"w-150 m-l-6 m-b-6 m-r-6 hideNumberPointers\"\n value={landBank.preferredParcelSizeMin}\n disabled={!userHasPermissionToUpdate}\n />\n \n *{\" \"}\n \n to\n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n onChange={e =>\n setLandBank(\n produce(landBank, x => {\n x.preferredParcelSizeMax = e;\n })\n )\n }\n className=\"w-170 m-l-6 m-b-6 hideNumberPointers\"\n value={landBank.preferredParcelSizeMax}\n disabled={!userHasPermissionToUpdate}\n />\n \n *{\" \"}\n \n
\n
\n
\n LVR (non-residential)  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setLandBank(\n produce(landBank, x => {\n x.lvrNonResidentialMin = e;\n })\n )\n }\n className=\"w-80 m-l-6 m-b-6 hideNumberPointers\"\n value={landBank.lvrNonResidentialMin}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setLandBank(\n produce(landBank, x => {\n x.lvrNonResidentialMax = e;\n })\n )\n }\n className=\"w-80 m-l-6 m-b-6 hideNumberPointers\"\n value={landBank.lvrNonResidentialMax}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n
\n \n \n \n
Zoning
\n\n \n \n \n \n {zoningList.map((data, i) => {\n return (\n \n 0 &&\n landBank.zoningKeys.includes(data.id)\n }\n disabled={!userHasPermissionToUpdate}\n value={data.id}\n key={i}\n onChange={e =>\n setLandBank(\n produce(landBank, x => {\n let checkBoxValue = e.target.value;\n let checked = e.target.checked;\n if (\n checked === true &&\n !x.zoningKeys.includes(checkBoxValue)\n ) {\n x.zoningKeys.push(checkBoxValue);\n } else if (\n checked === false &&\n x.zoningKeys.includes(checkBoxValue)\n ) {\n x.zoningKeys = x.zoningKeys.filter(\n s => s !== checkBoxValue\n );\n }\n })\n )\n }\n >\n {data.name}\n \n \n );\n })}\n \n
\n \n setLandBank(\n produce(landBank, x => {\n x.stateRegionDetails.forEach(s => {\n if (s.stateKey === stateId) {\n s.distanceKey = value;\n }\n });\n return x;\n })\n )\n }\n handleChangeState={key => onStateChanged(key)}\n disabled={!userHasPermissionToUpdate}\n handleChangeRegion={({ isChecked, value, stateId }) =>\n setLandBank(\n produce(landBank, x => {\n x.stateRegionDetails.forEach(s => {\n if (s.stateKey === stateId) {\n let regionKeys = s.regionKeys;\n if (isChecked === true) {\n if (!regionKeys.includes(value)) {\n s.regionKeys.push(value);\n }\n } else if (isChecked === false) {\n if (regionKeys.includes(value)) {\n s.regionKeys = s.regionKeys.filter(\n rk => rk !== value\n );\n }\n }\n }\n });\n return x;\n })\n )\n }\n />\n \n \n
\n
\n Lower Rate  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setLandBank(\n produce(landBank, x => {\n x.rateMin = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={landBank.rateMin}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setLandBank(\n produce(landBank, x => {\n x.rateMax = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={landBank.rateMax}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n
\n
\n Higher Rate  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setLandBank(\n produce(landBank, x => {\n x.higherRateMin = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={landBank.higherRateMin}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setLandBank(\n produce(landBank, x => {\n x.higherRateMax = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={landBank.higherRateMax}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n\n
\n
\n
\n Estab Fee  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setLandBank(\n produce(landBank, x => {\n x.estabFeeMin = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={landBank.estabFeeMin}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setLandBank(\n produce(landBank, x => {\n x.estabFeeMax = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={landBank.estabFeeMax}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n
\n
\n
\n Total Cost of Funds  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"w-80 m-l-4 m-b-6 hideNumberPointers\"\n value={landBank.totalCostOfFundsLow}\n disabled={true}\n />\n
\n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"w-80 m-l-4 m-b-6 hideNumberPointers\"\n value={landBank.totalCostOfFundsHigh}\n disabled={true}\n />\n
\n
\n
\n \n \n \n \n \n Point of difference\n \n \n setLandBank(\n produce(landBank, x => {\n x.pointOfDifference = e.currentTarget.value;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}\n />\n \n \n *{\" \"}\n \n \n \n Syndicate loans\n Are you prepared to loan in a Syndicate using the Bransgroves Lawyers double blind syndicate\n deed and Bransgroves Lawyers trustee?\n \n \n setLandBank(\n produce(landBank, x=> {\n x.isSyndicateLender = true;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}>\n Yes\n \n \n setLandBank(\n produce(landBank, x=> {\n x.isSyndicateLender = false;\n x.advertiseToOtherSyndicateLenders = false;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}>\n No\n \n \n \n \n \n \n Do you want to advertise this category to other Syndicate Lenders only?\n \n \n setLandBank(\n produce(landBank, x=> {\n x.advertiseToOtherSyndicateLenders = true;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}>\n Yes\n \n \n setLandBank(\n produce(landBank, x=> {\n x.advertiseToOtherSyndicateLenders = false;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}>\n No\n \n \n \n \n \n Last Verified\n \n \n {userHasPermissionToUpdate && (\n \n \n Verify\n \n \n You must verify every calendar month or this matrix will be\n paused\n \n \n )}\n \n \n \n \n \n handleClearDetailsChange(options)\n }\n disabled={isClearingDetails}\n >\n Okay\n ,\n \n ]}\n >\n
\n Are you sure you wish to proceed on clearing the form?\n
\n \n \n );\n};\nexport default connect()(LandBankImpl);\n","import { Checkbox, Col, Radio, Row, Skeleton } from \"antd\";\nimport React, { Fragment } from \"react\";\nimport { mustBeArray } from \"../../libs/utilities\";\nimport { Visible } from \"../Common/visiblityWrapper\";\n\nconst StatesForm = props => {\n const {\n statesList,\n handleChangeDistance,\n regionsList,\n selectedCity,\n distancesList,\n handleChangeState,\n loading,\n fields,\n handleChangeRegion,\n userHasPermissionToUpdate\n } = props;\n return (\n \n \n \n \n \n
\n
\n
States
\n
\n {mustBeArray(statesList).map((state, i) => {\n return (\n 0 &&\n fields.stateRegionDetails\n .map(x => x.stateKey)\n .includes(state.id)\n }\n onChange={e =>\n handleChangeState({\n isChecked: e.target.checked,\n value: e.target.value\n })\n }\n disabled={!userHasPermissionToUpdate}\n value={state.id}\n key={i}\n className=\"p-b-6\"\n >\n {state.id}\n \n );\n })}\n * \n
\n
\n
\n {mustBeArray(regionsList).map((state, i) => {\n return (\n \n 0}>\n {state.id}\n \n
\n
\n x.stateKey === state.id\n )?.distanceKey\n }\n className=\"flex space-between\"\n disabled={!userHasPermissionToUpdate}\n onChange={e =>\n handleChangeDistance({\n value: e.target.value,\n stateId: state.id\n })\n }\n >\n {mustBeArray(distancesList).map((distance, i) => {\n return (\n \n {distance.name}\n \n );\n })}\n \n
\n
\n
\n \n {mustBeArray(state.regions).map((region, i) => {\n return (\n \n 0 &&\n fields.stateRegionDetails\n .find(st => st.stateKey === state.id)\n .regionKeys?.includes(region.id)\n }\n onChange={e =>\n handleChangeRegion({\n isChecked: e.target.checked,\n value: e.target.value,\n stateId: state.id\n })\n }\n key={region.id}\n className=\"p-b-6 flex-1-1-25\"\n >\n {region.name}\n \n \n );\n })}\n \n
\n
\n );\n })}\n
\n
\n
\n
\n );\n};\nexport default StatesForm;\n","import { http } from \"../libs/http\";\nimport ResponseHandler from \"../libs/response\";\nimport { processRequest } from \"./asyncActionProcessor\";\nimport APIHandler, { apiUrls } from \"../constants/apiUrl\";\nimport { buildQueryParams, requestBuilder } from \"../libs/utilities\";\nimport { ADMIN_USER } from \"../constants/systemUsers\";\n\nexport const updateUser = ({ cancelToken, id, payLoad }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint: \"USERS_DETAIL_URL\",\n options: { id }\n });\n const response = await http.put(url, payLoad, cancelToken);\n\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"UPDATE_USER\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const getUsersList = ({ cancelToken, options = {}, type }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({ endpoint: \"USERS_URL\" });\n const response = await requestBuilder(null, url, options, cancelToken);\n let actionType =\n type === \"FORMER\" ? \"LIST_USERS_FORMER\" : \"LIST_USERS_CURRENT\";\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n actionType\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const createUser = ({ cancelToken, payLoad }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({ endpoint: \"USERS_URL\" });\n const response = await http.post(url, payLoad, cancelToken);\n\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"CREATE_USER\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const deleteUser = ({ cancelToken, id }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.USERS_DETAIL_URL,\n options: { id }\n });\n const response = await http.del(url, cancelToken);\n\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"DELETE_USER\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\nexport const createIndividualProfile = ({ cancelToken, payLoad }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint: \"INDIVIDUALS_LIST_URL\"\n });\n const response = await http.post(url, payLoad, cancelToken);\n\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"CREATE_USER\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};\n\n/**\n *\n * @param {{cancelToken: any, userType: string, payload: import(\"../libs/types\").AllUsersSearchPayload}} param0\n * @returns {Promise}\n */\nexport const getAllUsersList = ({\n cancelToken,\n userType = \"\",\n payload = {}\n}) => {\n return async () => {\n const apiUrl = APIHandler.constructEndpoint({\n endpoint:\n userType === ADMIN_USER\n ? apiUrls.USERS_ALL_SYSTEM_USER_SEARCH_URL\n : apiUrls.USERS_ALL_USER_SEARCH_URL\n });\n const response = await http.get(\n apiUrl +\"?\"+ buildQueryParams(payload),\n cancelToken\n );\n if (ResponseHandler.isValidStatus(response)) {\n return response.data && response.data.result\n ? response.data.result\n : response.data;\n } else {\n return ResponseHandler.inValidObject(response);\n }\n };\n};\n\n/**\n *\n * @param {{cancelToken: any}} param0\n * @returns {Promise}\n */\nexport const financierTypeLookup = ({ cancelToken }) => {\n return async () => {\n const apiUrl = APIHandler.constructEndpoint({\n endpoint: apiUrls.USERS_ALL_FINANCIER_TYPE_URL\n });\n const response = await http.get(apiUrl, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return response.data && response.data.result\n ? response.data.result\n : response.data;\n } else {\n return ResponseHandler.inValidObject(response);\n }\n };\n};\n\n/**\n *\n * @param {{cancelToken: any}} param0\n * @returns {Promise}\n */\nexport const settledLoansLookup = ({ cancelToken }) => {\n return async () => {\n const apiUrl = APIHandler.constructEndpoint({\n endpoint: apiUrls.USERS_ALL_SETTLED_LOANS_URL\n });\n const response = await http.get(apiUrl, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return response.data && response.data.result\n ? response.data.result\n : response.data;\n } else {\n return ResponseHandler.inValidObject(response);\n }\n };\n};\n\n/**\n *\n * @param {{cancelToken: any}} param0\n * @returns {Promise}\n */\nexport const firstFundsAvailableLookup = ({ cancelToken }) => {\n return async () => {\n const apiUrl = APIHandler.constructEndpoint({\n endpoint: apiUrls.USERS_ALL_FIRST_FUNDS_AVAILABLE_URL\n });\n const response = await http.get(apiUrl, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return response.data && response.data.result\n ? response.data.result\n : response.data;\n } else {\n return ResponseHandler.inValidObject(response);\n }\n };\n};\n\n/**\n *\n * @param {{cancelToken: any}} param0\n * @returns {Promise}\n */\nexport const profileStatusLookup = ({ cancelToken }) => {\n return async () => {\n const apiUrl = APIHandler.constructEndpoint({\n endpoint: apiUrls.USERS_ALL_PROFILE_STATUS_URL\n });\n const response = await http.get(apiUrl, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return response.data && response.data.result\n ? response.data.result\n : response.data;\n } else {\n return ResponseHandler.inValidObject(response);\n }\n };\n};\n\nexport const getAllUsersBdmLookup = ({\n search=\"\"\n}) => {\n return dispatch =>\n new Promise(async resolve => { \n const apiUrl = APIHandler.constructEndpoint({\n endpoint: apiUrls.GET_ALL_USERS_BDM_LOOKUP,\n options: {}\n });\n const url = search ? `${apiUrl}?search=${search}` : apiUrl;\n try {\n const response = await http.get(url);\n return(resolve(processRequest(dispatch, response, \"GET_ALL_USERS_BDM_LOOKUP\")));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n","import {\n Alert,\n Button,\n Card,\n Checkbox,\n Col,\n Input,\n InputNumber,\n message,\n Radio,\n Row,\n Skeleton,\n Modal\n} from \"antd\";\nimport { connect } from \"react-redux\";\nimport React, { useCallback, useEffect, useState } from \"react\";\nimport {\n LENDERS_LAND_BANK_AGRICULTURE_TYPE,\n LENDERS_STATES_REGIONS_TYPE\n} from \"../../constants/lookup\";\nimport {\n asDefaultDisplayFormatDate,\n defaultIfUndefinedOrNull,\n delay,\n errorDisplay,\n errorDisplayCustom,\n isCategoryOffered,\n millisecondsInADay,\n mustBeArray\n} from \"../../libs/utilities\";\nimport _ from \"lodash\";\nimport AwesomeDebouncePromise from \"awesome-debounce-promise\";\nimport Axios from \"axios\";\nimport { Visible } from \"../Common/visiblityWrapper\";\nimport produce from \"immer\";\nimport { lendersLookUpHandler } from \"../../actions/lookup\";\nimport {\n getLendersRuralProfile,\n saveRuralField,\n saveRuralFieldAsAdmin,\n verifyRuralFields,\n verifyRuralFieldsAsAdmin,\n clearDetailsFieldsAsAdmin,\n clearDetailsFields\n} from \"../../actions/profile\";\nimport StatesFormRegions from \"./StatesFormRegions\";\nimport { ADMIN_USER } from \"../../constants/systemUsers\";\nimport {\n LENDER_PROFILE_INCOMPLETE_MANATORY_FIELD_WARNING,\n LENDER_PROFILE_MORE_THAN_MONTH_LAST_VERIFIED_WARNING,\n STATE_REQUIRED_WARNING\n} from \"../../constants/warnings\";\nimport moment from \"moment\";\nimport { getUsersList } from \"../../actions/users\";\nimport ZeroAvailableWarning from \"./ZeroAvailableWarning\";\nimport authService from \"../../actions/AuthorizeService\";\n\nconst RuralImpl = ({\n activeKey,\n activeSubKey,\n dispatch,\n userId,\n userType,\n isSystemUser,\n lender,\n userHasPermissionToUpdate,\n broker,\n profileType,\n getBrokerProfile,\n getLenderProfile,\n toggleSubscriptions\n}) => {\n const [rural, setRural] = useState({\n available: null,\n bookSize: null,\n bransgrovesComments: null,\n estabFeeMin: null,\n estabFeeMax: null,\n isVerified: false,\n lastVerifiedByFirstName: null,\n lastVerifiedByLastName: null,\n lastVerifiedDate: null,\n lenderId: \"\",\n lenderCategoryId: \"\",\n lineFeeMin: null,\n lvrMin: null,\n lineFeeMax: null,\n lvrMax: null,\n pointOfDifference: null,\n preferredParcelSizeMax: null,\n preferredParcelSizeMin: null,\n rateMax: null,\n rateMin: null,\n higherRateMax: null,\n higherRateMin: null,\n agricultureTypeKeys: [],\n stateRegionDetails: [],\n isSyndicateLender: false,\n advertiseToOtherSyndicateLenders: false\n });\n\n const [errorsList, setErrorsList] = useState([]);\n const [\n zeroAvailableWarningVisible,\n setZeroAvailableWarningVisible\n ] = useState(false);\n const [pauseLoading, setPauseLoading] = useState(false);\n const [isPrivate, setIsPrivate] = useState(false);\n const [selectedCity, setSelectedCity] = useState(\"Sydney+\");\n const [agricultureList, setAgricultureList] = useState([]);\n const [statesList, setStatesList] = useState([]);\n const [selectedStates, setSelectedStates] = useState([]);\n const [regionsList, setRegionsList] = useState([]);\n const [selectedRegion, setSelectedRegion] = useState(\"\");\n const [lookupsLoading, setLookupsLoading] = useState(false);\n const [isInitialized, setIsInitialized] = useState(false);\n const [isVerifying, setIsVerifying] = useState(false);\n const [isSaving, setIsSaving] = useState(false);\n const [isNotAvailableToBrokers, setIsNotAvailableToBrokers] = useState(false);\n const [\n hasIncompleteMandatoryFields,\n setHasIncompleteMandatoryFields\n ] = useState(false);\n const [isVerifiedButNotSwitchedOn, setIsVerifiedButNotSwitchedOn] = useState(\n false\n );\n const [hasPendingSave, setHasPendingSave] = useState(false);\n const [showClearDetailsModal, setShowClearDetailsModal] = useState(false);\n const [isClearingDetails, setClearingDetails] = useState(false);\n\n useEffect(() => {\n checkIfCategoriesEnabled({\n data: profileType === \"lender\" ? lender : broker,\n ruralData: rural\n });\n }, [profileType === \"lender\" ? lender : broker]);\n\n const checkIfCategoriesEnabled = ({ ruralData }) => {\n if (lender && lender.categoriesOffered && ruralData) {\n let isSwitchedOn = lender.categoriesOffered.rural;\n setIsVerifiedButNotSwitchedOn(\n ruralData.isVerified === true && !isSwitchedOn ? true : false\n );\n }\n };\n\n useEffect(() => {\n if (activeSubKey === \"9\") {\n onInitialized();\n }\n }, [activeSubKey, lender]);\n\n useEffect(() => {\n setLookupsLoading(regionsList === typeof undefined);\n }, [regionsList]);\n\n async function onInitialized() {\n setIsInitialized(false);\n await Promise.all([listAgricultureTypes(), getRuralDetails()]).then(\n resp => {\n setIsInitialized(true);\n }\n );\n }\n\n useEffect(() => {\n if (isInitialized && rural.id !== null) {\n let cancelToken = Axios.CancelToken.source();\n setHasPendingSave(true);\n saveChanges(cancelToken, rural, userId);\n }\n }, [rural]);\n\n useEffect(() => {\n const { min, max } = recalculateTotalCostOfFunds(\n defaultIfUndefinedOrNull(rural.rateMin, 0),\n defaultIfUndefinedOrNull(rural.rateMax, 0),\n defaultIfUndefinedOrNull(rural.estabFeeMin, 0),\n defaultIfUndefinedOrNull(rural.estabFeeMax, 0)\n );\n setRural(\n produce(rural, x => {\n x.totalCostOfFundsLow = min;\n x.totalCostOfFundsHigh = max;\n })\n );\n }, [rural.rateMax, rural.rateMin, rural.estabFeeMin, rural.estabFeeMax]);\n\n function recalculateTotalCostOfFunds(\n rateMin,\n rateMax,\n estabFeeMin,\n estabFeeMax\n ) {\n return {\n min: rateMin + estabFeeMin,\n max: rateMax + estabFeeMax\n };\n }\n\n function onStateChanged(stateCheckBoxDetails) {\n if (\n !stateCheckBoxDetails.isChecked &&\n mustBeArray(selectedStates).length === 1\n ) {\n return message.warning(STATE_REQUIRED_WARNING);\n }\n if (\n stateCheckBoxDetails.isChecked === true &&\n !selectedStates.map(x => x.id).includes(stateCheckBoxDetails.value)\n ) {\n let stateToAppend = statesList.find(\n x => x.id === stateCheckBoxDetails.value\n );\n selectedStates.push(stateToAppend);\n setRegionsList(\n selectedStates.map(s => ({ id: s.id, regions: s.regions }))\n );\n\n setRural(\n produce(rural, x => {\n x.stateRegionDetails.push({\n stateKey: stateCheckBoxDetails.value,\n regionKeys: []\n });\n })\n );\n } else if (\n stateCheckBoxDetails.isChecked === false &&\n selectedStates.map(x => x.id).includes(stateCheckBoxDetails.value)\n ) {\n let filteredStates = selectedStates.filter(\n x => x.id !== stateCheckBoxDetails.value\n );\n setSelectedStates(filteredStates);\n setRegionsList(\n filteredStates.map(s => ({ id: s.id, regions: s.regions }))\n );\n setRural(\n produce(rural, x => {\n x.stateRegionDetails = x.stateRegionDetails.filter(\n x => x.stateKey !== stateCheckBoxDetails.value\n );\n })\n );\n }\n }\n\n const checkProductState = async () => {\n const resp = await dispatch(getLendersRuralProfile({ id: userId }));\n\n let responseData = resp.data;\n\n let today = new Date();\n\n if (responseData.modifiedDate) {\n let modifiedDate = new Date(responseData.modifiedDate);\n setIsNotAvailableToBrokers(\n !responseData.isVerified &&\n Math.round((today - modifiedDate) / millisecondsInADay)\n );\n }\n\n if (responseData.lastVerifiedDate) {\n setIsNotAvailableToBrokers(\n moment().diff(responseData.lastVerifiedDate, \"days\") > 30\n );\n }\n\n checkIfCategoriesEnabled({ ruralData: responseData });\n\n setHasIncompleteMandatoryFields(hasMissingMandatoryFields(responseData));\n };\n\n const getRuralDetails = async () => {\n const resp = await dispatch(getLendersRuralProfile({ id: userId }));\n const initialStates = await listStates();\n const hasNoStateRegionDetail =\n mustBeArray(resp && resp.data && resp.data.stateRegionDetails).map(\n x => x.stateKey\n ).length < 1;\n if (hasNoStateRegionDetail) {\n mustBeArray(resp && resp.data && resp.data.stateRegionDetails).push({\n stateKey: \"NSW\",\n regionKeys: []\n });\n }\n var stateKeyInitial = mustBeArray(\n resp && resp.data && resp.data.stateRegionDetails\n ).map(x => x.stateKey);\n setRural(\n produce(rural, x => {\n const selectedStatesFromKeys = initialStates.filter(x =>\n stateKeyInitial.includes(x.id)\n );\n const selectedRegions = selectedStatesFromKeys.map(s => ({\n id: s.id,\n regions: s.regions\n }));\n setSelectedStates(selectedStatesFromKeys);\n setRegionsList(\n produce(regionsList, x => {\n x = selectedRegions;\n return x;\n })\n );\n\n let responseData = resp.data;\n\n let today = new Date();\n\n if (responseData.modifiedDate) {\n let modifiedDate = new Date(responseData.modifiedDate);\n setIsNotAvailableToBrokers(\n !responseData.isVerified &&\n Math.round((today - modifiedDate) / millisecondsInADay)\n );\n }\n\n if (responseData.lastVerifiedDate) {\n setIsNotAvailableToBrokers(\n moment().diff(responseData.lastVerifiedDate, \"days\") > 30\n );\n }\n\n checkIfCategoriesEnabled({ ruralData: responseData });\n setHasIncompleteMandatoryFields(\n hasMissingMandatoryFields(responseData)\n );\n\n return resp.data;\n })\n );\n };\n\n const getUserProfile = async () => {\n let userDetails = await authService.getUser();\n let usersLenderId = userDetails[\"app.user.lenderid\"];\n let usersBrokerId = userDetails[\"app.user.brokerid\"];\n const actionName =\n profileType === \"lender\" ? getLenderProfile : getBrokerProfile;\n actionName({\n id: userId,\n userType,\n notClearProfileImage: true,\n doNotResetCurrentTab: true,\n isUserViewingSelfProfile:\n (profileType === \"lender\" ? usersLenderId : usersBrokerId) === userId\n });\n };\n\n const hasMissingMandatoryFields = data => {\n return (\n !(\n data.agricultureTypeKeys.length > 0 &&\n data.available &&\n data.preferredParcelSizeMin &&\n data.preferredParcelSizeMax &&\n data.rateMin &&\n data.rateMax &&\n (data.estabFeeMin || data.estabFeeMin === 0) &&\n (data.estabFeeMax || data.estabFeeMax === 0) &&\n _.isEmpty(\n mustBeArray(data.stateRegionDetails).filter(\n x =>\n x.stateKey !== \"NT\" &&\n x.stateKey !== \"SA\" &&\n x.regionKeys.length < 1\n )\n ) &&\n data.pointOfDifference &&\n data.lvrMin &&\n data.lvrMax &&\n data.pointOfDifference.length >= 10\n ) === true\n );\n };\n\n const listStates = async () => {\n const resp = await dispatch(\n lendersLookUpHandler({ action: LENDERS_STATES_REGIONS_TYPE, userType })\n );\n if (resp.status) {\n setStatesList(\n produce(statesList, x => {\n return resp.data;\n })\n );\n\n return resp.data;\n } else {\n errorDisplayCustom(resp.data.errors);\n }\n };\n\n const listAgricultureTypes = async () => {\n const resp = await dispatch(\n lendersLookUpHandler({\n action: LENDERS_LAND_BANK_AGRICULTURE_TYPE,\n userType\n })\n );\n if (resp.status) {\n setAgricultureList(\n produce(agricultureList, x => {\n return resp.data;\n })\n );\n } else {\n errorDisplay(resp.data.errors);\n }\n };\n\n const saveChangesImpl = async (cancelToken, payLoad, id) => {\n if (\n payLoad &&\n Number(payLoad.available) === 0 &&\n (payLoad.isVerified || !hasMissingMandatoryFields(payLoad))\n ) {\n return setZeroAvailableWarningVisible(true);\n }\n setIsSaving(true);\n if (userType === ADMIN_USER) {\n await dispatch(\n saveRuralFieldAsAdmin({\n cancelToken: cancelToken,\n payLoad: payLoad,\n id: id\n })\n ).then(resp => {\n if (!resp.status) {\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, []);\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n }\n checkProductState();\n setHasPendingSave(false);\n setIsSaving(false);\n });\n } else {\n await dispatch(\n saveRuralField({\n cancelToken: cancelToken,\n payLoad: payLoad,\n id: id\n })\n ).then(resp => {\n if (!resp.status) {\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, []);\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n }\n checkProductState();\n setHasPendingSave(false);\n setIsSaving(false);\n });\n }\n };\n\n const saveChanges = useCallback(\n AwesomeDebouncePromise(saveChangesImpl, 2000),\n []\n );\n\n const handleSavingErrors = ({ resp, data }) => {\n if (data && data.isVerified) {\n if (!resp.status) {\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, []);\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n }\n } else {\n setErrorsList(mustBeArray(resp && resp.data && resp.data.errors));\n }\n };\n\n const verify = async () => {\n if (rural && Number(rural.available) === 0) {\n return setZeroAvailableWarningVisible(true);\n }\n setIsVerifying(true);\n if (userType === ADMIN_USER) {\n await dispatch(\n verifyRuralFieldsAsAdmin({\n id: userId\n })\n ).then(resp => {\n setIsVerifying(false);\n handleSavingErrors({ resp, data: rural });\n onInitialized();\n delay(500).then(() => {\n getUserProfile();\n });\n });\n } else {\n await dispatch(\n verifyRuralFields({\n id: userId\n })\n ).then(resp => {\n setIsVerifying(false);\n handleSavingErrors({ resp, data: rural });\n onInitialized();\n delay(500).then(() => {\n getUserProfile();\n });\n });\n }\n };\n\n const handleCancel = () => {\n setPauseLoading(false);\n setZeroAvailableWarningVisible(false);\n };\n const handleOk = () => {\n setPauseLoading(true);\n toggleSubscriptions({\n profileType,\n productType: \"rural\",\n id: userId\n }).then(resp => {\n setPauseLoading(false);\n setZeroAvailableWarningVisible(false);\n if (resp.status) {\n message.success(\n profileType === \"lender\"\n ? \"Categories offered updated successfully.\"\n : \"Categories subscribed to updated successfully.\"\n );\n getUserProfile();\n }\n });\n };\n\n const handleShowClearDetailsModal = () => {\n setShowClearDetailsModal(true);\n }\n const handleClearDetailsModalClose = () => {\n setShowClearDetailsModal(false);\n }\n const handleClearDetailsChange = async options => {\n if(!isVerifying && !isSaving){\n let cancelToken = Axios.CancelToken.source();\n\n setClearingDetails(true);\n let categoryType = {\n categoryType: \"Rural\"\n };\n if (userType === ADMIN_USER) {\n await dispatch(\n clearDetailsFieldsAsAdmin({\n id: userId,\n categoryType: categoryType,\n cancelToken: cancelToken\n })\n ).then(resp => {\n if(!resp.status){\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, [])\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n onInitialized();\n delay(500).then(() => {\n getUserProfile();\n });\n }\n\n setClearingDetails(false);\n setShowClearDetailsModal(false);\n });\n }\n else {\n await dispatch(\n clearDetailsFields({\n id: userId,\n categoryType: categoryType,\n cancelToken: cancelToken\n })\n ).then(resp => {\n if(!resp.status){\n let errors = mustBeArray(resp && resp.data && resp.data.errors);\n errors = errors.reduce((a, b) => {\n return a.concat(b.message);\n }, [])\n setErrorsList(errors);\n } else {\n setErrorsList([]);\n onInitialized();\n delay(500).then(() => {\n getUserProfile();\n });\n }\n\n setClearingDetails(false);\n setShowClearDetailsModal(false);\n });\n }\n }\n }\n\n return (\n \n \n \n \n \n \n \n \n
\n
\n \n \n \n \n \n \n
\n
\n \n \n \n \n \n \n
\n
\n {!_.isEmpty(errorsList) && (\n \n \n \n
\n The following errors must be resolved before this criteria\n can be verified:\n
\n
    \n {errorsList.map((errors, i) => {\n return
  • {errors}
  • ;\n })}\n
\n
\n }\n type=\"warning\"\n />\n \n \n )}\n \n Verifying...\n \n \n Saving...\n \n \n Clearing...\n \n \n \n
\n
\n
\n Available\n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n onChange={e =>\n setRural(\n produce(rural, x => {\n x.available = e;\n })\n )\n }\n className=\"w-150 m-l-6 m-b-6 hideNumberPointers\"\n value={rural.available}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n
\n
\n
\n
\n
\n
\n
\n Preferred parcel size\n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n onChange={e =>\n setRural(\n produce(rural, x => {\n x.preferredParcelSizeMin = e;\n })\n )\n }\n className=\"w-150 m-l-6 m-b-6 m-r-6 hideNumberPointers\"\n value={rural.preferredParcelSizeMin}\n disabled={!userHasPermissionToUpdate}\n />\n \n *{\" \"}\n \n to\n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n onChange={e =>\n setRural(\n produce(rural, x => {\n x.preferredParcelSizeMax = e;\n })\n )\n }\n className=\"w-170 m-l-6 m-b-6 hideNumberPointers\"\n value={rural.preferredParcelSizeMax}\n disabled={!userHasPermissionToUpdate}\n />\n \n *{\" \"}\n \n
\n
\n {/*
*/}\n \n \n \n
Agriculture Type
\n \n \n \n \n \n {agricultureList.map((data, i) => {\n return (\n \n 0 &&\n rural.agricultureTypeKeys.includes(data.id)\n }\n disabled={!userHasPermissionToUpdate}\n value={data.id}\n key={i}\n onChange={e =>\n setRural(\n produce(rural, x => {\n let checkBoxValue = e.target.value;\n let checked = e.target.checked;\n if (\n checked === true &&\n !x.agricultureTypeKeys.includes(\n checkBoxValue\n )\n ) {\n x.agricultureTypeKeys.push(checkBoxValue);\n } else if (\n checked === false &&\n x.agricultureTypeKeys.includes(\n checkBoxValue\n )\n ) {\n x.agricultureTypeKeys = x.agricultureTypeKeys.filter(\n s => s !== checkBoxValue\n );\n }\n })\n )\n }\n >\n {data.name}\n \n \n );\n })}\n \n \n
\n \n setRural(\n produce(rural, x => {\n x[label] = value;\n })\n )\n }\n handleChangeState={key => onStateChanged(key)}\n disabled={!userHasPermissionToUpdate}\n handleChangeRegion={({ isChecked, value, stateId }) =>\n setRural(\n produce(rural, x => {\n x.stateRegionDetails.forEach(s => {\n if (s.stateKey === stateId) {\n let regionKeys = s.regionKeys;\n if (isChecked === true) {\n if (!regionKeys.includes(value)) {\n s.regionKeys.push(value);\n }\n } else if (isChecked === false) {\n if (regionKeys.includes(value)) {\n s.regionKeys = s.regionKeys.filter(\n rk => rk !== value\n );\n }\n }\n }\n });\n return x;\n })\n )\n }\n />\n \n \n *{\" \"}\n \n \n
\n
\n Lower Rate  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setRural(\n produce(rural, x => {\n x.rateMin = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={rural.rateMin}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setRural(\n produce(rural, x => {\n x.rateMax = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={rural.rateMax}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n\n
\n
\n Higher Rate  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setRural(\n produce(rural, x => {\n x.higherRateMin = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={rural.higherRateMin}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setRural(\n produce(rural, x => {\n x.higherRateMax = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={rural.higherRateMax}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n\n
\n
\n LVR (% of end value)  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setRural(\n produce(rural, x => {\n x.lvrMin = e;\n })\n )\n }\n className=\"w-80 m-l-6 m-b-6 hideNumberPointers\"\n value={rural.lvrMin}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setRural(\n produce(rural, x => {\n x.lvrMax = e;\n })\n )\n }\n className=\"w-80 m-l-6 m-b-6 hideNumberPointers\"\n value={rural.lvrMax}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n
\n
\n
\n Estab Fee  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setRural(\n produce(rural, x => {\n x.estabFeeMin = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={rural.estabFeeMin}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n onChange={e =>\n setRural(\n produce(rural, x => {\n x.estabFeeMax = e;\n })\n )\n }\n className=\"w-80 m-l-6 hideNumberPointers\"\n value={rural.estabFeeMax}\n disabled={!userHasPermissionToUpdate}\n />\n
\n \n *{\" \"}\n \n
\n
\n
\n Total Cost of Funds  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"w-80 m-l-4 m-b-6 hideNumberPointers\"\n value={rural.totalCostOfFundsLow}\n disabled={true}\n />\n
\n
\n to  \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"w-80 m-l-4 m-b-6 hideNumberPointers\"\n value={rural.totalCostOfFundsHigh}\n disabled={true}\n />\n
\n
\n
\n \n \n \n \n \n Point of difference\n \n \n setRural(\n produce(rural, x => {\n x.pointOfDifference = e.currentTarget.value;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}\n />\n \n \n *{\" \"}\n \n \n \n Syndicate loans\n Are you prepared to loan in a Syndicate using the Bransgroves Lawyers double blind syndicate\n deed and Bransgroves Lawyers trustee?\n \n \n setRural(\n produce(rural, x=> {\n x.isSyndicateLender = true;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}>\n Yes\n \n \n setRural(\n produce(rural, x=> {\n x.isSyndicateLender = false;\n x.advertiseToOtherSyndicateLenders = false;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}>\n No\n \n \n \n \n \n \n Do you want to advertise this category to other Syndicate Lenders only?\n \n \n setRural(\n produce(rural, x=> {\n x.advertiseToOtherSyndicateLenders = true;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}>\n Yes\n \n \n setRural(\n produce(rural, x=> {\n x.advertiseToOtherSyndicateLenders = false;\n })\n )\n }\n disabled={!userHasPermissionToUpdate}>\n No\n \n \n \n \n \n Last Verified\n \n \n {userHasPermissionToUpdate && (\n \n \n Verify\n \n \n You must verify every calendar month or this matrix will be\n paused\n \n \n )}\n \n \n \n \n \n handleClearDetailsChange(options)\n }\n disabled={isClearingDetails}\n >\n Okay\n ,\n \n ]}\n >\n
\n Are you sure you wish to proceed on clearing the form?\n
\n \n \n );\n};\n\nexport default connect()(RuralImpl);\n","export const colors = {\n primary: \"#0b78ff\",\n danger: \"#e6413d\",\n warning: \"#f3c200\",\n success: \"#47C144\",\n defaultBackground: \"#f6faff\",\n borderOrange: \"#FF7700\",\n borderBlue: \"#0B78FF\",\n borderGreen: \"#53D100\",\n borderRed: \"#E85656\",\n neutral: \"#555\",\n white: \"#FFF\",\n lightGray: \"#ddd\",\n lighterGray: \"#f7f7f7\"\n};\n","import { Icon } from 'antd';\nimport React from 'react';\n\nconst CustomSorter = ({\n className,\n sortType\n}) => {\n return(\n \n \n \n \n )\n}\n\nexport default CustomSorter;\n","import React, { useEffect, useState } from \"react\";\nimport {\n Table,\n Switch,\n Select,\n Badge,\n Input,\n message,\n Modal,\n Button\n} from \"antd\";\nimport _ from \"lodash\";\nimport { tableColumnGenerator } from \"../../libs/table\";\nimport { errorDisplay, mustBeArray, delay } from \"../../libs/utilities\";\nimport axios from \"axios\";\nimport { colors } from \"../../constants/colors\";\nimport {\n updateMatches,\n updateMatchesBroker,\n updateMatchesLender\n} from \"../../actions/profile\";\nimport { connect } from \"react-redux\";\nimport { Visible } from \"../Common/visiblityWrapper\";\nimport {\n ADMIN_USER,\n BROKER_USER,\n LENDER_USER\n} from \"../../constants/systemUsers\";\nimport history from \"../../routes/history\";\nimport CustomSorter from \"../Common/CustomSorter\";\nimport {\n INACTIVE_PROFILE_MATCHES_LIST_WARNING,\n MASTER_SWITCH_OFF_OMICRON_STATUS_CHANGE_ERROR\n} from \"../../constants/warnings\";\nimport authService from \"../../actions/AuthorizeService\";\n\nconst MatchesList = props => {\n const {\n match,\n activeKey,\n listLendersMatches,\n userId,\n listLendersMatchesLookup,\n profileType,\n userType,\n lender,\n broker,\n dispatch\n } = props;\n\n const signal = axios.CancelToken.source();\n const [viewInactiveProfileWarning, setViewInactiveProfileWarning] = useState(\n false\n );\n const [matchesList, setMatchesList] = useState([]);\n const [loading, setListLoading] = useState(true);\n const [statusList, setStatusList] = useState([]);\n const [sortInfo, setSortInfo] = useState({});\n const [sortByCompany, setSortByCompany] = useState(false);\n const [editedList, setEditedList] = useState([]);\n\n const getValidationIdAndParam = ({ record }) => {\n if (profileType === \"lender\") {\n return {\n id: record && record.brokerId,\n param: \"brokerId\"\n };\n } else {\n return {\n id: record && record.lenderId,\n param: \"lenderId\"\n };\n }\n };\n\n const isMasterSwitchOn = () => {\n if (profileType === \"lender\") {\n return lender && lender.isMasterSwitchOn ? true : false;\n }\n return broker && broker.isMasterSwitchOn ? true : false;\n };\n const isProfileActive = () => {\n if (profileType === \"lender\") {\n return lender && lender.isProfileActive ? true : false;\n }\n return broker && broker.isProfileActive ? true : false;\n };\n const handleEdit = async ({ record, field, value }) => {\n let validationId = getValidationIdAndParam({ record }).id;\n let validationParam = getValidationIdAndParam({ record }).param;\n\n if (field === \"omicronStatusKey\" && !isMasterSwitchOn()) {\n return message.error(MASTER_SWITCH_OFF_OMICRON_STATUS_CHANGE_ERROR);\n }\n\n let userDetails = await authService.getUser();\n let usersLenderId = userDetails[\"app.user.lenderid\"];\n let usersBrokerId = userDetails[\"app.user.brokerid\"];\n\n if (\n userType !== ADMIN_USER &&\n !isProfileActive() &&\n (profileType === \"lender\" ? usersLenderId : usersBrokerId) ===\n match.params.id\n ) {\n return setViewInactiveProfileWarning(true);\n }\n if (!editedList.includes(validationId)) {\n setEditedList([...editedList, validationId]);\n }\n let newUpdatedList = [...matchesList].map(data => {\n return data[validationParam] === validationId\n ? { ...data, [field]: value }\n : { ...data };\n });\n\n let updatedRecord = newUpdatedList.find(x => {\n return x.id === record.id;\n });\n setMatchesList(newUpdatedList);\n delay(200).then(() => {\n const noteField = document.getElementById(\n `note-${\n profileType === \"lender\"\n ? record && record.brokerId\n : record && record.lenderId\n }`\n );\n if (noteField) {\n noteField.focus();\n }\n });\n\n if (userType !== ADMIN_USER) {\n saveMatchesUpdate(updatedRecord);\n }\n };\n\n const updateRecord = ({ record, field, value }) => {\n let validationId = getValidationIdAndParam({ record }).id;\n let validationParam = getValidationIdAndParam({ record }).param;\n\n let newUpdatedList = matchesList.map(data => {\n return data[validationParam] === validationId\n ? { ...data, [field]: value }\n : { ...data };\n });\n setMatchesList(newUpdatedList);\n };\n\n const saveMatchesUpdate = record => {\n setListLoading(true);\n\n if (userType === LENDER_USER) {\n saveMatchesLender(record);\n } else if (userType === ADMIN_USER) {\n saveMatchesBransgroves(record);\n } else if (userType === BROKER_USER) {\n saveMatchesBroker(record);\n }\n };\n\n const saveMatchesBransgroves = async record => {\n const lenderId =\n profileType === \"lender\"\n ? Number(match && match.params && match.params.id)\n : record && record.lenderId;\n const brokerId =\n profileType === \"broker\"\n ? Number(match && match.params && match.params.id)\n : record && record.brokerId;\n\n let payLoad = {\n lenderId,\n brokerId,\n note: record && record.note\n };\n payLoad.omicronStatusKey = record && record.omicronStatusKey;\n payLoad.lenderStatusKey = record && record.lenderStatusKey;\n\n await dispatch(updateMatches({ payLoad, canelToken: signal.token })).then(\n resp => {\n setListLoading(false);\n let validationParam = getValidationIdAndParam({ record }).param;\n if (resp.status) {\n message.success(\"Matches updated successfully.\");\n let updatedEditedList = _.filter(\n editedList,\n o => o !== (record && record[validationParam])\n );\n setEditedList(updatedEditedList);\n listLenders();\n } else {\n errorDisplay(resp && resp.data && resp.data.errors);\n }\n }\n );\n };\n\n const saveMatchesLender = async record => {\n let payLoad = {\n matchId: record.id,\n lenderStatusKey: record && record.lenderStatusKey\n };\n\n await dispatch(\n updateMatchesLender({ payLoad, canelToken: signal.token })\n ).then(resp => {\n setListLoading(false);\n let validationParam = getValidationIdAndParam({ record }).param;\n if (resp.status) {\n message.success(\"Matches updated successfully.\");\n let updatedEditedList = _.filter(\n editedList,\n o => o !== (record && record[validationParam])\n );\n setEditedList(updatedEditedList);\n listLenders();\n } else {\n errorDisplay(resp && resp.data && resp.data.errors);\n }\n });\n };\n\n const saveMatchesBroker = async record => {\n let payLoad = {\n matchId: record.id,\n brokerStatusKey: record && record.brokerStatusKey\n };\n\n await dispatch(\n updateMatchesBroker({ payLoad, canelToken: signal.token })\n ).then(resp => {\n setListLoading(false);\n let validationParam = getValidationIdAndParam({ record }).param;\n if (resp.status) {\n message.success(\"Matches updated successfully.\");\n let updatedEditedList = _.filter(\n editedList,\n o => o !== (record && record[validationParam])\n );\n setEditedList(updatedEditedList);\n listLenders();\n } else {\n errorDisplay(resp && resp.data && resp.data.errors);\n }\n });\n };\n\n const getQueryParams = () => {\n let queryParams = {};\n if (sortInfo && sortInfo.field && sortInfo.order) {\n queryParams = {\n sort: sortInfo.order,\n orderBy: sortInfo.field\n };\n }\n return queryParams;\n };\n\n const getBadgeClassName = record => {\n if (\n record &&\n _.find(\n [\n record.brokerStatusKey,\n record.omicronStatusKey,\n record.lenderStatusKey\n ],\n o => o !== \"MATCHED\"\n )\n )\n return colors.danger;\n return colors.success;\n };\n\n useEffect(() => {\n if (lender?.isProfileActive || broker?.isProfileActive) {\n listLenders();\n listLendersMatchesLookUp();\n }\n }, [lender, broker]);\n\n useEffect(()=> {\n listLenders();\n listLendersMatchesLookUp();\n }, [userId]);\n\n useEffect(() => {\n if (!lender?.isProfileActive && !broker?.isProfileActive) {\n return;\n }\n\n if (Number(activeKey) === 1 || activeKey === \"matches\") {\n listLenders();\n listLendersMatchesLookUp();\n }\n const cleanUp = () => {\n signal.cancel(\"\");\n };\n return cleanUp;\n }, [\n activeKey,\n sortInfo,\n profileType === \"lender\"\n ? lender && lender.isMasterSwitchOn\n : broker && broker.isMasterSwitchOn,\n profileType === \"lender\"\n ? lender && lender.isProfileActive\n : broker && broker.isProfileActive\n ]);\n\n const listLenders = () => {\n listLendersMatches({\n id: userId,\n cancelToken: signal.token,\n queryParams: getQueryParams()\n }).then(resp => {\n setListLoading(false);\n if (resp.status) {\n setMatchesList(mustBeArray(resp.data));\n }\n });\n };\n\n const listLendersMatchesLookUp = () => {\n listLendersMatchesLookup({\n id: userId,\n userType,\n canelToken: signal.token\n }).then(resp => {\n if (resp.status) {\n setStatusList(mustBeArray(resp.data));\n }\n });\n };\n\n const handleTableChange = (pagination, filters, sorter) => {\n if (!sorter.field && sorter.order) {\n setSortInfo({\n field: sortByCompany ? \"company\" : \"brokerName\",\n order: sorter.order === \"ascend\" ? \"asc\" : \"desc\"\n });\n } else {\n setSortInfo({\n field: sorter.field,\n order: !sorter.order\n ? undefined\n : sorter.order === \"ascend\"\n ? \"asc\"\n : \"desc\"\n });\n }\n };\n\n const handleSortByCompany = e => {\n if (sortInfo && sortInfo.field === \"company\") {\n if (sortInfo.order === \"asc\")\n setSortInfo({ field: \"company\", order: \"desc\" });\n else if (sortInfo.order === \"desc\") setSortInfo({});\n else setSortInfo({ field: \"company\", order: \"asc\" });\n } else {\n setSortInfo({ field: \"company\", order: \"asc\" });\n }\n };\n\n const handleSortByName = e => {\n if ([\"brokerName\", \"lenderName\"].includes(sortInfo && sortInfo.field)) {\n if (sortInfo.order === \"asc\")\n setSortInfo({\n field: profileType === \"lender\" ? \"brokerName\" : \"lenderName\",\n order: \"desc\"\n });\n else if (sortInfo.order === \"desc\") setSortInfo({});\n else\n setSortInfo({\n field: profileType === \"lender\" ? \"brokerName\" : \"lenderName\",\n order: \"asc\"\n });\n } else {\n setSortInfo({\n field: profileType === \"lender\" ? \"brokerName\" : \"lenderName\",\n order: \"asc\"\n });\n }\n };\n\n const getMatchesNameSortOrder = () => {\n if (\n sortInfo &&\n (sortInfo.field === \"brokerName\" || sortInfo.field === \"company\") &&\n sortInfo.order\n ) {\n return sortInfo.order === \"asc\" ? \"ascend\" : \"descend\";\n }\n return false;\n };\n const handleCloseInactiveProfileWarning = () => {\n setViewInactiveProfileWarning(false);\n };\n let colTemplate = [\n {\n title: (\n
\n \n Sort by name\n \n \n \n Sort by company\n \n \n
\n ),\n dataIndex: \"\",\n sorter: false,\n sortOrder: getMatchesNameSortOrder(),\n render: record => {\n return (\n
\n \n \n history.push(`/users/${record && record.brokerId}/broker`)\n }\n >\n {record.brokerName}\n {`${record.company ? `, ${record.company}` : \"\"}`}\n \n \n \n \n history.push(`/users/${record && record.lenderId}/lender`)\n }\n >\n {record.lenderName}\n {`${record.company ? `, ${record.company}` : \"\"}`}\n \n \n \n
\n );\n }\n },\n {\n title: \"Broker\",\n dataIndex: \"brokerStatusKey\",\n sorter: true,\n sortOrder:\n sortInfo && sortInfo.field === \"brokerStatusKey\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return userType === BROKER_USER ? (\n \n handleEdit({ record, field: \"brokerStatusKey\", value: e })\n }\n className=\"w-percent-100 table-dropdown\"\n >\n {mustBeArray(statusList).map(status => {\n return (\n \n {status.id}\n \n );\n })}\n \n ) : (\n data\n );\n }\n },\n {\n title: \"Lender\",\n dataIndex: \"lenderStatusKey\",\n sorter: true,\n sortOrder:\n sortInfo && sortInfo.field === \"lenderStatusKey\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return userType === LENDER_USER ? (\n \n handleEdit({ record, field: \"lenderStatusKey\", value: e })\n }\n className=\"w-percent-100 table-dropdown\"\n >\n {mustBeArray(statusList).map(status => {\n return (\n \n {status.id}\n \n );\n })}\n \n ) : (\n data\n );\n }\n },\n {\n title: \"Omicron\",\n dataIndex: \"omicronStatusKey\",\n sorter: true,\n sortOrder:\n sortInfo && sortInfo.field === \"omicronStatusKey\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return userType === ADMIN_USER ? (\n \n handleEdit({ record, field: \"omicronStatusKey\", value: e })\n }\n className=\"w-percent-100 table-dropdown\"\n >\n {mustBeArray(statusList).map(status => {\n return (\n \n {status.id}\n \n );\n })}\n \n ) : (\n data\n );\n }\n }\n ];\n const editedColumnsForAdmin = [\n {\n title: \"Notes\",\n dataIndex: \"note\",\n sorter: true,\n sortOrder:\n sortInfo && sortInfo.field === \"note\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n width: \"38%\",\n render: (data, record) => {\n const recordIndex =\n profileType === \"lender\"\n ? record && record.brokerId\n : record && record.lenderId;\n return userType === ADMIN_USER &&\n editedList.includes(getValidationIdAndParam({ record }).id) ? (\n saveMatchesUpdate(record)}\n onChange={e =>\n updateRecord({\n record,\n field: \"note\",\n value: e.currentTarget.value\n })\n }\n />\n ) : (\n {data}\n );\n }\n },\n {\n title: \"Edited by\",\n dataIndex: \"editedBy\",\n sorter: true,\n sortOrder:\n sortInfo && sortInfo.field === \"editedBy\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false\n },\n {\n title: \"Date\",\n dataIndex: \"editedDate\",\n sorter: true,\n sortOrder:\n sortInfo && sortInfo.field === \"editedDate\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n dataType: \"date\"\n }\n ];\n const editedColumnsForOther = [\n {\n title: \"Last file note\",\n dataIndex: \"lastFileNote\",\n sorter: true,\n sortOrder:\n sortInfo && sortInfo.field === \"lastFileNote\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n width: \"38%\",\n render: (data, record) => {\n const recordIndex =\n profileType === \"lender\"\n ? record && record.brokerId\n : record && record.lenderId;\n return userType === ADMIN_USER &&\n editedList.includes(getValidationIdAndParam({ record }).id) ? (\n saveMatchesUpdate(record)}\n onChange={e =>\n updateRecord({\n record,\n field: \"lastFileNote\",\n value: e.currentTarget.value\n })\n }\n />\n ) : (\n {data}\n );\n }\n },\n {\n title: \"Date\",\n dataIndex: \"lastFileNoteDate\",\n sorter: true,\n sortOrder:\n sortInfo && sortInfo.field === \"lastFileNoteDate\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n dataType: \"date\"\n }\n ];\n if (userType === ADMIN_USER) {\n colTemplate = _.concat(colTemplate, editedColumnsForAdmin);\n } else {\n colTemplate = _.concat(colTemplate, editedColumnsForOther);\n }\n const tableCoumn = tableColumnGenerator(colTemplate);\n return (\n \n index}\n onChange={handleTableChange}\n bordered\n />\n Close\n ]}\n >\n {INACTIVE_PROFILE_MATCHES_LIST_WARNING}\n \n \n );\n};\n\nconst mapStateToProps = state => {\n return {\n member: state.member || {},\n profile: (state.profile && state.profile.details) || {},\n user: state.authorization && state.authorization.user,\n lender: state.profile.lender,\n broker: state.profile.broker,\n firstRanking: state.profile.firstRanking\n };\n};\n\nexport default connect(mapStateToProps)(MatchesList);\n","import { Col, Input, Row } from \"antd\";\nimport produce from \"immer\";\nimport React, { useEffect, useState, useCallback } from \"react\";\nimport { connect } from \"react-redux\";\nimport {\n getPersonalDetails,\n getProfessionalDetails,\n saveProfessionalDetailsField,\n savePersonalDetailsField\n} from \"../../actions/profile\";\nimport Axios from \"axios\";\nimport { asDefaultDisplayFormatDate, errorDisplay } from \"../../libs/utilities\";\nimport AwesomeDebouncePromise from \"awesome-debounce-promise\";\nimport { Visible } from \"../Common/visiblityWrapper\";\nimport { isSystemUserPolicy } from \"../../Common/Authorization/policies/isSystemUserPolicy\";\nimport { ADMIN_USER } from \"../../constants/systemUsers\";\n\nconst DetailsImpl = ({ activeKey, dispatch, userId, user, profileType }) => {\n const [professionalDetails, setProfessionalDetails] = useState({\n detail: null,\n lastModifiedDate: null,\n lastModifiedByFirstName: null,\n lastModifiedByLastName: null\n });\n\n const [personalDetails, setPersonalDetails] = useState({\n detail: null,\n lastModifiedDate: null,\n lastModifiedByFirstName: null,\n lastModifiedByLastName: null\n });\n\n const [isInitialized, setIsInitialized] = useState(false);\n const [isSaving, setIsSaving] = useState(false);\n\n useEffect(() => {\n if (isInitialized) {\n let cancelToken = Axios.CancelToken.source();\n savePersonalDetailsChanges(cancelToken, personalDetails, userId);\n }\n }, [personalDetails && personalDetails.detail]);\n\n useEffect(() => {\n if (isInitialized) {\n let cancelToken = Axios.CancelToken.source();\n saveProfessionalDetailsChanges(cancelToken, professionalDetails, userId);\n }\n }, [professionalDetails && professionalDetails.detail]);\n\n useEffect(() => {\n if (activeKey === \"3\" || activeKey === \"details\") {\n onInitialized();\n }\n }, [activeKey]);\n\n async function onInitialized() {\n setIsInitialized(false);\n await Promise.all([loadPersonalDetails(), loadProfessionalDetails()]).then(\n resp => {\n setIsInitialized(true);\n }\n );\n }\n\n const loadPersonalDetails = async () => {\n const userType = (await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n ))\n ? ADMIN_USER\n : \"\";\n await dispatch(getPersonalDetails({ id: userId, userType: userType, profileType })).then(\n resp => {\n if (resp.status) {\n setPersonalDetails(\n produce(personalDetails, x => {\n return resp.data;\n })\n );\n }\n }\n );\n };\n\n const loadProfessionalDetails = async () => {\n const userType = (await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n ))\n ? ADMIN_USER\n : \"\";\n await dispatch(\n getProfessionalDetails({ id: userId, userType: userType, profileType })\n ).then(resp => {\n if (resp.status) {\n setProfessionalDetails(\n produce(professionalDetails, x => {\n return resp.data;\n })\n );\n }\n });\n };\n\n const savePersonalDetailsChangesImpl = async (cancelToken, payLoad, id) => {\n setIsSaving(true);\n const userType = (await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n ))\n ? ADMIN_USER\n : \"\";\n const resp = await dispatch(\n savePersonalDetailsField({\n cancelToken: cancelToken,\n payLoad: payLoad,\n id: id,\n userType: userType,\n profileType\n })\n ).then(resp => {\n if (!resp.status) {\n errorDisplay(resp.data.errors);\n } else {\n loadPersonalDetails();\n }\n setIsSaving(false);\n });\n };\n\n const saveProfessionDetailsChangesImpl = async (cancelToken, payLoad, id) => {\n setIsSaving(true);\n const userType = (await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n ))\n ? ADMIN_USER\n : \"\";\n await dispatch(\n saveProfessionalDetailsField({\n cancelToken: cancelToken,\n payLoad: payLoad,\n id: id,\n userType: userType,\n profileType\n })\n ).then(resp => {\n if (!resp.status) {\n errorDisplay(resp.data.errors);\n } else {\n loadProfessionalDetails();\n }\n setIsSaving(false);\n });\n };\n\n const savePersonalDetailsChanges = useCallback(\n AwesomeDebouncePromise(savePersonalDetailsChangesImpl, 2000),\n []\n );\n const saveProfessionalDetailsChanges = useCallback(\n AwesomeDebouncePromise(saveProfessionDetailsChangesImpl, 2000),\n []\n );\n\n const handleChangeProfessionalDetails = value => {\n setProfessionalDetails(\n produce(professionalDetails, x => {\n x.detail = value;\n })\n );\n };\n\n const handleChangePersonalDetails = value => {\n setPersonalDetails(\n produce(personalDetails, x => {\n x.detail = value;\n })\n );\n };\n\n return (\n \n \n Saving...\n \n \n \n Professional\n \n handleChangeProfessionalDetails(e.currentTarget.value)\n }\n />\n
\n
\n Last edited by\n \n
\n
\n Last edited date\n \n
\n
\n \n \n Personal\n handleChangePersonalDetails(e.currentTarget.value)}\n />\n
\n
\n Last edited by\n \n
\n
\n Last edited date\n \n
\n
\n \n
\n
\n );\n};\nconst mapStateToProps = state => {\n return {\n user: state.authorization && state.authorization.user\n };\n};\n\nexport default connect(mapStateToProps)(DetailsImpl);\n","import React from \"react\";\n\nconst EditIcon = ({className, onClick, width = 14, height = 12}) => {\n return (\n \n \n \n );\n}\n\nexport default EditIcon;\n","import React from \"react\";\n\nconst DeleteIcon = ({className,onClick, width = 14, height = 12}) => {\n return (\n \n \n \n \n \n \n );\n}\n\nexport default DeleteIcon;\n","import React from 'react';\nconst AddIcon = props => {\n return (\n \n \n \n \n );\n}\nexport default AddIcon;","import React, { useEffect, useState, Fragment } from \"react\";\nimport {\n Table,\n Input,\n message,\n Popconfirm,\n Button,\n Spin,\n Select,\n Pagination\n} from \"antd\";\nimport _ from \"lodash\";\nimport { tableColumnGenerator } from \"../../libs/table\";\nimport {\n asDefaultDisplayFormatDate,\n guid,\n mustBeArray,\n errorDisplay\n} from \"../../libs/utilities\";\nimport axios from \"axios\";\nimport {\n getLenderFileNotes,\n updateLenderFileNotes,\n deleteLenderFileNotes,\n createLenderFileNotes,\n getBrokerFileNotes,\n updateBrokerFileNotes,\n deleteBrokerFileNotes,\n createBrokerFileNotes,\n getLawFirmFileNotes,\n updateLawFirmFileNotes,\n createLawFirmFileNotes,\n deleteLawFirmFileNotes\n} from \"../../actions/profile\";\nimport { connect } from \"react-redux\";\nimport { ADMIN_USER, LAW_FIRM_USER } from \"../../constants/systemUsers\";\nimport EditIcon from \"../../assets/icons/EditIcon\";\nimport DeleteIcon from \"../../assets/icons/DeleteIcon\";\nimport AddIcon from \"../../assets/icons/AddIcon\";\nimport moment from \"moment\";\nimport { notesDropdownLookUpHandler } from \"../../actions/lookup\";\nimport { Visible } from \"../../components/Common/visiblityWrapper\";\n\nconst FilesList = props => {\n const {\n match,\n activeKey,\n userId,\n getLenderFileNotes,\n updateLenderFileNotes,\n deleteLenderFileNotes,\n createLenderFileNotes,\n getBrokerFileNotes,\n updateBrokerFileNotes,\n deleteBrokerFileNotes,\n createBrokerFileNotes,\n notesDropdownLookUpHandler,\n profileType,\n userType,\n getLawFirmFileNotes,\n updateLawFirmFileNotes,\n createLawFirmFileNotes,\n deleteLawFirmFileNotes\n } = props;\n const signal = axios.CancelToken.source();\n const [filesList, setFilesList] = useState([]);\n const [loading, setListLoading] = useState(true);\n const [editedList, setEditedList] = useState([]);\n const [sortInfo, setSortInfo] = useState({});\n const [saveLoading, setSaveLoading] = useState(false);\n const [noteTypesList, setNoteTypesList] = useState([]);\n\n const [pageSize, setPageSize] = useState(20);\n const [page, setPage] = useState(1);\n const [totalPages, setTotalPages] = useState();\n\n const pageSizeSelection = [\n {\n name: \"20\",\n value: \"20\"\n },\n {\n name: \"50\",\n value: \"50\"\n },\n {\n name: \"100\",\n value: \"100\"\n },\n {\n name: \"200\",\n value: \"200\"\n }\n ];\n\n const getActionName = \n profileType === \"lender\" ? getLenderFileNotes : profileType === LAW_FIRM_USER ? getLawFirmFileNotes : getBrokerFileNotes;\n const updateActionName =\n profileType === \"lender\" ? updateLenderFileNotes : profileType === LAW_FIRM_USER ? updateLawFirmFileNotes : updateBrokerFileNotes;\n const createActionName =\n profileType === \"lender\" ? createLenderFileNotes : profileType === LAW_FIRM_USER ? createLawFirmFileNotes : createBrokerFileNotes;\n const deleteActionName =\n profileType === \"lender\" ? deleteLenderFileNotes : profileType === LAW_FIRM_USER ? deleteLawFirmFileNotes : deleteBrokerFileNotes;\n\n useEffect(() => {\n if (Number(activeKey) === 2 || activeKey === \"fileNotes\") {\n listFileNotes({ actionedRecordId: null });\n getNoteTypes();\n }\n const cleanUp = () => {\n signal.cancel(\"\");\n };\n return cleanUp;\n }, [activeKey, sortInfo, pageSize, page]);\n\n useEffect(() => {\n listFileNotes({ actionedRecordId: null });\n const cleanUp = () => {\n signal.cancel(\"\");\n };\n return cleanUp;\n }, [window.location.href]);\n\n const getNoteTypes = () => {\n setListLoading(true);\n return notesDropdownLookUpHandler({}).then(resp => {\n if (resp.status) {\n setNoteTypesList(mustBeArray(resp.data.data));\n setListLoading(false);\n } else {\n errorDisplay(resp && resp.data && resp.data.validationErrors);\n }\n });\n };\n\n const listFileNotes = async ({\n actionedRecordId = null,\n action = \"update\"\n }) => {\n await getActionName({\n id: userId,\n cancelToken: signal.token,\n queryParams: getQueryParams(),\n userType\n }).then(resp => {\n setListLoading(false);\n if (resp.status) {\n if (!actionedRecordId) {\n setFilesList(x => {\n setTotalPages(resp.total);\n return mustBeArray(resp.data);\n });\n } else {\n let updatedRecord =\n action === \"delete\"\n ? null\n : _.find(mustBeArray(resp.data), o => o.id === actionedRecordId);\n let newList = !updatedRecord\n ? _.filter(filesList, o => o.id !== actionedRecordId)\n : filesList.map(file => {\n return file.id === actionedRecordId ? updatedRecord : file;\n });\n\n setFilesList(x => {\n setTotalPages(resp.total);\n return newList;\n });\n }\n }\n });\n };\n\n const handleEdit = ({ record, field, value }) => {\n let validationId = record && record.id;\n\n if (!editedList.includes(validationId)) {\n setEditedList([...editedList, validationId]);\n }\n let newUpdatedList = [...filesList].map(data => {\n return data.id === validationId\n ? { ...data, [field]: value }\n : { ...data };\n });\n setFilesList(newUpdatedList);\n };\n\n const updateRecord = ({ record, field, value }) => {\n let validationId = record && record.id;\n\n if (field === \"noteType\") {\n value = noteTypesList.find(x => x.key === value);\n }\n\n let newUpdatedList = filesList.map(data => {\n return data.id === validationId\n ? { ...data, [field]: value }\n : { ...data };\n });\n setFilesList(newUpdatedList);\n };\n\n const handleSave = ({ record }) => {\n const id = match && match.params && match.params.id;\n setListLoading(true);\n let payLoad = {\n note: record && record.note,\n noteType:\n record &&\n (record.noteType == null || _.isUndefined(record.noteType)\n ? \"\"\n : record.noteType.key)\n };\n switch(profileType) {\n case \"lender\":\n payLoad.lenderFileNoteId = record?.id;\n break;\n case LAW_FIRM_USER:\n payLoad.lawFirmFileNoteId = record?.id;\n break;\n default:\n payLoad.brokerFileNoteId = record?.id;\n }\n\n let actionName = updateActionName;\n if (record && record.newRecord) {\n actionName = createActionName;\n\n if (profileType === \"lender\") {\n delete payLoad.lenderFileNoteId;\n } else {\n delete payLoad.brokerFileNoteId;\n }\n }\n\n actionName({ payLoad, cancelToken: signal.token, id, userType }).then(\n resp => {\n setListLoading(false);\n if (resp.status) {\n message.success(\n `File notes ${\n record && record.newRecord ? \"added\" : \"updated\"\n } successfully.`\n );\n let updatedEditedList = _.filter(\n editedList,\n o => o !== (record && record.id)\n );\n setEditedList(updatedEditedList);\n listFileNotes({\n actionedRecordId: _.isInteger(record && record.id)\n ? record.id\n : null,\n action: \"update\"\n });\n }\n }\n );\n };\n\n const getQueryParams = () => {\n let queryParams = {};\n if (sortInfo && sortInfo.field && sortInfo.order) {\n queryParams = {\n sort: sortInfo.order,\n orderBy: sortInfo.field,\n pageSize: pageSize,\n page: page\n };\n }\n queryParams = {\n pageSize: pageSize,\n page: page\n };\n return queryParams;\n };\n\n const handleDelete = ({ record }) => {\n const id = match && match.params && match.params.id;\n setListLoading(true);\n let payLoad = {\n id: record && record.id\n };\n\n deleteActionName({ payLoad, cancelToken: signal.token, id, userType }).then(\n resp => {\n setListLoading(false);\n if (resp.status) {\n message.success(`File note deleted successfully.`);\n listFileNotes({\n actionedRecordId: record && record.id,\n action: \"delete\"\n });\n }\n }\n );\n };\n\n const addNewRecord = () => {\n let id = guid();\n let newFileNote = {\n date: moment().format(),\n note: \"\",\n newRecord: true,\n id\n };\n let updatedList = [newFileNote, ...filesList];\n setFilesList(updatedList);\n setEditedList([...editedList, id]);\n };\n\n const handleTableChange = (pagination, filters, sorter) => {\n setSortInfo({\n field: sorter.field,\n order: !sorter.order\n ? undefined\n : sorter.order === \"ascend\"\n ? \"asc\"\n : \"desc\"\n });\n };\n\n const handlePageSizeChange = pageSize => {\n setPageSize(pageSize);\n };\n\n const handlePageChange = page => {\n setPage(page);\n };\n let colTemplate =\n userType === ADMIN_USER\n ? [\n {\n title: \"Date\",\n dataIndex: \"date\",\n sorter: true,\n sortOrder:\n sortInfo && sortInfo.field === \"date\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n dataType: \"date\"\n },\n {\n title: \"Taken by\",\n dataIndex: \"takenBy\",\n sorter: true,\n sortOrder:\n sortInfo && sortInfo.field === \"takenBy\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false\n }\n ]\n : [\n {\n title: \"Date\",\n dataIndex: \"date\",\n sorter: true,\n sortOrder:\n sortInfo && sortInfo.field === \"date\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: record => {\n return asDefaultDisplayFormatDate(record);\n }\n }\n ];\n\n colTemplate = _.concat(colTemplate, [\n {\n title: \"Notes\",\n dataIndex: \"note\",\n sorter: true,\n sortOrder:\n sortInfo && sortInfo.field === \"note\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n width: \"70%\",\n render: (data, record) => {\n return editedList.includes(record && record.id) ? (\n \n updateRecord({\n record,\n field: \"note\",\n value: e.currentTarget.value\n })\n }\n />\n ) : (\n {data}\n );\n }\n },\n {\n title: \"Note Type\",\n dataIndex: \"noteType\",\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"note\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n width: \"9%\",\n render: (data, record) => {\n return editedList.includes(record && record.id) ? (\n \n \n \n ...\n \n No data\n \n }\n filterOption={false}\n onChange={e =>\n updateRecord({\n record,\n field: \"noteType\",\n value: e\n })\n }\n defaultValue={data === null || _.isUndefined(data) ? \"\" : data.key}\n >\n {mustBeArray(noteTypesList).map(noteType => {\n return (\n \n {noteType.name}\n \n );\n })}\n \n ) : (\n {data === null || _.isUndefined(data) ? \"\" : data.name}\n );\n }\n }\n ]);\n\n const actions = [\n {\n title: (\n \n \n \n ),\n dataIndex: \"\",\n sorter: false,\n render: record => {\n return editedList.includes(record && record.id) ? (\n handleSave({ record })}\n >\n Save\n \n ) : (\n \n handleEdit({ record })} />\n handleDelete({ record })}\n >\n \n \n \n );\n }\n }\n ];\n\n const tableCoumn = _.concat(tableColumnGenerator(colTemplate), actions);\n\n return (\n
\n index}\n onChange={handleTableChange}\n bordered\n className=\"file-list\"\n />\n\n
\n handlePageChange(page)}\n total={totalPages}\n pageSize={pageSize}\n >\n\n handlePageSizeChange(value)}\n className=\"w-70 float-right\"\n allowClear={false}\n style={{ marginTop: \"-30px\" }}\n >\n {mustBeArray(pageSizeSelection).map((option, index) => {\n return (\n \n {option.name}\n \n );\n })}\n \n
\n
\n );\n};\n\nconst mapStateToProps = state => {\n return {\n member: state.member || {},\n profile: (state.profile && state.profile.details) || {},\n user: state.authorization && state.authorization.user,\n lender: state.profile.lender,\n broker: state.profile.broker\n };\n};\n\nconst mapDispatchToProps = {\n getLenderFileNotes,\n updateLenderFileNotes,\n deleteLenderFileNotes,\n createLenderFileNotes,\n getBrokerFileNotes,\n updateBrokerFileNotes,\n deleteBrokerFileNotes,\n createBrokerFileNotes,\n notesDropdownLookUpHandler,\n getLawFirmFileNotes,\n updateLawFirmFileNotes,\n createLawFirmFileNotes,\n deleteLawFirmFileNotes\n};\n\nexport default connect(\n mapStateToProps,\n mapDispatchToProps\n)(FilesList);\n","import { http } from \"../libs/http\";\nimport APIHandler, { apiUrls } from \"../constants/apiUrl\";\nimport { processRequest } from \"./asyncActionProcessor\";\nimport ResponseHandler from \"../libs/response\";\nimport {\n requestBuilder,\n} from \"../libs/utilities\";\nimport { ADMIN_USER, BROKER_USER, DUAL_USER, LAW_FIRM_USER, LENDER_USER, SYSTEM_ADMIN_USER } from \"../constants/systemUsers\";\n\nexport const getMatchingLoans = ({\n id,\n profileType,\n userType,\n cancelToken,\n queryParams,\n generalView = false\n}) => {\n return dispatch =>\n new Promise(async resolve => { \n const url = APIHandler.constructEndpoint({\n endpoint: generalView ? apiUrls.PUBLIC_MATCHING_LOANS_FOR_BROKER_URL : profileType == \"lender\"\n ? (userType == ADMIN_USER ? apiUrls.GET_MATCHING_LOANS_FOR_LENDER_URL_AS_SYSTEM_USER : apiUrls.GET_MATCHING_LOANS_FOR_LENDER_URL)\n : userType == ADMIN_USER ? apiUrls.GET_MATCHING_LOANS_FOR_BROKER_URL_AS_SYSTEM_USER : \n apiUrls.GET_MATCHING_LOANS_FOR_BROKER_URL,\n options: { id }\n });\n\n try {\n const response = await requestBuilder(\n null,\n url,\n queryParams,\n cancelToken\n );\n resolve(processRequest(dispatch, response, \"GET_MATCHING_LOANS\"));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\n\nexport const getPresettledLoans = ({\n id,\n profileType,\n userType,\n cancelToken,\n queryParams\n}) => {\n return dispatch =>\n new Promise(async resolve => { \n let actionUrl;\n\n switch(profileType){\n \n case LENDER_USER:\n actionUrl = userType == ADMIN_USER ? apiUrls.GET_PRESETTLED_LOANS_FOR_LENDER_AS_ADMIN_URL \n : apiUrls.GET_PRESETTLED_LOANS_FOR_LENDER_URL;\n break;\n case LAW_FIRM_USER:\n actionUrl = userType == ADMIN_USER ? apiUrls.GET_PRESETTLED_LOANS_FOR_LAW_FIRM_URL_AS_ADMIN_URL\n : apiUrls.GET_PRESETTLED_LOANS_FOR_LAW_FIRM_URL;\n break;\n default:\n actionUrl = userType == ADMIN_USER ? apiUrls.GET_PRESETTLED_LOANS_FOR_BROKER_AS_ADMIN_URL \n : apiUrls.GET_PRESETTLED_LOANS_FOR_BROKER_URL;\n break;\n\n }\n\n const url = APIHandler.constructEndpoint({\n endpoint: actionUrl,\n options: { id }\n });\n\n try {\n const response = await requestBuilder(\n null,\n url,\n queryParams,\n cancelToken\n );\n resolve(processRequest(dispatch, response, \"GET_PRESETTLED_LOANS\"));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const getLoanDetails = ({\n id,\n userType,\n isUserInvolvedAsLender,\n isUserInvolvedAsBroker,\n cancelToken,\n generalView = false\n}) => {\n return dispatch =>\n new Promise(async resolve => {\n let actionUrl;\n\n if (generalView) {\n actionUrl = apiUrls.PUBLIC_LOANS_DETAILS_URL;\n } else if (userType === SYSTEM_ADMIN_USER || userType === ADMIN_USER) {\n // prevent mismatch from used ADMIN_USER on pages/Loans/Create\n actionUrl = apiUrls.GET_LOAN_DETAILS_FOR_SYSTEM_USER;\n } else if (\n userType !== SYSTEM_ADMIN_USER &&\n (isUserInvolvedAsLender || isUserInvolvedAsBroker)\n ) {\n if (isUserInvolvedAsBroker) {\n actionUrl = apiUrls.GET_LOAN_DETAILS_FOR_BROKER_USER;\n } else {\n actionUrl = apiUrls.GET_LOAN_DETAILS_FOR_LENDER_USER;\n }\n } else if (\n userType !== SYSTEM_ADMIN_USER &&\n (!isUserInvolvedAsLender && !isUserInvolvedAsBroker)\n ) {\n actionUrl = apiUrls.GET_LOAN_DETAILS_FOR_UNINVOLVED_USER;\n }\n\n const url = APIHandler.constructEndpoint({\n endpoint: actionUrl,\n options: { id }\n });\n\n try {\n const response = await http.get(url, cancelToken);\n resolve(processRequest(dispatch, response, \"GET_LOAN_DETAILS\"));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const checkUserLoanInvolvement = ({ id, userId, cancelToken }) => {\n return dispatch =>\n new Promise(async resolve => {\n let actionUrl = apiUrls.CHECK_USER_INVOLVEMENT;\n\n const url = APIHandler.constructEndpoint({\n endpoint: actionUrl,\n options: { id }\n });\n\n try {\n const response = await http.get(url);\n resolve(processRequest(dispatch, response, \"CHECK_USER_INVOLVEMENT\"));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const updateLoanInView = ({ id, payload, userType, cancelToken }) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"id is Required\");\n }\n\n let actionUrl;\n if (userType === LENDER_USER) {\n actionUrl = apiUrls.UPDATE_LOAN_IN_VIEW_AS_LENDER;\n } else if (userType === BROKER_USER) {\n actionUrl = apiUrls.UPDATE_LOAN_IN_VIEW_AS_BROKER;\n } else if (userType === ADMIN_USER) {\n actionUrl = apiUrls.UPDATE_LOAN_IN_VIEW_AS_SYSTEM_USER;\n } else if (userType === LAW_FIRM_USER) {\n actionUrl = apiUrls.UPDATE_LOAN_IN_VIEW_AS_LAWFIRM\n } else if (userType === DUAL_USER) {\n actionUrl = apiUrls.UPDATE_LOAN_IN_VIEW_AS_DUAL;\n } \n \n const url = APIHandler.constructEndpoint({\n endpoint: actionUrl,\n options: { loanid: id }\n });\n\n try {\n const response = await http.put(url, payload, cancelToken);\n resolve(processRequest(dispatch, response, \"UPDATE_LOAN_IN_VIEW\"));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const deleteLoan = ({ id, payload, cancelToken }) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"id is Required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.DELETE_LOAN_AS_SYSTEM_USER,\n options: { id }\n });\n try {\n const response = await http.put(\n `${url}?id=${payload && payload.id}`,\n payload,\n cancelToken\n );\n resolve(processRequest(dispatch, response, \"DELETE_LOANS\"));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const getAttributedLenders = ({ id, userType }) => {\n return dispatch =>\n new Promise(async resolve => {\n const url = APIHandler.constructEndpoint({\n endpoint: userType == SYSTEM_ADMIN_USER ? \n apiUrls.GET_LOAN_ATTRIBUTED_LENDER_FOR_SYSTEM_USER : apiUrls.GET_LOAN_ATTRIBUTED_LENDER,\n options: { id }\n });\n\n try {\n const response = await http.get(url);\n resolve(\n processRequest(dispatch, response, \"GET_LOAN_ATTRIBUTED_LENDERS\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const getAttributedBrokers = ({ id, userType, generalView = false }) => {\n return dispatch =>\n new Promise(async resolve => {\n const url = APIHandler.constructEndpoint({\n endpoint: generalView ? apiUrls.PUBLIC_LOANS_DETAILS_ATTRIBUTED_BROKERS_URL : userType == SYSTEM_ADMIN_USER ? \n apiUrls.GET_LOAN_ATTRIBUTED_BROKERS_FOR_SYSTEM_USER : apiUrls.GET_LOAN_ATTRIBUTED_BROKERS,\n options: { id }\n });\n\n try {\n const response = await http.get(url);\n resolve(\n processRequest(dispatch, response, \"GET_LOAN_ATTRIBUTED_BROKERS\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const getCurrentLoans = ({\n id,\n profileType,\n userType,\n cancelToken,\n queryParams,\n generalView = false\n}) => {\n return dispatch =>\n new Promise(async resolve => {\n let actionUrl;\n if(generalView){\n actionUrl = apiUrls.PUBLIC_BROKER_DETAILS_CURRENT_LOANS_URL;\n }\n else {\n switch (profileType) {\n case LENDER_USER:\n actionUrl =\n userType == ADMIN_USER\n ? apiUrls.GET_CURRENT_LOANS_FOR_LENDER_URL_AS_SYSTEM_USER\n : apiUrls.GET_CURRENT_LOANS_FOR_LENDER_URL;\n \n break;\n \n case LAW_FIRM_USER:\n actionUrl =\n userType == ADMIN_USER\n ? apiUrls.GET_CURRENT_LOANS_FOR_LAW_FIRM_URL_AS_SYSTEM_USER\n : apiUrls.GET_CURRENT_LOANS_FOR_LAW_FIRM_URL;\n \n break;\n \n default:\n actionUrl =\n userType == ADMIN_USER\n ? apiUrls.GET_CURRENT_LOANS_FOR_BROKER_URL_AS_SYSTEM_USER\n : apiUrls.GET_CURRENT_LOANS_FOR_BROKER_URL;\n \n break;\n }\n }\n\n const url = APIHandler.constructEndpoint({\n endpoint: actionUrl,\n\n options: { id }\n });\n\n try {\n const response = await requestBuilder(\n null,\n\n url,\n\n queryParams,\n\n cancelToken\n );\n\n resolve(processRequest(dispatch, response, \"GET_CURRENT_LOANS\"));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const getDischargedLoans = ({\n id,\n profileType,\n userType,\n cancelToken,\n queryParams,\n generalView = false\n}) => {\n return dispatch =>\n new Promise(async resolve => {\n let actionUrl;\n if(generalView){\n actionUrl = apiUrls.PUBLIC_BROKER_DETAILS_DISCHARGED_LOANS_URL;\n }\n else {\n switch (profileType) {\n case LENDER_USER:\n actionUrl =\n userType == ADMIN_USER\n ? apiUrls.GET_DISCHARGED_LOANS_FOR_LENDER_URL_AS_SYSTEM_USER\n : apiUrls.GET_DISCHARGED_LOANS_FOR_LENDER_URL;\n \n break;\n \n case LAW_FIRM_USER:\n actionUrl =\n userType == ADMIN_USER\n ? apiUrls.GET_DISCHARGED_LOANS_FOR_LAW_FIRM_URL_AS_SYSTEM_USER\n : apiUrls.GET_DISCHARGED_LOANS_FOR_LAW_FIRM_URL;\n \n break;\n \n default:\n actionUrl =\n userType == ADMIN_USER\n ? apiUrls.GET_DISCHARGED_LOANS_FOR_BROKER_URL_AS_SYSTEM_USER\n : apiUrls.GET_DISCHARGED_LOANS_FOR_BROKER_URL;\n \n break;\n }\n }\n \n\n const url = APIHandler.constructEndpoint({\n endpoint: actionUrl,\n options: { id }\n });\n try {\n const response = await requestBuilder(\n null,\n url,\n queryParams,\n cancelToken\n );\n console.log(response);\n resolve(processRequest(dispatch, response, \"GET_DISCHARGED_LOANS\"));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const getDoneWithMeLoans = ({\n id,\n profileType,\n cancelToken,\n queryParams,\n}) => {\n return dispatch =>\n new Promise(async resolve => {\n let actionUrl;\n switch (profileType) {\n case LENDER_USER:\n actionUrl = apiUrls.LENDERS_LOANS_DONE_WITH_YOU;\n break;\n case BROKER_USER:\n actionUrl = apiUrls.BROKER_LOANS_DONE_WITH_YOU;\n break;\n default:\n resolve(processRequest(dispatch, {data: []}))\n }\n const url = APIHandler.constructEndpoint({\n endpoint: actionUrl,\n options: { id }\n });\n\n try {\n const response = await requestBuilder(\n null,\n url,\n queryParams,\n cancelToken\n );\n resolve(processRequest(dispatch, response, \"GET_DONE_WITH_ME_LOANS\"));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const loansCreate = ({ cancelToken, payload, isSystemAdmin = true, isLenderUser = false, isLawFirmUser = false }) => {\n return async () => {\n let endpoint = apiUrls.LOANS_CREATE; // Defaults to system admin\n if(isLenderUser){\n endpoint = apiUrls.LOANS_CREATE_AS_LENDER;\n }\n else if(isLawFirmUser){\n endpoint = apiUrls.LOANS_CREATE_AS_LAW_FIRM;\n }\n\n const url = APIHandler.constructEndpoint({\n endpoint,\n options: {}\n });\n const response = await http.post(url, payload, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return { status: true, data: response.data };\n } else {\n return ResponseHandler.inValidObject(response);\n }\n };\n};\n\nexport const loansEdit = ({ cancelToken, payload, isSystemAdmin = true, isLenderUser = false, isLawFirmUser = false }) => {\n return async () => {\n let endpoint = apiUrls.LOANS_EDIT; // Defaults to system admin\n if(isLenderUser){\n endpoint = apiUrls.LOANS_EDIT_AS_LENDER;\n }\n else if(isLawFirmUser){\n endpoint = apiUrls.LOANS_EDIT_AS_LAW_FIRM;\n }\n const url = APIHandler.constructEndpoint({\n endpoint,\n options: { id: payload.id }\n });\n const response = await http.put(url, payload, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return { status: true, data: response.data };\n } else {\n return ResponseHandler.inValidObject(response);\n }\n };\n};\n\nexport const getAllLoansAsSystemUser = ({ queryParams = {} }) => {\n return dispatch =>\n new Promise(async resolve => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.GET_ALL_LOANS_AS_SYSTEM_USER,\n options: {}\n });\n const params = new URLSearchParams();\n Object.entries(queryParams).forEach(value => {\n if (Array.isArray(value[1])) {\n if (value[1].length !== 0) {\n value[1].forEach(x => {\n params.append(value[0], x);\n });\n }\n } else {\n if (value[1] !== null && value[1] !== undefined && value[1] !== \"\") {\n params.append(value[0], value[1]);\n }\n }\n });\n\n try {\n const response = await http.get(\n url + \"?\" + params.toString()\n );\n return resolve(\n processRequest(dispatch, response, \"GET_ALL_LOANS_AS_SYSTEM_USER\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const getAllLoansAsIndividual = ({\n queryParams={}\n}) => {\n return dispatch =>\n new Promise(async resolve => { \n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.GET_ALL_LOANS_AS_INDIVIDUAL,\n options: {}\n });\n const params = new URLSearchParams();\n Object.entries(queryParams).forEach(value => {\n if (Array.isArray(value[1])) {\n if (value[1].length !== 0) {\n value[1].forEach(x => {\n params.append(value[0], x);\n });\n }\n } else {\n if (value[1] !== null && value[1] !== undefined && value[1] !== \"\") {\n params.append(value[0], value[1]);\n }\n }\n });\n\n try {\n const response = await http.get(\n url + \"?\" + params.toString()\n );\n return(resolve(processRequest(dispatch, response, \"GET_ALL_LOANS_AS_INDIVIDUAL\")));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const getAllLoansExpiryLookups = ({\n cancelToken\n}) => {\n return dispatch =>\n new Promise(async resolve => { \n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.GET_ALL_LOANS_EXPIRY_LOOKUPS,\n options: {}\n });\n\n try {\n const response = await requestBuilder(null, url, {}, cancelToken);\n return(resolve(processRequest(dispatch, response, \"GET_ALL_LOANS_EXPIRY_LOOKUPS\")));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const getAllLoansBdmLookup = ({\n search=\"\"\n}) => {\n return dispatch =>\n new Promise(async resolve => { \n const apiUrl = APIHandler.constructEndpoint({\n endpoint: apiUrls.GET_ALL_LOANS_BDM_LOOKUP,\n options: {}\n });\n const url = search ? `${apiUrl}?search=${search}` : apiUrl;\n try {\n const response = await http.get(url);\n return(resolve(processRequest(dispatch, response, \"GET_ALL_LOANS_BDM_LOOKUP\")));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const getAllLoansPartnerLookups = ({\n id,\n search=\"\",\n cancelToken,\n}) => {\n return dispatch =>\n new Promise(async resolve => { \n const apiUrl = APIHandler.constructEndpoint({\n endpoint: apiUrls.GET_ALL_LOANS_PARTNER_LOOKUPS,\n options: { id }\n });\n const url = search ? `${apiUrl}?search=${search}` : apiUrl;\n try {\n const response = await http.get(url, cancelToken);\n return(resolve(processRequest(dispatch, response, \"GET_ALL_LOANS_PARTNER_LOOKUPS\")));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\n// Loans Snapshot\n/**\n * @typedef GetLoanLogsPayload\n * @property {number} loanId\n * @property {boolean=} isSystemUser\n * @property {any} cancelToken\n * \n * @param {GetLoanLogsPayload} payload \n * @returns {Promise>}\n */\nexport const getLoanLogs = ({\n loanId,\n isSystemUser = false,\n cancelToken\n}) => {\n return async () => {\n let actionUrl = apiUrls.LOANS_LOGS_URL;\n\n // Overwrite actionurl if system user\n if (isSystemUser) {\n actionUrl = apiUrls.LOANS_LOGS_AS_SYSTEM_USER_URL;\n }\n\n const url = APIHandler.constructEndpoint({\n endpoint: actionUrl,\n options: { \n id: loanId\n }\n });\n\n const response = await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return response.data && response.data.result\n ? response.data.result\n : response.data;\n } else {\n return ResponseHandler.inValidObject(response);\n }\n };\n};\n\n/**\n * @typedef GetSnapshotDetailsProps\n * @property {number} loanId\n * @property {number} logId\n * @property {boolean=} isSystemUser\n * @property {any} cancelToken\n * \n * @param {GetSnapshotDetailsProps} params \n * @returns {Promise>} \n */\nexport const getLoanSnapshotDetails = ({\n loanId,\n logId,\n isSystemUser = false,\n cancelToken\n}) => {\n return dispatch => new Promise(async resolve => {\n let actionUrl = apiUrls.LOANS_LOGS_SNAPSHOT_URL;\n\n // Overwrite actionurl if system user\n if (isSystemUser) {\n actionUrl = apiUrls.LOANS_LOGS_SNAPSHOT_AS_SYSTEM_USER_URL;\n }\n\n const url = APIHandler.constructEndpoint({\n endpoint: actionUrl,\n options: { \n loanId,\n logId\n }\n });\n\n try {\n const response = await http.get(url, cancelToken);\n resolve(\n processRequest(dispatch, response, \"GET_LOAN_SNAPSHOT_DETAILS\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\n/**\n * \n * @param {{\n * loanNo: string,\n * loanLenders: number[]\n * }} param0 \n */\nexport const validateNewLoanNo = async ({\n loanNo = \"\",\n loanLenders = [],\n}) => {\n try {\n const queryParams = new URLSearchParams();\n queryParams.append(\"loanNo\", loanNo);\n loanLenders.forEach( x => {\n queryParams.append(\"loanLenders\", `${x}`);\n });\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.NEW_LOANS_VERIFY_LOANNO + \"?\" + queryParams.toString()\n });\n const response = await http.get(url);\n return response;\n } catch (error) {\n return error;\n }\n}\n\n/**\n * \n * @param {{\n * loanId: number,\n* loanNo: string,\n* loanLenders: number[]\n* }} param0 \n*/\nexport const validateLoanNo = async ({\n loanId,\n loanNo = \"\",\n loanLenders = [],\n}) => {\n try {\n const queryParams = new URLSearchParams();\n queryParams.append(\"loanNo\", loanNo);\n loanLenders.forEach( x => {\n queryParams.append(\"loanLenders\", `${x}`);\n });\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.LOANS_VERIFY_LOANNO + \"?\" + queryParams.toString(),\n options: {id : loanId}\n });\n const response = await http.get(url);\n return response;\n } catch (error) {\n return error;\n }\n}\n\n/**\n * \n * @param {boolean} isSystemUser \n * @param {import(\"../libs/types\").IAllLoanSaveSearchTableQuery} params\n * @returns {{\n * id: number\n* name: string\n* createdDate: string\n* }[]}\n */\nexport const getSavedSearchesList = async (\n isSystemUser = false,\n params = {}\n) => {\n const queryParams = new URLSearchParams();\n Object.entries(params).forEach(x => {\n queryParams.append(x[0], x[1]);\n });\n const api = isSystemUser\n ? apiUrls.ALL_LOANS_SAVED_SEARCHES_AS_SYSTEM_USER\n : apiUrls.ALL_LOANS_SAVED_SEARCHES_AS_INDIVIDUAL;\n const url = APIHandler.constructEndpoint({\n endpoint: api + \"?\" + queryParams.toString()\n });\n const response = await http.get(url);\n if (ResponseHandler.isValidStatus(response)) {\n return response.data && response.data.result\n ? response.data.result\n : response.data;\n } else {\n return ResponseHandler.inValidObject(response);\n }\n};\n\n/**\n * @param {boolean} isSystemUser\n * @param {import(\"../libs/types\").IAllLoanSaveSearch} payload \n * @returns \n */\nexport const saveAllLoansSearch = async (\n isSystemUser = false,\n { name = \"\", filters, selectedColumns = [] }\n) => {\n const url = APIHandler.constructEndpoint({\n endpoint: isSystemUser\n ? apiUrls.ALL_LOANS_SAVED_SEARCHES_AS_SYSTEM_USER\n : apiUrls.ALL_LOANS_SAVED_SEARCHES_AS_INDIVIDUAL\n });\n const response = await http.post(url, {\n name,\n selectedColumns,\n filters\n });\n if (ResponseHandler.isValidStatus(response)) {\n return response;\n } else {\n return ResponseHandler.inValidObject(response);\n }\n}\n\n\n/**\n * @param {boolean} isSystemUser\n * @param {number} id \n * @returns {Promise}\n */\nexport const loadSavedSearch = async (isSystemUser, id) => {\n const url = APIHandler.constructEndpoint({\n endpoint: isSystemUser\n ? apiUrls.ALL_LOANS_SAVED_SEARCH_ITEM_AS_SYSTEM_USER\n : apiUrls.ALL_LOANS_SAVED_SEARCH_ITEM_AS_INDIVIDUAL,\n options: {\n id\n }\n });\n const response = await http.get(url);\n if (ResponseHandler.isValidStatus(response)) {\n return response.data && response.data.result\n ? response.data.result\n : response.data;\n } else {\n return ResponseHandler.inValidObject(response);\n }\n}\n\n/**\n * @param {import(\"../libs/types\").IAllLoanSaveLastSearch} payload \n* @returns \n*/\nexport const saveAllLoansLastSearch = async (\n { name = \"\", filters, selectedColumns = [], savedSearchId = null }\n) => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.ALL_LOANS_LAST_SEARCH\n });\n const response = await http.put(url, {\n name,\n selectedColumns,\n filters,\n savedSearchId\n });\n if (ResponseHandler.isValidStatus(response)) {\n return response.data && response.data.result\n ? response.data.result\n : response.data;\n } else {\n return ResponseHandler.inValidObject(response);\n }\n};\n\n/**\n * @returns {import(\"axios\").AxiosResponse | import(\"../libs\").InvalidResponse}\n */\nexport const loadAllLoanLastSearch = async () => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.ALL_LOANS_LAST_SEARCH\n });\n const response = await http.get(url);\n if (ResponseHandler.isValidStatus(response)) {\n return response;\n } else {\n return ResponseHandler.inValidObject(response);\n }\n}\n\n/**\n* @param {boolean} isSystemUser\n* @param {number} id \n* @returns \n*/\nexport const exportLoansSearchToXLS = async (isSystemUser = false, id) => {\n const url = APIHandler.constructEndpoint({\n endpoint: isSystemUser\n ? apiUrls.EXPORT_LOAN_SEARCH_TO_XLS_AS_SYSTEM_USER\n : apiUrls.EXPORT_LOAN_SEARCH_TO_XLS_INDIVIDUAL,\n options: {\n id\n }\n });\n const response = await http.put(url);\n if (ResponseHandler.isValidStatus(response)) {\n return { ...response, message: \"\"};\n } else {\n return ResponseHandler.inValidObject(response);\n }\n};","import React from \"react\";\nimport { ColumnProps } from \"antd/lib/table\";\nimport { AU_DATE_FORMAT } from \"../../../constants/moment\";\nimport { BROKER_USER, LAW_FIRM_USER } from \"../../../constants/systemUsers\";\n\nexport interface UseLoansTableColumnsParams {\n profileType: string;\n generalView: boolean;\n sortInfo: {\n field: string;\n order: string;\n };\n handleLoanNumberClick: any;\n handleProfileClick: any;\n formatDecimalToCurrency: any;\n formatDecimal2: any;\n formatDecimalWithDefaultValue: any;\n asDefaultDisplayFormatDate: any;\n isUserLawfirm: boolean;\n}\n\nconst useLoansTableColumns = ({\n profileType,\n generalView,\n sortInfo,\n handleLoanNumberClick,\n handleProfileClick,\n formatDecimal2,\n formatDecimalToCurrency,\n formatDecimalWithDefaultValue,\n asDefaultDisplayFormatDate,\n isUserLawfirm\n}: UseLoansTableColumnsParams) => {\n const brokerColumns: ColumnProps[] = !generalView\n ? [\n {\n title: (\n \n Loan\n
\n No.\n
\n ),\n dataIndex: \"loanNo\",\n width: \"8%\",\n ellipsis: false,\n sorter: false,\n align: \"left\",\n sortOrder:\n sortInfo && sortInfo.field === \"loanNo\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return (\n handleLoanNumberClick(record)}\n style={{ color: \"blue\" }}\n >\n {data}\n \n );\n }\n },\n {\n title: \"Lender\",\n align: \"left\",\n dataIndex: \"attributedLender\",\n width: \"15%\",\n ellipsis: true,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"attributedLender\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return record.attributedLenderId ? (\n handleProfileClick(record, \"lender\")}\n style={{ color: \"blue\" }}\n >\n {data}\n \n ) : (\n {data}\n );\n }\n },\n {\n title: (\n \n Attributed\n
\n Broker\n
\n ),\n dataIndex: \"attributedBroker\",\n align: \"left\",\n width: \"15%\",\n sorter: false,\n ellipsis: true,\n sortOrder:\n sortInfo && sortInfo.field === \"attributedBroker\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n\n render: (data, record) => {\n return (\n handleProfileClick(record, \"broker\")}\n style={{ color: \"blue\" }}\n >\n {data}\n \n );\n }\n },\n {\n title: (\n \n Suburb\n
& State\n
\n ),\n dataIndex: \"suburbState\",\n align: \"left\",\n width: \"15%\",\n ellipsis: true,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"suburbState\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false\n },\n {\n title: \"Priority\",\n align: \"left\",\n dataIndex: \"priority\",\n width: \"8%\",\n ellipsis: true,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"priority\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false\n },\n {\n title: \"Principal\",\n align: \"left\",\n dataIndex: \"principal\",\n width: \"8%\",\n ellipsis: false,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"principal\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return {formatDecimalToCurrency(data)};\n }\n },\n {\n title: (\n \n Lower\n
\n Rate\n
\n ),\n dataIndex: \"lowerRate\",\n align: \"left\",\n width: \"5%\",\n ellipsis: false,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"lowerRate\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return {formatDecimal2(data)};\n }\n },\n {\n title: (\n \n Estab\n
%\n
\n ),\n dataIndex: \"estab\",\n align: \"left\",\n width: \"5%\",\n ellipsis: false,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"estab\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return {formatDecimalWithDefaultValue(data, 1)};\n }\n },\n {\n title: (\n \n LVR\n
%\n
\n ),\n dataIndex: \"lvr\",\n align: \"left\",\n width: \"5%\",\n ellipsis: false,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"lvr\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return {formatDecimal2(data)};\n }\n },\n {\n title: \"Scenario\",\n dataIndex: \"scenario\",\n align: \"left\",\n width: \"8%\",\n ellipsis: true,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"scenario\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false\n },\n {\n title: (\n \n Security\n
\n Type\n
\n ),\n dataIndex: \"securityType\",\n align: \"left\",\n ellipsis: true,\n sorter: false,\n width: \"8%\",\n sortOrder:\n sortInfo && sortInfo.field === \"scenario\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false\n },\n {\n title: \"Settlement\",\n dataIndex: \"settlement\",\n align: \"left\",\n width: \"8%\",\n ellipsis: false,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"settlement\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n // dataType: \"date\",\n // dateFormat: AU_DATE_FORMAT,\n render: (data, record) => {\n return {asDefaultDisplayFormatDate(data)};\n }\n }\n ]\n : [\n {\n title: (\n \n Loan\n
\n No.\n
\n ),\n dataIndex: \"loanNo\",\n width: \"10%\",\n ellipsis: false,\n sorter: false,\n align: \"left\",\n sortOrder:\n sortInfo && sortInfo.field === \"loanNo\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return (\n handleLoanNumberClick(record)}\n style={{ color: \"blue\" }}\n >\n {data}\n \n );\n }\n },\n {\n title: (\n \n Attributed\n
\n Broker\n
\n ),\n dataIndex: \"attributedBroker\",\n align: \"left\",\n width: \"15%\",\n sorter: false,\n ellipsis: true,\n sortOrder:\n sortInfo && sortInfo.field === \"attributedBroker\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n\n render: (data, record) => {\n return (\n handleProfileClick(record, \"broker\")}\n style={{ color: \"blue\" }}\n >\n {data}\n \n );\n }\n },\n {\n title: (\n \n Suburb\n
& State\n
\n ),\n dataIndex: \"suburbState\",\n align: \"left\",\n width: \"15%\",\n ellipsis: true,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"suburbState\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false\n },\n {\n title: \"Priority\",\n align: \"left\",\n dataIndex: \"priority\",\n width: \"10%\",\n ellipsis: true,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"priority\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false\n },\n {\n title: \"Principal\",\n align: \"left\",\n dataIndex: \"principal\",\n width: \"8%\",\n ellipsis: false,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"principal\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return {formatDecimalToCurrency(data)};\n }\n },\n {\n title: (\n \n Lower\n
\n Rate\n
\n ),\n dataIndex: \"lowerRate\",\n align: \"left\",\n width: \"5%\",\n ellipsis: false,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"lowerRate\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return {formatDecimal2(data)};\n }\n },\n {\n title: (\n \n Estab\n
%\n
\n ),\n dataIndex: \"estab\",\n align: \"left\",\n width: \"5%\",\n ellipsis: false,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"estab\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return {formatDecimalWithDefaultValue(data, 1)};\n }\n },\n {\n title: (\n \n LVR\n
%\n
\n ),\n dataIndex: \"lvr\",\n align: \"left\",\n width: \"5%\",\n ellipsis: false,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"lvr\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return {formatDecimal2(data)};\n }\n },\n {\n title: \"Scenario\",\n dataIndex: \"scenario\",\n align: \"left\",\n width: \"8%\",\n ellipsis: true,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"scenario\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false\n },\n {\n title: (\n \n Security\n
\n Type\n
\n ),\n dataIndex: \"securityType\",\n align: \"left\",\n ellipsis: true,\n sorter: false,\n width: \"8%\",\n sortOrder:\n sortInfo && sortInfo.field === \"scenario\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false\n },\n {\n title: \"Settlement\",\n dataIndex: \"settlement\",\n align: \"left\",\n width: \"10%\",\n ellipsis: false,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"settlement\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n // dataType: \"date\",\n // dateFormat: AU_DATE_FORMAT,\n render: (data, record) => {\n return {asDefaultDisplayFormatDate(data)};\n }\n }\n ];\n\n const lawfirmColumns: ColumnProps[] = [\n {\n title: (\n \n Loan\n
\n No.\n
\n ),\n dataIndex: \"loanNo\",\n width: \"8%\",\n ellipsis: false,\n sorter: false,\n align: \"left\",\n sortOrder:\n sortInfo && sortInfo.field === \"loanNo\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return (\n handleLoanNumberClick(record)}\n style={{ color: \"blue\" }}\n >\n {data}\n \n );\n }\n },\n {\n title: \"Lender\",\n align: \"left\",\n dataIndex: \"attributedLender\",\n width: \"15%\",\n ellipsis: true,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"attributedLender\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return record.attributedLenderId && !isUserLawfirm ? (\n handleProfileClick(record, \"lender\")}\n style={{ color: \"blue\" }}\n >\n {data}\n \n ) : (\n {data}\n );\n }\n },\n {\n title: (\n \n Attributed\n
\n Broker\n
\n ),\n dataIndex: \"attributedBroker\",\n align: \"left\",\n width: \"15%\",\n sorter: false,\n ellipsis: true,\n sortOrder:\n sortInfo && sortInfo.field === \"attributedBroker\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n\n render: (data, record) => {\n return !isUserLawfirm ? (\n handleProfileClick(record, \"broker\")}\n style={{ color: \"blue\" }}\n >\n {data}\n \n ) : (\n {data}\n );\n }\n },\n {\n title: (\n \n Suburb\n
& State\n
\n ),\n dataIndex: \"suburbState\",\n align: \"left\",\n width: \"15%\",\n ellipsis: true,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"suburbState\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false\n },\n {\n title: \"Priority\",\n align: \"left\",\n dataIndex: \"priority\",\n width: \"8%\",\n ellipsis: true,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"priority\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false\n },\n {\n title: \"Principal\",\n align: \"left\",\n dataIndex: \"principal\",\n width: \"8%\",\n ellipsis: false,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"principal\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return {formatDecimalToCurrency(data)};\n }\n },\n {\n title: (\n \n Lower\n
\n Rate\n
\n ),\n dataIndex: \"lowerRate\",\n align: \"left\",\n width: \"5%\",\n ellipsis: false,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"lowerRate\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return {formatDecimal2(data)};\n }\n },\n {\n title: (\n \n Estab\n
%\n
\n ),\n dataIndex: \"estab\",\n align: \"left\",\n width: \"5%\",\n ellipsis: false,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"estab\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return {formatDecimalWithDefaultValue(data, 1)};\n }\n },\n {\n title: (\n \n LVR\n
%\n
\n ),\n dataIndex: \"lvr\",\n align: \"left\",\n width: \"5%\",\n ellipsis: false,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"lvr\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return {formatDecimal2(data)};\n }\n },\n {\n title: \"Scenario\",\n dataIndex: \"scenario\",\n align: \"left\",\n width: \"8%\",\n ellipsis: true,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"scenario\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false\n },\n {\n title: (\n \n Security\n
\n Type\n
\n ),\n dataIndex: \"securityType\",\n align: \"left\",\n ellipsis: true,\n sorter: false,\n width: \"8%\",\n sortOrder:\n sortInfo && sortInfo.field === \"scenario\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false\n },\n {\n title: \"Settlement\",\n dataIndex: \"settlement\",\n align: \"left\",\n width: \"8%\",\n ellipsis: false,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"settlement\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n // dataType: \"date\",\n // dateFormat: AU_DATE_FORMAT,\n render: (data, record) => {\n return {asDefaultDisplayFormatDate(data)};\n }\n }\n ];\n\n const lenderColumns: ColumnProps[] = [\n {\n title: (\n \n Loan\n
\n No.\n
\n ),\n dataIndex: \"loanNo\",\n width: \"8%\",\n ellipsis: false,\n sorter: false,\n align: \"left\",\n sortOrder:\n sortInfo && sortInfo.field === \"loanNo\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return (\n handleLoanNumberClick(record)}\n style={{ color: \"blue\" }}\n >\n {data}\n \n );\n }\n },\n {\n title: \"Lender\",\n align: \"left\",\n dataIndex: \"attributedLender\",\n width: \"15%\",\n ellipsis: true,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"attributedLender\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return record.attributedLenderId ? (\n handleProfileClick(record, \"lender\")}\n style={{ color: \"blue\" }}\n >\n {data}\n \n ) : (\n {data}\n );\n }\n },\n {\n title: (\n \n Attributed\n
\n Broker\n
\n ),\n dataIndex: \"attributedBroker\",\n align: \"left\",\n width: \"15%\",\n sorter: false,\n ellipsis: true,\n sortOrder:\n sortInfo && sortInfo.field === \"attributedBroker\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n\n render: (data, record) => {\n return (\n handleProfileClick(record, \"broker\")}\n style={{ color: \"blue\" }}\n >\n {data}\n \n );\n }\n },\n {\n title: (\n \n Suburb\n
& State\n
\n ),\n dataIndex: \"suburbState\",\n align: \"left\",\n width: \"15%\",\n sorter: false,\n ellipsis: true,\n sortOrder:\n sortInfo && sortInfo.field === \"suburbState\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false\n },\n {\n title: \"Priority\",\n dataIndex: \"priority\",\n align: \"left\",\n width: \"8%\",\n sorter: false,\n ellipsis: true,\n sortOrder:\n sortInfo && sortInfo.field === \"priority\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false\n },\n {\n title: \"Principal\",\n dataIndex: \"principal\",\n align: \"left\",\n width: \"8%\",\n sorter: false,\n ellipsis: true,\n sortOrder:\n sortInfo && sortInfo.field === \"principal\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n // return $ {data};\n return {formatDecimalToCurrency(data)};\n }\n },\n {\n title: (\n \n Lower
Rate\n
\n ),\n dataIndex: \"lowerRate\",\n align: \"left\",\n width: \"5%\",\n sorter: false,\n ellipsis: true,\n sortOrder:\n sortInfo && sortInfo.field === \"lowerRate\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return {formatDecimal2(data)};\n }\n },\n {\n title: (\n \n Estab\n
%\n
\n ),\n dataIndex: \"estab\",\n align: \"left\",\n width: \"5%\",\n sorter: false,\n ellipsis: false,\n sortOrder:\n sortInfo && sortInfo.field === \"estab\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return {formatDecimalWithDefaultValue(data, 1)};\n }\n },\n {\n title: (\n \n LVR\n
%\n
\n ),\n dataIndex: \"lvr\",\n align: \"left\",\n width: \"5%\",\n sorter: false,\n ellipsis: false,\n sortOrder:\n sortInfo && sortInfo.field === \"lvr\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return {formatDecimal2(data)};\n }\n },\n {\n title: \"Scenario\",\n dataIndex: \"scenario\",\n align: \"left\",\n width: \"8%\",\n ellipsis: true,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"scenario\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false\n },\n {\n title: (\n \n Security\n
\n Type\n
\n ),\n dataIndex: \"securityType\",\n align: \"left\",\n width: \"8%\",\n sorter: false,\n ellipsis: true,\n sortOrder:\n sortInfo && sortInfo.field === \"scenario\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false\n },\n {\n title: \"Settlement\",\n dataIndex: \"settlement\",\n align: \"left\",\n width: \"8%\",\n sorter: false,\n ellipsis: false,\n sortOrder:\n sortInfo && sortInfo.field === \"settlement\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n // dataType: \"date\",\n // dateFormat: AU_DATE_FORMAT,\n render: (data, record) => {\n return {asDefaultDisplayFormatDate(data)};\n }\n }\n ];\n\n const colTemplate: ColumnProps[] =\n profileType === \"BROKER\" || profileType === BROKER_USER\n ? brokerColumns\n : profileType === LAW_FIRM_USER\n ? lawfirmColumns\n : lenderColumns;\n\n const expandedRowLoanListColumns: ColumnProps[] = [\n {\n dataIndex: \"\",\n key: \"\",\n width: \"2%\"\n },\n {\n title: \"Lender List\",\n dataIndex: \"loanLenderName\",\n key: \"loanLenderName\",\n align: \"left\",\n width: 200,\n render: (data, record) => {\n return record.loanLenderId && !isUserLawfirm ? (\n handleProfileClick(record, \"lenderList\")}\n style={{ color: \"blue\" }}\n >\n {data}\n \n ) : (\n {data}\n );\n }\n },\n {\n dataIndex: \"loanLenderContribution\",\n key: \"loanLenderContribution\",\n width: 200,\n align: \"left\",\n render: (data, record) => {\n return {data ? formatDecimalToCurrency(data) : \"\"};\n }\n },\n {\n title: \"Broker List\",\n dataIndex: \"loanBrokerName\",\n key: \"loanBrokerName\",\n align: \"left\",\n width: 200,\n render: (data, record) => {\n return record.loanBrokerId && !isUserLawfirm ? (\n handleProfileClick(record, \"brokerList\")}\n style={{ color: \"blue\" }}\n >\n {data}\n \n ) : (\n {data}\n );\n }\n },\n {\n dataIndex: \"\",\n key: \"\"\n }\n ];\n\n return {\n colTemplate,\n expandedRowLoanListColumns\n };\n};\n\nexport default useLoansTableColumns;\n","import React, { useEffect, useState } from \"react\";\nimport { isSystemUserPolicy } from \"../../Common/Authorization/policies/isSystemUserPolicy\";\nimport { isLenderOwnProfilePolicy } from \"../../Common/Authorization/policies/isLenderUserPolicy\";\nimport axios from \"axios\";\nimport { connect } from \"react-redux\";\nimport {\n ADMIN_USER,\n DUAL_USER,\n LAW_FIRM_USER\n} from \"../../constants/systemUsers\";\nimport { AU_DATE_FORMAT } from \"../../constants/moment\";\nimport { LENDER_USER, BROKER_USER } from \"../../constants/systemUsers\";\nimport { asDefaultDisplayFormatDate, mustBeArray } from \"../../libs/utilities\";\nimport { Table } from \"antd\";\nimport {\n getMatchingLoans,\n getPresettledLoans,\n getCurrentLoans,\n getDischargedLoans,\n getDoneWithMeLoans\n} from \"../../actions/loans\";\nimport history from \"../../routes/history\";\n\nimport useLoansTableColumns from \"../../Common/Hooks/ColTemplate/useLoansTableColumns\";\nimport { isLawFirmUserPolicy } from \"../../Common/Authorization/policies/isLawFirmUserPolicy\";\n\nconst LoansTables = ({\n user,\n userId,\n activeSubKey,\n profileType,\n getMatchingLoans,\n getPresettledLoans,\n getCurrentLoans,\n getDischargedLoans,\n getDoneWithMeLoans,\n loanSearchQueryParams,\n lender,\n generalView = false\n}) => {\n const [loading, setListLoading] = useState(false);\n const [loanList, setLoanList] = useState([]);\n const [sortInfo, setSortInfo] = useState({});\n const [isBrokerProfile, setIsBrokerProfile] = useState(false);\n const [totalRecords, setTotalRecords] = useState(0);\n const [paginationConfig, setPaginationConfig] = useState({\n page: 1,\n pageSize: 20\n });\n const [isUserLawfirm, setIsUserLawfirm] = useState(false);\n\n const signal = axios.CancelToken.source();\n\n const getQueryParams = () => {\n let queryParams = {};\n if (sortInfo && sortInfo.field && sortInfo.order) {\n queryParams = {\n sort: sortInfo.order,\n orderBy: sortInfo.field\n };\n }\n queryParams = {\n ...paginationConfig\n };\n if (loanSearchQueryParams != null) {\n queryParams = { ...queryParams, ...loanSearchQueryParams };\n }\n return queryParams;\n };\n\n const handleFetch = async () => {\n setListLoading(true);\n const userType = (await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n ))\n ? ADMIN_USER\n : \"\";\n\n const isOwnLenderProfile = await isLenderOwnProfilePolicy(lender.id)(\n user.roles,\n user.permissions,\n user\n );\n // setIsAdmin(userType === ADMIN_USER);\n //for if conditions: Set the list to be retrieved based from the passed activeKey\n if (activeSubKey === \"matchingYourSearchLoans\") {\n getMatchingLoans({\n id: userId,\n userType: userType,\n cancelToken: signal.token,\n profileType: profileType,\n queryParams: getQueryParams(),\n generalView\n }).then(resp => {\n setListLoading(false);\n if (resp.status) {\n setLoanList(mustBeArray(resp.data));\n setTotalRecords(resp.total);\n }\n });\n } else if (activeSubKey === \"preSettlementLoans\") {\n getPresettledLoans({\n id: userId,\n userType: userType,\n cancelToken: signal.token,\n profileType: profileType,\n queryParams: getQueryParams()\n }).then(resp => {\n setListLoading(false);\n if (resp.status) {\n setLoanList(mustBeArray(resp.data));\n setTotalRecords(resp.total);\n }\n });\n } else if (activeSubKey === \"currentLoans\") {\n if (\n profileType === BROKER_USER ||\n profileType === LAW_FIRM_USER ||\n ((profileType === LENDER_USER &&\n (userType == ADMIN_USER || isOwnLenderProfile)) ||\n (lender && lender.showCurrentLoanBook))\n ) {\n getCurrentLoans({\n id: userId,\n profileType: profileType,\n userType: userType,\n cancelToken: signal.token,\n queryParams: getQueryParams(),\n generalView\n }).then(resp => {\n setListLoading(false);\n if (resp.status) {\n setLoanList(mustBeArray(resp.data));\n setTotalRecords(resp.total);\n }\n });\n }\n } else if (activeSubKey === \"dischargedLoans\") {\n if (\n profileType === BROKER_USER ||\n profileType === LAW_FIRM_USER ||\n ((profileType === LENDER_USER &&\n (userType == ADMIN_USER || isOwnLenderProfile)) ||\n (lender && lender.showDischargedLoanBook))\n ) {\n getDischargedLoans({\n id: userId,\n profileType: profileType,\n userType: userType,\n cancelToken: signal.token,\n queryParams: getQueryParams(),\n generalView\n }).then(resp => {\n setListLoading(false);\n if (resp.status) {\n setLoanList(mustBeArray(resp.data));\n setTotalRecords(resp.total);\n }\n });\n }\n } else if (activeSubKey === \"doneWithMeLoans\") {\n if (\n profileType === LENDER_USER ||\n profileType === BROKER_USER ||\n profileType === DUAL_USER\n ) {\n getDoneWithMeLoans({\n id: userId,\n profileType,\n cancelToken: signal.token,\n queryParams: getQueryParams()\n }).then(resp => {\n setListLoading(false);\n if (resp.status) {\n setLoanList(mustBeArray(resp.data));\n setTotalRecords(resp.total);\n }\n });\n }\n }\n };\n\n const handleTableChange = (pagination, filters, sorter) => {\n setPaginationConfig({\n pageSize: 20,\n page: pagination.current\n });\n\n setSortInfo({\n field: sorter.field,\n order: !sorter.order\n ? undefined\n : sorter.order === \"ascend\"\n ? \"asc\"\n : \"desc\"\n });\n };\n\n const formatDecimalToCurrency = value => {\n return value\n ? value.toLocaleString(\"en-US\", {\n style: \"currency\",\n currency: \"USD\",\n minimumFractionDigits: 0,\n\n maximumFractionDigits: 0\n })\n : \"$0\";\n };\n\n const formatDecimalWithDefaultValue = (value, precision) => {\n return value\n ? value.toFixed(precision)\n : value == 0\n ? (0).toFixed(precision)\n : \"\";\n };\n\n const formatDecimal2 = value => {\n return value ? value.toFixed(2) : \"\";\n };\n\n const tablePagination = {\n current: paginationConfig?.page,\n total: totalRecords,\n pageSize: paginationConfig.pageSize ?? 20\n };\n\n const handleProfileClick = (record, actionSource) => {\n if (actionSource === \"broker\") {\n history.push(\n !generalView\n ? `/users/${record.attributedBrokerId}/broker`\n : `/general/brokers/${record.attributedBrokerId}`\n );\n } else if (actionSource === \"lender\") {\n history.push(`/users/${record.attributedLenderId}/lender`);\n } else if (actionSource === \"lenderList\") {\n history.push(`/users/${record.loanLenderId}/lender`);\n } else if (actionSource === \"brokerList\") {\n history.push(\n !generalView\n ? `/users/${record.loanBrokerId}/broker`\n : `/general/brokers/${record.loanBrokerId}`\n );\n }\n };\n\n const handleLoanNumberClick = record => {\n history.push(\n generalView ? `/general/loans/${record.id}` : `/loans/${record.id}/view`\n );\n };\n\n const checkIfUserIsLawfirm = async () => {\n const isLawfirm = await isLawFirmUserPolicy(user.roles, user.permissions, user);\n setIsUserLawfirm(isLawfirm);\n }\n\n useEffect(\n () => {\n let isBroker = profileType === BROKER_USER;\n setIsBrokerProfile(isBroker);\n checkIfUserIsLawfirm();\n if (\n activeSubKey === \"matchingYourSearchLoans\" ||\n activeSubKey === \"preSettlementLoans\" ||\n activeSubKey === \"currentLoans\" ||\n activeSubKey === \"dischargedLoans\" ||\n activeSubKey === \"doneWithMeLoans\"\n ) {\n setLoanList([]);\n handleFetch();\n }\n },\n [userId, activeSubKey, paginationConfig] //function to retrieve list for tab\n );\n\n const { colTemplate, expandedRowLoanListColumns } = useLoansTableColumns({\n profileType,\n asDefaultDisplayFormatDate,\n formatDecimal2,\n formatDecimalToCurrency,\n formatDecimalWithDefaultValue,\n generalView,\n handleLoanNumberClick,\n handleProfileClick,\n sortInfo,\n isUserLawfirm\n });\n return (\n
\n {/* FOR BROKER PROFILE VIEW */}\n (record.loanLendersBrokers > 1 ? 0 : \"\")}\n expandedRowRender={\n !generalView\n ? record =>\n record.loanLendersBrokers.length > 1 && (\n \n )\n : undefined\n }\n columns={colTemplate}\n dataSource={mustBeArray(loanList)}\n pagination={tablePagination}\n onChange={handleTableChange}\n loading={loading}\n />\n\n {/* FOR LENDER PROFILE VIEW */}\n \n
\n );\n};\n\nconst mapStateToProps = state => {\n return {\n member: state.member || {},\n profile: (state.profile && state.profile.details) || {},\n user: state.authorization && state.authorization.user,\n lender: state.profile.lender,\n broker: state.profile.broker,\n lawFirm: state.profile.lawFirm\n };\n};\nconst mapDispatchToProps = {\n getMatchingLoans,\n getPresettledLoans,\n getCurrentLoans,\n getDischargedLoans,\n getDoneWithMeLoans\n};\nexport default connect(\n mapStateToProps,\n mapDispatchToProps\n)(LoansTables);\n","import { Tabs } from \"antd\";\nimport React, { Component, Fragment } from \"react\";\nimport { AuthorizedView } from \"../../Common/Authorization/AuthorizedView\";\nimport FirstRankingImproved from \"../../components/Profile/FirstRankingImproved\";\nimport SecondRankingImproved from \"../../components/Profile/SecondRankingImproved\";\nimport Construction from \"../../components/Profile/Construction\";\nimport Mezzanine from \"../../components/Profile/Mezzanine\";\nimport LandBank from \"../../components/Profile/LandBank\";\nimport Rural from \"../../components/Profile/Rural\";\nimport MatchesList from \"../../components/Profile/MatchesList\";\nimport Details from \"../../components/Profile/Details\";\nimport FilesList from \"../../components/Profile/FilesList\";\nimport { isSystemUserPolicy } from \"../../Common/Authorization/policies/isSystemUserPolicy\";\nimport {\n isLenderOwnProfilePolicy,\n isLenderUserPolicy,\n isNotLenderOwnProfilePolicy,\n isUserInvolvedPolicy,\n isUserUninvolvedPolicy\n} from \"../../Common/Authorization/policies/isLenderUserPolicy\";\nimport {\n isBrokerUserPolicy,\n isOnlyBrokerUserPolicy\n} from \"../../Common/Authorization/policies/isBrokerUserPolicy\";\n\nimport LoansTable from \"../../components/Loans/LoansTable\";\nimport Loading from \"../../components/loading\";\nimport { isLawFirmUserPolicy } from \"../../Common/Authorization/policies/isLawFirmUserPolicy\";\n\nclass LenderProfile extends Component { \n state={ \n pageLoading: true\n }\n\n componentDidMount(){\n setTimeout(() => {\n this.setState({pageLoading: false});\n }, 500);\n }\n UNSAFE_componentWillReceiveProps(newProps){\n if(newProps.match.url !== this.props.match.url){\n this.setState({pageLoading: true});\n setTimeout(() => {\n this.setState({pageLoading: false})\n }, 500);\n } \n }\n\n \n render() {\n\n const {\n handleTabChange,\n handleSubTabChange,\n activeKey,\n activeSubKey,\n lender,\n loanSearchQueryParams,\n match\n } = this.props;\n const firstLoanCriteria = lender.firstRankingLoanCriteriaStatus === 0 ? \"loan-criteria-lapsed\" : \n (lender.firstRankingLoanCriteriaStatus === 1 ? \"loan-criteria-verified\" : \"loan-criteria-cleared\");\n const secondLoanCriteria = lender.secondRankingLoanCriteriaStatus === 0 ? \"loan-criteria-lapsed\" : \n (lender.secondRankingLoanCriteriaStatus === 1 ? \"loan-criteria-verified\" : \"loan-criteria-cleared\");\n const constructionLoanCriteria = lender.constructionLoanCriteriaStatus === 0 ? \"loan-criteria-lapsed\" : \n (lender.constructionLoanCriteriaStatus === 1 ? \"loan-criteria-verified\" : \"loan-criteria-cleared\");\n const mezzanineLoanCriteria = lender.mezzanineLoanCriteriaStatus === 0 ? \"loan-criteria-lapsed\" : \n (lender.mezzanineLoanCriteriaStatus === 1 ? \"loan-criteria-verified\" : \"loan-criteria-cleared\");\n const landBankLoanCriteria = lender.landBankLoanCriteriaStatus === 0 ? \"loan-criteria-lapsed\" : \n (lender.landBankLoanCriteriaStatus === 1 ? \"loan-criteria-verified\" : \"loan-criteria-cleared\");\n const ruralLoanCriteria = lender.ruralLoanCriteriaStatus === 0 ? \"loan-criteria-lapsed\" : \n (lender.ruralLoanCriteriaStatus === 1 ? \"loan-criteria-verified\" : \"loan-criteria-cleared\");\n return ( \n this.state.pageLoading ? \n \n :\n
\n \n \n \n \n \n {\n loanSearchQueryParams != null ? (\n \n \n \n ) : ''\n }\n \n \n \n \n \n \n \n \n \n \n {\n lender && ((activeSubKey === 'currentLoans' && !lender.showCurrentLoanBook) || (activeSubKey === 'dischargedLoans' && !lender.showDischargedLoanBook)) && \n (Privacy Setting Engaged} disabled={true} key=\"privacySetting\" className=\"darkred\" >\n )\n }\n \n \n \n \n \n 1st Ranking
\n }>\n \n \n 2nd Ranking
\n }>\n \n \n Construction
\n }>\n \n \n Mezzanine
\n }>\n \n \n Land Bank
\n }>\n \n \n Rural
\n }>\n \n \n \n \n \n \n \n \n
\n \n \n \n \n \n \n \n {/* Dual Profile user */}\n \n \n \n \n \n {\n loanSearchQueryParams != null ? (\n \n \n \n ) : ''\n }\n \n \n {\n lender && lender.showCurrentLoanBook ? (\n \n ) : (\n
\n

This Lender has engaged Privacy Settings for their Current Loans

\n
\n )\n }\n
\n \n {\n lender && lender.showDischargedLoanBook ? (\n \n ) : (\n
\n

This Lender has engaged Privacy Settings for their Discharged Loans

\n
\n )\n }\n
\n \n \n \n
\n \n \n \n {lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.firstRanking && (\n \n \n \n )}\n\n {lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.secondRanking && (\n \n \n \n )}\n\n {lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.construction && (\n \n \n \n )}\n\n {lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.mezzanine && (\n \n \n \n )}\n\n {lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.landBank && (\n \n \n \n )}\n\n {lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.rural && (\n \n \n \n )}\n \n \n \n \n \n \n
\n \n \n \n \n {/* TODO: */}\n {/* This bit matches with isOnlyBrokerUserPolicy - Refactor required */}\n \n \n \n \n \n \n {\n loanSearchQueryParams != null ? (\n \n \n \n ) : ''\n }\n \n \n {\n lender && lender.showCurrentLoanBook ? (\n \n ) : (\n
\n

This Lender has engaged Privacy Settings for their Current Loans

\n
\n )\n }\n
\n \n {\n lender && lender.showDischargedLoanBook ? (\n \n ) : (\n
\n

This Lender has engaged Privacy Settings for their Discharged Loans

\n
\n )\n }\n
\n
\n \n \n \n {lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.firstRanking && (\n \n \n \n )}\n\n {lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.secondRanking && (\n \n \n \n )}\n\n {lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.construction && (\n \n \n \n )}\n\n {lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.mezzanine && (\n \n \n \n )}\n\n {lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.landBank && (\n \n \n \n )}\n\n {lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.rural && (\n \n \n \n )}\n \n \n \n \n \n \n
\n \n \n \n \n \n \n \n \n \n {\n loanSearchQueryParams != null ? (\n \n \n \n ) : ''\n }\n \n \n \n \n \n \n \n \n \n {\n lender && ((activeSubKey === 'currentLoans' && !lender.showCurrentLoanBook) || (activeSubKey === 'dischargedLoans' && !lender.showDischargedLoanBook)) && \n (Privacy Setting Engaged} disabled={true} key=\"privacySetting\" className=\"darkred\" >\n )\n }\n \n \n \n \n 1st Ranking
\n }>\n \n \n 2nd Ranking
\n }>\n \n \n Construction
\n }>\n \n \n Mezzanine
\n }>\n \n \n Land Bank
\n }>\n \n \n Rural
\n }>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {\n loanSearchQueryParams != null ? (\n \n \n \n ) : ''\n }\n \n \n {\n lender && lender.showCurrentLoanBook ? (\n \n ) : (\n
\n

This Lender has engaged Privacy Settings for their Current Loans

\n
\n )\n }\n
\n \n {\n lender && lender.showDischargedLoanBook ? (\n \n ) : (\n
\n

This Lender has engaged Privacy Settings for their Discharged Loans

\n
\n )\n }\n
\n \n \n \n
\n \n \n \n {lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.firstRanking && (\n \n \n \n )}\n {lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.secondRanking && (\n \n \n \n )}\n {lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.construction && (\n \n \n \n )}\n {lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.mezzanine && (\n \n \n \n )}\n {lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.landBank && (\n \n \n \n )}\n {lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.rural && (\n \n \n \n )}\n \n \n \n \n \n \n
\n \n \n \n \n \n \n \n \n \n \n {\n loanSearchQueryParams != null ? (\n \n \n \n ) : ''\n }\n \n \n {\n lender && lender.showCurrentLoanBook ? (\n \n ) : (\n
\n

This Lender has engaged Privacy Settings for their Current Loans

\n
\n )\n }\n
\n \n {\n lender && lender.showDischargedLoanBook ? (\n \n ) : (\n
\n

This Lender has engaged Privacy Settings for their Discharged Loans

\n
\n )\n }\n
\n \n \n \n
\n \n \n \n {lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.firstRanking && (\n \n \n \n )}\n {lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.secondRanking && (\n \n \n \n )}\n {lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.construction && (\n \n \n \n )}\n {lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.mezzanine && (\n \n \n \n )}\n {lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.landBank && (\n \n \n \n )}\n {lender &&\n lender.categoriesOffered &&\n lender.categoriesOffered.rural && (\n \n \n \n )}\n \n \n \n \n \n \n
\n \n \n \n \n
\n );\n }\n}\n\nexport default LenderProfile;\n","import React from \"react\";\nimport LenderProfile from \"../../pages/Profile/Lender\";\n\nconst UserDetails = (props) => {\n return (\n \n );\n};\n \nexport default UserDetails;\n","import { Avatar } from 'antd';\nimport React from 'react';\nconst UserProfileImage = ({url, height}) => {\n return url ? (\n \n ) : ( \n \n )\n}\n \nexport default UserProfileImage;","import React, { createContext, useContext, forwardRef } from \"react\";\nimport { Form } from \"antd\";\n\nexport const FormDecoratorContext = createContext();\nexport const FormDecoratorProvider = ({ decorator, children }) => (\n \n {children}\n \n);\n\nexport const useDecoratorContext = () => useContext(FormDecoratorContext);\n\nexport const DecoratedFormControl = forwardRef(\n /**\n * @param {{ decoratorFunc, name: string, rules: any[], label: string, className: SVGFESpecularLightingElement, validateStatus: \"error\" | \"validating\" | \"success\" | \"warning\", help: string, valuePropName?: string, labelCol: any, wrapperCol: any }}\n */\n (\n {\n decoratorFunc,\n name,\n rules,\n label,\n validateStatus,\n help,\n className,\n valuePropName = \"value\",\n wrapperCol,\n labelCol,\n children\n },\n ref\n ) => {\n // If Decorator func is available via props, we use that. Else we try getting it from a context\n if (decoratorFunc) {\n return (\n \n {decoratorFunc(name, { rules: rules })(children)}\n \n );\n }\n\n const decorator = useDecoratorContext(FormDecoratorContext);\n\n if (decorator) {\n return (\n \n {decorator(name, { rules: rules, valuePropName })(children)}\n \n );\n }\n\n throw new Error(\"Could not find any form decorator to use\");\n }\n);\n","import React, { useEffect, useState } from \"react\";\nimport { DecoratedFormControl } from \"../Common/decoratedFormControl\";\nimport { Input, Radio, Select } from \"antd\";\nimport { useDispatch } from \"react-redux\";\nimport { statesLookup } from \"../../actions/lookup\";\nimport { mustBeArray } from \"../../libs\";\n\nconst PortraitForm = ({\n form,\n isSystemUser,\n user,\n handleFormChange,\n company,\n portraits\n}) => {\n const [statesList, setStatesList] = useState([]);\n const dispatchAction = useDispatch();\n\n const getStatesList = async () => {\n dispatchAction(statesLookup()).then(response =>\n setStatesList(mustBeArray(response?.data?.data))\n );\n };\n\n useEffect(() => {\n getStatesList();\n }, []);\n\n useEffect(() => {\n form.setFieldsValue({\n firstname: user.firstname,\n lastname: user.lastname,\n stateKey: user.stateKey,\n email: user.email,\n mobileNumber: user.mobileNumber,\n linkedInProfile: user.linkedInProfile,\n isVisible: user.isVisible,\n companyACN: company.companyACN,\n companyName: company.companyName,\n website: company.website\n });\n }, [user?.individualId]);\n\n const isVisibleCount = portraits?.filter(p => p.isVisible)?.length;\n return (\n
\n \n \n handleFormChange({ label: \"firstname\", value: e.target.value })\n }\n />\n \n \n \n handleFormChange({ label: \"lastname\", value: e.target.value })\n }\n />\n \n \n \n handleFormChange({\n label: \"isVisible\",\n value: e.target.value\n })\n }\n disabled={isVisibleCount === 1 && user.isVisible}\n >\n Visible\n Hidden\n \n \n \n handleFormChange({ label: \"stateKey\", value: e })}\n >\n {mustBeArray(statesList).map((s, key) => (\n \n {s.id}\n \n ))}\n \n \n \n \n handleFormChange({ label: \"email\", value: e.currentTarget.value })\n }\n disabled={!isSystemUser}\n />\n \n \n \n handleFormChange({\n label: \"mobileNumber\",\n value: e.currentTarget.value\n })\n }\n disabled={!isSystemUser}\n />\n \n \n \n handleFormChange({\n label: \"linkedInProfile\",\n value: e.currentTarget.value\n })\n }\n />\n \n
\n );\n};\n\nexport default PortraitForm;\n","import { Button, Icon, Modal } from 'antd';\nimport React, { Fragment, useState } from 'react';\nimport { deleteIndividualPortrait } from '../../actions/profile';\nimport { errorDisplay } from '../../libs';\nimport { useDispatch } from 'react-redux';\nimport axios from 'axios';\n\nconst PortraitRemove = ({name, companyName, soleUser, handleRemove, id}) => {\n const [visible, setVisible] = useState(false);\n const [loading, setLoading] = useState(false);\n const signal = axios.CancelToken.source(); \n const handleClose = () => setVisible(false);\n const dispatchAction = useDispatch();\n const handleDelete = () => {\n setLoading(true);\n dispatchAction(deleteIndividualPortrait({id, cancelToken: signal.token})).then(resp => {\n setLoading(false);\n if(resp?.status){\n handleRemove();\n setVisible(false);\n return;\n }\n errorDisplay(resp?.data?.errors);\n })\n };\n\n return(\n \n
setVisible(true)}>\n Remove\n
\n\n \n Cancel\n ,\n ,\n ]}\n >\n {\n soleUser ? \n {name} is the sole User associated with {companyName}. You cannot delete him until you add someone else.\n :\n \n

You are about to delete {name}

\n

Are you sure you wish to proceed?

\n
\n }\n
\n
\n )\n};\nexport default PortraitRemove;","import { Pagination, Upload, message } from \"antd\";\nimport { UserProfileImage } from \"../Common\";\nimport React, { Fragment, useEffect, useMemo, useState } from \"react\";\nimport _ from \"lodash\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { Visible } from \"../Common/visiblityWrapper\";\nimport { getDataUrlFromBlob, mustBeArray, constructUrl } from \"../../libs\";\nimport PortraitForm from \"./portrait-form\";\nimport PortraitRemove from \"./PortraitRemove\";\nimport { updateActivePortrait } from \"../../actions/profile\";\nimport { PROFILE_HAS_NOT_ACCEPTED_INVITATION, CAN_RESET_PROFILE_PASSWORD } from \"../../constants/routeOptions\";\nimport { updateRouteOptions } from \"../../actions/member\";\nimport { SuperSEO } from \"react-super-seo\";\n\nconst PortraitView = ({\n portraits = [],\n form,\n handleFormChange,\n currentPage,\n setCurrent,\n setCurrentPortrait,\n isSystemUser,\n company = {\n companyACN: \"\",\n companyName: \"\",\n website: \"\"\n },\n portraitsUpdated,\n handleRemove\n}) => {\n const dispatchAction = useDispatch();\n const routesOptions = useSelector(state => mustBeArray(state.member?.routesOptions));\n const [user, setUser] = useState({});\n const editMode = useSelector(state => state?.member?.header?.editMode);\n\n useEffect(() => {\n const index = currentPage ? currentPage - 1 : 0;\n setUser(portraits?.[index] ? portraits[index] : {});\n }, [currentPage, portraitsUpdated]);\n\n useEffect(() => {\n dispatchAction(updateActivePortrait(user));\n // Check if user has accepted invitiation,\n if(user.hasAcceptedInvitation){\n const updatedOptions = [...routesOptions.filter(o => o.id != CAN_RESET_PROFILE_PASSWORD[0].id && o.id != PROFILE_HAS_NOT_ACCEPTED_INVITATION[0].id), CAN_RESET_PROFILE_PASSWORD[0]];\n dispatchAction(\n updateRouteOptions({\n routeOptions: updatedOptions\n })\n );\n return;\n }\n else {\n const updatedOptions = [...routesOptions.filter(o => o.id != CAN_RESET_PROFILE_PASSWORD[0].id && o.id != PROFILE_HAS_NOT_ACCEPTED_INVITATION[0].id), PROFILE_HAS_NOT_ACCEPTED_INVITATION[0]];\n dispatchAction(\n updateRouteOptions({\n routeOptions: updatedOptions\n })\n );\n return;\n \n }\n // Add reminder option to the list\n }, [user]);\n\n const handleChange = page => {\n setCurrent(page);\n setUser(portraits[page - 1]);\n setCurrentPortrait(portraits[page-1])\n };\n\n\n const updateAvatar = async fileInfo => {\n const isImage = /image\\//.test(fileInfo.file.type);\n if (!fileInfo.file) {\n return;\n }\n\n if (!isImage) {\n message.error(\"You can only choose image files.\");\n return;\n }\n\n const url = await getDataUrlFromBlob(fileInfo.file);\n setUser({\n ...user,\n previewProfileImage: {\n url: url,\n file: fileInfo.file,\n individualId: user.individualId\n }\n });\n handleFormChange({\n label: \"previewProfileImage\",\n value: { url, file: fileInfo.file, individualId: user.individualId }\n });\n };\n\n function renderCustomPagination(page = 1, type = '', originalElement = <>) {\n if(type === 'page' && portraits.length > 1){\n return {`${page} of ${portraits.length}`};\n }\n return originalElement;\n }\n\n const metadata = useMemo(()=>{\n const title = `${user.firstname} ${user.lastname} - ${company.companyName}`;\n\n const otherNames = portraits.map(x => `${x.firstname} ${x.lastname}`).join(\" - \");\n const description = `${user.firstname} ${user.lastname} - ${company.companyName} \n ${otherNames} ${company.website ? ` - ${company.website}` : \"\"}`;\n return {\n title,\n description\n }\n }, [user, company]);\n\n useEffect(()=>{\n return () =>{\n // Run on dismount\n document.title = \"Omicron Private Mortgage Network\";\n }\n },[]);\n\n return (\n user && (\n
\n \n \n \n
\n
\n            {metadata.description}\n          
\n
\n {editMode ? (\n updateAvatar(e)}\n style={{ height: \"165px\", flex: 1, width: \"165px\" }}\n >\n \n Drag image here\n \n \n \n \n \n ) : (\n \n )}\n
\n {editMode ? (\n \n ) : (\n \n
{`${user?.firstname} ${user?.lastname}`}
\n
{`${user?.stateKey}, Australia`}
\n \n {user?.email}\n \n
{user?.mobileNumber}
\n \n
\n )}\n
\n {portraits?.length >= 1 && (\n \n )}\n {editMode && isSystemUser && (\n \n )}\n
\n
\n
\n )\n );\n};\nexport default PortraitView;\n","import { Rate } from \"antd\";\nimport React from \"react\";\nimport { getRoundedRatings } from \"../libs\";\n\nconst RateView = ({ value, className, loansCount }) => {\n return (\n \n
\n {value?.toFixed(1)}\n
Out of 5 Stars
\n
\n \n \n {value === 5 && (\"Top Rated!\")}\n {value !== 5 && (<>Average rating across {loansCount}

reviewed loans)}\n \n \n );\n};\nexport default RateView;\n","import React from 'react';\n\nconst LabelValuePair = ({valueClassName,labelClassName, label, value, smallValue=false, mobileView}) => {\n const valueFlex = mobileView ? \"flex-1-1-60\" : smallValue ? \"flex-1-1-80\" : \"flex-1-1-60\";\n const labelFlex = mobileView ? \"flex-1-1-26\" : smallValue ? \"flex-1-1-12\" : \"flex-1-1-26\";\n return ( \n
\n {value}\n {label}\n
\n );\n}\n \nexport default LabelValuePair;","import { BROKER_USER, LENDER_USER } from \"../../../constants/systemUsers\";\nimport { convertCurrenyToHighestFigure } from \"../../../libs\";\nimport LabelValuePair from \"./LabelValuePair\";\nimport { List } from \"antd\";\nimport React from 'react';\n\nconst KeyMetrics = ({ user, userType }) => {\n const {\n dischargedLoansCount,\n currentLoanBook,\n dischargedLoanBook,\n currentLoansCount,\n shortfall, \n positiveLenderReviewsCount,\n positiveBrokerReviewsCount,\n positiveReviewsCount\n } = user;\n const userTypeText = userType === LENDER_USER ? \"Broker\" : userType === BROKER_USER ? \"Lender\" : \"Financier\";\n return (\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n );\n};\n\nexport default KeyMetrics;\n","import { Button, Col, Icon, Modal, Row } from 'antd';\nimport React, { Fragment, useEffect, useState } from 'react';\nimport { mustBeArray } from '../../libs';\n\nconst OrderOfAppearance = ({portraits, companyName, handleFormSave}) => {\n const [visible, setVisible] = useState(false);\n const [currentPortraits, setCurrentPortraits] = useState([]);\n const title = `Order Users ${companyName ? `for ${companyName}` : \"\"}`\n useEffect(() => {\n if(visible){\n setCurrentPortraits(mustBeArray(portraits));\n }\n }, [portraits, visible]);\n\n const handleCancel = () => {\n setVisible(false);\n setCurrentPortraits([]);\n };\n\n const handleUp = (index) => {\n let tempPortraits = [...currentPortraits];\n const selectedPortrait = tempPortraits[index];\n tempPortraits.splice(index, 1);\n tempPortraits.splice(index - 1, 0, selectedPortrait);\n setCurrentPortraits(tempPortraits);\n };\n\n const handleDown = (index) => {\n let tempPortraits = [...currentPortraits];\n const selectedPortrait = tempPortraits[index];\n tempPortraits.splice(index, 1);\n tempPortraits.splice(index + 1, 0, selectedPortrait);\n setCurrentPortraits(tempPortraits);\n };\n\n const handleSave = () => {\n const updatedPortraits = [...currentPortraits].map((portrait, index) => ({...portrait, appearanceOrder: index}));\n handleFormSave({label: \"portraits\", value: updatedPortraits});\n setVisible(false);\n };\n\n return \n \n \n {\n currentPortraits?.map((portrait, index) => {\n return \n \n {index !==0 && handleUp(index)} />}\n {index !== currentPortraits.length - 1 && handleDown(index)} />}\n \n \n {portrait.firstname} {portrait.lastname}\n \n \n }) \n }\n \n \n}\nexport default OrderOfAppearance;","import React, { Fragment, useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Visible } from \"../../Common/visiblityWrapper\";\nimport { Input, Upload, message } from \"antd\";\nimport { getDataUrlFromBlob, constructUrl } from \"../../../libs\";\nimport { DecoratedFormControl } from \"../../Common/decoratedFormControl\";\nimport OrderOfAppearance from \"../OrderOfAppearance\";\n\nconst UtilityCompany = ({ user, handleFormChange, form, isSystemUser }) => {\n const logo = user?.logoFile?.fileUrl;\n const previewLogo = user?.previewCompanyLogo?.url;\n const editMode = useSelector(state => state?.member?.header?.editMode);\n const [companyRequired, setCompanyRequired] = useState(false);\n\n useEffect(() => {\n const acn = form?.getFieldValue(\"companyACN\");\n setCompanyRequired(!!acn);\n }, [form?.getFieldValue(\"companyACN\")]);\n\n useEffect(() => {\n form.validateFields([\"companyName\", \"companyACN\"]);\n }, [companyRequired]);\n\n const updateAvatarLogo = async fileInfo => {\n const isImage = /image\\//.test(fileInfo.file.type);\n if (!fileInfo.file) {\n return;\n }\n\n if (!isImage) {\n message.error(\"You can only choose image files.\");\n return;\n }\n\n const url = await getDataUrlFromBlob(fileInfo.file);\n handleFormChange({ label: \"previewCompanyLogo\", value: { url, file: fileInfo.file } });\n };\n\n return (\n
\n {editMode ? (\n \n \n updateAvatarLogo(e)}\n style={{ height: \"75px\", width: \"165px\" }}\n >\n Drag Logo here\n \n \n \n \n
\n \n \n handleFormChange({ label: \"website\", value: e.target.value })\n }\n />\n \n
\n
\n \n \n handleFormChange({\n label: \"companyName\",\n value: e.target.value\n })\n }\n disabled={!isSystemUser}\n />\n \n
\n
\n ) : (\n \n {logo && }\n {user?.website && (\n \n {user?.website}\n \n )}\n {user?.companyName &&
{user?.companyName}
}\n {user?.companyACN &&
ACN {user?.companyACN}
}\n
\n )}\n
\n );\n};\nexport default UtilityCompany;\n","import { Select } from \"antd\";\nimport React, { useEffect, useState } from \"react\";\nimport { updateLeadScore } from \"../../../actions/profile\";\nimport Axios from \"axios\";\n\ninterface LeadScoreProps {\n leadScoreValue: string | null;\n companyId: string;\n isSystemUser: boolean;\n onChange?: (params: {label:string, value: string}) => void\n}\n\nconst LeadScoreOptions = [\n {\n label: \"A\",\n value: \"A\"\n },\n {\n label: \"B\",\n value: \"B\"\n },\n {\n label: \"C\",\n value: \"C\"\n },\n {\n label: \"D\",\n value: \"D\"\n },\n {\n label: \"E\",\n value: \"E\"\n }\n];\n\nexport default function LeadScore({\n leadScoreValue,\n isSystemUser,\n companyId,\n onChange = () => {}\n}: LeadScoreProps) {\n const signal = Axios.CancelToken.source();\n\n const [leadScore, setLeadScore] = useState(\"\");\n const [loading, setLoading] = useState(false);\n\n async function saveLeadScore(value: string) {\n setLoading(true);\n await updateLeadScore(signal.token, {\n id: companyId,\n leadScore: value\n }, isSystemUser);\n setLeadScore(value);\n onChange({\n label: \"leadScore\",\n value: value\n })\n setLoading(false);\n }\n\n useEffect(() => {\n setLeadScore(leadScoreValue || \"\");\n }, [leadScoreValue]);\n\n return (\n
\n Lead Score \n saveLeadScore(value)}\n allowClear={false}\n disabled={loading}\n loading={loading}\n >\n {LeadScoreOptions.map(data => {\n return (\n \n {data.label}\n \n );\n })}\n \n
\n );\n}\n","import { DatePicker, Select } from \"antd\";\nimport React, { useEffect, useState } from \"react\";\nimport moment from \"moment\";\nimport { updateFollowUpDate } from \"../../../actions/profile\";\nimport Axios from \"axios\";\n\ninterface FollowUpProps {\n followupDate: string | null;\n companyId: string;\n isSystemUser: boolean;\n onChange?: (params: { label: string; value: string }) => void;\n}\n\n// value uses formatting for moment.add()\nconst AddAmountOptions = [\n {\n label: \"One Week\",\n value: \"1w\"\n },\n {\n label: \"Two Weeks\",\n value: \"2w\"\n },\n {\n label: \"Three Weeks\",\n value: \"3w\"\n },\n {\n label: \"One Month\",\n value: \"1M\"\n },\n {\n label: \"Two Months\",\n value: \"2M\"\n },\n {\n label: \"Three Months\",\n value: \"3M\"\n },\n {\n label: \"Six Months\",\n value: \"6M\"\n },\n {\n label: \"One Year\",\n value: \"1y\"\n }\n];\n\nexport default function FollowUp({\n followupDate,\n isSystemUser,\n companyId,\n onChange = () => {}\n}: FollowUpProps) {\n const signal = Axios.CancelToken.source();\n\n const [dateValue, setDateValue] = useState(null);\n const [loading, setLoading] = useState(false);\n\n async function saveFollowupDate(date?: moment.Moment | null) {\n setLoading(true);\n const followupDate = date\n ? date.toISOString()\n : dateValue\n ? dateValue.toISOString()\n : \"\";\n await updateFollowUpDate(\n signal.token,\n {\n id: companyId,\n followupDate\n },\n isSystemUser\n );\n onChange({\n label: \"followupDate\",\n value: followupDate\n });\n setLoading(false);\n }\n\n function handleChangeFollowUpDate(value: moment.Moment | null) {\n setDateValue(value);\n saveFollowupDate(value);\n }\n\n function handleAddDate(valueToAdd: string) {\n if (valueToAdd && typeof valueToAdd === \"string\") {\n const format = valueToAdd.split(\"\");\n const amount = parseInt(format[0]) || 0;\n const unit: any = format[1] || \"ms\";\n handleChangeFollowUpDate(moment().add(amount, unit));\n }\n }\n\n useEffect(() => {\n setDateValue(\n moment(followupDate || \"\").isValid() ? moment(followupDate || \"\") : null\n );\n }, [followupDate]);\n\n return (\n <>\n
\n Follow up \n \n
\n
\n Add\n {\n handleAddDate(value);\n }}\n disabled={loading}\n >\n {AddAmountOptions.map(x => (\n \n {x.label}\n \n ))}\n \n
\n \n );\n}\n","import React, { Fragment, useEffect, useState } from \"react\";\nimport RateView from \"../../../Common/RateView\";\nimport KeyMetrics from \"../../FinderUtility/UserDisplayCard/KeyMetrics\";\nimport { Button, Input, Switch } from \"antd\";\nimport UtilityCompany from \"./utility-company\";\nimport { AuthorizedView } from \"../../../Common/Authorization/AuthorizedView\";\nimport { isSystemUserPolicy } from \"../../../Common/Authorization/policies/isSystemUserPolicy\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { DecoratedFormControl } from \"../../Common/decoratedFormControl\";\nimport OrderOfAppearance from \"../OrderOfAppearance\";\nimport { updateHeader } from \"../../../actions/member\";\nimport { isLawFirmUserPolicy } from \"../../../Common/Authorization/policies/isLawFirmUserPolicy\";\nimport LeadScore from \"./LeadScore\";\nimport FollowUp from \"./FollowUp\";\n\nconst ProfileUtility = ({\n userType,\n user,\n canToggleProfileSwitch,\n profileStatusLoading,\n showIsProfileActive,\n handleProfileActiveChange,\n masterSwitchLoading,\n handleMasterSwitchChange,\n showMasterSwitch,\n handleSave,\n form,\n handleFormChange,\n saveLoading = false,\n isSystemUser = false,\n isOwnProfile = false\n}) => {\n const [acnRequired, setACNRequired] = useState(false);\n const dispatchAction = useDispatch();\n\n if (!user) return null;\n const editMode = useSelector(state => state?.member?.header?.editMode);\n const userMember = useSelector(state => state.authorization?.user);\n const acnValidation = () => {\n if (\n form &&\n form.getFieldValue(\"companyName\") &&\n form.getFieldValue(\"companyACN\")\n )\n return 9;\n else return 0;\n };\n\n useEffect(() => {\n const company = form?.getFieldValue(\"companyName\");\n setACNRequired(!!company);\n }, [form?.getFieldValue(\"companyName\")]);\n\n useEffect(() => {\n form.validateFields([\"companyName\", \"companyACN\"]);\n }, [acnRequired]);\n\n const handleCancel = async () => {\n const isLawFirm = await isLawFirmUserPolicy(\n userMember.roles,\n userMember.permissions,\n userMember\n );\n dispatchAction(\n updateHeader({ header: { editMode: false, showSearchBox: !isLawFirm } })\n );\n };\n\n return (\n
\n \n
\n {editMode && (\n
\n \n
\n \n \n handleFormChange({\n label: \"companyACN\",\n value: e.target.value\n })\n }\n disabled={!isSystemUser}\n />\n \n
\n
\n )}\n \n
\n {/* Master Switch */}\n {showMasterSwitch && (\n \n {\" \"}\n Master Switch {user.isMasterSwitchOn ? \"On\" : \"Off\"}\n \n )}\n {showIsProfileActive && (\n \n {\" \"}\n Profile {user.isProfileActive ? \"Active\" : \"Paused\"}\n \n )}\n {(!isOwnProfile || isSystemUser) && (\n <>\n \n \n \n )}\n
\n
\n \n
\n );\n};\n\nexport default ProfileUtility;\n\nconst FormActionButtons = ({ handleSave, handleCancel, saveLoading }) => {\n return (\n
\n \n Save\n \n \n
\n );\n};\n","import { Button, Modal } from \"antd\";\nimport React from \"react\";\n\nconst ConfirmationModal = ({\n visible,\n handleModalClose,\n handleConfirm,\n confirmationText = <>,\n title = \"\",\n centered = true\n}) => {\n return (\n \n Okay\n ,\n \n ]}\n title={title}\n centered={centered}\n >\n {confirmationText}\n \n );\n};\nexport default ConfirmationModal;\n","import { BROKER_USER, LAW_FIRM_USER, LENDER_USER } from \"../constants/systemUsers\";\nimport { BROKER_PROFILE_STATUS_ACTIVE_SELF_WARNING, BROKER_PROFILE_STATUS_ACTIVE_SYSTEM_USER_WARNING, BROKER_PROFILE_STATUS_PAUSE_SELF_WARNING, BROKER_PROFILE_STATUS_PAUSE_SYSTEM_USER_WARNING, LAW_FIRM_PROFILE_STATUS_ACTIVE_SELF_WARNING, LAW_FIRM_PROFILE_STATUS_ACTIVE_SYSTEM_USER_WARNING, LAW_FIRM_PROFILE_STATUS_PAUSE_SELF_WARNING, LAW_FIRM_PROFILE_STATUS_PAUSE_SYSTEM_USER_WARNING, LENDER_PROFILE_STATUS_ACTIVE_SELF_WARNING, LENDER_PROFILE_STATUS_ACTIVE_SYSTEM_USER_WARNING, LENDER_PROFILE_STATUS_PAUSE_SELF_WARNING, LENDER_PROFILE_STATUS_PAUSE_SYSTEM_USER_WARNING } from \"../constants/warnings\";\n\nexport const getProfileStatusWarning = ({ profileType, userType, isProfileActive }) => {\n switch (profileType) {\n case \"lender\":\n if (isProfileActive) {\n return userType === LENDER_USER\n ? LENDER_PROFILE_STATUS_PAUSE_SELF_WARNING\n : LENDER_PROFILE_STATUS_PAUSE_SYSTEM_USER_WARNING;\n } else {\n return userType === LENDER_USER\n ? LENDER_PROFILE_STATUS_ACTIVE_SELF_WARNING\n : LENDER_PROFILE_STATUS_ACTIVE_SYSTEM_USER_WARNING;\n }\n case \"broker\":\n if (isProfileActive) {\n return userType === BROKER_USER\n ? BROKER_PROFILE_STATUS_PAUSE_SELF_WARNING\n : BROKER_PROFILE_STATUS_PAUSE_SYSTEM_USER_WARNING;\n } else {\n return userType === BROKER_USER\n ? BROKER_PROFILE_STATUS_ACTIVE_SELF_WARNING\n : BROKER_PROFILE_STATUS_ACTIVE_SYSTEM_USER_WARNING;\n }\n case LAW_FIRM_USER:\n if (isProfileActive) {\n return userType === LAW_FIRM_USER\n ? LAW_FIRM_PROFILE_STATUS_PAUSE_SELF_WARNING\n : LAW_FIRM_PROFILE_STATUS_PAUSE_SYSTEM_USER_WARNING;\n } else {\n return userType === LAW_FIRM_USER\n ? LAW_FIRM_PROFILE_STATUS_ACTIVE_SELF_WARNING\n : LAW_FIRM_PROFILE_STATUS_ACTIVE_SYSTEM_USER_WARNING;\n }\n\n default:\n return \"\";\n }\n };","import { Form, Spin, message } from \"antd\";\nimport { useEffect, useState } from \"react\";\nimport { useLocation } from \"react-router-dom\";\nimport queryString from \"query-string\";\nimport { connect, useDispatch } from \"react-redux\";\nimport { updateHeader, updateRouteOptions } from \"../../actions/member\";\nimport {\n saveProfile,\n getLendersFirstRankingProfile,\n getLendersSecondRankingProfile,\n getLendersConstructionProfile,\n getLendersMezzanineProfile,\n getLendersLandBankProfile,\n getLendersRuralProfile,\n saveFirstRankingField,\n saveSecondRankingField,\n saveConstructionField,\n saveMezzanineField,\n saveLandBankField,\n saveRuralField,\n listLendersMatches,\n updateMatches,\n profileStatusTurnOn,\n profileStatusTurnOff,\n toggleSubscriptions,\n getLenderProfile,\n getBrokerProfile,\n setActiveProfile,\n masterSwitchTurnOff,\n masterSwitchTurnOn,\n updateIndividualProfileV2\n} from \"../../actions/profile\";\nimport {\n lendersLookUpHandler,\n listLendersMatchesLookup\n} from \"../../actions/lookup\";\nimport UserDetails from \"../../components/Profile/UserDetails\";\nimport {\n isLenderOwnProfilePolicy,\n isLenderUserPolicy\n} from \"../../Common/Authorization/policies/isLenderUserPolicy\";\nimport { isSystemUserPolicy } from \"../../Common/Authorization/policies/isSystemUserPolicy\";\nimport {\n isBrokerOwnProfilePolicy,\n isBrokerUserPolicy\n} from \"../../Common/Authorization/policies/isBrokerUserPolicy\";\nimport {\n isLawFirmOwnProfilePolicy,\n isLawFirmUserPolicy\n} from \"../../Common/Authorization/policies/isLawFirmUserPolicy\";\nimport {\n errorDisplay,\n evaluatePolicy,\n getActiveKey,\n getUsersProfileType,\n mustBeArray,\n userHasActionRights\n} from \"../../libs/utilities\";\nimport PortraitView from \"../../components/Profile/protrait-view\";\nimport ProfileUtility from \"../../components/Profile/Utility/utility\";\nimport {\n EMAIL_SUBSCRIPTIONS_OPTION_LENDER_USER,\n LENDER_PROFILE_ROUTES_WITHOUT_BROKER_PROFILE_SYSTEM_USER,\n LENDER_PROFILE_ROUTES_WITH_BROKER_PROFILE_SYSTEM_USER,\n PROFILE_EDIT_OPTION\n} from \"../../constants/routeOptions\";\nimport { LENDER_PROFILE_ACTIVE } from \"../../constants/action-type/profile\";\nimport authService from \"../../actions/AuthorizeService\";\nimport {\n ADMIN_USER,\n DUAL_USER,\n LENDER_USER\n} from \"../../constants/systemUsers\";\nimport _ from \"lodash\";\nimport ConfirmationModal from \"../../Common/ConfirmationModal\";\nimport React from \"react\";\nimport { getProfileStatusWarning } from \"../../libs/user\";\nimport {\n LENDER_MASTER_SWITCH_OFF_CONFIRMATION_TEXT,\n LENDER_MASTER_SWITCH_ON_CONFIRMATION_TEXT\n} from \"../../constants/warnings\";\nimport { FormDecoratorProvider } from \"../../components/Common/decoratedFormControl\";\n\nconst ProfileImpl = ({\n member,\n lendersLookUpHandler,\n updateHeader,\n match,\n lender,\n user,\n firstRanking,\n listLendersMatches,\n getLendersFirstRankingProfile,\n getLendersSecondRankingProfile,\n getLendersConstructionProfile,\n getLendersMezzanineProfile,\n getLendersLandBankProfile,\n getLendersRuralProfile,\n saveSecondRankingField,\n saveConstructionField,\n saveMezzanineField,\n saveLandBankField,\n saveRuralField,\n saveFirstRankingField,\n profileType,\n updateRouteOptions,\n profileStatusTurnOn,\n profileStatusTurnOff,\n toggleSubscriptions,\n getLenderProfile,\n individualUser,\n masterSwitchTurnOff,\n masterSwitchTurnOn,\n form,\n updateIndividualProfileV2,\n}) => {\n const dispatchAction = useDispatch();\n const [userProfile, setUserProfile] = useState({});\n const [portraitsUpdated, setPortraitsUpdated] = useState(false);\n const [current, setCurrent] = useState(1);\n const [currentPortrait, setCurrentPortrait] = useState(null);\n const { getFieldDecorator } = form;\n const { header } = member;\n const [activeKey, setActiveKey] = useState(\"\");\n const [activeSubKey, setActiveSubKey] = useState(\"\");\n const [userType, setUserType] = useState(null);\n const [pageLoading, setPageLoading] = useState(true);\n const [isSystemUser, setIsSystemUser] = useState(false);\n const [userHasPermissionToUpdate, setUsersPermission] = useState(false);\n const [initialized, setInitialized] = useState(false);\n const [profileStatusLoading, setProfileStatusLoading] = useState(false);\n const [canToggleProfileSwitch, setCanToggleProfileSwitch] = useState(false);\n const [confirmationModalVisible, setConfirmationModalVisible] = useState(\n false\n );\n const [confirmationText, setConfirmationText] = useState(\"\");\n const [activeField, setActiveField] = useState(\"\");\n const [saveLoading, setSaveLoading] = useState(false);\n const [isOwnProfile, setIsOwnProfile] = useState(false);\n\n const loansSearch = useLocation().search;\n const loanSearchQueryParams = loansSearch.length\n ? queryString.parse(loansSearch)\n : null;\n useEffect(() => {\n updateHeader({\n header: {\n title: header && header.title,\n action: \"edit\",\n page: \"profile\",\n enableBack: false,\n showSettings: true,\n showMasterSwitch: true,\n showIsProfileActive: true,\n hasSwitchProfile: true,\n editMode: false,\n showNotesButton: true,\n showOmicronBDM: true,\n currentPortraitIndividualId: lender.currentPortraitIndividualId ? \n lender.currentPortraitIndividualId : header.currentPortraitIndividualId,\n omicronBdm: lender.omicronBdmId\n ? { id: lender.omicronBdmId, name: lender.omicronBdm }\n : header.omicronBdm,\n showPageTitle: false,\n showDeactivatedMessage: !isSystemUser && (lender.isMasterSwitchOn === undefined ? false : !lender.isMasterSwitchOn),\n }\n });\n\n if (user.roles.length > 0 && !initialized) {\n \n getProfileDetails();\n setUserIsSystemUser();\n setInitialized(true);\n }\n }, [user, isSystemUser]);\n\n useEffect(() => {\n if(currentPortrait != null){\n updateHeader({\n header: {\n ...(member?.header ?? {}),\n currentPortraitIndividualId: lender.currentPortraitIndividualId ? \n lender.currentPortraitIndividualId : currentPortrait.individualId ? \n currentPortrait.individualId : member.header.currentPortraitIndividualId,\n emailSubcriptionProfileType: \"\"\n }\n });\n }\n\n }, [currentPortrait])\n\n useEffect(() => {\n getProfileDetails();\n setUserIsSystemUser();\n //setInitialized(true);\n loadUserInformation();\n }, [window.location.href]);\n\n useEffect(() => {\n setInitialActiveTab();\n }, [lender]);\n\n useEffect(() => {\n if (activeKey == \"loans\") {\n initLoanCriteriaSubKey();\n }\n }, [activeKey]);\n\n const loadUserInformation = async () => {\n setPageLoading(true);\n setCurrent(1);\n const id = match?.params?.id;\n const isLender = await isLenderUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n const systemUser = await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n let userDetails = await authService.getUser();\n let usersLenderId = userDetails[\"app.user.lenderid\"];\n\n const isOwnProfile =\n (await evaluatePolicy(user, isBrokerOwnProfilePolicy(id))) ||\n (await evaluatePolicy(user, isLenderOwnProfilePolicy(id)));\n setCanToggleProfileSwitch(systemUser || isOwnProfile);\n setIsOwnProfile(isOwnProfile);\n\n const roleType = systemUser\n ? ADMIN_USER\n : user.roles.length == 2\n ? DUAL_USER\n : isLender\n ? LENDER_USER\n : \"\";\n const resp = await getLenderProfile({\n id,\n userType: roleType,\n notClearProfileImage: false,\n isUserViewingSelfProfile: usersLenderId === id\n });\n if (resp.status && resp.data) {\n updateHeader({\n header: {\n ...(member?.header ?? {}),\n title: `${resp.data.firstname} ${resp.data.lastname}`,\n hasSwitchProfile: true,\n showDeactivatedMessage: !systemUser ? !resp.data.isMasterSwitchOn : false,\n }\n });\n const sortedPortraits = _.sortBy(\n resp.data.portraits ? resp.data.portraits : [],\n \"appearanceOrder\"\n );\n setUserProfile({ ...resp.data, portraits: sortedPortraits });\n setCurrentPortrait(sortedPortraits[0]);\n const isMyProfile = parseInt(user[\"app.user.lenderid\"]) === resp.data.id;\n const lenderBrokerId = resp.data.brokerId;\n dispatchAction(setActiveProfile(lenderBrokerId, resp.data.id, LENDER_PROFILE_ACTIVE));\n\n let newRouteOptions = lenderBrokerId\n ? LENDER_PROFILE_ROUTES_WITH_BROKER_PROFILE_SYSTEM_USER\n : LENDER_PROFILE_ROUTES_WITHOUT_BROKER_PROFILE_SYSTEM_USER;\n\n newRouteOptions = [...newRouteOptions].map(o => {\n o.name = o.id == 9 ? individualUser.companyName : o.name;\n return o;\n });\n\n const menuOptions = systemUser\n ? [...PROFILE_EDIT_OPTION]\n : isMyProfile\n ? [...EMAIL_SUBSCRIPTIONS_OPTION_LENDER_USER, ...PROFILE_EDIT_OPTION]\n : [];\n\n setPortraitsUpdated(!portraitsUpdated);\n \n await updateRouteOptions({\n routeOptions: _.concat(newRouteOptions, menuOptions)\n });\n }\n setPageLoading(false);\n };\n\n async function setInitialActiveTab() {\n if (!lender.resetTab) {\n return;\n }\n const lenderUser = await isLenderUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n const brokerUser = await isBrokerUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n const lawFirmUser = await isLawFirmUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n const systemUser = await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n const isOwnLenderProfile = await isLenderOwnProfilePolicy(\n match && match.params && match.params.id\n )(user.roles, user.permissions, user);\n\n const searchField =\n window.location &&\n window.location.search &&\n mustBeArray(window.location.search.split(\"=\"))[1];\n let activeTab = getActiveKey({\n profileType: \"lender\",\n activeKey: searchField\n });\n\n if (activeTab) {\n return setActiveKey(activeTab);\n }\n if (loanSearchQueryParams != null) {\n setActiveKey(\"loanstab\");\n setActiveSubKey(\"matchingYourSearchLoans\");\n } else {\n if (systemUser || isOwnLenderProfile) {\n setActiveKey(\"matches\");\n } else if (\n (lawFirmUser|| brokerUser || lenderUser) && !isOwnLenderProfile\n ) {\n setActiveKey(\"fileNotes\");\n } else {\n setActiveKey(\"loans\");\n setActiveSubKey(\"4\");\n }\n }\n }\n\n async function setUserIsSystemUser() {\n let isSysUser = await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n setIsSystemUser(isSysUser);\n }\n\n async function getProfileDetails() {\n var isSystemUser = await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n const isOwnProfile = await isLenderOwnProfilePolicy(\n match && match.params && match.params.id\n )(user.roles, user.permissions, user);\n const usertype = getUsersProfileType({\n isOwnProfile,\n isSystemUser,\n profileType\n });\n setUserType(usertype);\n setUsersPermission(\n userHasActionRights({ isSystemUser, profileType, isOwnProfile })\n );\n }\n\n async function handleTabChange(newKey) {\n const isLender = await isLenderUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n const isBroker = await isBrokerUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n const isSystemUser = await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n const isOwnProfile = await isLenderOwnProfilePolicy(\n match && match.params && match.params.id\n )(user.roles, user.permissions, user);\n\n if (newKey == \"loans\") {\n setActiveKey(\"loans\");\n setActiveSubKey(\"4\");\n } else if (newKey == \"loanstab\") {\n setActiveKey(\"loanstab\");\n if (loanSearchQueryParams != null) {\n setActiveSubKey(\"matchingYourSearchLoans\");\n } else {\n if (isSystemUser || isOwnProfile) {\n setActiveSubKey(\"preSettlementLoans\");\n } else {\n setActiveSubKey(\"currentLoans\");\n }\n }\n } else {\n setActiveKey(newKey);\n }\n }\n\n function initLoanCriteriaSubKey() {\n if (!lender || !lender.categoriesOffered) {\n return;\n } else {\n if (lender.categoriesOffered.firstRanking) {\n setActiveSubKey(\"4\");\n } else if (lender.categoriesOffered.secondRanking) {\n setActiveSubKey(\"5\");\n } else if (lender.categoriesOffered.construction) {\n setActiveSubKey(\"6\");\n } else if (lender.categoriesOffered.mezzanine) {\n setActiveSubKey(\"7\");\n } else if (lender.categoriesOffered.landBank) {\n setActiveSubKey(\"8\");\n } else if (lender.categoriesOffered.rural) {\n setActiveSubKey(\"9\");\n }\n }\n }\n\n function handleSubTabChange(newKey) {\n if (newKey == \"loans\") {\n setActiveSubKey(\"4\");\n } else if (newKey == \"loanstab\") {\n setActiveSubKey(\"preSettlementLoans\");\n } else {\n setActiveSubKey(newKey);\n }\n }\n\n const handleProfileActiveChange = () => {\n const warningMessage = getProfileStatusWarning({\n profileType,\n userType,\n isProfileActive: !!lender?.isProfileActive\n });\n setConfirmationText(warningMessage);\n setActiveField(\"isProfileActive\");\n setConfirmationModalVisible(true);\n };\n\n const handleConfirmProfileActiveChange = () => {\n const actionName = !!lender?.isProfileActive\n ? profileStatusTurnOff\n : profileStatusTurnOn;\n const actionMessage = !!lender?.isProfileActive\n ? \"Profile paused successfully.\"\n : \"Profile set to active successfully.\";\n actionName({ id: lender?.id, profileType: profileType }).then(resp => {\n handleModalClose();\n if (resp.status) {\n message.success(actionMessage);\n loadUserInformation();\n } else {\n errorDisplay(resp?.data?.errors);\n }\n });\n };\n\n const handleMasterSwitchChange = () => {\n const text = lender?.isMasterSwitchOn\n ? LENDER_MASTER_SWITCH_OFF_CONFIRMATION_TEXT\n : LENDER_MASTER_SWITCH_ON_CONFIRMATION_TEXT;\n setConfirmationText(text);\n setActiveField(\"isMasterSwitchActive\");\n setConfirmationModalVisible(true);\n };\n\n const handleConfirmMasterSwitchChange = () => {\n const actionName = lender?.isMasterSwitchOn\n ? masterSwitchTurnOff\n : masterSwitchTurnOn;\n const actionMessage = lender?.isMasterSwitchOn ? \"off\" : \"on\";\n actionName({ id: lender?.companyId, profileType: profileType }).then(\n resp => {\n if (resp.status) {\n message.success(\n `Master switch turned ${actionMessage} successfully.`\n );\n loadUserInformation();\n }\n }\n );\n };\n\n const handleModalClose = () => {\n setConfirmationModalVisible(false);\n setActiveField(\"\");\n setConfirmationText(\"\");\n };\n\n const handleConfirm = () => {\n activeField === \"isProfileActive\"\n ? handleConfirmProfileActiveChange()\n : handleConfirmMasterSwitchChange();\n handleModalClose();\n };\n\n const userId = match.params.id;\n\n const handleFormChange = ({ label, value }) => {\n if (\n label === \"website\" ||\n label === \"companyName\" ||\n label === \"companyACN\" ||\n label === \"previewCompanyLogo\" ||\n label === \"portraits\" ||\n label === \"leadScore\" ||\n label === \"followupDate\"\n ) {\n setUserProfile({ ...userProfile, [label]: value });\n setPortraitsUpdated(label === \"portraits\" ? !portraitsUpdated : portraitsUpdated);\n return;\n }\n const updatedPortraits = [...userProfile.portraits].map((portrait, i) => {\n if (i === current - 1) {\n portrait[label] = value;\n }\n return portrait;\n });\n setUserProfile({ ...userProfile, portraits: updatedPortraits });\n };\n\n const handleSave = () => {\n form.validateFields(err => {\n if (err) {\n console.log(err, \"error\");\n return;\n }\n setSaveLoading(true);\n const updatedProfile = {\n portraits: userProfile.portraits,\n website: userProfile.website,\n omicronBdmId: header?.omicronBdm?.id,\n logoFile: userProfile.logoFile,\n individualId: userProfile.individualId,\n companyACN: userProfile.companyACN,\n companyName: userProfile.companyName,\n previewCompanyLogo: userProfile.previewCompanyLogo,\n leadScore: userProfile.leadScore,\n followupDate: userProfile.followupDate\n };\n updateIndividualProfileV2(updatedProfile, isSystemUser, \"lender\", lender.id).then(\n resp => {\n setCurrent(1);\n setCurrentPortrait(userProfile.portraits[0]);\n setSaveLoading(false);\n if (resp.status) {\n message.success(\"Profile updated successfully.\");\n updateHeader({header: {editMode: false}});\n loadUserInformation();\n }\n }\n );\n });\n };\n\n const handleRemove = () => {\n const updatedPortraits = [...userProfile.portraits].filter(\n (_portrait, i) => i !== current - 1\n );\n setUserProfile({ ...userProfile, portraits: updatedPortraits });\n setCurrent(1);\n setPortraitsUpdated(!portraitsUpdated);\n\n message.success(\"User successfully deleted from this Profile and the Platform.\");\n };\n\n return pageLoading || userType === null ? (\n \n ) : (\n
\n
\n \n
\n \n \n
\n
\n
\n handleTabChange(newKey)}\n handleSubTabChange={newKey => handleSubTabChange(newKey)}\n loanSearchQueryParams={loanSearchQueryParams}\n lendersLookUpHandler={options =>\n lendersLookUpHandler({ ...options, userType })\n }\n getLendersFirstRankingProfile={options =>\n getLendersFirstRankingProfile({ ...options, userType })\n }\n getLendersSecondRankingProfile={options =>\n getLendersSecondRankingProfile({ ...options, userType })\n }\n getLendersConstructionProfile={options =>\n getLendersConstructionProfile({ ...options, userType })\n }\n getLendersMezzanineProfile={options =>\n getLendersMezzanineProfile({ ...options, userType })\n }\n getLendersLandBankProfile={options =>\n getLendersLandBankProfile({ ...options, userType })\n }\n getLendersRuralProfile={options =>\n getLendersRuralProfile({ ...options, userType })\n }\n listLendersMatches={options =>\n listLendersMatches({ ...options, userType })\n }\n listLendersMatchesLookup={options =>\n lendersLookUpHandler({\n ...options,\n userType,\n action: \"LENDER_MATCHES_STATUS_LOOKUP\"\n })\n }\n saveFirstRankingField={options =>\n saveFirstRankingField({ ...options, userType })\n }\n saveSecondRankingField={options =>\n saveSecondRankingField({ ...options, userType })\n }\n saveConstructionField={options =>\n saveConstructionField({ ...options, userType })\n }\n saveMezzanineField={options =>\n saveMezzanineField({ ...options, userType })\n }\n saveLandBankField={options =>\n saveLandBankField({ ...options, userType })\n }\n saveRuralField={options => saveRuralField({ ...options, userType })}\n firstRanking={firstRanking}\n match={match}\n userId={userId}\n updateMatches={updateMatches}\n profileType={profileType}\n isSystemUser={isSystemUser}\n userType={userType}\n lender={lender}\n userHasPermissionToUpdate={userHasPermissionToUpdate}\n getLenderProfile={getLenderProfile}\n getBrokerProfile={getBrokerProfile}\n toggleSubscriptions={toggleSubscriptions}\n user={user}\n />\n \n
\n );\n};\n\nconst mapStateToProps = state => {\n return {\n member: state.member || {},\n profile: (state.profile && state.profile.details) || {},\n user: state.authorization && state.authorization.user,\n lender: state.profile.lender,\n firstRanking: state.profile.firstRanking,\n activeProfile: state.profile && state.profile.activeProfile,\n individualUser:\n (state.authorization && state.authorization.individualUser) || {},\n routeOptions: mustBeArray(state?.member?.routesOptions)\n };\n};\n\nconst mapDispatchToProps = {\n updateHeader,\n saveProfile,\n lendersLookUpHandler,\n getLendersFirstRankingProfile,\n getLendersSecondRankingProfile,\n getLendersConstructionProfile,\n getLendersMezzanineProfile,\n getLendersLandBankProfile,\n getLendersRuralProfile,\n saveFirstRankingField,\n saveSecondRankingField,\n saveConstructionField,\n saveMezzanineField,\n saveLandBankField,\n saveRuralField,\n listLendersMatches,\n listLendersMatchesLookup,\n updateMatches,\n updateRouteOptions,\n profileStatusTurnOn,\n profileStatusTurnOff,\n toggleSubscriptions,\n getLenderProfile,\n getBrokerProfile,\n masterSwitchTurnOff,\n masterSwitchTurnOn,\n updateIndividualProfileV2\n};\n\nexport default connect(\n mapStateToProps,\n mapDispatchToProps\n)(Form.create({ name: \"LendeProfile\" })(ProfileImpl));\n","import React from \"react\";\nimport { Component } from \"react\";\nimport {\n QueryParameterNames,\n LogoutActions\n} from \"../constants/ApiAuthorizationConstants\";\nimport authService, {\n AuthenticationResultStatus\n} from \"../actions/AuthorizeService\";\nimport { connect } from \"react-redux\";\nimport { logoutUser } from \"../actions/authorization\";\n\n// The main responsibility of this component is to handle the user's logout process.\n// This is the starting point for the logout process, which is usually initiated when a\n// user clicks on the logout button on the LoginMenu component.\nexport class LogoutImpl extends Component {\n constructor(props) {\n super(props);\n\n this.state = {\n message: undefined,\n isReady: false,\n authenticated: false\n };\n }\n\n componentDidMount() {\n const action = this.props.action;\n switch (action) {\n case LogoutActions.Logout:\n if (window.history.state && !!window.history.state.state.local) {\n this.logout(this.getReturnUrl());\n } else {\n // This prevents regular links to /authentication/logout from triggering a logout\n this.setState({\n isReady: true,\n message: \"The logout was not initiated from within the page.\"\n });\n }\n break;\n case LogoutActions.LogoutCallback:\n this.processLogoutCallback();\n break;\n case LogoutActions.LoggedOut:\n this.setState({\n isReady: true,\n message: \"You successfully logged out!\"\n });\n this.navigateToReturnUrl(\"/login\");\n break;\n default:\n throw new Error(`Invalid action '${action}'`);\n }\n\n this.populateAuthenticationState();\n }\n\n render() {\n const { isReady, message } = this.state;\n if (!isReady) {\n return
;\n }\n if (!!message) {\n return
{message}
;\n } else {\n const action = this.props.action;\n switch (action) {\n case LogoutActions.Logout:\n return
Processing logout
;\n case LogoutActions.LogoutCallback:\n return
Processing logout confirmation
;\n case LogoutActions.LoggedOut:\n return
{message}
;\n default:\n throw new Error(`Invalid action '${action}'`);\n }\n }\n }\n\n async logout(returnUrl) {\n const state = { returnUrl };\n await this.props.dispatch(logoutUser());\n const isauthenticated = await authService.isAuthenticated();\n if (isauthenticated) {\n const result = await authService.signOut(state);\n switch (result.status) {\n case AuthenticationResultStatus.Redirect:\n break;\n case AuthenticationResultStatus.Success:\n this.navigateToReturnUrl(returnUrl);\n break;\n case AuthenticationResultStatus.Fail:\n this.setState({ message: result.message });\n break;\n default:\n throw new Error(\"Invalid authentication result status.\");\n }\n } else {\n this.setState({ message: \"You successfully logged out!\" });\n }\n }\n\n async processLogoutCallback() {\n const url = window.location.href;\n const result = await authService.completeSignOut(url);\n switch (result.status) {\n case AuthenticationResultStatus.Redirect:\n // There should not be any redirects as the only time completeAuthentication finishes\n // is when we are doing a redirect sign in flow.\n throw new Error(\"Should not redirect.\");\n case AuthenticationResultStatus.Success:\n await this.navigateToReturnUrl(this.getReturnUrl(result.state));\n break;\n case AuthenticationResultStatus.Fail:\n this.setState({ message: result.message });\n break;\n default:\n throw new Error(\"Invalid authentication result status.\");\n }\n }\n\n async populateAuthenticationState() {\n const authenticated = await authService.isAuthenticated();\n this.setState({ isReady: true, authenticated });\n }\n\n getReturnUrl(state) {\n const params = new URLSearchParams(window.location.search);\n const fromQuery = params.get(QueryParameterNames.ReturnUrl);\n if (fromQuery && !fromQuery.startsWith(`${window.location.origin}/`)) {\n // This is an extra check to prevent open redirects.\n throw new Error(\n \"Invalid return url. The return url needs to have the same origin as the current page.\"\n );\n }\n return (\n (state && state.returnUrl) || fromQuery || `${window.location.origin}`\n );\n }\n\n navigateToReturnUrl(returnUrl) {\n return window.location.replace(returnUrl);\n }\n}\n\nexport const Logout = connect()(LogoutImpl);\n","import React from \"react\";\nimport { connect } from \"react-redux\";\nimport {\n checkSession,\n getProfileInfo,\n getUserData,\n signoutUser\n} from \"../actions/member\";\nimport history from \"../routes/history\";\nimport Logo from \"./Logo\";\nimport authService from \"../actions/AuthorizeService\";\n\nclass Navbar extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n visible: false,\n loading: false,\n authenticated: false\n };\n }\n\n async componentDidMount(){\n await this.populateAuthenticationState();\n }\n\n async populateAuthenticationState() {\n const authenticated = await authService.isAuthenticated();\n this.setState({ authenticated });\n }\n\n redirect(authenticated = false){\n var currentLocation = window.location.pathname;\n if(authenticated){\n history.push(\"/\")\n }\n else {\n if(currentLocation.includes(\"email-subscriptions\")){\n history.push(\"/\")\n }else{ \n history.push('/general/finder-utility');\n }\n }\n }\n\n render() {\n const { index } = this.props;\n const {authenticated} = this.state;\n return (\n this.redirect(authenticated)}\n >\n \n \n );\n }\n}\n\nconst mapStateToProps = state => ({\n member: state.member || {},\n header: state.member && state.member.header\n});\n\nconst mapDispatchToProps = {\n signoutUser,\n getUserData,\n getProfileInfo,\n checkSession\n};\n\nexport default connect(\n mapStateToProps,\n mapDispatchToProps\n)(Navbar);\n","import React from 'react';\nimport TopBarProgress from \"react-topbar-progress-indicator\";\nimport {connect} from 'react-redux';\n\n\nTopBarProgress.config({\n barColors: {\n \"0\": \"#132bad\",\n \"0.5\": \"#0a3a8e\",\n \"1.0\": \"#000\",\n },\n shadowBlur: 0,\n barThickness: 2\n});\n\n\nexport class ProgressBar extends React.Component {\n\n render() {\n\n const {progressBarStatus} = this.props;\n\n if (progressBarStatus) {\n return ()\n } else {\n return ('');\n }\n }\n}\n\n//redux container component\nconst mapStateToProps = (state) => {\n return ({\n progressBarStatus: state.ui.progressBarStatus\n });\n};\n\nexport const HandleProgressBar = connect(\n mapStateToProps,\n null\n)(ProgressBar);\n\nexport default HandleProgressBar;\n","import React, { Fragment } from \"react\";\nimport { Menu } from \"antd\";\nimport history from \"../routes/history\";\nimport { AuthorizedView } from \"../Common/Authorization/AuthorizedView\";\nimport { Visible } from \"./Common/visiblityWrapper\";\n\nconst SettingMenu = ({\n handleSignOut,\n routeOptions,\n handleProfileAction,\n loading,\n isCurrentUserLawFirm,\n user\n}) => {\n const handleAction = option => {\n if(option.id === 9 && isCurrentUserLawFirm){\n history.push(`/users/${user[\"app.user.lawfirmid\"]}/lawfirm`);\n\n return;\n }\n if ((option.url !== undefined || option.url !== null) && !option.action) {\n history.push(option.url);\n\n return;\n }\n handleProfileAction(option);\n };\n return (\n \n \n \n {routeOptions.map((option, i) => {\n return (\n \n {option.name}\n \n );\n })}\n \n \n Sign Out\n \n \n \n \n \n {routeOptions.map((option, i) => {\n if (option.policy) {\n return (\n \n handleAction(option)}>\n {option.name}\n \n \n );\n }\n\n return (\n {\n option.url ? history.push(option.url) : handleAction(option);\n }}\n >\n {option.name}\n \n );\n })}\n \n \n Sign Out\n \n \n \n \n );\n};\n\nexport default SettingMenu;\n","import React, { Fragment, useMemo } from \"react\";\nimport { Dropdown, Icon } from \"antd\";\nimport SettingMenu from \"./menu\";\nimport { sortBy } from \"lodash\";\n\nconst SettingDropdownOption = ({\n handleSignOut,\n dropdownIconType,\n className,\n handleProfileAction,\n routeOptions,\n loading,\n isCurrentUserLawFirm,\n user\n}) => {\n const routesOptions = useMemo(() => { \n return sortBy(routeOptions, (a) => a.id == 9 || a.name);\n }, [routeOptions]);\n\n return (\n \n \n \n }\n getPopupContainer={(node) =>{\n return document.getElementById(\"customPopupContainer\");\n }\n }\n className={`dropdown ${className ? className : \"\"} settings-dropdown-icon`}\n >\n \n \n );\n};\n\nexport default SettingDropdownOption;\n","import React, { Fragment, useMemo } from \"react\";\nimport { Dropdown, Icon, Menu } from \"antd\";\nimport { connect } from \"react-redux\";\nimport {\n BROKER_PROFILE_ACTIVE,\n LENDER_PROFILE_ACTIVE\n} from \"../constants/action-type/profile\";\nimport { switchActiveProfile } from \"../actions/profile\";\nimport { Visible } from \"./Common/visiblityWrapper\";\nimport _ from \"lodash\";\nconst ProfileSwitch = ({\n activeProfile,\n dispatch,\n className,\n allowSwitchProfile = true\n}) => {\n const showLender =\n !_.isNull(activeProfile.lenderId) &&\n !_.isUndefined(activeProfile.lenderId) &&\n activeProfile.active !== LENDER_PROFILE_ACTIVE;\n const showBroker =\n !_.isNull(activeProfile.brokerId) &&\n !_.isUndefined(activeProfile.brokerId) &&\n activeProfile.active !== BROKER_PROFILE_ACTIVE;\n\n const ProfileOption = (\n {\n dispatch(switchActiveProfile(active.key));\n }}\n selectedKeys={[activeProfile.active]}\n >\n {showBroker && (\n \n

Broker Profile

\n
\n )}\n {showLender && (\n \n

Lender Profile

\n
\n )}\n \n );\n\n const activeProfileTitle = useMemo(() => {\n return activeProfile.active === LENDER_PROFILE_ACTIVE\n ? \"Lender Profile\"\n : \"Broker Profile\";\n }, [activeProfile.active]);\n\n return (\n \n \n \n \n

{activeProfileTitle}

\n\n \n \n
\n
\n \n \n

{activeProfileTitle}

\n \n
\n
\n );\n};\n\nexport default connect(state => ({\n activeProfile: state.profile.activeProfile\n}))(ProfileSwitch);\n","import React, { Fragment, useEffect, useState } from \"react\";\nimport { connect } from \"react-redux\";\nimport AwesomeDebouncePromise from \"awesome-debounce-promise\";\nimport { lendersLookUpHandler, searchBoxHandler} from \"../../actions/lookup\";\nimport { errorDisplay, mustBeArray } from \"../../libs/utilities\";\nimport { Select, Spin } from \"antd\";\nimport { Visible } from \"./visiblityWrapper\";\nimport { updateHeader } from \"../../actions/member\";\nimport { ADMIN_USER, BROKER_USER, DUAL_USER, LAW_FIRM_USER, LENDER_USER } from \"../../constants/systemUsers\";\nimport { isSystemUserPolicy } from \"../../Common/Authorization/policies/isSystemUserPolicy\";\nimport { clearProfileDetails } from \"../../actions/profile\";\n\nconst UniversalSearchBox = props => {\n const {\n searchBoxHandler,\n user,\n handleSearchBoxChange\n } = props;\n\n const [isLoading, setIsLoading] = useState(true);\n const [searchResultList, setSearchResultList] = useState([]);\n const [userRole, setUserRole] = useState(\"\");\n\n const getUsersProfile = async () => {\n var isSystemUser = await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n const roleType = isSystemUser ? ADMIN_USER : \n user.role == \"BROKER\" ? BROKER_USER : \n user.role == \"LENDER\" ? LENDER_USER : \n user.roles.length == 2 ? DUAL_USER :\n user.role == \"LAWFIRM\" ? LAW_FIRM_USER : \"\";\n setUserRole(roleType);\n };\n\n useEffect(() => {\n getUsersProfile();\n }, []);\n\n useEffect(() => {\n if(user && user.roles && user.roles.length > 0){\n getUsersProfile();\n }\n \n }, [user]);\n\n useEffect(()=>{\n getSearchResults({ name: \"\", userType: userRole });\n },[userRole]);\n\n const getSearchResults = ({ name, userType }) => {\n var actionUrl = \"\";\n setIsLoading(true);\n if(userType){\n if(userType === ADMIN_USER){\n actionUrl = \"SEARCH_BOX_FOR_SYSTEM_USER\";\n }\n else {\n actionUrl = \"SEARCH_BOX_URL\";\n }\n }\n \n\n return searchBoxHandler({\n action: actionUrl,\n userType,\n queryParams: name ? { search: name } : {}\n }).then(resp => {\n if (resp.status) {\n setSearchResultList(mustBeArray(resp.data));\n setIsLoading(false);\n } else {\n errorDisplay(resp && resp.data && resp.data.validationErrors);\n }\n });\n };\n const debouncedSearch = AwesomeDebouncePromise(async name => {\n setSearchResultList([]);\n setIsLoading(true);\n await getSearchResults({ name, userType: userRole });\n }, 500);\n\n const handleOnClick = (e) => {\n const selectedLender = searchResultList.filter(lender => \n lender.key === e \n )[0];\n handleSearchBoxChange(selectedLender, props);\n\n }\n\n\n return (\n \n handleOnClick(e)}\n notFoundContent={\n \n \n \n ...\n \n No data\n \n }\n onSearch={async e => await debouncedSearch(e)}\n filterOption={false}\n >\n {mustBeArray(searchResultList).map(item => {\n return (\n \n {item.name}\n \n );\n })}\n \n \n );\n\n};\nconst mapDispatchToProps = {\n updateHeader,\n lendersLookUpHandler,\n searchBoxHandler,\n clearProfileDetails\n };\n\nconst mapStateToProps = state => {\n return {\n member: state.member || {},\n user: state.authorization && state.authorization.user\n };\n};\n\nexport default connect(\n mapStateToProps,\n mapDispatchToProps\n)(UniversalSearchBox);","export const FINDER_FILTER = \"finderFilter\";\nexport const FINDER_USER_TYPE = \"finderUserType\";\n\nexport const MIN_PRINCIPAL_FINDER_LIST = [\n {\n name: \"$100,000\",\n value: 100000,\n displayName: \"$100K\"\n },\n {\n name: \"$200,000\",\n value: 200000,\n displayName: \"$200K\"\n },\n {\n name: \"$500,000\",\n value: 500000,\n displayName: \"$500K\"\n },\n {\n name: \"$1,000,000\",\n value: 1000000,\n displayName: \"$1M\"\n },\n {\n name: \"$2,000,000\",\n value: 2000000,\n displayName: \"$2M\"\n },\n {\n name: \"$3,000,000\",\n value: 3000000,\n displayName: \"$3M\"\n },\n {\n name: \"$5,000,000\",\n value: 5000000,\n displayName: \"$5M\"\n },\n {\n name: \"$8,000,000\",\n value: 8000000,\n displayName: \"$8M\"\n },\n {\n name: \"$10,000,000\",\n value: 10000000,\n displayName: \"$10M\"\n },\n {\n name: \"$20,000,000\",\n value: 20000000,\n displayName: \"$20M\"\n },\n {\n name: \"$40,000,000\",\n value: 40000000,\n displayName: \"$40M\"\n },\n {\n name: \"$60,000,000\",\n value: 60000000,\n displayName: \"$60M\"\n },\n {\n name: \"$100,000,000\",\n value: 100000000,\n displayName: \"$100M\"\n }\n];\n\nexport const MAX_PRINCIPAL_FINDER_LIST = [\n {\n name: \"$200,000\",\n value: 200000,\n displayName: \"$200K\"\n },\n {\n name: \"$500,000\",\n value: 500000,\n displayName: \"$500K\"\n },\n {\n name: \"$1,000,000\",\n value: 1000000,\n displayName: \"$1M\"\n },\n {\n name: \"$2,000,000\",\n value: 2000000,\n displayName: \"$2M\"\n },\n {\n name: \"$3,000,000\",\n value: 3000000,\n displayName: \"$3M\"\n },\n {\n name: \"$5,000,000\",\n value: 5000000,\n displayName: \"$5M\"\n },\n {\n name: \"$8,000,000\",\n value: 8000000,\n displayName: \"$8M\"\n },\n {\n name: \"$10,000,000\",\n value: 10000000,\n displayName: \"$10M\"\n },\n {\n name: \"$20,000,000\",\n value: 20000000,\n displayName: \"$20M\"\n },\n {\n name: \"$40,000,000\",\n value: 40000000,\n displayName: \"$40M\"\n },\n {\n name: \"$60,000,000\",\n value: 60000000,\n displayName: \"$60M\"\n },\n {\n name: \"$100,000,000\",\n value: 100000000,\n displayName: \"$100M\"\n },\n {\n name: \"$150,000,000\",\n value: 150000000,\n displayName: \"$150M\"\n }\n ];\n\n","export const ALL_LOANS_STATUS = {\n PreSettlement: \"PRESETTLEMENT\",\n Settled: \"SETTLED\",\n Default: \"DEFAULT\",\n Discharged: \"DISCHARGED\",\n VariationInProgress: \"VARIATIONINPROG\"\n}","import React from 'react'\n\nconst FinderUtilityContext = React.createContext({});\nexport default FinderUtilityContext;","import React, { useCallback, useContext, useMemo } from \"react\";\nimport _ from \"lodash\";\nimport FinderUtilityContext from \"./FinderUtilityContext\";\nimport { getItemName, isNullEmptyOrUndefined, getSettlementItemName } from \"../../libs\";\nimport { LENDER_USER } from \"../../constants/systemUsers\";\nimport { MAX_PRINCIPAL_FINDER_LIST, MIN_PRINCIPAL_FINDER_LIST } from \"../../constants\";\n\nconst Header = ({ filters = [], smallView }) => {\n const {\n priorityList,\n scenarioList,\n securityList,\n termList,\n list,\n userType,\n settlementList,\n interestList\n } = useContext(FinderUtilityContext);\n const getValue = useCallback(\n type => {\n const value = filters.find(o => o.type === type)?.value;\n return type === \"suburbAndState\" && value\n ? value.split(\", \")?.[0]\n : value;\n },\n [filters]\n );\n const radius = getValue(\"radius\");\n const suburb = getValue(\"suburbAndState\");\n const principal = getValue(\"principal\");\n const priority = getValue(\"priority\");\n const lowerRate = getValue(\"lowerRate\");\n const higherRate = getValue(\"higherRate\");\n const scenario = getValue(\"scenario\");\n const establishmentFee = getValue(\"establishmentFee\");\n const securityType = getValue(\"securityType\");\n const lvr = getValue(\"lvr\");\n const settlementDate = getValue(\"settlementDate\");\n const term = getValue(\"term\");\n const brokerStarsFromLender = getValue(\"brokerStarsFromLender\");\n const lenderStarsFromBroker = getValue(\"lenderStarsFromBroker\");\n const valuation = getValue('valuation');\n const interest = getValue('interest');\n\n const updatedSelectedSecurityType = selectedData => {\n return selectedData.map((data,i) => {\n let subList = [];\n if(i===1){\n subList = securityList.find(o => o.id === selectedData[0])?.securitySubTypes;\n }\n return getItemName({ value: data, list: i=== 1 ? subList : securityList });\n });\n };\n\n const getPrincipalDisplayValue = (principalValue, principalList) => {\n return principalList.find(o => o.value === principalValue)?.displayName;\n }\n\n const radiusAndSuburbText = useMemo(() => {\n if (radius && suburb) return `within ${radius} of ${suburb}, `;\n if (radius && !suburb) return `within ${radius}, `;\n if (suburb && !radius) return `within ${suburb}, `;\n return \"\";\n }, [radius, suburb]);\n const pricipalText = !isNullEmptyOrUndefined(principal.low)\n ? `${getPrincipalDisplayValue(\n principal.low, MIN_PRINCIPAL_FINDER_LIST\n )}-${getPrincipalDisplayValue(principal.high, MAX_PRINCIPAL_FINDER_LIST)} in size, `\n : \"\";\n const priorityText = priority\n ? `${getItemName({ value: priority, list: priorityList })} priority, `\n : \"\";\n const lowerRateText = !isNullEmptyOrUndefined(lowerRate.low)\n ? `${lowerRate.low}-${lowerRate.high}% lower rate, `\n : \"\";\n const higherRateText = !isNullEmptyOrUndefined(higherRate.low)\n ? `${higherRate.low}-${higherRate.high}% higher rate, `\n : \"\";\n const establishmentFeeText = !isNullEmptyOrUndefined(establishmentFee.low)\n ? `${establishmentFee.low}-${establishmentFee.high}% estab, `\n : \"\";\n const scenarioText = scenario\n ? `${getItemName({ value: scenario, list: scenarioList })}, `\n : \"\";\n const securityTypeText = !_.isEmpty(securityType)\n ? `${updatedSelectedSecurityType(securityType).join(\" - \")}, `\n : \"\";\n const lvrText = !isNullEmptyOrUndefined(lvr.low)\n ? `${ lvr.low}-${lvr.high}% lvr, `\n : \"\";\n const setttlementDateText = settlementDate\n ? `settled in the last ${getSettlementItemName({value: settlementDate, list: settlementList})}, `\n : \"\";\n const termText = term.low\n ? `term ${getItemName({ value: term.low, list: termList })} - ${getItemName(\n { value: term.high, list: termList }\n )}, `\n : \"\";\n const brokerStarsFromlenderText = brokerStarsFromLender\n ? `Broker received ${brokerStarsFromLender} stars, `\n : \"\";\n const lenderStarsFromBrokerText = lenderStarsFromBroker\n ? `Lender received ${lenderStarsFromBroker} stars, `\n : \"\";\n const valuationText = valuation ? `Valuation is ${valuation === \"true\" ? \"\" : \"not\"} required, ` : \"\";\n const interestText = interest ? `Interest is ${getItemName({value: interest, list: interestList})}, ` : \"\";\n\n return (\n
\n {`${list?.total ||\n 0} ${userType===LENDER_USER ? \"Lenders\" : \"Brokers\"} who have loans ${radiusAndSuburbText}${pricipalText}${priorityText}${lowerRateText}${higherRateText}${establishmentFeeText}${scenarioText}${securityTypeText}${lvrText}${setttlementDateText}${termText}${brokerStarsFromlenderText}${lenderStarsFromBrokerText}${valuationText}${interestText}`}\n
\n );\n};\n\nexport default Header;\n","export const finderFilterTypes = {\n suburbAndState: \"suburbAndState\",\n radius: \"radius\",\n principal: \"principal\",\n priority: \"priority\",\n lowerRate: \"lowerRate\",\n higherRate: \"higherRate\",\n establishmentFee: \"establishmentFee\",\n scenario: \"scenario\",\n securityType: \"securityType\",\n lvr: \"lvr\",\n settlementDate: \"settlementDate\",\n term: \"term\",\n brokerStarsFromLender: \"brokerStarsFromLender\",\n lenderStarsFromBroker: \"lenderStarsFromBroker\",\n valuation: \"valuation\",\n credit: \"credit\",\n interest: \"interest\",\n construction: \"construction\",\n subdivision: \"subdivision\"\n};\n\nconst {\n suburbAndState,\n radius,\n principal,\n priority,\n lowerRate,\n higherRate,\n establishmentFee,\n scenario,\n securityType,\n lvr,\n settlementDate,\n term,\n brokerStarsFromLender,\n lenderStarsFromBroker,\n valuation,\n credit,\n interest,\n construction,\n subdivision\n} = finderFilterTypes;\n\nexport const defaultFilters = [\n {\n title: \"Suburb and State\",\n type: suburbAndState,\n value: undefined\n },\n {\n title: \"Search Radius\",\n type: radius,\n value: undefined\n },\n {\n title: \"Principal\",\n type: principal,\n value: {\n low: undefined,\n high: undefined\n }\n },\n {\n title: \"Priority\",\n type: priority,\n value: undefined\n },\n {\n title: \"Lower Rate\",\n type: lowerRate,\n value: {\n low: undefined,\n high: undefined\n }\n },\n {\n title: \"Higher Rate\",\n type: higherRate,\n value: {\n low: undefined,\n high: undefined\n }\n },\n {\n title: \"Establishment Fee\",\n type: establishmentFee,\n value: {\n low: undefined,\n high: undefined\n }\n },\n {\n title: \"Scenario\",\n type: scenario,\n value: undefined\n },\n {\n title: \"Construction\",\n type: construction,\n value: undefined\n },\n {\n title: \"Subdivision\",\n type: subdivision,\n value: undefined\n },\n {\n title: \"Security Type\",\n type: securityType,\n value: []\n },\n {\n title: \"Lvr\",\n type: lvr,\n value: {\n low: undefined,\n high: undefined\n }\n },\n {\n title: \"Settlement Date\",\n type: settlementDate,\n value: undefined\n },\n {\n title: \"Term\",\n type: term,\n value: {\n low: undefined,\n high: undefined\n }\n },\n {\n title: \"Broker Stars from Lender\",\n type: brokerStarsFromLender,\n value: undefined\n },\n {\n title: \"Lender Stars from Broker\",\n type: lenderStarsFromBroker,\n value: undefined\n },\n {\n title: \"Valuation Required\",\n type: valuation,\n value: undefined\n },\n {\n title: \"Credit\",\n type: credit,\n value: undefined\n },\n {\n title: \"Interest\",\n type: interest,\n value: undefined\n }\n];\n","import { InputNumber } from 'antd';\nimport React from 'react';\n\nconst MaxLength = 99999999999999\nconst MaxValue = 99999999999999\nconst demicalRegex = /^([a-zA-Z(),{}\\[\\]!@#\\\\\\|`~_$%^&*<>/?+\\:\\;\\'\\\"=\\s-])$/;\nconst noDecimalRegex = /^([a-zA-Z(),{}\\[\\]!.@#\\\\\\|`~_$%^&*<>/?+\\:\\;\\'\\\"=\\s-])$/;\nconst digitsRegex = /^([0-9])/\n\nconst NumberInput = ({\n onBlur,\n onChange,\n className,\n value,\n hasDecimal=true,\n decimalPlaces=2,\n placeholder,\n maxLength,\n maxValue,\n disabled = false,\n parser,\n formatter\n}) => {\n const handleBlur = (e) => {\n if(onBlur) return onBlur(e)\n }\n const handleChange = e => {\n if(onChange) return onChange( e)\n }\n const validateInputValue = e => {\n const regex = hasDecimal ? demicalRegex : noDecimalRegex;\n if(regex.test(e.key)) return e.preventDefault();\n if(hasDecimal && e.currentTarget.value?.includes('.')) return validateDecimalValues(e.currentTarget.value, e.key, e)\n }\n const validateDecimalValues = (value, key,e) => {\n const decimalValues = value?.split(\".\")?.[1];\n if(decimalValues && decimalValues.length >decimalPlaces && digitsRegex.test(key)) return e.preventDefault();\n }\n const defaultParserFormatter = parser ? parser : e => e;\n\n return(\n handleBlur(defaultParserFormatter(e.target.value))}\n placeholder={placeholder? placeholder : \"\"}\n onKeyDown={e => validateInputValue(e)}\n formatter={formatter ? formatter : defaultParserFormatter}\n parser={defaultParserFormatter}\n />\n )\n}\n\nexport default NumberInput","import React from \"react\";\nimport NumberInput from \"../../../Common/NumberInput\";\n\nconst LowAndHighPercentageFilters = ({ value, handleFieldChange }) => {\n return (\n
\n
\n
From:
\n `${e}%`}\n parser={e => e.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\" hideNumberPointers w-180\"\n value={value?.low}\n onChange={e => handleFieldChange({ field: \"lowerRate\", value: e, sub: \"low\" })}\n />\n
\n
\n
To:
\n `${e}%`}\n parser={e => e.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"hideNumberPointers w-180\"\n value={value?.high}\n onChange={e => handleFieldChange({ field: \"lowerRate\", value: e, sub: \"high\" })}\n />\n
\n
\n );\n};\n\nexport default LowAndHighPercentageFilters;\n","import { Select } from \"antd\";\nimport React, { useContext, useEffect, } from \"react\"; \nimport FinderUtilityContext from \"../FinderUtilityContext\";\n\nconst PriorityLookup = ({ value, handleFieldChange }) => { \n const {priorityList} = useContext(FinderUtilityContext);\n\n useEffect(() => {\n \n }, []); \n\n return (\n handleFieldChange({ field: \"priority\", value })}\n allowClear={false}\n filterOption={false}\n >\n {priorityList.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n );\n};\n\nexport default PriorityLookup;\n","import { Select } from \"antd\";\nimport React, { useContext } from \"react\"; \nimport FinderUtilityContext from \"../FinderUtilityContext\";\n\nconst RadiusLookup = ({ value, handleFieldChange }) => { \n const {radiusList} = useContext(FinderUtilityContext); \n\n return (\n handleFieldChange({ field: \"radius\", value })}\n allowClear={false}\n filterOption={false}\n >\n {radiusList.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n );\n};\n\nexport default RadiusLookup;\n","import { Rate } from 'antd';\nimport React from 'react';\nimport { Visible } from '../../Common/visiblityWrapper';\n\nconst Ratings = ({ value, handleFieldChange }) => { \n\n return (\n
\n handleFieldChange({ value: e })}\n />\n \n (or more)\n \n
\n );\n};\n\nexport default Ratings;\n","import { Select } from \"antd\";\nimport React, { useContext } from \"react\"; \nimport FinderUtilityContext from \"../FinderUtilityContext\";\n\nconst ScenarioLookup = ({ value, handleFieldChange }) => { \n const {scenarioList} = useContext(FinderUtilityContext); \n\n\n return (\n handleFieldChange({ field: \"priority\", value })}\n allowClear={false}\n filterOption={false}\n >\n {scenarioList.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n );\n};\n\nexport default ScenarioLookup;\n","import { Select } from \"antd\";\nimport React, { useContext, useMemo, } from \"react\";\nimport { mustBeArray } from \"../../../libs\";\nimport FinderUtilityContext from \"../FinderUtilityContext\";\n\nconst SecurityTypeLookup = ({ value, handleFieldChange }) => {\n const {securityList} = useContext(FinderUtilityContext);\n \n\n const subTypeList = useMemo(() => {\n const selectedType = mustBeArray(value)[0];\n if(selectedType){\n return securityList.find(o => o.id === selectedType)?.securitySubTypes;\n }\n return [];\n },[value, securityList]);\n\n const handleChange = e => {\n handleFieldChange({ field: \"securityType\", value: [value[0], e] })\n }\n\n return (\n
\n
\n
Type:
\n handleFieldChange({ field: \"securityType\", value: [value] })}\n allowClear={false}\n filterOption={false}\n >\n {mustBeArray(securityList).map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n
\n
Subtype:
\n \n {mustBeArray(subTypeList).map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n
\n\n\n\n\n \n );\n};\n\nexport default SecurityTypeLookup;\n","import { Select } from \"antd\";\nimport React, { useContext } from \"react\"; \nimport FinderUtilityContext from \"../FinderUtilityContext\";\n\nconst SettlementDateLookup = ({ value, handleFieldChange }) => { \n const {settlementList} = useContext(FinderUtilityContext); \n\n return (\n handleFieldChange({ field: \"settlementDate\", value })}\n allowClear={false}\n filterOption={false}\n >\n {settlementList.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n );\n};\n\nexport default SettlementDateLookup;\n","import { http } from \"../libs/http\";\nimport ResponseHandler from \"../libs/response\";\nimport APIHandler, { apiUrls } from \"../constants/apiUrl\";\n\nexport const finderSecurityTypesLookups = ({ cancelToken, generalView=false }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: generalView ? apiUrls.GENERAL_FINDER_SECURITY_TYPE_LOOKUP : apiUrls.FINDER_SECURITY_TYPE_LOOKUP,\n options: { }\n });\n const response = generalView ? await http.publicGet(url, cancelToken) : await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n };\n \n \n export const finderStatesAndSuburbsLookups = ({ cancelToken, search=\"\", generalView=false }) => {\n return async() => {\n const apiUrl = APIHandler.constructEndpoint({\n endpoint: generalView ? apiUrls.GENERAL_FINDER_SUBURB_STATES_LOOKUP : apiUrls.FINDER_SUBURB_STATES_LOOKUP,\n options: {}\n });\n const url = search ? `${apiUrl}?search=${search}` : apiUrl;\n const response = generalView ? await http.publicGet(url, cancelToken) : await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n };\n \n const getLowerTermUrl = (generalView) => {\n return generalView ? apiUrls.GENERAL_FINDER_TERM_LOWER_LOOKUP : apiUrls.FINDER_TERM_LOWER_LOOKUP;\n };\n\n const getHigherTermUrl = (generalView) => {\n return generalView ? apiUrls.GENERAL_FINDER_TERM_HIGHER_LOOKUP: apiUrls.FINDER_TERM_HIGHER_LOOKUP;\n }\n\n export const finderTermLookups = ({ cancelToken, type, generalView=false }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: type===\"lower\" ? getLowerTermUrl(generalView) : getHigherTermUrl(generalView),\n options: {}\n });\n const response = generalView ? await http.publicGet(url, cancelToken) : await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n };\n \n export const finderScenarioLookups = ({ cancelToken, generalView=false }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: generalView ? apiUrls.GENERAL_FINDER_SCENARIO_LOOKUP : apiUrls.FINDER_SCENARIO_LOOKUP,\n options: {}\n });\n const response = generalView ? await http.publicGet(url, cancelToken) : await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n };\n \n export const finderBrokersLookups = ({ cancelToken, search, generalView=false, isSystemUser }) => {\n return async() => {\n const apiUrl = APIHandler.constructEndpoint({\n endpoint: generalView ? apiUrls.GENERAL_FINDER_BROKERS_LOOKUP : apiUrls.FINDER_BROKERS_LOOKUP,\n options: {}\n });\n const url = search ? `${apiUrl}?${search}` : apiUrl;\n const response = generalView ? await http.publicGet(url, cancelToken) : await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n };\n \n export const finderLendersLookups = ({ cancelToken, search, generalView=false, isSystemUser }) => {\n return async() => {\n const apiUrl = APIHandler.constructEndpoint({\n endpoint: generalView ? apiUrls.GENERAL_FINDER_LENDERS_LOOKUP : \n isSystemUser ? apiUrls.FINDER_LENDERS_LOOKUP_AS_SYSTEM_USER : apiUrls.FINDER_LENDERS_LOOKUP,\n options: {}\n });\n const url = search ? `${apiUrl}?${search}` : apiUrl;\n const response = generalView ? await http.publicGet(url, cancelToken) : await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n }; \n \n export const finderPiorityLookup = ({ cancelToken, generalView=false }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: generalView ? apiUrls.GENERAL_FINDER_PRIORITY_LOOKUP : apiUrls.FINDER_PRIORITY_LOOKUP,\n options: {}\n });\n const response = generalView ? await http.publicGet(url, cancelToken) : await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n };\n\n export const finderRadiusLookups = ({ cancelToken, generalView=false }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: generalView ? apiUrls.GENERAL_FINDER_RADIUS_LOOKUP : apiUrls.FINDER_RADIUS_LOOKUP,\n options: {}\n });\n const response = generalView ? await http.publicGet(url, cancelToken) : await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n };\n\n export const finderSettlementDateLookups = ({ cancelToken, generalView=false }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: generalView ? apiUrls.GENERAL_FINDER_SETTLEMENT_DATE_LOOKUP : apiUrls.FINDER_SETTLEMENT_DATE_LOOKUP,\n options: {}\n });\n const response = generalView ? await http.publicGet(url, cancelToken) : await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n };\n\n/**\n * \n * @param {{cancelToken: any, generalView: boolean}} params\n * @returns {Promise} \n */\nexport const finderCreditLookups = ({ cancelToken,generalView = false }) => {\n return async () => {\n const url = APIHandler.constructEndpoint({\n endpoint: !generalView ? apiUrls.FINDER_CREDIT_LOOKUP : apiUrls.GENERAL_FINDER_CREDIT_LOOKUP,\n options: {}\n });\n const response = await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n};\n\n/**\n * \n * @param {{cancelToken: any, generalView: boolean}} param0 \n * @returns {Promise}\n */\nexport const finderInterestLookups = ({ cancelToken, generalView = false }) => {\n return async () => {\n const url = APIHandler.constructEndpoint({\n endpoint: !generalView ? apiUrls.FINDER_INTEREST_LOOKUP : apiUrls.GENERAL_FINDER_INTEREST_LOOKUP,\n options: {}\n });\n const response = await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n};\n\n/**\n * \n * @param {{cancelToken: any, generalView: boolean}} param0 \n * @returns {Promise}\n */\nexport const finderSubdivisionTypeLookups = ({ cancelToken, generalView }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: !generalView ? apiUrls.FINDER_SCENARIO_SUBDIVISION_TYPE_LOOKUP : apiUrls.GENERAL_FINDER_SCENARIO_SUBDIVISION_TYPE_LOOKUP,\n options: {}\n });\n const response = await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n};","import { Select } from \"antd\";\nimport React, { useCallback, useContext, } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport axios from \"axios\";\nimport { mustBeArray } from \"../../../libs\";\nimport { debounce } from \"lodash\";\nimport { finderStatesAndSuburbsLookups } from \"../../../actions/finderUtility\";\nimport FinderUtilityContext from \"../FinderUtilityContext\";\n\nconst SuburbAndStateLookup = ({ value, handleFieldChange }) => {\n const dispatchAction = useDispatch();\n const signal = axios.CancelToken.source(); \n const {suburbList, setSuburbList, generalView} = useContext(FinderUtilityContext); \n\n const updateList = currentList => {\n const listIncludesState = currentList.find(o => o.name === value);\n if (value && !listIncludesState) {\n const SuburbAndState = value.split(\", \");\n setSuburbList([\n ...currentList,\n { name: value, suburb: SuburbAndState[0], state: SuburbAndState[1] }\n ]);\n return;\n }\n setSuburbList(currentList);\n };\n\n const handleSearch = e => {\n dispatchAction(\n finderStatesAndSuburbsLookups({ cancelToken: signal.token, search: e, generalView })\n ).then(resp => {\n updateList(mustBeArray(resp));\n });\n };\n const debouncedSearch = useCallback(debounce(handleSearch, 300));\n return (\n handleFieldChange({ field: \"suburbState\", value })}\n allowClear={false}\n onSearch={debouncedSearch}\n showSearch\n filterOption={false}\n >\n {suburbList.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n );\n};\n\nexport default SuburbAndStateLookup;\n","import { Select } from \"antd\";\nimport React, { useContext } from \"react\"; \nimport FinderUtilityContext from \"../FinderUtilityContext\";\n\nconst TermLookup = ({ value, handleFieldChange }) => { \n const {termList} = useContext(FinderUtilityContext); \n\n const {high, low} = value\n return (\n
\n
\n
From:
\n handleFieldChange({ field: \"term\", value: e, sub: \"low\" })}\n allowClear={false}\n filterOption={false}\n >\n {termList.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n
\n
To:
\n handleFieldChange({ field: \"term\", value: e, sub: 'high' })}\n allowClear={false}\n filterOption={false}\n >\n {termList.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n
\n \n );\n};\n\nexport default TermLookup;\n","import React from \"react\";\nimport {\n MAX_PRINCIPAL_FINDER_LIST,\n MIN_PRINCIPAL_FINDER_LIST\n} from \"../../../constants\";\nimport { Select } from \"antd\";\n\nconst PrincipalFilters = ({ value, handleFieldChange }) => {\n return (\n
\n
\n
From:
\n \n handleFieldChange({ field: \"lowerRate\", value: e, sub: \"low\" })\n }\n allowClear={false}\n filterOption={false}\n >\n {MIN_PRINCIPAL_FINDER_LIST.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n
\n
To:
\n \n handleFieldChange({ field: \"lowerRate\", value: e, sub: \"high\" })\n }\n allowClear={false}\n filterOption={false}\n >\n {MAX_PRINCIPAL_FINDER_LIST.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n
\n );\n};\n\nexport default PrincipalFilters;\n","import { Select } from 'antd'\nimport React, { useContext } from 'react'\nimport { FinderFilterFieldChangeHandlerParams } from '../../../libs/types';\nimport FinderUtilityContext from '../FinderUtilityContext';\n\n\ntype ValuationProps = {\n handleFieldChange: (params: FinderFilterFieldChangeHandlerParams) => void,\n value: string\n}\n\nexport default function Valuation({value, handleFieldChange}: ValuationProps) {\n const {yesNoList} : any = useContext(FinderUtilityContext);\n\n return (\n
\n \n handleFieldChange({ field: \"valuationRequired\", value: v })\n }\n allowClear={false}\n >\n {yesNoList.map((data: {id: string, name: string}) => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n )\n}","import React, { useEffect, useState } from \"react\";\nimport { FinderFilterFieldChangeHandlerParams } from \"../../../libs/types\";\nimport { Checkbox } from \"antd\";\nimport { mustBeArray } from \"../../../libs\";\nimport { useDispatch } from \"react-redux\";\nimport Axios from \"axios\";\nimport authService from \"../../../actions/AuthorizeService\";\nimport { finderCreditLookups } from \"../../../actions/finderUtility\";\n\ntype CreditProps = {\n handleFieldChange: (\n params: FinderFilterFieldChangeHandlerParams\n ) => void;\n value: number[];\n};\n\ntype Option = {\n label: string;\n value: string;\n disabled?: boolean;\n};\n\nexport default function Credit({\n value = [],\n handleFieldChange = () => {}\n}: CreditProps) {\n const dispatch = useDispatch();\n const signal = Axios.CancelToken.source();\n\n const [list, setList] = useState([]);\n\n async function getLookupValues() {\n const isLoggedIn = await authService.isAuthenticated();\n dispatch(\n finderCreditLookups({\n cancelToken: signal.token,\n generalView: !isLoggedIn\n })\n ).then(x => {\n const translated = x.map(v => ({\n value: v.id,\n label: v.name\n }));\n setList(mustBeArray(translated));\n });\n }\n\n useEffect(() => {\n getLookupValues();\n }, []);\n\n return (\n
\n handleFieldChange({ field: \"credit\", value })}\n >\n {list.map(x => {\n return (\n
\n {x.label}\n
\n );\n })}\n \n
\n );\n}\n","import { Select } from \"antd\";\nimport React, { useContext } from \"react\";\nimport { FinderFilterFieldChangeHandlerParams } from \"../../../libs/types\";\nimport FinderUtilityContext from \"../FinderUtilityContext\";\n\ninterface InterestProps {\n value: string;\n handleFieldChange: (\n params: FinderFilterFieldChangeHandlerParams\n ) => void;\n}\n\nexport const Interest = ({ value, handleFieldChange }: InterestProps) => {\n const { interestList }: any = useContext(FinderUtilityContext);\n\n return (\n \n handleFieldChange({ field: \"interestKey\", value })\n }\n allowClear={false}\n >\n {interestList.map((data: { id: string; name: string }) => {\n return (\n \n {data.name}\n \n );\n })}\n \n );\n};\n\nexport default Interest;\n","import { Button, Modal, Select } from \"antd\";\nimport React, { useContext, useEffect, useState } from \"react\";\nimport NumberInput from \"../../../Common/NumberInput\";\nimport { FinderFilterFieldChangeHandlerParams } from \"../../../libs/types\";\nimport FinderUtilityContext from \"../FinderUtilityContext\";\n\ninterface Construction {\n presalesDebtCoverRequired: string;\n loanAmountPercentageGstEx: number | null;\n qsRequired: string;\n isBuilderDeveloper: string;\n isBuildToHold: string;\n tdcEquity: number | null;\n projectManagerRequired: string;\n contingenciesAllowance: number | null;\n developerSuccessfulProjects: number | null;\n preCommittedCommercialTenants: string;\n}\n\ninterface ConstructionProps {\n value: Construction | undefined;\n handleFieldChange: (\n payload: FinderFilterFieldChangeHandlerParams\n ) => void;\n}\n\nfunction Construction({\n value,\n handleFieldChange = () => {}\n}: ConstructionProps) {\n const { yesNoList }: any = useContext(FinderUtilityContext);\n\n const [construction, setConstruction] = useState({\n presalesDebtCoverRequired: \"\",\n loanAmountPercentageGstEx: null,\n qsRequired: \"\",\n isBuilderDeveloper: \"\",\n isBuildToHold: \"\",\n tdcEquity: null,\n projectManagerRequired: \"\",\n contingenciesAllowance: null,\n developerSuccessfulProjects: 0,\n preCommittedCommercialTenants: \"\"\n });\n\n function handleLocalChange(field: string, value: string | number) {\n setConstruction(s => ({\n ...s,\n [field]: value\n }));\n const payload = {\n presalesDebtCoverRequired: construction.presalesDebtCoverRequired,\n loanAmountPercentageGstEx: construction.loanAmountPercentageGstEx,\n qsRequired: construction.qsRequired,\n isBuilderDeveloper: construction.isBuilderDeveloper,\n isBuildToHold: construction.isBuildToHold,\n tdcEquity: construction.tdcEquity,\n projectManagerRequired: construction.projectManagerRequired,\n contingenciesAllowance: construction.contingenciesAllowance,\n developerSuccessfulProjects: construction.developerSuccessfulProjects,\n preCommittedCommercialTenants: construction.preCommittedCommercialTenants,\n [field]: value // Overwrites the field with same key\n };\n handleFieldChange({\n field: \"constructionScenario\",\n value: payload\n });\n }\n\n useEffect(() => {\n if (value) {\n setConstruction({\n ...value,\n presalesDebtCoverRequired: value.presalesDebtCoverRequired\n ? value.presalesDebtCoverRequired.toString()\n : \"\",\n qsRequired: value.qsRequired ? value.qsRequired.toString() : \"\",\n isBuilderDeveloper: value.isBuilderDeveloper\n ? value.isBuilderDeveloper.toString()\n : \"\",\n isBuildToHold: value.isBuildToHold\n ? value.isBuildToHold.toString()\n : \"\",\n projectManagerRequired: value.projectManagerRequired\n ? value.projectManagerRequired.toString()\n : \"\",\n preCommittedCommercialTenants: value.preCommittedCommercialTenants\n ? value.preCommittedCommercialTenants.toString()\n : \"\"\n });\n }\n }, [value]);\n\n return (\n <>\n
\n Presales debt cover required?\n \n handleLocalChange(\"presalesDebtCoverRequired\", v || \"\")\n }\n allowClear\n >\n {yesNoList.map((data: { id: string; name: string }) => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n {construction.presalesDebtCoverRequired === \"true\" && (\n
\n Percentage of loan amount exclusive of GST\n `${value}%`}\n parser={(value: string) => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"m-l-6 hideNumberPointers\"\n value={construction.loanAmountPercentageGstEx}\n onBlur={() => {}}\n onChange={(value: number) =>\n handleLocalChange(\"loanAmountPercentageGstEx\", value)\n }\n placeholder={\"\"}\n maxLength={undefined}\n maxValue={undefined}\n />\n
\n )}\n
\n QS required\n handleLocalChange(\"qsRequired\", v || \"\")}\n allowClear\n >\n {yesNoList.map((data: { id: string; name: string }) => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n
\n Builder/Developer\n \n handleLocalChange(\"isBuilderDeveloper\", v || \"\")\n }\n allowClear\n >\n {yesNoList.map((data: { id: string; name: string }) => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n
\n Build to hold\n\n handleLocalChange(\"isBuildToHold\", v || \"\")}\n allowClear\n >\n {yesNoList.map((data: { id: string; name: string }) => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n
\n Equity percentage of total development costs* (TDC) %\n `${value}%`}\n parser={(value: string) => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"m-l-6 hideNumberPointers\"\n value={construction.tdcEquity}\n onBlur={() => {}}\n onChange={(value: number) => handleLocalChange(\"tdcEquity\", value)}\n placeholder={\"\"}\n maxLength={undefined}\n maxValue={undefined}\n disabled={undefined}\n />\n
\n
\n

\n *Residual land value, post DA professional fees, council fees and\n contributions, SBBIS bond, contract sum including builder's margin,\n contingency allowance, project manager costs, provision for 50% of\n agents presales, capitalised interest and line fee, holding costs\n during construction (land tax and rates), project marketing costs\n

\n
\n
\n Project manager required\n\n \n handleLocalChange(\"projectManagerRequired\", v || \"\")\n }\n allowClear\n >\n {yesNoList.map((data: { id: string; name: string }) => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n
\n Contingencies allowance percentage of construction sum\n `${value}%`}\n parser={(value: string) => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"m-l-6 hideNumberPointers\"\n value={construction.contingenciesAllowance}\n onBlur={() => {}}\n onChange={(value: number) =>\n handleLocalChange(\"contingenciesAllowance\", value)\n }\n placeholder={\"\"}\n maxLength={undefined}\n maxValue={undefined}\n disabled={undefined}\n />\n
\n
\n Developer past successful projects (number up to 100)\n `${value}`}\n parser={(value: string) => value}\n className=\"m-l-6 hideNumberPointers\"\n value={construction.developerSuccessfulProjects}\n onBlur={() => {}}\n onChange={(value: number) =>\n handleLocalChange(\n \"developerSuccessfulProjects\",\n value > 100 ? 100 : value\n )\n }\n placeholder={\"\"}\n maxLength={undefined}\n maxValue={100}\n disabled={undefined}\n />\n
\n
\n Pre-committed commercial tenants\n\n \n handleLocalChange(\"preCommittedCommercialTenants\", v || \"\")\n }\n allowClear\n >\n {yesNoList.map((data: { id: string; name: string }) => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n \n );\n}\n\nexport default Construction;\n","import { Select } from \"antd\";\nimport React, { useEffect, useState } from \"react\";\nimport NumberInput from \"../../../Common/NumberInput\";\nimport {\n FinderFilterFieldChangeHandlerParams,\n ILookupItem\n} from \"../../../libs/types\";\nimport { mustBeArray } from \"../../../libs\";\nimport { useDispatch } from \"react-redux\";\nimport Axios from \"axios\";\nimport authService from \"../../../actions/AuthorizeService\";\nimport { finderSubdivisionTypeLookups } from \"../../../actions/finderUtility\";\n\ninterface Subdivision {\n typeKey: string | null;\n presalesDebtCoverRequired: string;\n loanAmountPercentageGstEx: number | null;\n qsRequired: string;\n isBuilderDeveloper: string;\n isBuildToHold: string;\n tdcEquity: number | null;\n projectManagerRequired: string;\n contingenciesAllowance: number | null;\n developerSuccessfulProjects: number | null;\n}\n\ninterface SubdivisionProps {\n value: Subdivision | undefined;\n handleFieldChange: (\n payload: FinderFilterFieldChangeHandlerParams\n ) => void;\n}\n\nconst YesNoOptions = [\n {\n label: \"Yes\",\n value: \"true\"\n },\n {\n label: \"No\",\n value: \"false\"\n }\n];\n\nfunction Subdivision({\n value,\n handleFieldChange = () => {}\n}: SubdivisionProps) {\n const dispatch = useDispatch();\n const signal = Axios.CancelToken.source();\n\n const [typeOptions, setTypeOptions] = useState([]);\n const [subdivision, setSubdivision] = useState({\n typeKey: null,\n presalesDebtCoverRequired: \"\",\n loanAmountPercentageGstEx: null,\n qsRequired: \"\",\n isBuilderDeveloper: \"\",\n isBuildToHold: \"\",\n tdcEquity: null,\n projectManagerRequired: \"\",\n contingenciesAllowance: null,\n developerSuccessfulProjects: 0\n });\n\n function handleLocalChange(field: string, value: string | number) {\n setSubdivision(s => ({\n ...s,\n [field]: value\n }));\n\n const payload = {\n typeKey: subdivision.typeKey || null,\n presalesDebtCoverRequired: subdivision.presalesDebtCoverRequired,\n loanAmountPercentageGstEx: subdivision.loanAmountPercentageGstEx,\n qsRequired: subdivision.qsRequired,\n isBuilderDeveloper: subdivision.isBuilderDeveloper,\n isBuildToHold: subdivision.isBuildToHold,\n tdcEquity: subdivision.tdcEquity,\n projectManagerRequired: subdivision.projectManagerRequired,\n contingenciesAllowance: subdivision.contingenciesAllowance,\n developerSuccessfulProjects: subdivision.developerSuccessfulProjects,\n [field]: value // Overwrites the field with same key\n };\n handleFieldChange({\n field: \"subdivisionScenario\",\n value: payload\n });\n }\n\n async function getTypeLookup() {\n const isLoggedIn = await authService.isAuthenticated();\n dispatch(\n finderSubdivisionTypeLookups({\n cancelToken: signal.token,\n generalView: !isLoggedIn\n })\n ).then(x => {\n setTypeOptions(mustBeArray(x));\n });\n }\n\n useEffect(() => {\n if (value) {\n setSubdivision({\n ...value,\n presalesDebtCoverRequired: value.presalesDebtCoverRequired\n ? value.presalesDebtCoverRequired.toString()\n : \"\",\n qsRequired: value.qsRequired ? value.qsRequired.toString() : \"\",\n isBuilderDeveloper: value.isBuilderDeveloper\n ? value.isBuilderDeveloper.toString()\n : \"\",\n isBuildToHold: value.isBuildToHold\n ? value.isBuildToHold.toString()\n : \"\",\n projectManagerRequired: value.projectManagerRequired\n ? value.projectManagerRequired.toString()\n : \"\"\n });\n }\n }, [value]);\n\n useEffect(() => {\n getTypeLookup();\n\n return () => {\n signal.cancel();\n };\n }, []);\n\n return (\n <>\n
\n Type\n handleLocalChange(\"typeKey\", v || \"\")}\n allowClear\n >\n {typeOptions.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n
\n Presales debt cover required?\n \n handleLocalChange(\"presalesDebtCoverRequired\", v || \"\")\n }\n allowClear\n >\n {YesNoOptions.map(x => (\n \n {x.label}\n \n ))}\n \n
\n {subdivision.presalesDebtCoverRequired === \"true\" && (\n
\n Percentage of loan amount exclusive of GST\n `${value}%`}\n parser={(value: string) => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"m-l-6 hideNumberPointers\"\n value={subdivision.loanAmountPercentageGstEx}\n onBlur={() => {}}\n onChange={(value: number) =>\n handleLocalChange(\"loanAmountPercentageGstEx\", value)\n }\n placeholder={\"\"}\n maxLength={undefined}\n maxValue={undefined}\n />\n
\n )}\n
\n QS required\n handleLocalChange(\"qsRequired\", v || \"\")}\n allowClear\n >\n {YesNoOptions.map(x => (\n \n {x.label}\n \n ))}\n \n
\n
\n Builder/Developer\n \n handleLocalChange(\"isBuilderDeveloper\", v || \"\")\n }\n allowClear\n >\n {YesNoOptions.map(x => (\n \n {x.label}\n \n ))}\n \n
\n
\n Build to hold\n\n handleLocalChange(\"isBuildToHold\", v || \"\")}\n allowClear\n >\n {YesNoOptions.map(x => (\n \n {x.label}\n \n ))}\n \n
\n
\n Equity percentage of total development costs* (TDC) %\n `${value}%`}\n parser={(value: string) => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"m-l-6 hideNumberPointers\"\n value={subdivision.tdcEquity}\n onBlur={() => {}}\n onChange={(value: number) => handleLocalChange(\"tdcEquity\", value)}\n placeholder={\"\"}\n maxLength={undefined}\n maxValue={undefined}\n />\n
\n
\n

\n *Residual land value, post DA professional fees, council fees and\n contributions, SBBIS bond, contract sum including builder's margin,\n contingency allowance, project manager costs, provision for 50% of\n agents presales, capitalised interest and line fee, holding costs\n during construction (land tax and rates), project marketing costs\n

\n
\n
\n Project manager required\n\n \n handleLocalChange(\"projectManagerRequired\", v || \"\")\n }\n allowClear\n >\n {YesNoOptions.map(x => (\n \n {x.label}\n \n ))}\n \n
\n
\n Contingencies allowance percentage of construction sum\n `${value}%`}\n parser={(value: string) => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"m-l-6 hideNumberPointers\"\n value={subdivision.contingenciesAllowance}\n onBlur={() => {}}\n onChange={(value: number) =>\n handleLocalChange(\"contingenciesAllowance\", value)\n }\n placeholder={\"\"}\n maxLength={undefined}\n maxValue={undefined}\n />\n
\n
\n Developer past successful projects (number up to 100)\n `${value}`}\n parser={(value: string) => value}\n className=\"m-l-6 hideNumberPointers\"\n value={subdivision.developerSuccessfulProjects}\n onBlur={() => {}}\n onChange={(value: number) =>\n handleLocalChange(\n \"developerSuccessfulProjects\",\n value > 100 ? 100 : value\n )\n }\n placeholder={\"\"}\n maxLength={undefined}\n maxValue={100}\n />\n
\n \n );\n}\n\nexport default Subdivision;\n","import { Button, message, Modal } from \"antd\";\nimport React, { Fragment, useMemo, useState, useEffect, useContext } from \"react\";\nimport { isNullEmptyOrUndefined } from \"../../../libs\";\nimport FinderUtilityContext from \"../FinderUtilityContext\";\nimport { finderFilterTypes } from \"../types\";\nimport LowAndHighPercentageFilters from \"./LowAndHighPercentageFilters\";\nimport LowAndHighAmountFilters from \"./LowHighAmountFilter\";\nimport PriorityLookup from \"./priority\";\nimport RadiusLookup from \"./radius\";\nimport Ratings from \"./ratings\";\nimport ScenarioLookup from \"./scenario\";\nimport SecurityTypeLookup from \"./securityType\";\nimport SettlementDate from \"./settlementDate\";\nimport SuburbAndStateLookup from \"./suburbAndState\";\nimport TermLookup from \"./term\";\nimport PrincipalFilters from \"./principal\";\nimport Valuation from \"./Valuation\";\nimport Credit from \"./Credit\";\nimport Interest from \"./Interest\";\nimport Construction from \"./Construction\";\nimport Subdivision from \"./Subdivision\";\n\nconst FinderUtilitySearchModal = ({\n title,\n value,\n type,\n visible,\n handleSearch,\n handleClose\n}) => {\n const {selectedSubAndState} = useContext(FinderUtilityContext);\n const [tempValue, setValue] = useState(\"\");\n const [valueLoaded, setValueLoaded] = useState(false);\n useEffect(() => {\n if (visible) {\n setValue(value);\n setValueLoaded(true);\n return;\n }\n setValueLoaded(false);\n }, [value, visible]);\n\n const handleFieldChange = ({ field, value, sub }) => {\n switch (field) {\n case finderFilterTypes.lowerRate:\n case finderFilterTypes.higherRate:\n case finderFilterTypes.lvr:\n case finderFilterTypes.establishmentFee:\n case finderFilterTypes.principal:\n case finderFilterTypes.term:\n setValue({ ...tempValue, [sub]: value });\n return;\n default:\n setValue(value);\n return;\n }\n };\n\n const validateLowAndHighValues = () => {\n let error = \"\";\n const { low, high } = tempValue;\n if (\n (isNullEmptyOrUndefined(low) && high) ||\n (isNullEmptyOrUndefined(high) && low)\n ) {\n error = \"Please enter values for lower end and higher end.\";\n }\n if (!isNullEmptyOrUndefined(low) && !isNullEmptyOrUndefined(high)) {\n error = low >= high ? \"The lower end of your range must be less than the higher end of your range.\" : \"\";\n switch(type){\n case finderFilterTypes.principal:\n if(low<50000 || high>150000000){\n error=\"You must choose a Principal Range between $50K and $100M.\"\n }\n break;\n case finderFilterTypes.higherRate:\n case finderFilterTypes.lowerRate:\n if(low<1 || high>150){\n error=\"You must choose an interest rate range between 1% and 150%.\"\n }\n break;\n case finderFilterTypes.establishmentFee:\n if(low<0 || high>4){\n error=\"You must choose an interest rate range between 0% and 4%.\"\n }\n break;\n case finderFilterTypes.lvr:\n if(low<5 || high>99){\n error=\"You must choose an interest rate range between 5% and 99%.\"\n }\n break;\n default:\n break;\n }\n }\n \n return error;\n };\n\n const validateSearchField = () => {\n let error = \"\";\n switch (type) { \n case finderFilterTypes.lowerRate:\n case finderFilterTypes.higherRate:\n case finderFilterTypes.lvr:\n case finderFilterTypes.establishmentFee:\n case finderFilterTypes.principal:\n error = validateLowAndHighValues();\n break;\n case finderFilterTypes.radius:\n if(!selectedSubAndState){\n error=\"Please select suburb and state\";\n }\n break;\n default:\n break;\n }\n\n if (error) {\n message.error(error);\n return;\n }\n handleSearch(tempValue);\n };\n const FilterComponent = useMemo(() => {\n if (!visible) return ;\n switch (type) {\n case finderFilterTypes.lowerRate:\n case finderFilterTypes.higherRate:\n case finderFilterTypes.lvr:\n case finderFilterTypes.establishmentFee:\n return (\n \n );\n case finderFilterTypes.suburbAndState:\n return (\n \n );\n case finderFilterTypes.radius:\n return (\n \n );\n case finderFilterTypes.principal:\n return (\n \n );\n case finderFilterTypes.priority:\n return (\n \n );\n case finderFilterTypes.scenario:\n return (\n \n );\n case finderFilterTypes.securityType:\n return (\n \n );\n case finderFilterTypes.settlementDate:\n return (\n \n );\n case finderFilterTypes.term:\n return (\n \n );\n case finderFilterTypes.lenderStarsFromBroker:\n case finderFilterTypes.brokerStarsFromLender:\n return (\n \n handleFieldChange({ value, field: type })\n }\n value={tempValue}\n />\n );\n case finderFilterTypes.valuation:\n return ;\n case finderFilterTypes.credit:\n return ;\n case finderFilterTypes.interest:\n return ;\n case finderFilterTypes.construction:\n return ;\n case finderFilterTypes.subdivision:\n return ;\n default:\n return ;\n }\n }, [type, tempValue, visible]);\n return (\n \n Search\n \n ]}\n >\n {valueLoaded && FilterComponent}\n \n );\n};\n\nexport default FinderUtilitySearchModal;\n","import { Divider, Icon } from \"antd\";\nimport { isEmpty } from \"lodash\";\nimport React, { Fragment, useContext, useMemo } from \"react\";\nimport { getItemName, isNullEmptyOrUndefined, mustBeArray } from \"../../../libs\";\nimport FinderUtilityContext from \"../FinderUtilityContext\";\nimport { defaultFilters, finderFilterTypes } from \"../types\";\nimport { MAX_PRINCIPAL_FINDER_LIST, MIN_PRINCIPAL_FINDER_LIST } from \"../../../constants\";\n\nconst DeleteIcon = ({ handleDelete }) => (\n \n);\n\nconst getPrincipalDisplayName = (value, list) => {\n return list.find(o => o.value === value)?.displayName;\n}\n\nconst FilterView = ({ data = {} }) => {\n const {\n displayFilter,\n handleDelete,\n priorityList,\n scenarioList,\n securityList,\n settlementList,\n termList,\n yesNoList,\n interestList\n } = useContext(FinderUtilityContext);\n const { type, value, title } = data;\n const {\n lowerRate,\n higherRate,\n lvr,\n establishmentFee,\n suburbAndState,\n securityType,\n radius,\n priority,\n principal,\n scenario,\n settlementDate,\n term,\n lenderStarsFromBroker,\n brokerStarsFromLender,\n construction,\n credit,\n interest,\n subdivision,\n valuation,\n } = finderFilterTypes;\n \n const displayAppliedFilters = () => {\n switch (type) {\n case lowerRate:\n case higherRate:\n case lvr:\n case establishmentFee:\n return !isNullEmptyOrUndefined(value.high) && !isNullEmptyOrUndefined(value.low) ? (\n
\n {`${value.low} - ${value.high}% ${\n [lowerRate, higherRate].includes(type) ? \"p/a\" : \"\"\n }`}\n
\n ) : null;\n case suburbAndState:\n case radius:\n return value ? value : null;\n case principal:\n return value.high && value.low ? (\n
\n {`${getPrincipalDisplayName(value.low, MIN_PRINCIPAL_FINDER_LIST)} - ${getPrincipalDisplayName(value.high, MAX_PRINCIPAL_FINDER_LIST)}`}\n
\n ) : null;\n case term:\n return value.high && value.low ? (\n
\n {`${getItemName({\n value: value.low,\n list: termList\n })} - ${getItemName({ value: value.high, list: termList })}`}\n
\n ) : null;\n case priority:\n const name = getItemName({ value, list: priorityList });\n return name ? `${name} Ranking` : null;\n case scenario:\n const scenarioName = getItemName({ value, list: scenarioList });\n return scenarioName ?? null;\n case settlementDate:\n const datePeriod = getItemName({ value, list: settlementList });\n return datePeriod ?? null;\n case lenderStarsFromBroker:\n case brokerStarsFromLender:\n return value ? `${value}+` : null;\n case securityType:\n if (isEmpty(securityList)) return null;\n return (\n
\n {mustBeArray(value).map((data, i) => {\n let subList = [];\n if(i===1){\n subList = securityList.find(o => o.id === value[0])?.securitySubTypes;\n }\n const securityName = getItemName({\n list: i=== 1 ?subList : securityList,\n value: data\n });\n\n return (\n \n {securityName && (\n \n {securityName}\n handleDelete({ index: i, type })}\n />\n
\n )}\n
\n );\n })}\n \n );\n case construction:\n case subdivision:\n case credit:\n return value ? `Criteria selected` : null;\n case valuation:\n return getItemName({value, list: yesNoList}) || null;\n case interest:\n return getItemName({value, list: interestList}) || null;\n default:\n return null;\n }\n };\n\n const displayValue = useMemo(() => {\n return displayAppliedFilters();\n }, [data, priorityList,\n scenarioList,\n securityList,\n settlementList,\n termList]);\n\n return (\n \n
\n {title}\n displayFilter(data)}\n />\n
\n {displayValue && (\n
\n {displayValue}{\" \"}\n {type !== securityType && (\n \n handleDelete({\n type,\n defaultValue: defaultFilters.find(o => o.type === type)\n ?.value,\n index: null\n })\n }\n />\n )}\n
\n )}\n \n
\n );\n};\n\nexport default FilterView;\n","import React, { Fragment, useEffect } from \"react\";\nimport FilterView from \"./filterView\";\nimport { finderFilterTypes } from \"../types\";\n\nconst Sidebar = ({ filters }) => {\n return (\n \n {filters.map((data, i, array) => {\n if (data.type === finderFilterTypes.construction) {\n return (\n !!array.find(\n x =>\n x.type === finderFilterTypes.scenario &&\n x.value === \"CONSTRUCTION\"\n ) && \n );\n } else if (data.type === finderFilterTypes.subdivision) {\n return (\n !!array.find(\n x =>\n x.type === finderFilterTypes.scenario &&\n x.value === \"SUBDIVISION\"\n ) && \n );\n }\n\n return ;\n })}\n \n );\n};\n\nexport default Sidebar;\n","import React from \"react\";\nimport { Select } from \"antd\";\nimport { BROKER_USER, LENDER_USER } from \"../../../constants/systemUsers\";\n\nconst LenderBrokerFilter = ({ value, onChange }) => {\n return (\n \n );\n};\n\nexport default LenderBrokerFilter;\n","import { Button, Col } from \"antd\";\nimport { Row } from \"antd/es/grid\";\nimport React, { useContext } from \"react\";\nimport { LENDER_USER } from \"../../../constants/systemUsers\";\nimport FinderUtilityContext from \"../FinderUtilityContext\";\n\nconst FinderUtilityUserDetailHeader = ({ user }) => {\n const { userType, handleViewDetails, generalView } = useContext(\n FinderUtilityContext\n );\n const idText = userType === LENDER_USER ? \"lenderId\" : \"brokerId\";\n const logo = user?.logoFile?.fileUrl;\n return (\n \n {logo ? : }\n \n
\n {user?.matchedLoansCount || 0}{\" \"}\n Matching Loans\n
\n \n \n \n \n
\n );\n};\n\nexport default FinderUtilityUserDetailHeader;\n","import React, {useContext } from 'react';\nimport { LENDER_USER } from '../../../constants/systemUsers';\nimport { UserProfileImage } from '../../Common';\nimport FinderUtilityContext from '../FinderUtilityContext';\n\nconst FinderUserBasicDetail = ({user}) => {\n const {userType} = useContext(FinderUtilityContext);\n const userFullName = userType === LENDER_USER ? \"lenderName\" : 'brokerName';\n \n return (\n
\n \n
\n
{user?.[userFullName]}
\n
{user?.mobileNumber}
\n {user?.email}\n
\n
\n );\n}\n \nexport default FinderUserBasicDetail;","import React, { useContext } from \"react\";\nimport FinderUtilityUserDetailHeader from \"./header\";\nimport KeyMetrics from \"./KeyMetrics\";\nimport FinderUserBasicDetail from \"./userBasicDetail\";\nimport { LENDER_USER } from \"../../../constants/systemUsers\";\nimport FinderUtilityContext from \"../FinderUtilityContext\";\nimport RateView from \"../../../Common/RateView\";\nconst FinderUserView = ({ user }) => {\n const { userType } = useContext(FinderUtilityContext);\n const ratingsValue = userType === LENDER_USER ? user?.avgBrokerStarRating : user?.avgLenderStarRating;\n return (\n
\n \n
\n \n \n \n
\n
\n );\n};\n\nexport default FinderUserView;\n","import { Select } from \"antd\";\nimport { useCallback, useEffect } from \"react\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport axios from \"axios\";\nimport { debounce } from \"lodash\";\nimport { omicronBDMLookups } from \"../../actions/lookup\";\nimport React, { useState } from \"react\";\nimport { mustBeArray } from \"../../libs\";\nimport { updateHeader } from \"../../actions/member\";\n\nconst OmicronBDMLookup = () => {\n const dispatchAction = useDispatch();\n const header = useSelector(state => state.member.header);\n const signal = axios.CancelToken.source();\n const [list, setList] = useState([]);\n\n useEffect(() => {\n dispatchAction(\n omicronBDMLookups({ cancelToken: signal.token, search: \"\" })\n ).then(resp => {\n updateList(mustBeArray(resp));\n });\n }, []);\n\n const updateList = currentList => {\n const listIncludesBDM = currentList.find(\n o => o.name === header?.omicronBdm?.name\n );\n //Update the object here to include header?.currentOmicronBDM?.id and display name\n if (header?.omicronBdm?.id && !listIncludesBDM) {\n setList([...currentList, { id: header?.omicronBdm?.id, name: header?.omicronBdm?.name}]);\n return;\n }\n setList(currentList);\n };\n\n const handleSearch = e => {\n dispatchAction(\n omicronBDMLookups({ cancelToken: signal.token, search: e })\n ).then(resp => {\n updateList(mustBeArray(resp));\n });\n };\n\n const handleChange = value => {\n const selectedBdm = list.find(\n o => o.id === value\n );\n dispatchAction(\n updateHeader({\n header: {\n ...header,\n omicronBdm: { id: value, name: selectedBdm.name}\n }\n })\n );\n };\n const debouncedSearch = useCallback(debounce(handleSearch, 300));\n return (\n
\n

Omicron BDM

\n \n {list.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n );\n};\nexport default OmicronBDMLookup;\n","import React from 'react';\nimport { useSelector } from 'react-redux';\n\nconst OmicronBDMView = () => {\n const header = useSelector(state => state.member.header);\n return ( header?.omicronBdm?.name ?\n
\n

Omicron BDM

\n {header?.omicronBdm?.name}\n
\n :\n null\n );\n};\nexport default OmicronBDMView;\n","import { BGS_LAWFIRM_ROLE } from \"../SystemRoles\";\n\nexport function isLawFirmUserPolicy(roles) {\n let passed = (roles ?? []).some(x => x === BGS_LAWFIRM_ROLE);\n return Promise.resolve(passed);\n }","import React, { Fragment } from \"react\";\nimport { Button, message, Modal } from \"antd\";\nimport history from \"../routes/history\";\nimport { connect } from \"react-redux\";\nimport {\n checkSession,\n getProfileInfo,\n getUserData,\n signoutUser,\n updateRouteOptions\n} from \"../actions/member\";\nimport {\n addBrokerProfile,\n addLenderProfile,\n deleteBrokerProfile,\n deleteLenderProfile,\n getLenderProfile,\n getBrokerProfile,\n setActiveProfile,\n masterSwitchTurnOff,\n profileStatusTurnOff,\n profileStatusTurnOn,\n resendInvitation,\n resetPassword,\n deleteFinancierAccount,\n deleteLawFirmAccount,\n clearProfileDetails,\n updateProfileLoading\n} from \"../actions/profile\";\nimport SettingDropdownOption from \"./SettingDropDown\";\nimport ProfileSwitch from \"./ProfileSwitchOption\";\nimport { errorDisplay, mustBeArray } from \"../libs/utilities\";\nimport { isSystemUserPolicy } from \"../Common/Authorization/policies/isSystemUserPolicy\";\nimport {\n ADMIN_USER,\n BROKER_USER,\n LAW_FIRM_USER,\n LENDER_USER\n} from \"../constants/systemUsers\";\nimport {\n BROKER_PROFILE_ROUTES_WITHOUT_LENDER_PROFILE_SYSTEM_USER,\n DEFAULT_ROUTES_SYSTEM_USER,\n LENDER_PROFILE_ROUTES_WITHOUT_BROKER_PROFILE_SYSTEM_USER,\n PROFILE_HAS_NOT_ACCEPTED_INVITATION,\n CAN_RESET_PROFILE_PASSWORD\n} from \"../constants/routeOptions\";\nimport { Visible } from \"./Common/visiblityWrapper\";\nimport { isLenderUserPolicy } from \"../Common/Authorization/policies/isLenderUserPolicy\";\nimport { isBrokerUserPolicy } from \"../Common/Authorization/policies/isBrokerUserPolicy\";\nimport _ from \"lodash\";\nimport authService from \"../actions/AuthorizeService\";\nimport UniversalSearchBox from \"./Common/UniversalSearchBox\";\nimport { FINDER_FILTER, FINDER_USER_TYPE } from \"../constants\";\nimport { defaultFilters } from \"./FinderUtility\";\nimport OmicronBDMLookup from \"./PageHeaders/omicronBDMLookup\";\nimport OmicronBDMView from \"./PageHeaders/omicronBDMView\";\nimport { isLawFirmUserPolicy } from \"../Common/Authorization/policies/isLawFirmPolicy\";\n\nclass Navbar extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n userType: \"\",\n visible: false,\n loading: false,\n deleteLenderBrokerErrorText: \"\",\n showLenderBrokerDeleteErrorModal: false,\n deleteFinancierDeleteConfirmationText: \"\",\n showFinancierDeleteConfirmationModal: false,\n isCurrentUserLawFirm: false,\n deleteLawFirmDeleteConfirmationText: \"\",\n deleteLawFirmErrorText: \"\",\n showLawFirmDeleteErrorModal: false,\n showLawFirmDeleteConfirmationModal: false,\n };\n }\n componentDidMount() {\n this.getProfileDetails();\n }\n getProfileDetails = async () => {\n const { user } = this.props;\n let isLender = await isLenderUserPolicy(user.roles, user.permissions, user);\n let isBroker = await isBrokerUserPolicy(user.roles, user.permissions, user);\n let isAdmin = await isSystemUserPolicy(user.roles, user.permissions, user);\n let isLawFirm = await isLawFirmUserPolicy(user.roles);\n const currentUserType = this.getUserType(\n isLender,\n isBroker,\n isAdmin,\n isLawFirm\n );\n this.setState({\n userType: currentUserType,\n isCurrentUserLawFirm: isLawFirm\n });\n };\n\n getUserType = (isLender, isBroker, isAdmin, isLawFirm) => {\n if (isLender) return LENDER_USER;\n if (isBroker) return BROKER_USER;\n if (isAdmin) return ADMIN_USER;\n if (isLawFirm) return LAW_FIRM_USER;\n return \"\";\n };\n\n onActionClicked = () => {\n const { action, page } = this.props.header;\n const { match } = this.props;\n switch (page?.toLowerCase()) {\n case \"open cases\":\n if (action === \"add\") return history.push(\"/cases/create\");\n else\n return history.push(\n `/cases/${match && match.params && match.params.id}/edit`\n );\n default:\n break;\n }\n };\n\n backHistory = () => {\n history.goBack();\n };\n\n onDeleteFinancier = async (broker, lender) => {\n this.setState({\n deleteFinancierDeleteConfirmationText: \"\",\n showFinancierDeleteConfirmationModal: false\n });\n const response = await this.props.deleteFinancierAccount({\n id: broker.companyId || lender.companyId\n });\n if (response.status) {\n message.success(\"Account deleted successfully\");\n await this.handleUpdateRouteOptions({\n routeOptions: DEFAULT_ROUTES_SYSTEM_USER\n });\n return history.push(\"/users\");\n } else {\n if (response.data.errors.some(x => x.code == \"ERR_HASLOANS\")) {\n this.setState({\n showLenderBrokerDeleteErrorModal: true,\n deleteLenderBrokerErrorText: response.data.errors[0].message\n });\n } else {\n errorDisplay(response && response.data && response.data.errors);\n }\n }\n\n this.setState({ loading: false });\n };\n\n onDeleteLawFirm = async (lawFirm) => {\n this.setState({\n deleteLawFirmDeleteConfirmationText: \"\",\n showLawFirmDeleteConfirmationModal: false\n });\n const response = await this.props.deleteLawFirmAccount({\n id: lawFirm.companyId\n });\n if (response.status) {\n message.success(\"Account deleted successfully\");\n await this.handleUpdateRouteOptions({\n routeOptions: DEFAULT_ROUTES_SYSTEM_USER\n });\n return history.push(\"/users\");\n } else {\n if (response.data.errors.some(x => x.code == \"ERR_HASLOANS\")) {\n this.setState({\n showLawFirmDeleteErrorModal: true,\n deleteLawFirmErrorText: response.data.errors[0].message\n });\n } else {\n errorDisplay(response && response.data && response.data.errors);\n }\n }\n\n this.setState({ loading: false });\n }\n\n handleNoteButtonClick = async () => {\n const { match, user } = this.props;\n const isSystemUser = await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n\n const userRole = isSystemUser ? ADMIN_USER : \"\";\n\n history.push({\n pathname: \"/users/notes\",\n state: { match: match, userType: userRole }\n });\n };\n\n onCancel = () => {\n this.setState({ visible: false, loading: false });\n };\n\n getActionProps = () => {\n let buttonProps = { icon: \"\", label: \"\" };\n switch (this.props.header?.action) {\n case \"add\":\n buttonProps = { icon: \"plus-circle\", label: \"New\" };\n break;\n case \"edit\":\n buttonProps = { icon: \"edit\", label: \"Edit\" };\n break;\n default:\n break;\n }\n return buttonProps;\n };\n\n handleUpdateRouteOptions = async ({ routeOptions }) => {\n await this.props.updateRouteOptions({ routeOptions });\n };\n handleProfileAction = async option => {\n const { lender, match, user, broker, lawFirm, header } = this.props;\n const isSystemUser = await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n let isLawFirm = await isLawFirmUserPolicy(user.roles);\n let userDetails = await authService.getUser();\n let usersLenderId = userDetails[\"app.user.lenderid\"];\n let usersBrokerId = userDetails[\"app.user.brokerid\"];\n\n switch (option && option.action) {\n case \"addBroker\": {\n this.setState({ loading: true });\n const resp = await this.props.addBrokerProfile({\n id: lender && lender.companyId\n });\n if (resp.status) {\n message.success(\"Broker profile added successfully\");\n this.props\n .getLenderProfile({\n id: match && match.params && match.params.id,\n userType: isSystemUser ? ADMIN_USER : LENDER_USER,\n isUserViewingSelfProfile:\n usersLenderId === (match && match.params && match.params.id)\n })\n .then(response => {\n if (response.status) {\n history.push(\n `/users/${response.data && response.data.brokerId}/broker`\n );\n }\n });\n }\n this.setState({ loading: false });\n break;\n }\n case \"addLender\": {\n this.setState({ loading: true });\n const userType = isSystemUser ? ADMIN_USER : BROKER_USER;\n const response = await this.props.addLenderProfile({\n id: broker.companyId,\n userType\n });\n if (response.status) {\n message.success(\"Lender profile added successfully\");\n const response = await this.props.getBrokerProfile({\n id: match.params.id,\n userType\n });\n\n this.setState({ loading: false });\n if (response.status) {\n history.push(`/users/${response.data.lenderId}/lender`);\n }\n }\n break;\n }\n case \"deleteBroker\": {\n this.setState({ loading: true });\n const resp = await this.props.deleteBrokerProfile({\n id: lender && lender.companyId\n });\n if (resp.status) {\n message.success(\"Broker profile deleted successfully.\");\n const response = await this.props.getLenderProfile({\n id: match?.params?.id,\n userType: isSystemUser ? ADMIN_USER : LENDER_USER,\n isUserViewingSelfProfile: usersLenderId === match?.params?.id\n });\n\n this.props.setActiveProfile(\n lender.brokerId,\n lender.id,\n this.props.activeProfile.active\n );\n\n let updatedRoutes = [];\n if (!response.data.hasAcceptedInvitation) {\n updatedRoutes = [\n ...LENDER_PROFILE_ROUTES_WITHOUT_BROKER_PROFILE_SYSTEM_USER,\n ...PROFILE_HAS_NOT_ACCEPTED_INVITATION\n ];\n } else {\n updatedRoutes = [\n ...LENDER_PROFILE_ROUTES_WITHOUT_BROKER_PROFILE_SYSTEM_USER,\n ...CAN_RESET_PROFILE_PASSWORD\n ];\n }\n await this.handleUpdateRouteOptions({ routeOptions: updatedRoutes });\n } else {\n if (resp.data.errors.some(x => x.code == \"ERR_HASLOANS\")) {\n this.setState({\n showLenderBrokerDeleteErrorModal: true,\n deleteLenderBrokerErrorText: resp.data.errors[0].message\n });\n } else {\n errorDisplay(resp && resp.data && resp.data.errors);\n }\n }\n this.setState({ loading: false });\n break;\n }\n case \"deleteLender\": {\n this.setState({ loading: true });\n const userType = isSystemUser ? ADMIN_USER : BROKER_USER;\n const response = await this.props.deleteLenderProfile({\n id: broker.companyId,\n userType\n });\n if (response.status) {\n message.success(\"Lender profile deleted successfully\");\n const response = await this.props.getBrokerProfile({\n id: match.params.id,\n userType,\n isUserViewingSelfProfile:\n usersBrokerId === (match && match.params && match.params.id)\n });\n this.props.setActiveProfile(\n response?.data?.id,\n response?.data?.lenderId,\n this.props.activeProfile.active\n );\n let updatedRoutes = [];\n if (!response?.data?.hasAcceptedInvitation) {\n updatedRoutes = [\n ...BROKER_PROFILE_ROUTES_WITHOUT_LENDER_PROFILE_SYSTEM_USER,\n ...PROFILE_HAS_NOT_ACCEPTED_INVITATION\n ];\n } else {\n updatedRoutes = [\n ...BROKER_PROFILE_ROUTES_WITHOUT_LENDER_PROFILE_SYSTEM_USER,\n ...CAN_RESET_PROFILE_PASSWORD\n ];\n }\n await this.handleUpdateRouteOptions({ routeOptions: updatedRoutes });\n } else {\n if (response.data.errors.some(x => x.code == \"ERR_HASLOANS\")) {\n this.setState({\n showLenderBrokerDeleteErrorModal: true,\n deleteLenderBrokerErrorText: response.data.errors[0].message\n });\n } else {\n errorDisplay(response && response.data && response.data.errors);\n }\n }\n this.setState({ loading: false });\n break;\n }\n case \"deleteFinancierAccount\": {\n this.setState({ loading: true });\n var companyName = \"\";\n var relatedUsers = \"\";\n if (Object.keys(broker).length > 0) {\n companyName = broker.companyName;\n relatedUsers = broker.portraits\n .map(u => u.firstname + \" \" + u.lastname)\n .join(\"\\r\\n\");\n } else {\n companyName = lender.companyName;\n relatedUsers = lender.portraits\n .map(u => u.firstname + \" \" + u.lastname)\n .join(\"\\r\\n\");\n }\n if (\n broker.associatedLoansCountAsBroker <= 0 ||\n lender.associatedLoansCountAsLender <= 0\n ) {\n this.setState({\n deleteFinancierDeleteConfirmationText:\n \"You are about to delete \" +\n companyName +\n \" along with the following users: \\n\" +\n relatedUsers,\n showFinancierDeleteConfirmationModal: true\n });\n } else {\n this.onDeleteFinancier(broker, lender);\n }\n\n break;\n }\n case \"deleteLawFirmAccount\":\n this.setState({ loading: true });\n const relatedToLawFirm = lawFirm.portraits\n .map(u => u.firstname + \" \" + u.lastname)\n .join(\"\\r\\n\");\n if (lawFirm.associatedLoansCountAsLawyer <= 0) {\n this.setState({\n deleteLawFirmDeleteConfirmationText:\n \"You are about to delete \" +\n lawFirm.companyName +\n \" along with the following users: \\n\" +\n relatedToLawFirm,\n showLawFirmDeleteConfirmationModal: true\n });\n } else {\n this.onDeleteLawFirm(lawFirm);\n }\n break;\n case \"resendInvitation\": {\n this.setState({ loading: true });\n const response = await this.props.resendInvitation({\n id: this.props.activePortrait?.individualId\n });\n if (response.status) {\n message.success(\"Invitation sent successfully\");\n } else {\n errorDisplay(response.data.errors);\n }\n this.setState({ loading: false });\n break;\n }\n case \"resetPassword\": {\n this.setState({ loading: true });\n const response = await this.props.resetPassword({\n id: this.props.activePortrait?.individualId\n });\n if (response.status) {\n message.success(\"Password reset email sent successfully\");\n } else {\n errorDisplay(response.data.errors);\n }\n this.setState({ loading: false });\n break;\n }\n case \"accessProfile\":\n return history.push(\"/users\");\n case \"privacySettings\":\n history.push(`/privacy-settings/${match?.params?.id}`);\n break;\n case \"privacySettingsOwnProfile\":\n history.push(`/privacy-settings/${usersLenderId}`);\n break;\n case \"emailSubscriptions\":\n var id = lender.currentIndividualId\n ? lender.currentIndividualId\n : broker.currentIndividualId\n ? broker.currentIndividualId\n : user[\"app.user.individualid\"] \n ? user[\"app.user.individualid\"] \n : header.currentPortraitIndividualId;\n const emailSubcriptionProfileType = header.emailSubcriptionProfileType ? `/${header.emailSubcriptionProfileType}` : \"\";\n history.push(`/email-subscriptions/${id}${emailSubcriptionProfileType}`);\n break;\n case \"finderUtility\":\n this.handleRedirct();\n break;\n case \"addUser\":\n history.push(\n `/companies/${broker.companyId ||\n lender.companyId ||\n lawFirm.companyId}/users/create`\n );\n break;\n case \"editAccount\":\n // Prevent showing of searchbox as lawfirm\n this.props.updateHeader({ header: { editMode: true, showSearchBox: !isLawFirm } });\n break;\n default:\n break;\n }\n };\n\n handleSearchBoxChange = async(e, data) => {\n if (e != undefined) {\n if (e.searchType === \"LOAN\") {\n history.push(`/loans/${e.id}/view`);\n } else {\n const userType = e.userType === \"Law Firm\" ? \"lawfirm\" : e.userType;\n await this.props.clearProfileDetails();\n await this.props.updateProfileLoading(true);\n setTimeout(() => {\n history.push({\n pathname: `/users/${e.profileId}/${userType}`,\n state: { user: data.user }\n });\n }, 200);\n }\n }\n };\n\n handleLenderBrokerErrorModalClose = () => {\n this.setState({\n deleteLenderBrokerErrorText: \"\",\n showLenderBrokerDeleteErrorModal: false\n });\n }\n handleFinancierDeleteConfirmationModalClose = () => {\n this.setState({\n deleteFinancierDeleteConfirmationText: \"\",\n showFinancierDeleteConfirmationModal: false,\n loading: false\n });\n }\n handleLawFirmErrorModalClose = () => {\n this.setState({\n deleteLawFirmErrorText: \"\",\n showLawFirmDeleteErrorModal: false\n });\n }\n handleLawFirmDeleteConfirmationModalClose = () => {\n this.setState({\n deleteLawFirmDeleteConfirmationText: \"\",\n showLawFirmDeleteConfirmationModal: false,\n loading: false\n });\n }\n handleRedirct = () => {\n if (!window.location.url?.includes(\"finder-utility\")) {\n localStorage.setItem(FINDER_FILTER, defaultFilters);\n localStorage.setItem(FINDER_USER_TYPE, \"\");\n }\n history.push(\"/finder-utility\");\n };\n handleDeleteFinancierChange = () => {\n const { lender, broker, lawFirm } = this.props;\n this.onDeleteFinancier(broker, lender, lawFirm);\n }\n handleDeleteLawFirmChange = () => {\n const {lawFirm} = this.props;\n this.onDeleteLawFirm(lawFirm);\n }\n\n\n render() {\n const {\n showSettings,\n hasSwitchProfile,\n showNotesButton,\n editMode,\n showOmicronBDM,\n showPageTitle,\n allowSwitchProfile,\n showSearchBox,\n showDeactivatedMessage\n } = this.props.header;\n const { isFinderUtility, routeOptions, generalView, lawFirm } = this.props;\n const isLawFirmUser = lawFirm?.id;\n return (\n
\n {!generalView && (\n \n
\n {showNotesButton && (\n \n \n \n )}\n {showSearchBox && }\n {showSettings && (\n \n )}\n
\n
\n )}\n {/* Header title and options */}\n \n {showDeactivatedMessage && (\n
\n

THE ACCOUNT HAS BEEN DEACTIVATED

\n

If it belongs to you contact

\n

your BDM to request activation

\n
\n )}\n {showPageTitle ? (\n
\n

Law Firm Profile

\n
\n ) : (\n \n
\n \n \n \n
\n \n {editMode && this.state.userType === ADMIN_USER ? (\n \n ) : (\n \n )}\n \n
\n )}\n \n
\n \n Cancel\n \n ]}\n >\n {this.state.deleteLenderBrokerErrorText}\n \n this.handleDeleteFinancierChange()}\n >\n Okay\n ,\n \n Cancel\n \n ]}\n >\n
\n {this.state.deleteFinancierDeleteConfirmationText}\n
\n
Are you sure you wish to proceed?
\n \n\n {/* Lawfirm delete modals*/}\n \n Cancel\n \n ]}\n >\n {this.state.deleteLawFirmErrorText}\n \n this.handleDeleteLawFirmChange()}\n >\n Okay\n ,\n \n Cancel\n \n ]}\n >\n
\n {this.state.deleteLawFirmDeleteConfirmationText}\n
\n
Are you sure you wish to proceed?
\n \n
\n );\n }\n}\n\nconst mapStateToProps = state => ({\n member: state.member || {},\n header: state.member && state.member.header,\n routeOptions: mustBeArray(state.member && state.member.routesOptions),\n lender: state.profile.lender,\n broker: state.profile.broker,\n lawFirm: state.profile.lawFirm,\n activePortrait: state.profile.activePortrait,\n user: state.authorization.user,\n activeProfile: state.profile.activeProfile\n});\n\nconst mapDispatchToProps = {\n signoutUser,\n getUserData,\n getProfileInfo,\n checkSession,\n addBrokerProfile,\n addLenderProfile,\n deleteBrokerProfile,\n deleteLenderProfile,\n getLenderProfile,\n getBrokerProfile,\n updateRouteOptions,\n setActiveProfile,\n masterSwitchTurnOff,\n profileStatusTurnOff,\n profileStatusTurnOn,\n resendInvitation,\n resetPassword,\n deleteFinancierAccount,\n deleteLawFirmAccount,\n clearProfileDetails,\n updateProfileLoading\n};\n\nexport default connect(\n mapStateToProps,\n mapDispatchToProps\n)(Navbar);\n","import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { connect } from \"react-redux\";\nimport Navbar from \"../components/navBar\";\nimport { Layout } from \"antd\";\nimport { HandleProgressBar } from \"../Common/progressBar\";\nimport * as actions from \"../actions/member\";\nimport Loading from \"../components/loading\";\nimport PageHeader from \"../components/PageHeader\";\n\nconst { Header, Content} = Layout;\n\nclass TemplateNavbar extends Component {\n state = {\n loading: false,\n responsive: false,\n collapsed: false\n };\n\n render() {\n const { loading } = this.state;\n const {index, member, generalView} = this.props;\n const isFinderUtility = window.location.pathname?.includes(\"finder-utility\");\n return loading ? (\n \n ) : (\n \n
\n \n
\n\n \n \n \n
{this.props.children}
\n
\n \n );\n }\n}\n\nTemplateNavbar.propTypes = {\n children: PropTypes.element.isRequired\n};\n\nfunction mapStateToProps(state) {\n return { member: state.member };\n}\n\nexport default connect(\n mapStateToProps,\n actions\n)(TemplateNavbar);\n","export const hasNext = [\n \"Short text\",\n \"Long text\",\n \"Checklist\",\n \"Date field\",\n \"File upload\"\n];\n\nexport const mobileNumberRegex = /^(?:\\+?(61))? ?(?:\\((?=.*\\)))?(0?[2-57-8])\\)? ?(\\d\\d(?:[- ](?=\\d{3})|(?!\\d\\d[- ]?\\d[- ]))\\d\\d[- ]?\\d[- ]?\\d{3})$/;","import React, { useState } from \"react\";\nimport { Button, Icon, Input, Popconfirm, Radio, Select, Table } from \"antd\";\nimport _ from \"lodash\";\nimport { tableColumnGenerator } from \"../../libs/table\";\nimport { mustBeArray } from \"../../libs/utilities\";\nimport EditIcon from \"../../assets/icons/EditIcon\";\nimport DeleteIcon from \"../../assets/icons/DeleteIcon\";\nimport { isSystemAdminUserPolicy } from \"../../Common/Authorization/policies/isSystemUserAdminPolicy\";\nimport { AuthorizedView } from \"../../Common/Authorization/AuthorizedView\";\nimport { mobileNumberRegex } from \"../../constants/inputFields\";\n\nconst UsersList = props => {\n const {\n list,\n loading,\n handleAction,\n sortInfo,\n handleEdit,\n handleSave,\n updatedUserList,\n positionsList\n } = props;\n\n const [processing, setProcessing] = useState(false);\n\n async function onSaveClicked(record) {\n try {\n setProcessing(true);\n if(checkValidMobile(record.mobile)){\n await handleSave({ record });\n }\n } finally {\n setProcessing(false);\n }\n }\n\n function checkValidMobile(value = \"\") {\n return mobileNumberRegex.test(value);\n }\n\n const colTemplate = [\n {\n title: \"First name\",\n dataIndex: \"userNameFirst\",\n width: \"13%\",\n sorter: true,\n sortOrder:\n sortInfo && sortInfo.field === \"userNameFirst\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return updatedUserList.includes(record && record.id) ? (\n \n handleEdit({\n record,\n field: \"userNameFirst\",\n value: e.target.value\n })\n }\n />\n ) : (\n data\n );\n }\n },\n {\n title: \"Last name\",\n dataIndex: \"userNameLast\",\n width: \"13%\",\n sorter: true,\n sortOrder:\n sortInfo && sortInfo.field === \"userNameLast\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return updatedUserList.includes(record && record.id) ? (\n \n handleEdit({\n record,\n field: \"userNameLast\",\n value: e.target.value\n })\n }\n />\n ) : (\n data\n );\n }\n },\n {\n title: \"Email\",\n dataIndex: \"userEmail\",\n width: \"20%\",\n sorter: true,\n sortOrder:\n sortInfo && sortInfo.field === \"userEmail\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return updatedUserList.includes(record && record.id) ? (\n \n handleEdit({ record, field: \"userEmail\", value: e.target.value })\n }\n />\n ) : (\n data\n );\n }\n },\n {\n title: \"Mobile\",\n dataIndex: \"mobile\",\n width: \"10%\",\n sorter: true,\n sortOrder:\n sortInfo && sortInfo.field === \"mobile\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return updatedUserList.includes(record && record.id) ? (\n {\n handleEdit({ record, field: \"mobile\", value: e.target.value });\n }}\n style={{\n outline: !checkValidMobile(data) ? '1px solid red' : ''\n }}\n />\n ) : (\n data\n );\n }\n },\n {\n title: \"Status\",\n dataIndex: \"userIsActive\",\n width: \"10%\",\n sorter: true,\n sortOrder:\n sortInfo && sortInfo.field === \"userIsActive\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return updatedUserList.includes(record && record.id) ? (\n \n handleEdit({\n record,\n field: \"userIsActive\",\n value: e === 1 ? true : false\n })\n }\n >\n Current\n Former\n \n ) : data ? (\n \n Current \n \n ) : (\n \n Former \n \n );\n }\n },\n {\n title: \"Administrator\",\n dataIndex: \"isAdmin\",\n width: \"15%\",\n sorter: true,\n sortOrder:\n sortInfo && sortInfo.field === \"isAdmin\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return (\n \n handleEdit({\n record,\n field: \"isAdmin\",\n value: e.currentTarget.checked\n })\n }\n />\n );\n }\n }\n ];\n const actions = [\n {\n title: \"\",\n dataIndex: \"\",\n sorter: false,\n width: \"9%\",\n render: record => {\n return updatedUserList.includes(record && record.id) ? (\n \n onSaveClicked(record)}\n >\n Save\n \n \n ) : (\n \n \n handleAction({ record, action: \"edit\" })}\n />\n handleAction({ record, action: \"delete\" })}\n >\n \n \n \n \n );\n }\n }\n ];\n const tableCoumn = _.concat(tableColumnGenerator(colTemplate), actions);\n return (\n record.id}\n />\n );\n};\n\nexport default UsersList;\n","import { message, Tabs } from \"antd\";\nimport React, { Component } from \"react\";\nimport { connect } from \"react-redux\";\nimport { updateHeader, updateRouteOptions } from \"../../actions/member\";\nimport { saveProfile } from \"../../actions/profile\";\nimport { getUsersList, deleteUser, updateUser } from \"../../actions/users\";\nimport { positionsLookup } from \"../../actions/lookup\";\nimport axios from \"axios\";\nimport { errorDisplay, mustBeArray, delay } from \"../../libs/utilities\";\nimport UsersList from \"../../components/Users/UsersList\";\nimport _ from \"lodash\";\nimport { DEFAULT_ROUTES_SYSTEM_USER } from \"../../constants/routeOptions\";\n\nconst userTypes = [\"CURRENT\", \"FORMER\"];\n\nclass SystemUsersList extends Component {\n signal = axios.CancelToken.source();\n constructor(props) {\n super(props);\n this.state = {\n activeKey: \"1\",\n roles: [],\n saveLoading: false,\n currentUserList: [],\n formerUserList: [],\n currentUserEdited: [],\n formerUserEdited: [],\n positionsList: [],\n loading: false\n };\n }\n\n componentDidMount() {\n this.props.updateHeader({\n header: {\n title: \"System Users Console\",\n action: \"\",\n page: \"users\",\n enableBack: false,\n showSettings: true,\n showMasterSwitch: false,\n showIsProfileActive: false,\n hasSwitchProfile: false,\n editMode: false,\n showNotesButton: true,\n showOmicronBDM: false,\n omicronBdm: null,\n showPageTitle: false\n }\n });\n this.props.updateRouteOptions({routeOptions: DEFAULT_ROUTES_SYSTEM_USER});\n userTypes.forEach(type => {\n return this.getUsersList({ type });\n });\n this.getPositionsList();\n }\n getUsersList = ({ type }) => {\n this.setState({\n loading: true\n });\n this.props\n .getUsersList({\n options: { activeOnly: type === \"CURRENT\" ? true : false },\n cancelToken: this.signal.token,\n type\n })\n .then(resp => {\n if (resp.status) {\n this.setState({\n loading: false\n });\n this.setState({\n [type === \"CURRENT\"\n ? \"currentUserList\"\n : \"formerUserList\"]: mustBeArray(resp.data)\n });\n }\n });\n };\n getPositionsList = () => {\n this.props\n .positionsLookup({ cancelToken: this.signal.token })\n .then(resp => {\n if (resp.status) {\n this.setState({\n positionsList: mustBeArray(resp.data && resp.data.data)\n });\n }\n });\n };\n handleAction = ({ type, record, action }) => {\n if (action === \"edit\") {\n if (type === \"current\") {\n this.setState({\n currentUserEdited: [\n ...this.state.currentUserEdited,\n record && record.id\n ]\n });\n } else {\n this.setState({\n formerUserEdited: [\n ...this.state.formerUserEdited,\n record && record.id\n ]\n });\n }\n } else if (action === \"delete\") {\n this.deleteSystemUser(record);\n }\n };\n\n async deleteSystemUser(record) {\n this.setState({ loading: true });\n try {\n const res = await this.props.deleteUser({ id: record.id });\n if(res.data.errors){\n errorDisplay(res.data.errors);\n }\n userTypes.forEach(type => {\n return this.getUsersList({ type });\n });\n }\n finally {\n this.setState({ loading: false });\n }\n }\n\n handleTabChange = activeKey => {\n this.setState({ activeKey });\n };\n handleSubmit = values => {\n this.setState({ saveLoading: true });\n this.props\n .saveProfile({ payLoad: values, cancelToken: this.signal.token })\n .then(resp => {\n this.setState({ saveLoading: false, ...this.props.header });\n this.props.updateHeader({\n header: {\n editMode: false\n }\n });\n if (resp.status) {\n } else {\n errorDisplay(resp?.data?.errors);\n }\n });\n };\n\n handleEdit = ({ type, record, value, field }) => {\n if (type === \"current\") {\n this.setState(prevState => {\n prevState.currentUserList = prevState.currentUserList.map(user => {\n let newData = { [field]: value };\n if (field === \"positionKey\") {\n const currentPosition = _.find(\n prevState.positionsList,\n o => o.id === value\n );\n newData.positionName = currentPosition && currentPosition.name;\n }\n if (field === \"isAdmin\" && user.id === record.id) {\n newData[field] = !user.isAdmin;\n }\n return user.id === record.id ? { ...user, ...newData } : user;\n });\n return prevState;\n });\n } else {\n this.setState(prevState => {\n prevState.formerUserList = prevState.formerUserList.map(user => {\n let newData = { [field]: value };\n if (field === \"positionKey\") {\n const currentPosition = _.find(\n prevState.positionsList,\n o => o.id === value\n );\n newData.positionName = currentPosition && currentPosition.name;\n }\n if (field === \"isAdmin\" && user.id === record.id) {\n newData[field] = !user.isAdmin;\n }\n return user.id === record.id ? { ...user, ...newData } : user;\n });\n return prevState;\n });\n }\n delay(200).then(() => {\n this.forceUpdate();\n });\n };\n\n handleSave = async ({ record }) => {\n let payLoad = {};\n if (record) {\n payLoad = {\n firstname: record.userNameFirst,\n lastname: record.userNameLast,\n isActive: record.userIsActive,\n positionKey: record.positionKey,\n isAdmin: record.isAdmin,\n email: record.userEmail,\n mobile: record.mobile\n };\n }\n try {\n const resp = await this.props.updateUser({\n id: record && record.id,\n payLoad,\n cancelToken: this.signal.token\n });\n\n if (resp.status) {\n message.success(\"User updated successfully.\");\n userTypes.forEach(type => {\n return this.getUsersList({ type });\n });\n this.setState(prevState => {\n if (record.isUserActive) {\n prevState.currentUserEdited = _.filter(\n prevState.currentUserEdited,\n o => o !== record.id\n );\n } else {\n prevState.formerUserEdited = _.filter(\n prevState.formerUserEdited,\n o => o !== record.id\n );\n }\n return prevState;\n });\n const currentEditingRows = this.state.currentUserEdited.filter(\n x => x !== record.id\n );\n this.setState({\n currentUserEdited: currentEditingRows\n });\n } else {\n errorDisplay(resp?.data?.errors);\n }\n } catch (err) {\n console.error(err);\n }\n };\n\n render() {\n const {\n activeKey,\n currentUserList,\n formerUserList,\n positionsList\n } = this.state;\n return (\n <>\n
\n System Users Console\n
\n
\n \n \n \n this.handleEdit({ ...options, type: \"current\" })\n }\n handleSave={this.handleSave}\n handleAction={options =>\n this.handleAction({ ...options, type: \"current\" })\n }\n {...this.props}\n />\n \n \n \n this.handleEdit({ ...options, type: \"former\" })\n }\n positionsList={positionsList}\n handleSave={this.handleSave}\n handleAction={options =>\n this.handleAction({ ...options, type: \"former\" })\n }\n {...this.props}\n />\n \n \n
\n \n \n );\n }\n}\n\nconst mapStateToProps = state => {\n return {\n currentList: mustBeArray(state.users && state.users.currentList),\n formerList: mustBeArray(state.users && state.users.formerList),\n currentTotal: (state.users && state.users.currentTotal) || 0,\n formerTotal: (state.users && state.users.formerTotal) || 0,\n userDetails: (state.users && state.users.details) || {}\n };\n};\n\nconst mapDispatchToProps = {\n updateHeader,\n saveProfile,\n getUsersList,\n deleteUser,\n updateUser,\n positionsLookup,\n updateRouteOptions\n};\n\nexport default connect(\n mapStateToProps,\n mapDispatchToProps\n)(SystemUsersList);\n","import React from 'react';\n\nconst RequiredSign = () => {\n return(\n *\n )\n}\nexport default RequiredSign;\n","import React, { useEffect, useState, useCallback } from \"react\";\nimport { Form, Radio, Input, Row, Col, Button, message, Select } from \"antd\";\nimport { connect, useDispatch, useSelector } from \"react-redux\";\nimport { updateHeader } from \"../../actions/member\";\nimport { createUser, createIndividualProfile } from \"../../actions/users\";\nimport { statesLookup, getOmicronBdmLookup } from \"../../actions/lookup\";\nimport axios from \"axios\";\nimport { debounce } from \"lodash\";\nimport RequiredSign from \"../../Common/RequiredSign\";\nimport history from \"../../routes/history\";\nimport { errorDisplay, mustBeArray } from \"../../libs/utilities\";\nimport {\n DecoratedFormControl,\n FormDecoratorProvider\n} from \"../../components/Common/decoratedFormControl\";\nimport { Visible } from \"../../components/Common/visiblityWrapper\";\n\nconst FormItem = Form.Item;\n\nconst AddCompanyUser = props => {\n const { statesLookup, match } = props;\n const signal = axios.CancelToken.source();\n const [saveLoading, setSaveLoading] = useState(false);\n const lender = useSelector(state => state?.profile?.lender);\n const broker = useSelector(state => state?.profile?.broker);\n const lawFirm = useSelector(state => state?.profile?.lawFirm);\n const [statesList, setStatesList] = useState([]);\n const [companyName, setCompanyName] = useState([]);\n const dispatchAction = useDispatch();\n\n useEffect(() => {\n props.updateHeader({\n header: {\n title: \"\",\n action: \"\",\n page: \"users\",\n enableBack: false,\n showSettings: false,\n showMasterSwitch: false,\n showIsProfileActive: false,\n hasSwitchProfile: false,\n editMode: false,\n showNotesButton: true,\n showOmicronBDM: false,\n omicronBdm: null,\n showPageTitle: false,\n }\n });\n form.setFieldsValue({\"isVisible\": true});\n getStatesList();\n\n }, []);\n\n const checkSubmitDisabled = () => {\n const { form } = props;\n if (\n form &&\n form.getFieldValue(\"firstName\") &&\n form.getFieldValue(\"lastName\") &&\n form.getFieldValue(\"mobileNumber\") &&\n form.getFieldValue(\"email\") &&\n form.getFieldValue(\"stateKey\")\n ) {\n return false;\n }\n return true;\n };\n\n const getStatesList = async () => {\n let response = await statesLookup();\n if (response && response.data) {\n setStatesList(mustBeArray(response.data.data));\n }\n };\n\n const handleSubmit = e => {\n e.preventDefault();\n props.form.validateFields(async (err, values) => {\n if (err) {\n return;\n }\n try {\n setSaveLoading(true);\n const companyId = match?.params?.id;\n const resp = await props.createIndividualProfile({\n payLoad: { ...values, companyId: companyId },\n cancelToken: signal.token\n });\n\n if (resp.status) {\n message.success(\"User added successfully\");\n if (resp.data.lenderId) {\n history.push(`/users/${resp.data.lenderId}/lender`);\n } else if (resp.data.brokerId) {\n history.push(`/users/${resp.data.brokerId}/broker`);\n }\n else if (resp.data.lawFirmId) {\n history.push(`/users/${resp.data.lawFirmId}/lawfirm`);\n }\n } else {\n errorDisplay(resp?.data?.errors);\n }\n } finally {\n setSaveLoading(false);\n }\n });\n };\n \n const formLayout = {\n labelCol: { span: 8 },\n wrapperCol: { span: 16 }\n };\n const { form } = props;\n const { getFieldDecorator } = form;\n const itemOneSpan = 15;\n const offsetSpan = 2;\n const itemTwoSpan = 3;\n const gutterSpan = 4;\n\n return (\n <>\n
\n {/* Add New User to  {`${lender?.companyName}`} */}\n Add New User to {`${\n lender?.companyName ? `${lender?.companyName}` : \n broker?.companyName ? `${broker?.companyName}` : lawFirm?.companyName ? `${lawFirm?.companyName}`: \"\"\n }`}\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {mustBeArray(statesList).map((s, key) => (\n \n {s.id}\n \n ))}\n \n \n \n \n \n \n \n \n \n \n \n Visible\n Hidden\n \n \n \n \n \n \n \n Save\n \n }\n >\n {getFieldDecorator(\"cancel\", {\n rules: [\n {\n required: false\n }\n ]\n })(\n history.goBack()}\n >\n Cancel\n \n )}\n \n \n \n \n \n
\n \n \n );\n};\n\nconst mapDispatchToProps = {\n updateHeader,\n createUser,\n createIndividualProfile,\n statesLookup,\n getOmicronBdmLookup\n};\n\nexport default connect(\n null,\n mapDispatchToProps\n)(Form.create(\"addCompanyUser\")(AddCompanyUser));\n","import React, { useEffect, useState, useCallback } from \"react\";\nimport { Form, Radio, Input, Row, Col, Button, message, Select } from \"antd\";\nimport { connect, useDispatch } from \"react-redux\";\nimport { updateHeader } from \"../../actions/member\";\nimport { createNewCompany } from \"../../actions/company\";\nimport { statesLookup, getOmicronBdmLookup } from \"../../actions/lookup\";\nimport axios from \"axios\";\nimport { debounce } from \"lodash\";\nimport RequiredSign from \"../../Common/RequiredSign\";\nimport history from \"../../routes/history\";\nimport { errorDisplay, mustBeArray } from \"../../libs/utilities\";\nimport {\n DecoratedFormControl,\n FormDecoratorProvider\n} from \"../../components/Common/decoratedFormControl\";\nimport { Visible } from \"../../components/Common/visiblityWrapper\";\nimport authService from \"../../actions/AuthorizeService\";\n\nconst FormItem = Form.Item;\n\nconst CreateCompany = props => {\n const { statesLookup, getOmicronBdmLookup } = props;\n const signal = axios.CancelToken.source();\n const [saveLoading, setSaveLoading] = useState(false);\n const [statesList, setStatesList] = useState([]);\n const [omicronBdmList, setOmicronBdmList] = useState([]);\n const dispatchAction = useDispatch();\n const [isOmicronBdmRequired, setIsOmicronBdmRequired] = useState(true);\n\n useEffect(() => {\n props.updateHeader({\n header: {\n title: \"Add New Company\",\n action: \"\",\n page: \"companies\",\n enableBack: false,\n showSettings: false,\n showMasterSwitch: false,\n showIsProfileActive: false,\n hasSwitchProfile: false,\n editMode: false,\n showNotesButton: true,\n showOmicronBDM: false,\n omicronBdm: null,\n showPageTitle: false\n }\n });\n getStatesList();\n\n getOmicronBdmList(\"\");\n getUserDetails();\n\n }, []);\n\n const getUserDetails = async () => {\n let userDetails = await authService.getUser();\n let systemUserId = userDetails[\"app.user.systemuserid\"];\n const { form } = props;\n form.setFieldsValue({\"bdmId\": Number(systemUserId)});\n }\n\n const checkSubmitDisabled = () => {\n const { form } = props;\n if (\n form &&\n form.getFieldValue(\"profileTypeKey\") &&\n form.getFieldValue(\"firstName\") &&\n form.getFieldValue(\"lastName\") &&\n form.getFieldValue(\"mobileNumber\") &&\n form.getFieldValue(\"email\") &&\n form.getFieldValue(\"stateKey\") &&\n form.getFieldValue(\"companyName\") &&\n form.getFieldValue(\"companyACN\")\n ) {\n return false;\n }\n return true;\n };\n\n const getStatesList = async () => {\n let response = await statesLookup();\n if (response && response.data) {\n setStatesList(mustBeArray(response.data.data));\n }\n };\n\n const getOmicronBdmList = async (search) => {\n let response = await getOmicronBdmLookup({ search: search });\n if (response && response.data) {\n setOmicronBdmList(mustBeArray(response.data));\n }\n };\n\n const handleProfileTypeChange = ({ target: { value } }) => {\n setIsOmicronBdmRequired(value !== \"LAWFIRM\");\n }\n\n\n const handleSubmit = e => {\n e.preventDefault();\n props.form.validateFields(async (err, values) => {\n if (err) {\n return;\n }\n try {\n setSaveLoading(true);\n values.bdmId = values.profileTypeKey === \"LAWFIRM\" ? null : values.bdmId;\n const resp = await props.createNewCompany({\n payLoad: { ...values },\n cancelToken: signal.token\n });\n\n if (resp.status) {\n message.success(\"Company created successfully\");\n if (values.profileTypeKey === \"LENDER\" || values.profileTypeKey === \"DUAL\") {\n history.push(`/users/${resp.data.lenderId}/lender`);\n } else if (values.profileTypeKey === \"BROKER\") {\n history.push(`/users/${resp.data.brokerId}/broker`);\n }\n else if(values.profileTypeKey === \"LAWFIRM\"){\n history.push(`/users/${resp.data.lawFirmId}/lawfirm`);\n }\n } else {\n errorDisplay(resp?.data?.errors);\n }\n } finally {\n setSaveLoading(false);\n }\n });\n };\n \n const debouncedSearch = useCallback(debounce(getOmicronBdmList, 300));\n\n const formLayout = {\n labelCol: { span: 8 },\n wrapperCol: { span: 16 }\n };\n const { form } = props;\n const { getFieldDecorator } = form;\n const itemOneSpan = 14;\n const itemTwoSpan = 2;\n const colOffset = 2;\n const gutterSpan = 4;\n\n \n return (\n <>\n
\n Add New Company\n
\n
\n \n \n
\n \n \n \n Broker\n \n \n Lender\n \n \n Dual\n \n \n Law Firm\n \n \n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {mustBeArray(statesList).map((s, key) => (\n \n {s.id}\n \n ))}\n \n \n \n \n \n \n \n \n \n \n Save\n \n }\n >\n {getFieldDecorator(\"cancel\", {\n rules: [\n {\n required: false\n }\n ]\n })(\n history.goBack()}\n >\n Cancel\n \n )}\n \n \n \n
\n \n
\n \n \n );\n};\n\nconst mapDispatchToProps = {\n updateHeader,\n createNewCompany,\n statesLookup,\n getOmicronBdmLookup\n};\n\nexport default connect(\n null,\n mapDispatchToProps\n)(Form.create(\"createCompany\")(CreateCompany));\n","import { http } from \"../libs/http\";\nimport ResponseHandler from \"../libs/response\";\nimport APIHandler, { apiUrls } from \"../constants/apiUrl\";\nimport { requestBuilder } from \"../libs/utilities\";\n\nexport const createNewCompany = ({ cancelToken, payLoad }) => {\n return dispatch =>\n new Promise(async (resolve, reject) => {\n const url = APIHandler.constructEndpoint({\n endpoint: \"COMPANIES_URL\"\n });\n const response = await http.post(url, payLoad, cancelToken);\n\n if (ResponseHandler.isValidStatus(response)) {\n return resolve(\n dispatch(\n ResponseHandler.validObject(\n response.data && response.data.result\n ? response.data.result\n : response.data,\n \"CREATE_COMPANY\"\n )\n )\n );\n } else {\n return resolve(ResponseHandler.inValidObject(response));\n }\n }).catch(async err => {\n throw err.message;\n });\n};","import React, { Component } from \"react\";\nimport { Form, Radio, Input, Row, Col, Button, message, Select } from \"antd\";\nimport { connect } from \"react-redux\";\nimport { updateHeader } from \"../../actions/member\";\nimport { createUser } from \"../../actions/users\";\nimport { positionsLookup, statesLookup } from \"../../actions/lookup\";\nimport axios from \"axios\";\nimport RequiredSign from \"../../Common/RequiredSign\";\nimport history from \"../../routes/history\";\nimport { errorDisplay, mustBeArray } from \"../../libs/utilities\";\nimport { mobileNumberRegex } from \"../../constants/inputFields\";\n\nconst FormItem = Form.Item;\nclass AddSystemUser extends Component {\n signal = axios.CancelToken.source();\n constructor(props) {\n super(props);\n this.state = {\n saveLoading: false,\n positionsList: [],\n statesList: []\n };\n }\n componentDidMount() {\n this.props.updateHeader({\n header: {\n title: \"Add System Users\",\n action: \"\",\n page: \"users\",\n enableBack: false,\n showSettings: false,\n showMasterSwitch: false,\n showIsProfileActive: false,\n hasSwitchProfile: false,\n editMode: false,\n showNotesButton: true,\n showOmicronBDM: false,\n omicronBdm: null,\n showPageTitle: false\n }\n });\n this.getPositionsList();\n this.getStatesList();\n }\n\n getStatesList = () => {\n this.props.statesLookup().then(response => {\n if(response && response.data){\n this.setState({ statesList:(mustBeArray(response.data.data))});\n }\n });\n\n }\n getPositionsList = () => {\n this.props\n .positionsLookup({ cancelToken: this.signal.token })\n .then(resp => {\n if (resp.status) {\n this.setState({\n positionsList: mustBeArray(resp.data && resp.data.data)\n });\n }\n });\n };\n checkSubmitDisabled = () => {\n const { form } = this.props;\n if (\n form &&\n form.getFieldValue(\"firstName\") &&\n form.getFieldValue(\"lastName\") &&\n form.getFieldValue(\"mobile\") &&\n form.getFieldValue(\"email\") &&\n form.getFieldValue(\"stateKey\")\n ) {\n return false;\n }\n return true;\n };\n\n handleSubmit = e => {\n e.preventDefault();\n this.props.form.validateFields((err, values) => {\n if (err) {\n return;\n }\n this.setState({ saveLoading: true });\n this.props\n .createUser({ payLoad: { ...values,positionKey: \"PRTNR\", cancelToken: this.signal.token } })\n .then(resp => {\n this.setState({ saveLoading: false });\n if (resp.status) {\n message.success(\"User added successfully.\");\n history.push(\"/users\");\n } else {\n errorDisplay(resp?.data?.errors);\n }\n });\n });\n };\n\n render() {\n const formLayout = {\n labelCol: { span: 8 },\n wrapperCol: { span: 16 }\n };\n const { form } = this.props;\n const { getFieldDecorator } = form;\n const itemOneSpan = 15;\n const itemTwoSpan = 9;\n const gutterSpan = 4;\n return (\n <>\n
\n Add System Users\n
\n
\n \n \n \n \n {getFieldDecorator(\"firstName\", {\n rules: [\n {\n required: true,\n message: \"Please enter first name\"\n }\n ]\n })()}\n \n \n \n \n \n \n \n \n \n {getFieldDecorator(\"lastName\", {\n rules: [\n {\n required: true,\n message: \"Please enter last name\"\n }\n ]\n })()}\n \n \n \n \n \n \n \n \n \n {getFieldDecorator(\"email\", {\n rules: [\n {\n required: true,\n message: \"Please enter email\"\n }\n ]\n })()}\n \n \n \n \n \n \n \n \n \n {getFieldDecorator(\"mobile\", {\n rules: [\n {\n required: true,\n message: \"Please enter mobile number\"\n },\n {\n pattern: mobileNumberRegex,\n message: \"Please enter a valid mobile number\"\n }\n ]\n })()}\n \n \n \n \n \n \n \n \n \n {getFieldDecorator(\"stateKey\", {\n rules: [\n {\n required: true,\n message: \"Please select state\"\n }\n ]\n })(\n \n {\n mustBeArray(this.state.statesList).map((s, key) => (\n \n {s.id}\n \n ))\n }\n \n )}\n \n \n \n \n \n \n \n \n \n Save\n \n }\n >\n {getFieldDecorator(\"cancel\", {\n rules: [\n {\n required: false\n }\n ]\n })(\n history.push(\"/users\")}\n >\n Cancel\n \n )}\n \n \n \n \n
\n \n \n );\n }\n}\n\nconst mapDispatchToProps = {\n updateHeader,\n createUser,\n positionsLookup,\n statesLookup\n};\n\nexport default connect(\n null,\n mapDispatchToProps\n)(Form.create(\"addLenderBroker\")(AddSystemUser));\n","import { connect, useSelector } from \"react-redux\";\nimport { Button, Col, Form, message } from \"antd\";\nimport React, { useEffect, useState } from \"react\";\nimport { updateHeader } from \"../../actions/member\";\nimport {\n DecoratedFormControl,\n FormDecoratorProvider\n} from \"../../components/Common/decoratedFormControl\";\nimport Password from \"antd/lib/input/Password\";\nimport { changeLoggedInUserPassword } from \"../../actions/authorization\";\nimport history from \"../../routes/history\";\nimport FormItem from \"antd/lib/form/FormItem\";\nimport { isLawFirmUserPolicy } from \"../../Common/Authorization/policies/isLawFirmUserPolicy\";\n\nconst ChangePasswordImpl = props => {\n const { dispatch, form } = props;\n const [processing, setProcessing] = useState(false);\n const [isValid, setIsValid] = useState(false);\n const user = useSelector(state => state?.authorization?.user);\n const header = useSelector(state => state.member.header);\n const [isUserLawfirm, setIsUserLawfirm] = useState(false);\n\n const checkIfUserIsLawfirm = async () => {\n const isLawfirm = await isLawFirmUserPolicy(user.roles, user.permissions, user);\n setIsUserLawfirm(isLawfirm);\n }\n\n useEffect(() => {\n checkIfUserIsLawfirm();\n dispatch(\n updateHeader({\n header: {\n title: \"Change Password\",\n action: \"\",\n page: \"change-password\",\n enableBack: false,\n showSettings: false,\n showMasterSwitch: false,\n showIsProfileActive: false,\n hasSwitchProfile: false,\n editMode: false,\n showNotesButton: true,\n showOmicronBDM: false,\n omicronBdm: null,\n showPageTitle: false\n }\n })\n );\n }, []);\n\n // Override notes and searchbox for specific users\n useEffect(()=>{\n dispatch(\n updateHeader({\n header: {\n ...header,\n showNotesButton: !isUserLawfirm,\n showSearchBox: !isUserLawfirm\n }\n })\n );\n }, [isUserLawfirm])\n\n useEffect(() => {\n const fields = form.getFieldsError();\n const fieldNames = Object.keys(fields);\n const isDirty = fieldNames.every(x => form.isFieldTouched(x));\n const formInvalid = fieldNames.some(x => fields[x]);\n\n const matchStatus = passwordMatchValidationStatus();\n if (isDirty) {\n setIsValid(!formInvalid && matchStatus.status === \"success\");\n }\n }, [form.getFieldsError()]);\n\n const changePassword = () => {\n form.validateFields(async (err, values) => {\n if (err) {\n return;\n }\n setProcessing(true);\n\n const response = await dispatch(changeLoggedInUserPassword(values));\n\n if (response.status) {\n message.success(\"Successfully changed your password.\");\n history.push(\"/\");\n }\n setProcessing(false);\n });\n };\n\n const passwordHasInput = () => {\n const pass = form.getFieldValue(\"newPassword\");\n return !!pass;\n };\n\n const passwordMatchValidationStatus = () => {\n const pass = form.getFieldValue(\"newPassword\");\n const confirmPass = form.getFieldValue(\"confirmNewPassword\");\n\n if (passwordHasInput() && confirmPass !== undefined && confirmPass === \"\") {\n return {\n status: \"error\",\n message: \"Please enter your password again\"\n };\n }\n\n if (\n passwordHasInput() &&\n pass !== confirmPass &&\n confirmPass !== undefined\n ) {\n return {\n status: \"error\",\n message: \"Password does not match\"\n };\n }\n\n return {\n status: \"success\",\n message: \"\"\n };\n };\n\n const confirmPasswordValidationStatus = passwordMatchValidationStatus();\n const labelSpan = { span: 8 };\n const columnSpan = { offset: 5, span: 10 };\n return (\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n changePassword()}\n >\n Save\n \n \n \n history.push(\"/\")}\n >\n Cancel\n \n \n \n \n
\n
\n );\n};\n\nexport const ChangePasswordPage = connect()(\n Form.create({ name: \"Change Password\" })(ChangePasswordImpl)\n);\n","import React, { useState, useEffect, Fragment } from \"react\";\nimport { Form, Select, Button, Spin } from \"antd\";\nimport { connect } from \"react-redux\";\nimport { updateHeader } from \"../../actions/member\";\nimport { clearProfileDetails } from \"../../actions/profile\";\nimport { brokersLookUpHandler } from \"../../actions/lookup\";\nimport { errorDisplay, mustBeArray } from \"../../libs/utilities\";\nimport history from \"../../routes/history\";\nimport { ADMIN_USER, LENDER_USER } from \"../../constants/systemUsers\";\nimport { isLenderUserPolicy } from \"../../Common/Authorization/policies/isLenderUserPolicy\";\nimport { isSystemUserPolicy } from \"../../Common/Authorization/policies/isSystemUserPolicy\";\nimport AwesomeDebouncePromise from \"awesome-debounce-promise\";\nimport { Visible } from \"../../components/Common/visiblityWrapper\";\n\nconst FormItem = Form.Item;\n\nconst FindBroker = props => {\n const {\n updateHeader,\n brokersLookUpHandler,\n user,\n form,\n clearProfileDetails\n } = props;\n const { getFieldDecorator } = form;\n const [brokerList, setList] = useState([]);\n const [saveLoading, setSaveLoading] = useState(false);\n const [userRole, setUserRole] = useState(\"\");\n const [searching, setSearching] = useState(true);\n\n const getBrokersList = async ({ name, userType }) => {\n try {\n const resp = await brokersLookUpHandler({\n action: \"BROKERS_SEARCH_LOOKUP\",\n userType,\n queryParams: name ? { search: name } : {}\n });\n if (resp.status) {\n setList(mustBeArray(resp.data));\n } else {\n errorDisplay(resp && resp.data && resp.data.validationErrors);\n }\n } finally {\n setSearching(false);\n }\n };\n\n const debouncedSearch = AwesomeDebouncePromise(async name => {\n setSearching(true);\n setList([]);\n await getBrokersList({ name, userType: userRole });\n }, 500);\n useEffect(() => {\n updateHeader({\n header: {\n title: \"Find a Broker\",\n action: \"\",\n page: \"search-broker\",\n enableBack: false,\n showSettings: false,\n showMasterSwitch: false,\n showIsProfileActive: false,\n hasSwitchProfile: false,\n editMode: false,\n showNotesButton: true,\n showOmicronBDM: false,\n omicronBdm: null,\n showPageTitle: false\n }\n });\n getUsersProfile();\n }, []);\n\n const getUsersProfile = async () => {\n var isLender = await isLenderUserPolicy(user.roles, user.permissions, user);\n var isSystemUser = await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n const roleType = isLender ? LENDER_USER : isSystemUser ? ADMIN_USER : \"\";\n setUserRole(roleType);\n getBrokersList({ name: \"\", userType: roleType });\n };\n const handleSubmit = e => {\n e.preventDefault();\n form.validateFields((err, values) => {\n if (err) {\n return;\n }\n clearProfileDetails();\n history.push(`/users/${values && values.broker}/broker`);\n });\n };\n const checkSubmitDisabled = () => {\n if (form.getFieldValue(\"broker\")) return false;\n return true;\n };\n return (\n
\n \n
\n \n {getFieldDecorator(\"broker\", {\n rules: [\n {\n required: true,\n message: \"Please select a broker\"\n }\n ]\n })(\n \n \n \n ...\n \n No data\n \n }\n showSearch\n onSearch={async e => await debouncedSearch(e)}\n filterOption={false}\n >\n {mustBeArray(brokerList).map(broker => {\n return (\n \n {broker.name}\n \n );\n })}\n \n )}\n \n
\n
\n \n Submit\n \n history.goBack()}\n >\n Cancel\n \n
\n \n
\n );\n};\nconst mapDispatchToProps = {\n updateHeader,\n brokersLookUpHandler,\n clearProfileDetails\n};\n\nconst mapStateToProps = state => {\n return {\n member: state.member || {},\n user: state.authorization && state.authorization.user\n };\n};\n\nexport default connect(\n mapStateToProps,\n mapDispatchToProps\n)(Form.create(\"findBroker\")(FindBroker));\n","import React, { useState, useEffect, Fragment } from \"react\";\nimport { Form, Select, Button, Spin } from \"antd\";\nimport { connect } from \"react-redux\";\nimport { updateHeader } from \"../../actions/member\";\nimport { clearProfileDetails } from \"../../actions/profile\";\nimport { lendersLookUpHandler } from \"../../actions/lookup\";\nimport { errorDisplay, mustBeArray } from \"../../libs/utilities\";\nimport history from \"../../routes/history\";\nimport { ADMIN_USER, LENDER_USER } from \"../../constants/systemUsers\";\nimport { isLenderUserPolicy } from \"../../Common/Authorization/policies/isLenderUserPolicy\";\nimport { isSystemUserPolicy } from \"../../Common/Authorization/policies/isSystemUserPolicy\";\nimport AwesomeDebouncePromise from \"awesome-debounce-promise\";\nimport { Visible } from \"../../components/Common/visiblityWrapper\";\n\nconst FormItem = Form.Item;\n\nconst FindLender = props => {\n const {\n updateHeader,\n lendersLookUpHandler,\n user,\n form,\n clearProfileDetails\n } = props;\n const { getFieldDecorator } = form;\n const [lenderList, setList] = useState([]);\n const [lenderListLoading, setLoading] = useState(true);\n const [saveLoading, setSaveLoading] = useState(false);\n const [userRole, setUserRole] = useState(\"\");\n\n const getLendersList = ({ name, userType }) => {\n setLoading(true);\n return lendersLookUpHandler({\n action: \"LENDERS_SEARCH_LOOKUP\",\n userType,\n queryParams: name ? { search: name } : {}\n }).then(resp => {\n if (resp.status) {\n setList(mustBeArray(resp.data));\n setLoading(false);\n } else {\n errorDisplay(resp && resp.data && resp.data.validationErrors);\n }\n });\n };\n const debouncedSearch = AwesomeDebouncePromise(async name => {\n setList([]);\n setLoading(true);\n await getLendersList({ name, userType: userRole });\n }, 500);\n useEffect(() => {\n updateHeader({\n header: {\n title: \"Find a Lender\",\n action: \"\",\n page: \"search-lender\",\n enableBack: false,\n showSettings: false,\n showMasterSwitch: false,\n showIsProfileActive: false,\n hasSwitchProfile: false,\n editMode: false,\n showNotesButton: true,\n showOmicronBDM: false,\n omicronBdm: null,\n showPageTitle: false\n }\n });\n getUsersProfile();\n }, []);\n\n const getUsersProfile = async () => {\n var isLender = await isLenderUserPolicy(user.roles, user.permissions, user);\n var isSystemUser = await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n const roleType = isLender ? LENDER_USER : isSystemUser ? ADMIN_USER : \"\";\n setUserRole(roleType);\n getLendersList({ name: \"\", userType: roleType });\n };\n const handleSubmit = e => {\n e.preventDefault();\n form.validateFields((err, values) => {\n if (err) {\n return;\n }\n clearProfileDetails();\n history.push(`/users/${values && values.lender}/lender`);\n });\n };\n const checkSubmitDisabled = () => {\n if (form.getFieldValue(\"lender\")) return false;\n return true;\n };\n return (\n
\n \n
\n \n {getFieldDecorator(\"lender\", {\n rules: [\n {\n required: true,\n message: \"Please select a lender\"\n }\n ]\n })(\n \n \n \n ...\n \n No data\n \n }\n onSearch={async e => await debouncedSearch(e)}\n filterOption={false}\n >\n {mustBeArray(lenderList).map(lender => {\n return (\n \n {lender.name}\n \n );\n })}\n \n )}\n \n
\n
\n \n Submit\n \n history.goBack()}\n >\n Cancel\n \n
\n \n
\n );\n};\nconst mapDispatchToProps = {\n updateHeader,\n lendersLookUpHandler,\n clearProfileDetails\n};\n\nconst mapStateToProps = state => {\n return {\n member: state.member || {},\n user: state.authorization && state.authorization.user\n };\n};\n\nexport default connect(\n mapStateToProps,\n mapDispatchToProps\n)(Form.create(\"findLender\")(FindLender));\n","import { Col, Input, Row } from \"antd\";\nimport TextArea from \"antd/lib/input/TextArea\";\nimport produce from \"immer\";\nimport React, { Fragment, useState, useEffect, useCallback } from \"react\";\nimport { connect } from \"react-redux\";\nimport {\n getBrokerPersonalDetails,\n getBrokerProfessionalDetails,\n saveBrokerPersonalDetailsField,\n saveBrokerProfessionalDetailsField\n} from \"../../actions/profile\";\nimport { Visible } from \"../Common/visiblityWrapper\";\nimport Axios from \"axios\";\nimport AwesomeDebouncePromise from \"awesome-debounce-promise\";\nimport { asDefaultDisplayFormatDate, errorDisplay } from \"../../libs/utilities\";\nimport { isSystemUserPolicy } from \"../../Common/Authorization/policies/isSystemUserPolicy\";\nimport { ADMIN_USER } from \"../../constants/systemUsers\";\nimport {useParams} from \"react-router-dom\";\n\nconst defaultDetails = {\n detail: \"\",\n lastModifiedDate: \"\",\n lastModifiedByFirstName: \"\",\n lastModifiedByLastName: \"\"\n}\n\nconst Implementation = ({ dispatch, activeKey, user }) => {\n const [professionalDetails, setProfessionalDetails] = useState({...defaultDetails});\n const [personalDetails, setPersonalDetails] = useState({...defaultDetails});\n\n const [saving, setSaving] = useState(false);\n const [isInitialized, setIsInitialized] = useState(null);\n\n const {id:brokerId} = useParams();\n\n useEffect(() => {\n if (activeKey === \"details\") {\n setIsInitialized(false);\n }\n }, [activeKey, brokerId]);\n\n useEffect(() => {\n if(isInitialized===false){\n onInitialized();\n }\n },[isInitialized]);\n\n async function onInitialized() {\n setProfessionalDetails({...defaultDetails});\n setPersonalDetails({...defaultDetails});\n await Promise.all([loadPersonalDetails(brokerId), loadProfessionalDetails(brokerId)]).then(\n () => {\n setIsInitialized(true);\n }\n );\n }\n\n const loadPersonalDetails = async (id) => {\n const userType = (await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n ))\n ? ADMIN_USER\n : \"\";\n const resp = await dispatch(\n getBrokerPersonalDetails({ id, userType: userType })\n );\n setPersonalDetails(\n produce(personalDetails, x => {\n return resp.data;\n })\n );\n };\n\n const loadProfessionalDetails = async (id) => {\n const userType = (await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n ))\n ? ADMIN_USER\n : \"\";\n const resp = await dispatch(\n getBrokerProfessionalDetails({ id, userType: userType })\n );\n setProfessionalDetails(\n produce(professionalDetails, x => {\n return resp.data;\n })\n );\n };\n\n const savePersonalDetailsChangesImpl = async (cancelToken, payLoad,id) => {\n setSaving(true);\n const userType = (await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n ))\n ? ADMIN_USER\n : \"\";\n dispatch(\n saveBrokerPersonalDetailsField({\n cancelToken: cancelToken,\n payLoad: payLoad,\n id,\n userType: userType\n })\n ).then(resp => {\n if (!resp.status) {\n errorDisplay(resp.data.errors);\n } else {\n loadPersonalDetails(id);\n }\n setSaving(false);\n });\n };\n\n const saveProfessionDetailsChangesImpl = async (cancelToken, payLoad, id) => {\n setSaving(true);\n const userType = (await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n ))\n ? ADMIN_USER\n : \"\";\n dispatch(\n saveBrokerProfessionalDetailsField({\n cancelToken: cancelToken,\n payLoad: payLoad,\n id,\n userType: userType\n })\n ).then(resp => {\n if (!resp.status) {\n errorDisplay(resp.data.errors);\n } else {\n loadProfessionalDetails(id);\n }\n setSaving(false);\n });\n };\n\n const savePersonalDetailsChanges = useCallback(\n AwesomeDebouncePromise(savePersonalDetailsChangesImpl, 2000),\n [brokerId]\n );\n const saveProfessionalDetailsChanges = useCallback(\n AwesomeDebouncePromise(saveProfessionDetailsChangesImpl, 2000),\n [brokerId]\n );\n\n useEffect(() => {\n if (isInitialized) {\n let cancelToken = Axios.CancelToken.source();\n savePersonalDetailsChanges(cancelToken, personalDetails, brokerId);\n }\n }, [personalDetails && personalDetails.detail]);\n\n useEffect(() => {\n if (isInitialized) {\n let cancelToken = Axios.CancelToken.source();\n saveProfessionalDetailsChanges(\n cancelToken,\n professionalDetails,\n brokerId\n );\n }\n }, [professionalDetails && professionalDetails.detail]);\n\n return (\n \n \n Saving...\n \n \n \n \n Professional:\n \n setProfessionalDetails(\n produce(professionalDetails, x => {\n x.detail = e.currentTarget.value;\n })\n )\n }\n style={{ flex: \"1\", marginTop: \"1em\" }}\n />\n \n Last edited by\n \n \n \n Last edit date\n \n \n \n \n \n \n \n
\n Personal:\n \n setPersonalDetails(\n produce(personalDetails, x => {\n x.detail = e.currentTarget.value;\n })\n )\n }\n style={{ flex: \"1\", marginTop: \"1em\" }}\n />\n \n Last edited by\n \n \n \n Last edit date\n \n \n \n \n
\n \n
\n \n );\n};\nconst mapStateToProps = state => {\n return {\n user: state.authorization && state.authorization.user\n };\n};\nexport const BrokerDetailsTab = connect(mapStateToProps)(Implementation);\n","import Axios from \"axios\";\nimport { GET_BROKER_MATCHES } from \"../constants/action-type/brokers\";\nimport APIHandler, { apiUrls } from \"../constants/apiUrl\";\nimport { ADMIN_USER } from \"../constants/systemUsers\";\nimport { requestBuilder } from \"../libs/utilities\";\nimport { processRequest } from \"./asyncActionProcessor\";\n\nexport const getBrokerMatches = ({\n cancelToken = Axios.CancelToken.source(),\n queryParams = {},\n id,\n userType\n}) => {\n return dispatch =>\n new Promise(async resolve => {\n const url = APIHandler.constructEndpoint({\n endpoint:\n userType === ADMIN_USER\n ? apiUrls.BROKER_ADMIN_MATCHES_URL\n : apiUrls.BROKER_MATCHES_URL,\n options: { id }\n });\n try {\n const response = await requestBuilder(\n null,\n url,\n queryParams,\n cancelToken\n );\n resolve(processRequest(dispatch, response, GET_BROKER_MATCHES));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n","import React, { Fragment } from \"react\";\nimport { connect } from \"react-redux\";\nimport { getBrokerMatches } from \"../../actions/matches\";\nimport { brokersLookUpHandler } from \"../../actions/lookup\";\nimport MatchesList from \"./MatchesList\";\nimport { GET_BROKER_MATCHES_STATUS_LOOKUP } from \"../../constants/action-type/brokers\";\nimport { Visible } from \"../Common/visiblityWrapper\";\nimport { Spin } from \"antd\";\n\nconst BrokerMatchesImpl = ({\n dispatch,\n profileType,\n userType,\n activeTab,\n brokerId,\n user,\n match\n}) => {\n function getActiveKey() {\n if (activeTab === \"matches\") {\n return 1;\n }\n\n return 999;\n }\n\n async function getMatches(options) {\n return await dispatch(\n getBrokerMatches({\n id: options.id,\n queryParams: options.queryParams,\n userType\n })\n );\n }\n\n async function getLookup(options) {\n return await dispatch(\n brokersLookUpHandler({\n ...options,\n action: GET_BROKER_MATCHES_STATUS_LOOKUP\n })\n );\n }\n\n return (\n \n \n \n \n \n getMatches(opt)}\n listLendersMatchesLookup={opt => getLookup(opt)}\n userId={brokerId}\n userType={userType}\n profileType={profileType}\n match={match}\n user={user}\n dispatch={dispatch}\n />\n \n \n );\n};\n\nexport const BrokerMatchesList = connect(state => ({\n user: state.authorization.user\n}))(BrokerMatchesImpl);\n","import { Tabs } from \"antd\";\nimport React, { Fragment } from \"react\";\nimport { AuthorizedView } from \"../../Common/Authorization/AuthorizedView\";\nimport {\n isBrokerOwnProfilePolicy,\n isBrokerUserPolicy,\n isNotBrokerOwnProfilePolicy,\n isUserInvolvedPolicy,\n isUserUninvolvedPolicy\n} from \"../../Common/Authorization/policies/isBrokerUserPolicy\";\nimport {\n isLenderUserPolicy,\n isOnlyLenderUserPolicy\n} from \"../../Common/Authorization/policies/isLenderUserPolicy\";\nimport { isSystemUserPolicy } from \"../../Common/Authorization/policies/isSystemUserPolicy\";\nimport { BrokerDetailsTab } from \"./BrokerDetailsTab\";\nimport { BrokerMatchesList } from \"./BrokerMatchesList\";\nimport FilesList from \"./FilesList\";\n\nimport LoansTable from \"../../components/Loans/LoansTable\";\nimport { isLawFirmUserPolicy } from \"../../Common/Authorization/policies/isLawFirmUserPolicy\";\n\nconst BrokerProfileTabsImpl = ({\n activeTab,\n activeSubTab,\n onTabChange,\n onSubTabChange,\n brokerId,\n profileType,\n match,\n isMatched,\n userType,\n userHasPermissionToUpdate,\n toggleSubscriptions,\n loanSearchQueryParams,\n generalView = false\n}) => {\n return (\n
\n {!generalView ? (\n <>\n \n \n
\n onTabChange(e)}\n activeKey={activeTab}\n type=\"card\"\n >\n \n onSubTabChange(e)}\n activeSubKey={\n activeSubTab.length ? activeSubTab : \"preSettlementLoans\"\n }\n type=\"card\"\n className=\"has-sub-tabs\"\n >\n {loanSearchQueryParams != null && (\n \n \n \n )}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n
\n {/* Dual Profile */}\n \n \n
\n onTabChange(e)}\n activeKey={activeTab}\n type=\"card\"\n >\n \n onSubTabChange(e)}\n activeSubKey={activeSubTab}\n type=\"card\"\n className=\"has-sub-tabs\"\n >\n {loanSearchQueryParams != null ? (\n \n \n \n ) : (\n \"\"\n )}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n \n onTabChange(e)}\n activeKey={activeTab}\n type=\"card\"\n >\n \n onSubTabChange(e)}\n activeSubKey={\n activeSubTab.length ? activeSubTab : \"preSettlementLoans\"\n }\n type=\"card\"\n className=\"has-sub-tabs\"\n >\n {loanSearchQueryParams != null ? (\n \n \n \n ) : (\n \"\"\n )}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n onTabChange(e)}\n activeKey={activeTab}\n type=\"card\"\n >\n \n onSubTabChange(e)}\n activeSubKey={\n activeSubTab.length ? activeSubTab : \"currentLoans\"\n }\n type=\"card\"\n className=\"has-sub-tabs\"\n >\n {loanSearchQueryParams != null ? (\n \n \n \n ) : (\n \"\"\n )}\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {/* Duplicate of above validation */}\n \n onTabChange(e)}\n activeKey={activeTab}\n type=\"card\"\n >\n \n onSubTabChange(e)}\n activeSubKey={\n activeSubTab.length ? activeSubTab : \"currentLoans\"\n }\n type=\"card\"\n className=\"has-sub-tabs\"\n >\n {loanSearchQueryParams != null ? (\n \n \n \n ) : (\n \"\"\n )}\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n onTabChange(e)}\n activeKey={activeTab}\n type=\"card\"\n >\n \n \n \n \n \n \n \n onSubTabChange(e)}\n activeSubKey={activeSubTab}\n type=\"card\"\n className=\"has-sub-tabs\"\n >\n {loanSearchQueryParams != null ? (\n \n \n \n ) : (\n \"\"\n )}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n \n ) : (\n <>\n \n
\n onTabChange(e)}\n activeKey={activeTab}\n type=\"card\"\n >\n \n onSubTabChange(e)}\n activeSubKey={\n activeSubTab.length ? activeSubTab : \"preSettlementLoans\"\n }\n type=\"card\"\n className=\"has-sub-tabs\"\n >\n {loanSearchQueryParams != null && (\n \n \n \n )}\n \n \n \n \n \n \n \n \n \n
\n \n )}\n
\n );\n};\n\nexport const BrokerProfileTabs = BrokerProfileTabsImpl;\n","import { Form, Spin, message } from \"antd\";\nimport { Fragment, useEffect, useState } from \"react\";\nimport { useLocation } from \"react-router-dom\";\nimport queryString from \"query-string\";\nimport { connect, useSelector } from \"react-redux\";\nimport history from \"../../routes/history\";\nimport { updateHeader, updateRouteOptions } from \"../../actions/member\";\nimport {\n toggleSubscriptions,\n getBrokerProfile,\n setActiveProfile,\n profileStatusTurnOff,\n profileStatusTurnOn,\n masterSwitchTurnOff,\n masterSwitchTurnOn,\n updateIndividualProfileV2,\n updateProfileLoading\n} from \"../../actions/profile\";\nimport { isBrokerOwnProfilePolicy } from \"../../Common/Authorization/policies/isBrokerUserPolicy\";\nimport {\n isLenderOwnProfilePolicy,\n isLenderUserPolicy\n} from \"../../Common/Authorization/policies/isLenderUserPolicy\";\nimport { isSystemUserPolicy } from \"../../Common/Authorization/policies/isSystemUserPolicy\";\nimport { Visible } from \"../../components/Common/visiblityWrapper\";\nimport { BrokerProfileTabs } from \"../../components/Profile/BrokerProfileTabs\";\nimport {\n errorDisplay,\n evaluatePolicy,\n getActiveKey,\n getUsersProfileType,\n mustBeArray,\n userHasActionRights\n} from \"../../libs/utilities\";\nimport PortraitView from \"../../components/Profile/protrait-view\";\nimport ProfileUtility from \"../../components/Profile/Utility/utility\";\nimport {\n ADMIN_USER,\n BROKER_USER,\n DUAL_USER,\n LENDER_USER\n} from \"../../constants/systemUsers\";\nimport authService from \"../../actions/AuthorizeService\";\nimport {\n BROKER_PROFILE_ROUTES_WITHOUT_LENDER_PROFILE_SYSTEM_USER,\n BROKER_PROFILE_ROUTES_WITH_LENDER_PROFILE__SYSTEM_USER,\n CAN_RESET_PROFILE_PASSWORD,\n EMAIL_SUBSCRIPTIONS_OPTION_BROKER_USER,\n PROFILE_EDIT_OPTION,\n PROFILE_HAS_NOT_ACCEPTED_INVITATION\n} from \"../../constants/routeOptions\";\nimport { BROKER_PROFILE_ACTIVE } from \"../../constants/action-type/profile\";\nimport _ from \"lodash\";\nimport React from \"react\";\nimport ConfirmationModal from \"../../Common/ConfirmationModal\";\nimport {\n BROKER_MASTER_SWITCH_OFF_CONFIRMATION_TEXT,\n BROKER_MASTER_SWITCH_ON_CONFIRMATION_TEXT\n} from \"../../constants/warnings\";\nimport { getProfileStatusWarning } from \"../../libs/user\";\nimport { FormDecoratorProvider } from \"../../components/Common/decoratedFormControl\";\n\nimport { dummyBroker } from \"../../constants/DummyData/brokerprofile\";\n\nconst BrokerProfileImpl = ({\n match,\n header,\n member,\n user,\n dispatch,\n profileType,\n activeProfile,\n broker,\n individualUser,\n form,\n profileLoading,\n generalView = false\n}) => {\n const { getFieldDecorator } = form;\n const [loading, setLoading] = useState(false);\n const [portraitsUpdated, setPortraitsUpdated] = useState(false);\n const [activeTab, setActiveTab] = useState(\"\");\n const [activeSubTab, setActiveSubTab] = useState(\"\");\n const [userType, setUserType] = useState(null);\n const [userHasPermissionToUpdate, setUsersPermission] = useState(false);\n const [initialized, setInitialized] = useState(false);\n const [userProfile, setUserProfile] = useState({});\n const [saveLoading, setSaveLoading] = useState(false);\n const userId = match.params.id;\n const loansSearch = useLocation().search;\n const loanSearchQueryParams = loansSearch.length\n ? queryString.parse(loansSearch)\n : null;\n const [profileStatusLoading, setProfileStatusLoading] = useState(false);\n const [canToggleProfileSwitch, setCanToggleProfileSwitch] = useState(false);\n const [confirmationModalVisible, setConfirmationModalVisible] = useState(\n false\n );\n const [confirmationText, setConfirmationText] = useState(\"\");\n const [activeField, setActiveField] = useState(\"\");\n const [current, setCurrent] = useState(1);\n const [currentPortrait, setCurrentPortrait] = useState(null);\n const [isSystemUser, setIsSystemUser] = useState(false);\n const [isOwnProfile, setIsOwnProfile] = useState(false);\n\n useEffect(() => {\n const auth = async () => {\n const authenticated = await authService.isAuthenticated();\n if (authenticated) history.push(`/users/${userId}/broker${loansSearch}`);\n };\n auth();\n }, []);\n\n useEffect(() => {\n if (user.roles.length > 0 && !initialized) {\n onInitialize();\n setInitialized(true);\n }\n }, [user]);\n\n useEffect(() => {\n dispatch(\n updateHeader({\n header: {\n title: \"\",\n action: \"edit\",\n page: \"profile\",\n enableBack: false,\n showSettings: !generalView,\n showMasterSwitch: !generalView,\n showIsProfileActive: !generalView,\n hasSwitchProfile: true,\n editMode: false,\n showNotesButton: !generalView,\n showOmicronBDM: true,\n currentPortraitIndividualId: broker.currentPortraitIndividualId\n ? broker.currentPortraitIndividualId\n : header.currentPortraitIndividualId,\n\n omicronBdm: { id: broker.omicronBdmId, name: broker.omicronBdm },\n showPageTitle: false,\n }\n })\n );\n setInitialActiveTab();\n }, [broker, isSystemUser]);\n\n useEffect(()=>{\n if(!_.isEmpty(userProfile)){\n dispatch(updateHeader({\n header: {\n ...header,\n showDeactivatedMessage: !isSystemUser && (userProfile.isMasterSwitchOn === undefined ? false : !userProfile.isMasterSwitchOn),\n }\n }));\n }\n },[userProfile]);\n\n useEffect(() => {\n onInitialize();\n }, [activeProfile && activeProfile.active]);\n\n const loadUserInformation = async () => {\n setLoading(true);\n setCurrent(1);\n const id = match?.params?.id;\n const isLender = await isLenderUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n const systemUser = await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n setIsSystemUser(systemUser);\n let usersBrokerId;\n if (!generalView) {\n let userDetails = await authService.getUser();\n usersBrokerId = userDetails[\"app.user.brokerid\"];\n const isOwnProfile =\n (await evaluatePolicy(user, isBrokerOwnProfilePolicy(id))) ||\n (await evaluatePolicy(user, isLenderOwnProfilePolicy(id)));\n\n setCanToggleProfileSwitch(systemUser || isOwnProfile);\n }\n const roleType = systemUser\n ? ADMIN_USER\n : user.roles.length == 2\n ? DUAL_USER\n : isLender\n ? LENDER_USER\n : \"\";\n let resp;\n resp = await dispatch(\n getBrokerProfile({\n id: userId,\n userType: roleType,\n notClearProfileImage: false,\n isUserViewingSelfProfile: usersBrokerId === id,\n generalView\n })\n );\n\n if (resp.status && resp.data) {\n dispatch(\n updateHeader({\n header: {\n ...(member?.header ?? {}),\n title: `${resp.data.firstname} ${resp.data.lastname}`,\n hasSwitchProfile: true,\n showOmicronBDM: true,\n omicronBdm: {\n id: resp.data.omicronBdmId,\n name: resp.data.omicronBdm\n },\n allowSwitchProfile: !generalView,\n showDeactivatedMessage: !systemUser ? !resp.data.isMasterSwitchOn : false,\n }\n })\n );\n\n const sortedPortraits = _.sortBy(\n resp.data.portraits ? resp.data.portraits : [],\n \"appearanceOrder\"\n );\n setUserProfile({ ...resp.data, portraits: sortedPortraits });\n setCurrentPortrait(sortedPortraits[0]);\n\n const isMyProfile = parseInt(user[\"app.user.brokerid\"]) === resp.data.id;\n const brokerLenderId = resp.data.lenderId;\n dispatch(\n setActiveProfile(resp.data.id, brokerLenderId, BROKER_PROFILE_ACTIVE)\n );\n\n let newRouteOptions = brokerLenderId\n ? BROKER_PROFILE_ROUTES_WITH_LENDER_PROFILE__SYSTEM_USER\n : BROKER_PROFILE_ROUTES_WITHOUT_LENDER_PROFILE_SYSTEM_USER;\n\n newRouteOptions = [...newRouteOptions].map(o => {\n o.name = o.id == 9 ? individualUser.companyName : o.name;\n return o;\n });\n\n const menuOptions = systemUser\n ? [...PROFILE_EDIT_OPTION]\n : isMyProfile\n ? [...EMAIL_SUBSCRIPTIONS_OPTION_BROKER_USER, ...PROFILE_EDIT_OPTION]\n : [];\n\n setPortraitsUpdated(!portraitsUpdated);\n await dispatch(\n updateRouteOptions({\n routeOptions: _.concat(newRouteOptions, menuOptions)\n })\n );\n }\n setLoading(false);\n dispatch(updateProfileLoading(false));\n };\n\n useEffect(() => {\n loadUserInformation();\n }, [window.location.href]);\n\n async function setInitialActiveTab() {\n if (!broker.resetTab) {\n return;\n }\n const systemUser = await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n const isOwnBrokerProfile = await isBrokerOwnProfilePolicy(broker.id)(\n user.roles,\n user.permissions,\n user\n );\n setUsersPermission(\n userHasActionRights({\n isSystemUser: systemUser,\n profileType,\n isOwnProfile: isOwnBrokerProfile\n })\n );\n const searchField =\n window.location &&\n window.location.search &&\n mustBeArray(window.location.search.split(\"=\"))[1];\n const updatedActiveTab = getActiveKey({\n profileType: \"broker\",\n activeKey: searchField\n });\n\n if (updatedActiveTab) return setActiveTab(updatedActiveTab);\n }\n\n /**\n * Similar implementation to loadUserInformation\n * but doesn't set non-route variables to state\n */\n async function updateMenu() {\n const isMyProfile = parseInt(user[\"app.user.brokerid\"]) === userProfile.id;\n const brokerLenderId = userProfile.lenderId;\n const systemUser = await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n\n let newRouteOptions = brokerLenderId\n ? BROKER_PROFILE_ROUTES_WITH_LENDER_PROFILE__SYSTEM_USER\n : BROKER_PROFILE_ROUTES_WITHOUT_LENDER_PROFILE_SYSTEM_USER;\n\n newRouteOptions = [...newRouteOptions].map(o => {\n o.name = o.id == 9 ? individualUser.companyName : o.name;\n return o;\n });\n\n const menuOptions = systemUser\n ? [...PROFILE_EDIT_OPTION]\n : isMyProfile\n ? [...EMAIL_SUBSCRIPTIONS_OPTION_BROKER_USER, ...PROFILE_EDIT_OPTION]\n : [];\n\n // Add additional menu options via concat\n const resendOption = !currentPortrait.hasAcceptedInvitation\n ? PROFILE_HAS_NOT_ACCEPTED_INVITATION\n : CAN_RESET_PROFILE_PASSWORD;\n\n await dispatch(\n updateRouteOptions({\n routeOptions: _.concat(newRouteOptions, menuOptions, resendOption)\n })\n );\n }\n\n useEffect(() => {\n if (currentPortrait != null) {\n updateMenu();\n dispatch(\n updateHeader({\n header: {\n ...(member?.header ?? {}),\n\n currentPortraitIndividualId: broker.currentPortraitIndividualId\n ? broker.currentPortraitIndividualId\n : currentPortrait.individualId\n ? currentPortrait.individualId\n : member.header.currentPortraitIndividualId,\n emailSubcriptionProfileType: \"\"\n }\n })\n );\n }\n }, [currentPortrait]);\n\n async function onInitialize() {\n const isLender = await isLenderUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n const isSysUser = await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n const isOwnProfile = await isBrokerOwnProfilePolicy(\n match && match.params && match.params.id\n )(user.roles, user.permissions, user);\n const updatedUserType = getUsersProfileType({\n isOwnProfile,\n isSystemUser: isSysUser,\n profileType\n });\n setUserType(updatedUserType);\n setIsOwnProfile(isOwnProfile);\n\n if (loanSearchQueryParams != null) {\n setActiveTab(\"loanstab\");\n setActiveSubTab(\"matchingYourSearchLoans\");\n } else {\n if (isSysUser || isOwnProfile) {\n setActiveTab(\"matches\");\n } else if (isLender) {\n setActiveTab(\"fileNotes\");\n } else {\n setActiveTab(\"loanstab\");\n setActiveSubTab(\"currentLoans\");\n }\n }\n }\n\n useEffect(() => {\n if (!profileLoading) {\n onInitialize();\n }\n }, [profileLoading]);\n\n async function handleTabChange(newKey) {\n const isSystemUser = await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n const isOwnProfile = await isBrokerOwnProfilePolicy(\n match && match.params && match.params.id\n )(user.roles, user.permissions, user);\n if (newKey === \"loanstab\") {\n setActiveTab(newKey);\n if (loanSearchQueryParams != null) {\n setActiveSubTab(\"matchingYourSearchLoans\");\n } else {\n if (isSystemUser || isOwnProfile) {\n setActiveSubTab(\"preSettlementLoans\");\n } else {\n setActiveSubTab(\"currentLoans\");\n }\n }\n } else {\n setActiveTab(newKey);\n }\n }\n\n const handleProfileActiveChange = () => {\n const warningMessage = getProfileStatusWarning({\n profileType,\n userType,\n isProfileActive: !!broker?.isProfileActive\n });\n setConfirmationText(warningMessage);\n setActiveField(\"isProfileActive\");\n setConfirmationModalVisible(true);\n };\n\n const handleConfirmProfileActiveChange = () => {\n const actionName = !!broker?.isProfileActive\n ? profileStatusTurnOff\n : profileStatusTurnOn;\n const actionMessage = !!broker?.isProfileActive\n ? \"Profile paused successfully.\"\n : \"Profile set to active successfully.\";\n\n dispatch(actionName({ id: broker?.id, profileType: profileType })).then(\n resp => {\n handleModalClose();\n if (resp.status) {\n message.success(actionMessage);\n loadUserInformation();\n } else {\n errorDisplay(resp?.data?.errors);\n }\n }\n );\n };\n\n const handleMasterSwitchChange = () => {\n const text = broker?.isMasterSwitchOn\n ? BROKER_MASTER_SWITCH_OFF_CONFIRMATION_TEXT\n : BROKER_MASTER_SWITCH_ON_CONFIRMATION_TEXT;\n setConfirmationText(text);\n setActiveField(\"isMasterSwitchActive\");\n setConfirmationModalVisible(true);\n };\n\n const handleConfirmMasterSwitchChange = () => {\n const actionName = broker?.isMasterSwitchOn\n ? masterSwitchTurnOff\n : masterSwitchTurnOn;\n const actionMessage = broker?.isMasterSwitchOn ? \"off\" : \"on\";\n dispatch(\n actionName({ id: broker?.companyId, profileType: profileType })\n ).then(resp => {\n if (resp.status) {\n message.success(`Master switch turned ${actionMessage} successfully.`);\n loadUserInformation();\n }\n });\n };\n\n const handleModalClose = () => {\n setConfirmationModalVisible(false);\n setActiveField(\"\");\n setConfirmationText(\"\");\n };\n\n const handleConfirm = () => {\n activeField === \"isProfileActive\"\n ? handleConfirmProfileActiveChange()\n : handleConfirmMasterSwitchChange();\n handleModalClose();\n };\n\n const handleFormChange = ({ label, value }) => {\n if (\n label === \"website\" ||\n label === \"companyName\" ||\n label === \"companyACN\" ||\n label === \"previewCompanyLogo\" ||\n label === \"portraits\" ||\n label === \"leadScore\" ||\n label === \"followupDate\"\n ) {\n setUserProfile({ ...userProfile, [label]: value });\n setPortraitsUpdated(\n label === \"portraits\" ? !portraitsUpdated : portraitsUpdated\n );\n return;\n }\n const updatedPortraits = [...userProfile.portraits].map((portrait, i) => {\n if (i === current - 1) {\n portrait[label] = value;\n }\n return portrait;\n });\n setUserProfile({ ...userProfile, portraits: updatedPortraits });\n };\n\n const handleSave = () => {\n form.validateFields(err => {\n if (err) {\n console.log(err, \"error\");\n return;\n }\n setSaveLoading(true);\n const updatedProfile = {\n portraits: userProfile.portraits,\n website: userProfile.website,\n omicronBdmId: header?.omicronBdm?.id,\n logoFile: userProfile.logoFile,\n individualId: userProfile.individualId,\n companyACN: userProfile.companyACN,\n companyName: userProfile.companyName,\n previewCompanyLogo: userProfile.previewCompanyLogo,\n leadScore: userProfile.leadScore,\n followupDate: userProfile.followupDate\n };\n dispatch(\n updateIndividualProfileV2(\n updatedProfile,\n isSystemUser,\n \"broker\",\n broker.id\n )\n ).then(resp => {\n setCurrent(1);\n setCurrentPortrait(userProfile.portraits[0]);\n setSaveLoading(false);\n if (resp.status) {\n message.success(\"Profile updated successfully.\");\n\n updateHeader({ header: { editMode: false } });\n\n loadUserInformation();\n }\n });\n });\n };\n\n const handleRemove = () => {\n const updatedPortraits = [...userProfile.portraits].filter(\n (_portrait, i) => i !== current - 1\n );\n setUserProfile({ ...userProfile, portraits: updatedPortraits });\n setCurrent(1);\n setPortraitsUpdated(!portraitsUpdated);\n message.success(\n \"User successfully deleted from this Profile and the Platform.\"\n );\n };\n\n return (\n
\n {loading || profileLoading || userType === null ? (\n \n ) : (\n \n \n
\n \n
\n \n \n
\n
\n
\n

\n handleTabChange(tab)}\n onSubTabChange={tab => setActiveSubTab(tab)}\n match={match}\n userHasPermissionToUpdate={userHasPermissionToUpdate}\n getBrokerProfile={options => dispatch(getBrokerProfile(options))}\n loanSearchQueryParams={loanSearchQueryParams}\n toggleSubscriptions={options =>\n dispatch(toggleSubscriptions(options))\n }\n generalView={generalView}\n />\n
\n {!generalView && (\n \n )}\n
\n )}\n
\n );\n};\n\nconst stateMap = state => {\n return {\n header: state.member.header,\n member: state.member,\n broker: state.profile.broker,\n user: state.authorization.user,\n profileLoading: state.profile.profileLoading,\n activeProfile: state.profile && state.profile.activeProfile,\n individualUser:\n (state.authorization && state.authorization.individualUser) || {}\n };\n};\n\nexport const BrokerProfile = connect(stateMap)(\n Form.create({ name: \"BorkerProfile\" })(BrokerProfileImpl)\n);\n","import { http } from \"../libs/http\";\nimport APIHandler, { apiUrls } from \"../constants/apiUrl\";\nimport { processRequest } from \"./asyncActionProcessor\";\nimport { ADMIN_USER } from \"../constants/systemUsers\";\nimport { requestBuilder } from \"../libs/utilities\";\nimport {\n SET_DAILY_SCORE_PAGE,\n SET_MONTHLY_SCORE_PAGE,\n SET_NOTE_ACTION\n} from \"../constants/action-type/notes\";\n\nexport const getMonthlyScores = ({ userType, cancelToken, queryParams }) => {\n return dispatch =>\n new Promise(async resolve => {\n const url = APIHandler.constructEndpoint({\n endpoint:\n userType === ADMIN_USER\n ? apiUrls.MONTHLYSCORES_SYSTEM_USER_URL\n : apiUrls.MONTHLYSCORES_INDIVIDUAL_USER_URL\n });\n try {\n const response = await requestBuilder(\n null,\n url,\n queryParams,\n cancelToken\n );\n resolve(processRequest(dispatch, response, \"GET_MONTHLYSCORES\"));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const setDailyScorePage = dailyScorePage => {\n return dispatch => {\n dispatch({\n type: SET_DAILY_SCORE_PAGE,\n data: {\n dailyScorePage\n }\n });\n };\n};\n\nexport const setMonthlyScorePage = monthlyScorePage => {\n return dispatch => {\n dispatch({\n type: SET_MONTHLY_SCORE_PAGE,\n data: {\n monthlyScorePage\n }\n });\n };\n};\n\nexport const setNotesAction = noteAction => {\n return dispatch => {\n dispatch({\n type: SET_NOTE_ACTION,\n data: {\n noteAction\n }\n });\n };\n};\n\nexport const getDailyScores = ({ userType, cancelToken, queryParams }) => {\n return dispatch =>\n new Promise(async resolve => {\n const url = APIHandler.constructEndpoint({\n endpoint:\n userType === ADMIN_USER\n ? apiUrls.DAILYSCORES_SYSTEM_USER_URL\n : apiUrls.DAILYSCORES_INDIVIDUAL_USER_URL\n });\n try {\n const response = await requestBuilder(\n null,\n url,\n queryParams,\n cancelToken\n );\n resolve(processRequest(dispatch, response, \"GET_MONTHLYSCORES\"));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const getSystemUserNotes = ({ cancelToken, queryParams }) => {\n return dispatch =>\n new Promise(async resolve => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.NOTES_SYSTEM_USER_URL\n });\n try {\n // const response = await http.get(url);\n const response = await requestBuilder(\n null,\n url,\n queryParams,\n cancelToken\n );\n resolve(processRequest(dispatch, response, \"GET_NOTES_SYSTEM_USER\"));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const getNonSystemUserNotes = ({ cancelToken, queryParams }) => {\n return dispatch =>\n new Promise(async resolve => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.NOTES_NON_SYSTEM_USER_URL\n });\n try {\n const response = await http.get(url);\n resolve(\n processRequest(dispatch, response, \"GET_NOTES_NON_SYSTEM_USER\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const updateFileNotesAsSystemUser = ({\n id,\n payLoad,\n cancelToken,\n profileType\n}) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint:\n profileType === \"Lender\"\n ? apiUrls.UPDATE_LENDER_FILE_NOTES_AS_SYSTEM_ADMIN_URL\n : profileType === \"Law Firm\" ? apiUrls.UPDATE_LAWFIRM_FILE_NOTES_AS_SYSTEM_ADMIN_URL : apiUrls.UPDATE_BROKER_FILE_NOTES_AS_SYSTEM_ADMIN_URL,\n options: { id }\n });\n let scoreQueryParams = {\n page: 1,\n pageSize: 2\n };\n try {\n const response = await http.put(url, payLoad, cancelToken);\n resolve(processRequest(dispatch, response, \"SET_NOTE_ACTION\"));\n if (response.data === \"\") {\n getDailyScores({\n userType: ADMIN_USER,\n cancelToken: cancelToken,\n queryParams: scoreQueryParams\n });\n }\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const updateFileNotesAsNonSystemUser = ({\n id,\n payLoad,\n cancelToken,\n profileType\n}) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint:\n profileType === \"Lender\"\n ? apiUrls.UPDATE_LENDER_FILE_NOTES_AS_INDIVIDUAL_URL\n : profileType === \"Law Firm\" ? apiUrls.UPDATE_LAWFIRM_FILE_NOTES_AS_INDIVIDUAL_URL: apiUrls.UPDATE_BROKER_FILE_NOTES_AS_INDIVIDUAL_URL,\n options: { id }\n });\n try {\n const response = await http.put(url, payLoad, cancelToken);\n resolve(processRequest(dispatch, response, \"SET_NOTE_ACTION\"));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const deleteFileNotesAsSystemUser = ({\n id,\n payLoad,\n cancelToken,\n profileType\n}) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint:\n profileType === \"Lender\"\n ? apiUrls.DELETE_LENDER_FILE_NOTES_AS_SYSTEM_ADMIN_URL\n : profileType === \"Law Firm\" ? apiUrls.DELETE_LAWFIRM_FILE_NOTES_AS_SYSTEM_ADMIN_URL : apiUrls.DELETE_BROKER_FILE_NOTES_AS_SYSTEM_ADMIN_URL,\n options: { id }\n });\n try {\n const response = await http.put(\n `${url}?id=${payLoad && payLoad.id}`,\n payLoad,\n cancelToken\n );\n resolve(processRequest(dispatch, response, \"SET_NOTE_ACTION\"));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const deleteFileNotesAsNonSystemUser = ({\n id,\n payLoad,\n cancelToken,\n profileType\n}) => {\n return dispatch =>\n new Promise(async resolve => {\n if (!id) {\n throw new Error(\"Id is required\");\n }\n const url = APIHandler.constructEndpoint({\n endpoint:\n profileType === \"Lender\"\n ? apiUrls.DELETE_LENDER_FILE_NOTES_AS_INDIVIDUAL_URL\n : profileType === \"Law Firm\" ? apiUrls.DELETE_LAWFIRM_FILE_NOTES_AS_INDIVIDUAL_URL : apiUrls.DELETE_BROKER_FILE_NOTES_AS_INDIVIDUAL_URL,\n options: { id }\n });\n try {\n const response = await http.put(\n `${url}?id=${payLoad && payLoad.id}`,\n payLoad,\n cancelToken\n );\n resolve(processRequest(dispatch, response, \"SET_NOTE_ACTION\"));\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n","import React, { useEffect, useState, Fragment } from \"react\";\nimport { Table, Spin, Input, message, Popconfirm, Button, Select } from \"antd\";\nimport _ from \"lodash\";\nimport { tableColumnGenerator } from \"../../libs/table\";\nimport history from \"../../routes/history\";\nimport {\n asDefaultDisplayFormatDate,\n mustBeArray,\n errorDisplay\n} from \"../../libs/utilities\";\nimport axios from \"axios\";\nimport { connect } from \"react-redux\";\nimport { ADMIN_USER } from \"../../constants/systemUsers\";\nimport EditIcon from \"../../assets/icons/EditIcon\";\nimport DeleteIcon from \"../../assets/icons/DeleteIcon\";\nimport { isSystemUserPolicy } from \"../../Common/Authorization/policies/isSystemUserPolicy\";\nimport { updateHeader } from \"../../actions/member\";\nimport { notesDropdownLookUpHandler } from \"../../actions/lookup\";\nimport { Visible } from \"../../components/Common/visiblityWrapper\";\n\nimport {\n getSystemUserNotes,\n getNonSystemUserNotes,\n updateFileNotesAsSystemUser,\n updateFileNotesAsNonSystemUser,\n deleteFileNotesAsSystemUser,\n deleteFileNotesAsNonSystemUser,\n setDailyScorePage,\n setNotesAction\n} from \"../../actions/notes\";\n\nconst LenderBrokerFileNotes = props => {\n const {\n match,\n updateHeader,\n getSystemUserNotes,\n getNonSystemUserNotes,\n updateFileNotesAsSystemUser,\n updateFileNotesAsNonSystemUser,\n deleteFileNotesAsSystemUser,\n deleteFileNotesAsNonSystemUser,\n notesDropdownLookUpHandler,\n setDailyScorePage,\n dailyScorePage,\n user\n } = props;\n const signal = axios.CancelToken.source();\n const [filesList, setFilesList] = useState([]);\n const [loading, setListLoading] = useState(true);\n const [editedList, setEditedList] = useState([]);\n const [sortInfo, setSortInfo] = useState({});\n const [saveLoading, setSaveLoading] = useState(false);\n const [userType, setUserType] = useState(null);\n const [pageSize, setPageSize] = useState(20);\n const [page, setPage] = useState(1);\n const [totalRecords, setTotalRecords] = useState(0);\n const [noteTypesList, setNoteTypesList] = useState([]);\n const [paginationConfig, setPaginationConfig] = useState({page: 1, pageSize: 20});\n\n const tablePagination = {\n current: paginationConfig?.page,\n total: totalRecords,\n pageSize: paginationConfig.pageSize ?? 20\n };\n\n useEffect(() => {\n updateHeader({\n header: {\n title: \" \",\n action: \"\",\n page: \"individual-notes\",\n enableBack: false,\n showSettings: true,\n showMasterSwitch: false,\n showIsProfileActive: false,\n hasSwitchProfile: false,\n editMode: false,\n showNotesButton: false,\n showOmicronBDM: false,\n omicronBdm: null,\n showPageTitle: false\n }\n });\n handleFetch({ actionedRecordId: null, action: \"load\" });\n getNoteTypes();\n const cleanUp = () => {\n signal.cancel(\"\");\n };\n\n return cleanUp;\n }, [\"fileNotes\", paginationConfig]);\n\n const getNoteTypes = () => {\n setListLoading(true);\n return notesDropdownLookUpHandler({}).then(resp => {\n if (resp.status) {\n setNoteTypesList(mustBeArray(resp.data.data));\n setListLoading(false);\n } else {\n errorDisplay(resp && resp.data && resp.data.validationErrors);\n }\n });\n };\n\n const handleFetch = async ({\n actionedRecordId = null,\n action = \"update\"\n }) => {\n const userType = (await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n ))\n ? ADMIN_USER\n : \"\";\n let getActionName =\n userType === ADMIN_USER ? getSystemUserNotes : getNonSystemUserNotes;\n setUserType(userType);\n var params = getQueryParams();\n\n getActionName({\n cancelToken: signal.token,\n queryParams: getQueryParams()\n }).then(resp => {\n setListLoading(false);\n if (resp.status) {\n if (!actionedRecordId && action != \"update\") {\n setFilesList(mustBeArray(resp.data));\n setTotalRecords(resp.total);\n setPage(page + 1);\n } else if (action === \"delete\") {\n let updatedRecord = null;\n let newList = !updatedRecord\n ? _.filter(filesList, o => o.id !== actionedRecordId)\n : filesList.map(file => {\n return file.id === actionedRecordId ? updatedRecord : file;\n });\n setFilesList(newList);\n }\n }\n });\n };\n\n const handleProfileClick = record => {\n let profileType = record.profileType === \"Lender\" ? \n \"lender\" : record.profileType === \"Law Firm\" ? \"lawfirm\" : \"broker\";\n let profileId =\n record.profileType === \"Lender\" ? record.lenderID : record.profileType === \"Law Firm\" ? record.lawFirmID : record.brokerID;\n history.push(`/users/${profileId}/${profileType}`);\n };\n\n const handleTableChange = (pagination, filters, sorter) => {\n setPaginationConfig({\n pageSize: 20,\n page: pagination.current\n });\n\n setSortInfo({\n field: sorter.field,\n order: !sorter.order\n ? undefined\n : sorter.order === \"ascend\"\n ? \"asc\"\n : \"desc\"\n })\n };\n\n const handleDelete = ({ record }) => {\n let id =\n record &&\n (record.profileType === \"Lender\" ? record.lenderID : \n record.profileType === \"Law Firm\" ? record.lawFirmID : \n record.brokerID);\n setListLoading(true);\n\n let payLoad = {\n id: record && record.fileNoteId\n };\n\n let actionName =\n userType === ADMIN_USER\n ? deleteFileNotesAsSystemUser\n : deleteFileNotesAsNonSystemUser;\n\n actionName({\n payLoad,\n cancelToken: signal.token,\n id,\n profileType: record.profileType\n }).then(resp => {\n setListLoading(false);\n if (resp.status) {\n message.success(`File note deleted successfully.`);\n handleFetch({\n actionedRecordId: record && record.id,\n action: \"delete\"\n });\n setNotesAction(\"delete\");\n }\n });\n };\n\n const handleEdit = ({ record, field, value }) => {\n let validationId = record && record.id;\n\n if (!editedList.includes(validationId)) {\n setEditedList([...editedList, validationId]);\n }\n let newUpdatedList = [...filesList].map(data => {\n return data.id === validationId\n ? { ...data, [field]: value }\n : { ...data };\n });\n setFilesList(newUpdatedList);\n };\n\n const updateRecord = ({ record, field, value }) => {\n let validationId = record && record.id;\n\n if (field === \"noteType\") {\n value = noteTypesList.find(x => x.key === value);\n }\n let newUpdatedList = filesList.map(data => {\n return data.id === validationId\n ? { ...data, [field]: value }\n : { ...data };\n });\n setFilesList(newUpdatedList);\n };\n\n const handleSave = ({ record }) => {\n let id;\n setListLoading(true);\n let payLoad = {\n note: record && record.note,\n noteType:\n record &&\n (record.noteType == null || _.isUndefined(record.noteType)\n ? \"\"\n : record.noteType.key)\n };\n\n payLoad.fileNoteId = record && record.fileNoteId;\n\n if (record.profileType === \"Lender\") {\n \n id = record && record.lenderID;\n } else if (record.profileType === \"Law Firm\") {\n id = record && record.lawFirmID;\n } \n else {\n id = record && record.brokerID;\n }\n\n let actionName =\n userType === ADMIN_USER\n ? updateFileNotesAsSystemUser\n : updateFileNotesAsNonSystemUser;\n\n actionName({\n id: id,\n payLoad,\n cancelToken: signal.token,\n profileType: record.profileType\n }).then(resp => {\n setListLoading(false);\n if (resp.status) {\n message.success(\n `File notes ${\n record && record.newRecord ? \"added\" : \"updated\"\n } successfully.`\n );\n let updatedEditedList = _.filter(\n editedList,\n o => o !== (record && record.id)\n );\n setEditedList(updatedEditedList);\n handleFetch({\n actionedRecordId: _.isInteger(record && record.id) ? record.id : null,\n action: \"update\"\n });\n setNotesAction(\"update\");\n }\n });\n };\n\n const getQueryParams = () => {\n let queryParams = {};\n if (sortInfo && sortInfo.field && sortInfo.order) {\n queryParams = {\n sort: sortInfo.order,\n orderBy: sortInfo.field\n };\n }\n queryParams = {\n ...paginationConfig\n };\n\n return queryParams;\n };\n\n let colTemplate =\n userType === ADMIN_USER\n ? [\n {\n title: \"Date\",\n dataIndex: \"date\",\n width: 140,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"date\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n dataType: \"date\"\n },\n {\n title: \"Taken by\",\n dataIndex: \"takenBy\",\n width: 140,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"takenBy\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false\n },\n {\n title: \"Person\",\n dataIndex: \"personName\",\n width: 140,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"personName\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return (\n handleProfileClick(record)}\n style={{ color: \"blue\" }}\n >\n {data}\n \n );\n }\n },\n {\n title: \"Company\",\n dataIndex: \"companyName\",\n width: 140,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"companyName\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false\n },\n {\n title: \"Profile\",\n dataIndex: \"profileType\",\n width: 120,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"profileType\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false\n }\n ]\n : [\n {\n title: \"Date\",\n dataIndex: \"date\",\n width: 140,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"date\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: record => {\n return asDefaultDisplayFormatDate(record);\n }\n },\n {\n title: \"Taken by\",\n dataIndex: \"takenBy\",\n width: 140,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"takenBy\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false\n },\n {\n title: \"Person\",\n dataIndex: \"personName\",\n width: 140,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"personName\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n render: (data, record) => {\n return (\n handleProfileClick(record)}\n style={{ color: \"blue\" }}\n >\n {data}\n \n );\n }\n },\n {\n title: \"Company\",\n dataIndex: \"companyName\",\n width: 140,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"companyName\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false\n },\n {\n title: \"Profile\",\n dataIndex: \"profileType\",\n width: 120,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"profileType\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false\n }\n ];\n\n colTemplate = _.concat(colTemplate, [\n {\n title: \"Notes\",\n dataIndex: \"note\",\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"note\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n width: \"70%\",\n render: (data, record) => {\n return editedList.includes(record && record.id) ? (\n \n updateRecord({\n record,\n field: \"note\",\n value: e.currentTarget.value\n })\n }\n />\n ) : (\n {data}\n );\n }\n },\n {\n title: \"Note Type\",\n dataIndex: \"noteType\",\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"note\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n width: \"9%\",\n render: (data, record) => {\n return editedList.includes(record && record.id) ? (\n \n \n \n ...\n \n No data\n \n }\n filterOption={false}\n onChange={e =>\n updateRecord({\n record,\n field: \"noteType\",\n value: e\n })\n }\n defaultValue={data === null || _.isUndefined(data) ? \"\" : data.key}\n >\n {mustBeArray(noteTypesList).map(noteType => {\n return (\n \n {noteType.name}\n \n );\n })}\n \n ) : (\n {data === null || _.isUndefined(data) ? \"\" : data.name}\n );\n }\n }\n ]);\n\n const actions = [\n {\n dataIndex: \"\",\n sorter: false,\n width: 100,\n render: record => {\n return editedList.includes(record && record.id) ? (\n handleSave({ record })}\n >\n Save\n \n ) : (\n \n handleEdit({ record })} />\n handleDelete({ record })}\n >\n \n \n \n );\n }\n }\n ];\n\n const loadMoreContent = () => (\n \n \n \n );\n\n const tableColumn = _.concat(tableColumnGenerator(colTemplate), actions);\n\n return (\n index}\n onChange={handleTableChange}\n bordered\n />\n );\n};\n\nconst mapStateToProps = state => {\n return {\n member: state.member || {},\n profile: (state.profile && state.profile.details) || {},\n user: state.authorization && state.authorization.user,\n lender: state.profile.lender,\n broker: state.profile.broker,\n dailyScorePage: state.notes.page\n };\n};\n\nconst mapDispatchToProps = {\n updateHeader,\n getSystemUserNotes,\n getNonSystemUserNotes,\n updateFileNotesAsSystemUser,\n updateFileNotesAsNonSystemUser,\n deleteFileNotesAsSystemUser,\n deleteFileNotesAsNonSystemUser,\n notesDropdownLookUpHandler,\n setDailyScorePage,\n setNotesAction\n};\n\nexport default connect(\n mapStateToProps,\n mapDispatchToProps\n)(LenderBrokerFileNotes);\n","import React, { useEffect, useState } from \"react\";\nimport { Button, Col, Icon } from \"antd\";\nimport { isSystemUserPolicy } from \"../../Common/Authorization/policies/isSystemUserPolicy\";\nimport { updateHeader } from \"../../actions/member\";\nimport _ from \"lodash\";\nimport { mustBeArray } from \"../../libs/utilities\";\nimport moment from \"moment\";\nimport axios from \"axios\";\nimport { connect } from \"react-redux\";\nimport { ADMIN_USER } from \"../../constants/systemUsers\";\n\nimport {\n getSystemUserNotes,\n getNonSystemUserNotes,\n getDailyScores,\n setDailyScorePage,\n setNotesAction\n} from \"../../actions/notes\";\n\nconst DailyScores = props => {\n const {\n getDailyScores,\n user,\n dailyScorePage,\n setDailyScorePage,\n noteAction,\n setNotesAction\n } = props;\n\n const signal = axios.CancelToken.source();\n const [filesList, setFilesList] = useState([]);\n const [loading, setListLoading] = useState(true);\n const [sortInfo, setSortInfo] = useState({});\n const [userType, setUserType] = useState(null);\n const [pageSize, setPageSize] = useState(2);\n const [totalRecords, setTotalRecords] = useState(0);\n const [monthToDisplay, setMonthToDisplay] = useState([]);\n const [months, setMonths] = useState([]);\n const [dateTick, setDateTick] = useState();\n const [showNextPageRight, setShowNextPageRight] = useState(true);\n const [recordsLoaded, setRecordsLoaded] = useState(0);\n const [showUpButton, setshowUpButton] = useState(false);\n const [firstDateInList, setLatestDateInList] = useState(new Date());\n const [action, setAction] = useState(\"load\");\n const [firstLoad, setFirstLoad] = useState(false);\n const [firstEntry, setFirstEntry] = useState();\n const [listLeadingDates, setListLeadingDates] = useState([]);\n\n const getQueryParams = () => {\n let queryParams = {};\n if (sortInfo && sortInfo.field && sortInfo.order) {\n queryParams = {\n sort: sortInfo.order,\n orderBy: sortInfo.field,\n page: dailyScorePage,\n pageSize: pageSize,\n lastDateFromQuery: dateTick\n };\n }\n queryParams = {\n page: dailyScorePage,\n pageSize: pageSize,\n lastDateFromQuery: dateTick\n };\n return queryParams;\n };\n\n useEffect(() => {\n handleFetch(dailyScorePage, action);\n }, [dailyScorePage, dateTick, noteAction]);\n\n useEffect(() => {\n setDailyScorePage(1);\n handleRefresh();\n }, [noteAction]);\n\n useEffect(() => {\n var currentDate = new Date();\n var firstDateInListNoTime = new Date(firstDateInList.setHours(0, 0, 0, 0));\n var currentDateNoTime = new Date(currentDate.setHours(0, 0, 0, 0));\n // HIDE THE UP BUTTON WHEN THE FIRST MONTH IN THE LIST IS >= CURRENT DATE\n if (firstDateInListNoTime >= currentDateNoTime) {\n setshowUpButton(false);\n } else if (firstDateInListNoTime <= currentDateNoTime) {\n setshowUpButton(true);\n }\n }, [firstDateInList]);\n\n useEffect(() => {\n if (recordsLoaded == totalRecords) {\n setShowNextPageRight(false);\n } else {\n setShowNextPageRight(true);\n }\n }, [recordsLoaded]);\n\n const handleFetch = async (dailyScorePage, action) => {\n setListLoading(true);\n const userType = (await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n ))\n ? ADMIN_USER\n : \"\";\n setUserType(userType);\n let getActionName = getDailyScores;\n await getActionName({\n userType: userType,\n cancelToken: signal.token,\n queryParams: getQueryParams()\n }).then(resp => {\n if (resp.status) {\n if (resp.data.length > 0) {\n let initialDataLoaded = dailyScorePage == 1 ? 0 : recordsLoaded;\n // Deduct the records loaded before making any changes to the record count when moving left\n if (action === \"left\") {\n setRecordsLoaded(recordsLoaded - filesList.length);\n }\n\n setFilesList(mustBeArray(resp.data));\n var monthsToDisplay = [];\n var monthsData = [];\n\n if (action === \"right\") {\n setRecordsLoaded(initialDataLoaded + resp.data.length);\n }\n // This part is for when the component is initially loaded.\n if (action === \"load\") {\n setRecordsLoaded(resp.data.length);\n }\n\n setTotalRecords(resp.total);\n let totalPages = Math.ceil(resp.total/2)\n\n setShowNextPageRight(totalPages != resp.page);\n //get the months for the current viewed year from the first result\n //use the first retrieved user's data to retrieve the days to loop through\n resp.data[0].monthlyScores.forEach(item => {\n monthsToDisplay.push(item.sortDate);\n let monthData = [];\n resp.data.forEach(months => {\n //retrieve the data (calls) per user and tag them with the current looped days\n let data = months.monthlyScores.filter(\n i => i.sortDate === item.sortDate\n )[0];\n monthData.push(data);\n });\n monthsData.push({\n dateDisplay: item.sortDate,\n callCount1: monthData[0] != undefined ? monthData[0].calls : \"\",\n callCount2: monthData[1] != undefined ? monthData[1].calls : \"\"\n });\n });\n setMonths(mustBeArray(monthsToDisplay));\n //Setting a flag to retrieve the very first row ONLY in FIRST LOAD to\n //to have a return point after editing/deleting an entry in notes list\n if (!firstLoad) {\n setFirstEntry(monthsToDisplay[0]);\n setFirstLoad(true);\n }\n setMonthToDisplay(mustBeArray(monthsData));\n setListLoading(false);\n }\n setNotesAction(\"\");\n }\n });\n };\n\n const handleRefresh = () => {\n if (!_.isUndefined(firstEntry)) {\n let firstEntryDate = new Date(firstEntry);\n let setDate = new Date(\n firstEntryDate.setDate(firstEntryDate.getDate() + 1)\n );\n setLatestDateInList(firstEntryDate);\n //empty the list of leading dates as we go back to the initial dates\n setListLeadingDates([]);\n let dateTick = setDate * 10000 + 621355968000000000;\n setDateTick(dateTick);\n }\n };\n\n const handleClickDown = () => {\n let convertedLatestDate = new Date(\n monthToDisplay[monthToDisplay.length - 1].dateDisplay\n );\n\n //Store dates in a date array to keep the leading dates per page (as this pose a problem when going up the vertical list)\n //as the user goes down the list, the latest date on the array will be used as a return point\n let tempListLeadingDates = listLeadingDates;\n tempListLeadingDates.push(monthToDisplay[0].dateDisplay);\n setListLeadingDates(tempListLeadingDates);\n\n setAction(\"down\");\n setLatestDateInList(convertedLatestDate);\n setListLoading(true);\n let setConvertedLastDate = new Date(\n convertedLatestDate.setDate(convertedLatestDate.getDate() + 1)\n );\n let dateTick =\n setConvertedLastDate.setHours(0, 0, 0, 0) * 10000 + 621355968000000000;\n setDateTick(dateTick);\n };\n\n const handleClickUp = () => {\n let tempListLeadingDates = listLeadingDates;\n let convertedDate = new Date(\n tempListLeadingDates[tempListLeadingDates.length - 1]\n );\n let convertedFirstDate = new Date(\n convertedDate.setDate(convertedDate.getDate() + 2)\n );\n setAction(\"up\");\n setLatestDateInList(convertedDate);\n let dateTick =\n convertedFirstDate.setHours(0, 0, 0, 0) * 10000 + 621355968000000000;\n setDateTick(dateTick);\n //Remove the most recent date (returning point) as it has already been used.\n tempListLeadingDates.pop(tempListLeadingDates.length - 1);\n setListLeadingDates(tempListLeadingDates);\n };\n\n const handleClickRight = () => {\n setListLoading(true);\n let pageNumber = dailyScorePage + 1;\n setAction(\"right\");\n setDailyScorePage(pageNumber);\n };\n\n const handleClickLeft = () => {\n setListLoading(true);\n let pageNumber = dailyScorePage - 1;\n setAction(\"left\");\n setDailyScorePage(pageNumber);\n };\n\n return (\n
\n \n
\n {showUpButton && (\n \n handleClickUp()}\n style={{ borderColor: \"white\" }}\n >\n \n \n
\n )}\n
\n handleClickDown()}\n style={{ borderColor: \"white\" }}\n >\n \n \n
\n\n \n \n \n \n {filesList.map((item, index) => (\n \n ))}\n {showNextPageRight && (\n \n )}\n \n \n \n {monthToDisplay.map((item, index) => (\n \n \n \n {moment(item.dateDisplay).format(\"dddd D MMMM YYYY\")}\n \n \n \n \n {item.callCount1} calls\n \n \n \n \n {item.callCount2} calls\n \n \n \n ))}\n \n
\n {dailyScorePage >= 2 && (\n handleClickLeft()}\n style={{ borderColor: \"white\" }}\n >\n \n \n )}\n \n {item.userName}\n \n handleClickRight()}\n style={{ borderColor: \"white\" }}\n >\n \n \n
\n
\n \n \n {userType == ADMIN_USER && (\n \n )}\n \n \n );\n};\n\nconst mapStateToProps = state => {\n return {\n member: state.member || {},\n profile: (state.profile && state.profile.details) || {},\n user: state.authorization && state.authorization.user,\n dailyScorePage: state.notes.dailyScorePage,\n noteAction: state.notes.noteAction\n };\n};\n\nconst mapDispatchToProps = {\n updateHeader,\n getSystemUserNotes,\n getNonSystemUserNotes,\n getDailyScores,\n setDailyScorePage,\n setNotesAction\n};\n\nexport default connect(\n mapStateToProps,\n mapDispatchToProps\n)(DailyScores);\n","import React, { useEffect, useState } from \"react\";\nimport { Button, Col, Row, Icon } from \"antd\";\nimport { isSystemUserPolicy } from \"../../Common/Authorization/policies/isSystemUserPolicy\";\nimport { updateHeader } from \"../../actions/member\";\nimport _ from \"lodash\";\nimport { tableColumnGenerator } from \"../../libs/table\";\nimport history from \"../../routes/history\";\nimport {\n asDefaultDisplayFormatDate,\n currencyFormater,\n mustBeArray\n} from \"../../libs/utilities\";\nimport axios from \"axios\";\nimport { connect } from \"react-redux\";\nimport { ADMIN_USER } from \"../../constants/systemUsers\";\nimport DailyScores from \"../Notes/DailyScores\";\n\nimport {\n getSystemUserNotes,\n getNonSystemUserNotes,\n getMonthlyScores,\n setMonthlyScorePage,\n setNotesAction\n} from \"../../actions/notes\";\n\nconst MonthlyScores = props => {\n const {\n updateHeader,\n getMonthlyScores,\n user,\n monthlyScorePage,\n setMonthlyScorePage,\n noteAction,\n setNotesAction\n } = props;\n\n const signal = axios.CancelToken.source();\n const [filesList, setFilesList] = useState([]);\n const [loading, setListLoading] = useState(true);\n const [sortInfo, setSortInfo] = useState({});\n const [userType, setUserType] = useState(null);\n const [pageSize, setPageSize] = useState(2);\n const [totalRecords, setTotalRecords] = useState(0);\n const [monthToDisplay, setMonthToDisplay] = useState([]);\n const [months, setMonths] = useState([]);\n const [dateTick, setDateTick] = useState();\n const [showNextPageRight, setShowNextPageRight] = useState(true);\n const [showUpButton, setshowUpButton] = useState(false);\n const [recordsLoaded, setRecordsLoaded] = useState(0);\n const [firstMonthInList, setLatestMonthInList] = useState(new Date());\n const [action, setAction] = useState(\"load\");\n const [firstLoad, setFirstLoad] = useState(false);\n const [firstEntry, setFirstEntry] = useState();\n\n useEffect(() => {\n updateHeader({\n header: {\n title: \" \",\n action: \"\",\n page: \"monthly-scores\",\n enableBack: false,\n showSettings: true,\n showMasterSwitch: false,\n showIsProfileActive: false,\n hasSwitchProfile: false,\n editMode: false,\n showNotesButton: false,\n showOmicronBDM: false,\n omicronBdm: null,\n showPageTitle: false\n }\n });\n const cleanUp = () => {\n signal.cancel(\"\");\n };\n\n return cleanUp;\n }, []);\n\n useEffect(() => {\n handleFetch(monthlyScorePage, action);\n }, [monthlyScorePage, dateTick, noteAction]);\n\n useEffect(() => {\n setMonthlyScorePage(1);\n handleRefresh();\n }, [noteAction]);\n\n useEffect(() => {\n var currentDate = new Date();\n // HIDE THE UP BUTTON WHEN THE FIRST MONTH IN THE LIST IS >= CURRENT DATE\n if (\n firstMonthInList.getFullYear() >= currentDate.getFullYear() &&\n firstMonthInList.getMonth() >= currentDate.getMonth()\n ) {\n setshowUpButton(false);\n } else {\n setshowUpButton(true);\n }\n }, [firstMonthInList]);\n\n useEffect(() => {}, [showNextPageRight]);\n\n const getQueryParams = () => {\n let queryParams = {};\n if (sortInfo && sortInfo.field && sortInfo.order) {\n queryParams = {\n sort: sortInfo.order,\n orderBy: sortInfo.field,\n page: monthlyScorePage,\n pageSize: pageSize,\n lastDateFromQuery: dateTick\n };\n }\n queryParams = {\n page: monthlyScorePage,\n pageSize: pageSize,\n lastDateFromQuery: dateTick\n };\n return queryParams;\n };\n\n const handleFetch = async (monthlyScorePage, action) => {\n const userType = (await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n ))\n ? ADMIN_USER\n : \"\";\n setUserType(userType);\n let getActionName = getMonthlyScores;\n getActionName({\n userType: userType,\n cancelToken: signal.token,\n queryParams: getQueryParams()\n }).then(resp => {\n setListLoading(false);\n if (resp.status) {\n if (resp.data.length > 0) {\n let initialDataLoaded =\n monthlyScorePage == 1 ? resp.data.length : recordsLoaded;\n // Deduct the records loaded before making any changes to the record count when moving left\n if (action === \"left\") {\n setRecordsLoaded(recordsLoaded - filesList.length);\n }\n setFilesList(mustBeArray(resp.data));\n var monthsToDisplay = [];\n var monthsData = [];\n\n if (action === \"right\") {\n setRecordsLoaded(initialDataLoaded + resp.data.length);\n }\n // This part is for when the component is initially loaded.\n if (action === \"load\") {\n setRecordsLoaded(resp.data.length);\n }\n\n setTotalRecords(resp.total);\n let totalPages = Math.ceil(resp.total/2)\n\n setShowNextPageRight(totalPages != resp.page);\n //get the months for the current viewed year from the first result\n //use the first retrieved user's data to retrieve the Months to loop through\n resp.data[0].monthlyScores.forEach(item => {\n monthsToDisplay.push(item.dateDisplay);\n let monthData = [];\n resp.data.forEach(months => {\n //retrieve the data (calls) per user and tag them with the current looped month\n let data = months.monthlyScores.filter(\n i => i.dateDisplay === item.dateDisplay\n )[0];\n monthData.push(data);\n });\n monthsData.push({\n dateDisplay: item.dateDisplay,\n callCount1: monthData[0] != undefined ? monthData[0].calls : \"\",\n callCount2: monthData[1] != undefined ? monthData[1].calls : \"\"\n });\n });\n setMonths(mustBeArray(monthsToDisplay));\n //Setting a flag to retrieve the very first row ONLY in FIRST LOAD to\n //to have a return point after editing/deleting an entry in notes list\n if (!firstLoad) {\n setFirstEntry(monthsToDisplay[0]);\n setFirstLoad(true);\n }\n\n setMonthToDisplay(mustBeArray(monthsData));\n }\n setNotesAction(\"\");\n }\n });\n };\n\n const handleRefresh = () => {\n if (!_.isUndefined(firstEntry)) {\n let firstEntryDate = new Date(firstEntry);\n let setDate = new Date(\n firstEntryDate.setMonth(firstEntryDate.getMonth() + 2)\n );\n setLatestMonthInList(firstEntryDate);\n let dateTick = setDate * 10000 + 621355968000000000;\n setDateTick(dateTick);\n }\n };\n\n const handleClickRight = () => {\n setListLoading(true);\n let pageNumber = monthlyScorePage + 1;\n setAction(\"right\");\n setMonthlyScorePage(pageNumber);\n };\n\n const handleClickLeft = () => {\n setListLoading(true);\n let pageNumber = monthlyScorePage - 1;\n setAction(\"left\");\n setMonthlyScorePage(pageNumber);\n };\n\n const handleClickDown = () => {\n let convertedLatestDate = new Date(\n monthToDisplay[monthToDisplay.length - 2].dateDisplay\n );\n setAction(\"down\");\n setLatestMonthInList(convertedLatestDate);\n let dateTick = convertedLatestDate * 10000 + 621355968000000000;\n setDateTick(dateTick);\n };\n\n const handleClickUp = () => {\n let convertedLatestDate = new Date(\n monthToDisplay[monthToDisplay.length - 1].dateDisplay\n );\n setLatestMonthInList(convertedLatestDate);\n setAction(\"up\");\n // need to access the succeeding month of the 'latest' month (of the next year)\n // Also used 25 as the conversion of ticks needs further understanding\n let setDate = new Date(\n convertedLatestDate.setMonth(convertedLatestDate.getMonth() + 25)\n );\n setLatestMonthInList(setDate);\n let dateTick = setDate * 10000 + 621355968000000000;\n setDateTick(dateTick);\n };\n\n return (\n \n \n \n
\n
\n {showUpButton && (\n \n handleClickUp()}\n style={{ borderColor: \"white\" }}\n >\n \n \n
\n )}\n \n handleClickDown()}\n style={{ borderColor: \"white\" }}\n >\n \n \n
\n \n\n \n \n \n \n {/* PREVIOUS PAGE BUTTON */}\n {filesList.map((item, index) => (\n \n {item.userName}\n \n ))}\n {/* NEXT PAGE BUTTON */}\n {showNextPageRight && (\n \n )}\n \n \n \n {monthToDisplay.map((item, index) => (\n \n \n \n {item.dateDisplay}\n \n \n \n \n {item.callCount1} calls\n \n \n \n \n {item.callCount2} calls\n \n \n \n ))}\n \n
\n {monthlyScorePage >= 2 && (\n handleClickLeft()}\n style={{ borderColor: \"white\" }}\n >\n \n \n )}\n \n handleClickRight()}\n style={{ borderColor: \"white\" }}\n >\n \n \n
\n \n \n \n \n \n
\n );\n};\n\nconst mapStateToProps = state => {\n return {\n member: state.member || {},\n profile: (state.profile && state.profile.details) || {},\n user: state.authorization && state.authorization.user,\n monthlyScorePage: state.notes.monthlyScorePage,\n noteAction: state.notes.noteAction\n };\n};\n\nconst mapDispatchToProps = {\n updateHeader,\n getSystemUserNotes,\n getNonSystemUserNotes,\n getMonthlyScores,\n setMonthlyScorePage,\n setNotesAction\n};\n\nexport default connect(\n mapStateToProps,\n mapDispatchToProps\n)(MonthlyScores);\n","import React, { Component, Fragment, useEffect, useState } from \"react\";\nimport NotesList from \"../../components/Notes/NotesList\";\nimport MonthlyScores from \"../../components/Notes/MonthlyScores\";\nimport { connect } from \"react-redux\";\nimport { updateRouteOptions } from \"../../actions/member\";\nimport { DEFAULT_ROUTES_SYSTEM_USER } from \"../../constants/routeOptions\";\nimport { isSystemUserPolicy } from \"../../Common/Authorization/policies/isSystemUserPolicy\";\nimport { ADMIN_USER } from \"../../constants/systemUsers\";\n\nconst Notes = props => {\n const { match, user, dispatch } = props;\n const [userType, setUserType] = useState();\n\n useEffect(() => {\n dispatch(updateRouteOptions({ routeOptions: DEFAULT_ROUTES_SYSTEM_USER }));\n checkUserType();\n }, []);\n\n const checkUserType = async () => {\n let userAccess = (await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n ))\n ? ADMIN_USER\n : \"\";\n setUserType(userAccess);\n };\n\n return (\n
\n

\n Notes\n

\n
\n
\n \n
\n \n \n \n
\n );\n};\n\nconst mapStateToProps = state => {\n return {\n user: state.authorization && state.authorization.user\n };\n};\nexport default connect(mapStateToProps)(Notes);\n","import { useState, useEffect } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { isLawFirmUserPolicy } from \"../Authorization/policies/isLawFirmUserPolicy\";\nimport { isSystemUserPolicy } from \"../Authorization/policies/isSystemUserPolicy\";\nimport { isLenderUserPolicy } from \"../Authorization/policies/isLenderUserPolicy\";\nimport { isBrokerUserPolicy } from \"../Authorization/policies/isBrokerUserPolicy\";\n\nexport default function useCheckUserRoles() {\n const { user } = useSelector((s: any) => s.authorization);\n\n const [isLawFirmUser, setIsLawFirm] = useState(false);\n const [isSystemAdmin, setIsSystemAdmin] = useState(false);\n const [isDualUser, setIsDualUser] = useState(false);\n const [isLenderUser, setIsLenderUser] = useState(false);\n const [isBrokerUser, setIsBroker] = useState(false);\n\n const checkIfUserIsLawfirm = async () => {\n const result = await isLawFirmUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n setIsLawFirm(result);\n return result;\n };\n\n const checkIfUserIsSystemAdmin = async () => {\n const result = await isSystemUserPolicy(user.roles, user.permissions, user);\n setIsSystemAdmin(result);\n return result;\n };\n\n const checkIfUserIsLender = async () => {\n const result = await isLenderUserPolicy(user.roles, user.permissions, user);\n setIsLenderUser(result);\n return result;\n };\n\n const checkIfUserIsBroker = async () => {\n const result = await isBrokerUserPolicy(user.roles, user.permissions, user);\n setIsBroker(result);\n return result;\n };\n\n const checkIfUserIsDual = async () => {\n const brokerResult = await isBrokerUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n const lenderResult = await isLenderUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n setIsDualUser(brokerResult && lenderResult);\n return brokerResult && lenderResult;\n };\n\n useEffect(() => {\n checkIfUserIsLawfirm();\n checkIfUserIsLender();\n checkIfUserIsBroker();\n checkIfUserIsSystemAdmin();\n checkIfUserIsDual();\n }, [user]);\n\n return {\n isSystemAdmin,\n isBrokerUser,\n isLenderUser,\n isDualUser,\n isLawFirmUser,\n checkIfUserIsSystemAdmin,\n checkIfUserIsLender,\n checkIfUserIsBroker,\n checkIfUserIsDual,\n checkIfUserIsLawfirm\n };\n}\n","import React, { useEffect, useState, InputNumber } from \"react\";\nimport { connect } from \"react-redux\";\nimport { Input, Table } from \"antd\";\nimport { getAttributedLenders } from \"../../actions/loans\";\nimport { tableColumnGenerator } from \"../../libs/table\";\nimport { mustBeArray } from \"../../libs/utilities\";\nimport NumberInput from \"../../Common/NumberInput\";\nimport history from \"../../routes/history\";\nimport { isSystemUserPolicy } from \"../../Common/Authorization/policies/isSystemUserPolicy\";\nimport { ADMIN_USER, SYSTEM_ADMIN_USER } from \"../../constants/systemUsers\";\nimport { isLawFirmUserPolicy } from \"../../Common/Authorization/policies/isLawFirmUserPolicy\";\nimport useCheckUserRoles from \"../../Common/Hooks/useCheckUserRoles\";\n\nconst AttributedLenders = props => {\n const { user, getAttributedLenders, match } = props;\n\n const loanId = match.params.id;\n\n const { isLawFirmUser, checkIfUserIsSystemAdmin } = useCheckUserRoles();\n\n const [attributedLenderList, setAttributedLenderList] = useState([]);\n\n useEffect(() => {\n getAttributedLendersList();\n }, [loanId]);\n\n const getAttributedLendersList = async () => {\n console.log(\"getAttributedLendersList\")\n checkIfUserIsSystemAdmin().then(isSystemAdmin => {\n const userType = isSystemAdmin ? SYSTEM_ADMIN_USER : \"\";\n getAttributedLenders({\n id: match.params.id,\n userType\n }).then(resp => {\n if (resp.status) {\n setAttributedLenderList(resp.data);\n }\n });\n });\n };\n\n let colTemplate =\n attributedLenderList.length > 1\n ? [\n {\n title: \"\",\n dataIndex: \"loanLenderName\",\n width: 100,\n sorter: false,\n render: (data, record) => {\n return (\n \n alert(\"Lender Id: \" + record.loanLenderId)}\n >\n \n );\n }\n },\n {\n dataIndex: \"loanLenderContribution\",\n width: 100,\n sorter: false,\n render: (data, record) => {\n return (\n \n \n \n );\n }\n }\n ]\n : [\n {\n dataIndex: \"loanLenderName\",\n width: 100,\n sorter: false,\n render: (data, record) => {\n return (\n \n \n \n );\n }\n }\n ];\n\n const columns = tableColumnGenerator(colTemplate);\n\n const handleLenderProfileClick = lenderId => {\n history.push(`/users/${lenderId}/lender`);\n };\n\n return (\n
\n {mustBeArray(attributedLenderList).map((data, i) => {\n return (\n
\n {data.loanLenderId && (\n {\n if (!isLawFirmUser) {\n handleLenderProfileClick(data.loanLenderId);\n }\n }}\n >\n )}\n {!data.loanLenderId && (\n \n )}\n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n className=\"m-l-6 m-r-6 hideNumberPointers w-150\"\n value={data?.loanLenderContribution}\n disabled\n >\n
\n );\n })}\n
\n );\n};\n\nconst mapStateToProps = state => {\n return {\n attributedLenders: state.attributedLenders\n };\n};\n\nconst mapDispatchToProps = {\n getAttributedLenders\n};\n\nexport default connect(\n mapStateToProps,\n mapDispatchToProps\n)(AttributedLenders);\n","import { Col, Row, Typography, Icon, Popconfirm } from \"antd\";\nimport React from \"react\";\nimport EditIcon from \"../../../assets/icons/EditIcon\";\nimport DeleteIcon from \"../../../assets/icons/DeleteIcon\";\n\n/**\n * Setting the button prop disabled to true hides the button from view\n * \n * @typedef LoanFormHeaderButtonProp\n * @property {boolean} visible\n * @property {() => void} callback\n * @property {boolean=} disabled \n *\n * @typedef LoanFormHeaderSnapshotProp\n * @property {string} editedBy\n * @property {string | null} editedDate\n *\n * @typedef LoanFormHeaderProps\n * @property {LoanFormHeaderButtonProp=} editButton\n * @property {LoanFormHeaderButtonProp=} deleteButton\n * @property {LoanFormHeaderButtonProp=} saveButton\n * @property {LoanFormHeaderButtonProp=} cancelButton\n * @property {LoanFormHeaderSnapshotProp} snapshotOverview\n * @property {boolean=} snapshotMode\n * \n * @param {LoanFormHeaderProps} Props\n * @returns\n */\nconst LoanFormHeader = ({\n editButton = {\n visible: false,\n callback: () => {}\n },\n deleteButton = {\n visible: false,\n callback: () => {}\n },\n saveButton = {\n visible: false,\n callback: () => {}\n },\n cancelButton = {\n visible: false,\n callback: () => {}\n },\n snapshotMode = false,\n snapshotOverview = {\n editedBy: '',\n editedDate: ''\n },\n}) => {\n return (\n
\n {\n snapshotMode && <>\n \n \n \n {`This is a snapshot of what this record looked like after the edits made by ${snapshotOverview.editedBy} on ${snapshotOverview.editedDate}`}\n \n \n \n \n }\n \n \n \n \n Loan Record\n \n \n \n \n {editButton.visible && !editButton.disabled && (\n \n \n \n )}\n {deleteButton.visible && !deleteButton.disabled && (\n \n \n \n \n \n )}\n {saveButton.visible && !saveButton.disabled && (\n \n \n \n )}\n {cancelButton.visible && !cancelButton.disabled && (\n \n \n \n )}\n \n \n \n
\n \n );\n};\nexport default LoanFormHeader;\n","import React, { useEffect, useState, InputNumber } from \"react\";\nimport { connect } from \"react-redux\";\nimport { Input, Table } from \"antd\";\nimport { getAttributedBrokers } from \"../../actions/loans\";\nimport { tableColumnGenerator } from \"../../libs/table\";\nimport { mustBeArray } from \"../../libs/utilities\";\nimport NumberInput from \"../../Common/NumberInput\";\nimport history from \"../../routes/history\";\nimport { isSystemUserPolicy } from \"../../Common/Authorization/policies/isSystemUserPolicy\";\nimport { ADMIN_USER, SYSTEM_ADMIN_USER } from \"../../constants/systemUsers\";\nimport { isLawFirmUserPolicy } from \"../../Common/Authorization/policies/isLawFirmUserPolicy\";\nimport useCheckUserRoles from \"../../Common/Hooks/useCheckUserRoles\";\n\nconst AttributedBrokers = props => {\n const { user, getAttributedBrokers, match, generalView = false } = props;\n\n const loanId = match.params.id;\n\n const {isLawFirmUser, checkIfUserIsSystemAdmin} = useCheckUserRoles();\n\n const [attributedBrokerList, setAttributedBrokerList] = useState([]);\n\n useEffect(() => {\n getAttributedBrokersList();\n }, [loanId]);\n\n\n const getAttributedBrokersList = async () => {\n checkIfUserIsSystemAdmin().then(isSystemAdmin => {\n const userType = isSystemAdmin\n ? SYSTEM_ADMIN_USER\n : \"\";\n \n getAttributedBrokers({\n id: match.params.id,\n userType,\n generalView\n }).then(resp => {\n if (resp.status) {\n setAttributedBrokerList(resp.data);\n }\n });\n });\n };\n\n let colTemplate =\n attributedBrokerList.length > 1\n ? [\n {\n title: \"\",\n dataIndex: \"loanBrokerName\",\n width: 100,\n sorter: false,\n render: (data, record) => {\n return (\n \n alert(\"Broker Id: \" + record.loanBrokerId)}\n >\n \n );\n }\n }\n ]\n : [\n {\n dataIndex: \"loanBrokerName\",\n width: 100,\n sorter: false,\n render: (data, record) => {\n return (\n \n \n \n );\n }\n }\n ];\n\n const columns = tableColumnGenerator(colTemplate);\n\n const handleBrokerProfileClick = brokerId => {\n if (!generalView) {\n history.push(`/users/${brokerId}/broker`);\n } else {\n history.push(`/general/brokers/${brokerId}`);\n }\n };\n\n return (\n
\n {mustBeArray(attributedBrokerList).map((data, i) => {\n return (\n
\n {data.loanBrokerId && (\n {\n if(!isLawFirmUser){\n handleBrokerProfileClick(data.loanBrokerId);\n }\n }}\n >\n )}\n {!data.loanBrokerId && (\n \n )}\n
\n );\n })}\n
\n );\n};\n\nconst mapStateToProps = state => {\n return {\n attributedBrokers: state.attributedBrokers\n };\n};\n\nconst mapDispatchToProps = {\n getAttributedBrokers\n};\n\nexport default connect(\n mapStateToProps,\n mapDispatchToProps\n)(AttributedBrokers);\n","import { Button, Checkbox, Modal } from \"antd\";\nimport React, { useEffect, useState } from \"react\";\nimport { connect, useDispatch } from \"react-redux\";\nimport { loansCreditLookups } from \"../../../actions/lookup\";\nimport Axios from \"axios\";\nimport { mustBeArray } from \"../../../libs\";\nimport { CheckboxValueType } from \"antd/lib/checkbox/Group\";\n\ninterface LoanCreditProps {\n loanDetails: any;\n handleFieldChange?: (payload: { field: string; value: any }) => void;\n generalView?: boolean;\n className?: string;\n disabled?: boolean\n}\n\ntype Option = {\n label: string;\n value: string;\n disabled?: boolean;\n};\n\nexport const LoanCredit = ({\n loanDetails,\n handleFieldChange = payload => {},\n generalView = false,\n className = '',\n disabled = false\n}: LoanCreditProps) => {\n const dispatch = useDispatch();\n const signal = Axios.CancelToken.source();\n\n const [isModalOpen, setIsModalOpen] = useState(false);\n const [list, setList] = useState([]);\n const [credits, setCredits] = useState([]);\n\n function loadDetails() {\n setCredits(loanDetails.credits || []);\n }\n\n function openModal() {\n setIsModalOpen(true);\n }\n\n function closeModal() {\n setIsModalOpen(false);\n }\n\n function handleLocalChange(value: any[]){\n setCredits(value);\n }\n\n function handleOk() {\n closeModal();\n if(!generalView){\n handleFieldChange({ field: \"credits\", value: credits });\n }\n }\n\n function handleCancel() {\n closeModal();\n loadDetails();\n }\n\n useEffect(() => {\n dispatch(\n loansCreditLookups({ cancelToken: signal.token, generalView })\n ).then(x => {\n const translated = x.map(v => ({\n value: v.id,\n label: v.name\n }));\n setList(mustBeArray(translated));\n });\n }, []);\n\n useEffect(() => {\n loadDetails();\n }, [loanDetails]);\n\n return (\n <>\n \n \n Credits\n \n \n \n \n \n \n \n
\n }\n >\n
Credit
\n handleLocalChange(value)}\n disabled={generalView || disabled}\n >\n {list.map(x => {\n return (\n
\n {x.label}\n
\n );\n })}\n \n \n \n );\n};\n\nconst mapStateToProps = () => ({});\n\nconst mapDispatchToProps = {};\n\nexport default connect(\n mapStateToProps,\n mapDispatchToProps\n)(LoanCredit);\n","import { Button, Modal, Select } from \"antd\";\nimport React, { useEffect, useState } from \"react\";\nimport NumberInput from \"../../../Common/NumberInput\";\n\ninterface ConstructionModalProps {\n loanDetails: any;\n handleFieldChange?: (payload: { field: string; value: any }) => void;\n generalView?: boolean;\n className?: string;\n disabled?: boolean\n}\n\ninterface Construction {\n presalesDebtCoverRequired: string;\n loanAmountPercentageGstEx: number | null;\n qsRequired: string;\n isBuilderDeveloper: string;\n isBuildToHold: string;\n tdcEquity: number | null;\n projectManagerRequired: string;\n contingenciesAllowance: number | null;\n developerSuccessfulProjects: number | null;\n preCommittedCommercialTenants: string;\n}\n\nconst YesNoOptions = [\n {\n label: \"Yes\",\n value: \"true\"\n },\n {\n label: \"No\",\n value: \"false\"\n }\n];\n\nconst defaultConstructionDetails: Construction = {\n presalesDebtCoverRequired: \"false\",\n loanAmountPercentageGstEx: null,\n qsRequired: \"false\",\n isBuilderDeveloper: \"false\",\n isBuildToHold: \"false\",\n tdcEquity: null,\n projectManagerRequired: \"false\",\n contingenciesAllowance: null,\n developerSuccessfulProjects: 0,\n preCommittedCommercialTenants: \"false\"\n};\n\nfunction ConstructionModal({\n loanDetails,\n handleFieldChange = () => {},\n generalView = false,\n className = '',\n disabled = false\n}: ConstructionModalProps) {\n const [isModalOpen, setIsModalOpen] = useState(false);\n const [construction, setConstruction] = useState(\n defaultConstructionDetails\n );\n\n function loadDetails() {\n if (loanDetails.constructionScenario) {\n setConstruction({\n presalesDebtCoverRequired: toStringValue(\n loanDetails.constructionScenario.presalesDebtCoverRequired\n ),\n loanAmountPercentageGstEx:\n loanDetails.constructionScenario.loanAmountPercentageGstEx || null,\n qsRequired: toStringValue(loanDetails.constructionScenario.qsRequired),\n isBuilderDeveloper: toStringValue(\n loanDetails.constructionScenario.isBuilderDeveloper\n ),\n isBuildToHold: toStringValue(\n loanDetails.constructionScenario.isBuildToHold\n ),\n tdcEquity: loanDetails.constructionScenario.tdcEquity || null,\n projectManagerRequired: toStringValue(\n loanDetails.constructionScenario.projectManagerRequired\n ),\n contingenciesAllowance:\n loanDetails.constructionScenario.contingenciesAllowance || null,\n developerSuccessfulProjects:\n loanDetails.constructionScenario.developerSuccessfulProjects || null,\n preCommittedCommercialTenants: toStringValue(\n loanDetails.constructionScenario.preCommittedCommercialTenants\n )\n });\n } else {\n setConstruction(defaultConstructionDetails);\n }\n }\n\n function openModal() {\n setIsModalOpen(true);\n }\n\n function closeModal() {\n setIsModalOpen(false);\n }\n\n function toBoolean(value: string) {\n return value === \"true\";\n }\n\n function toStringValue(value: boolean | undefined | null) {\n return value ? \"true\" : \"false\";\n }\n\n function typeCheckConvert(value: string | number | null) {\n return typeof value === \"string\" ? toBoolean(value) : value;\n }\n\n function handleLocalChange(field: string, value: string | number) {\n setConstruction(s => ({\n ...s,\n [field]: value\n }));\n }\n\n function handleOk() {\n if (!generalView) {\n const payload = {\n presalesDebtCoverRequired: typeCheckConvert(\n construction.presalesDebtCoverRequired\n ),\n loanAmountPercentageGstEx: typeCheckConvert(\n construction.loanAmountPercentageGstEx\n ),\n qsRequired: typeCheckConvert(construction.qsRequired),\n isBuilderDeveloper: typeCheckConvert(construction.isBuilderDeveloper),\n isBuildToHold: typeCheckConvert(construction.isBuildToHold),\n tdcEquity: typeCheckConvert(construction.tdcEquity),\n projectManagerRequired: typeCheckConvert(\n construction.projectManagerRequired\n ),\n contingenciesAllowance: typeCheckConvert(\n construction.contingenciesAllowance\n ),\n developerSuccessfulProjects: typeCheckConvert(\n construction.developerSuccessfulProjects\n ),\n preCommittedCommercialTenants: typeCheckConvert(\n construction.preCommittedCommercialTenants\n )\n };\n handleFieldChange({\n field: \"constructionScenario\",\n value: payload\n });\n }\n\n closeModal();\n }\n\n function handleCancel() {\n closeModal();\n loadDetails();\n }\n\n useEffect(() => {\n loadDetails();\n }, [loanDetails]);\n\n return (\n <>\n \n \n \n \n \n \n \n }\n >\n
Construction
\n
\n Presales debt cover required?\n \n handleLocalChange(\"presalesDebtCoverRequired\", v)\n }\n disabled={generalView || disabled}\n >\n {YesNoOptions.map(x => (\n \n {x.label}\n \n ))}\n \n
\n {construction.presalesDebtCoverRequired === \"true\" && (\n
\n Percentage of loan amount exclusive of GST\n `${value}%`}\n parser={(value: string) => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"m-l-6 hideNumberPointers\"\n value={construction.loanAmountPercentageGstEx}\n onBlur={() => {}}\n onChange={(value: number) =>\n handleLocalChange(\"loanAmountPercentageGstEx\", value)\n }\n placeholder={\"\"}\n maxLength={undefined}\n maxValue={undefined}\n disabled={generalView || disabled}\n />\n
\n )}\n
\n QS required\n handleLocalChange(\"qsRequired\", v)}\n disabled={generalView || disabled}\n >\n {YesNoOptions.map(x => (\n \n {x.label}\n \n ))}\n \n
\n
\n Builder/Developer\n handleLocalChange(\"isBuilderDeveloper\", v)}\n disabled={generalView || disabled}\n >\n {YesNoOptions.map(x => (\n \n {x.label}\n \n ))}\n \n
\n
\n Build to hold\n\n handleLocalChange(\"isBuildToHold\", v)}\n disabled={generalView || disabled}\n >\n {YesNoOptions.map(x => (\n \n {x.label}\n \n ))}\n \n
\n
\n Equity percentage of total development costs* (TDC) %\n `${value}%`}\n parser={(value: string) => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"m-l-6 hideNumberPointers\"\n value={construction.tdcEquity}\n onBlur={() => {}}\n onChange={(value: number) => handleLocalChange(\"tdcEquity\", value)}\n placeholder={\"\"}\n maxLength={undefined}\n maxValue={undefined}\n disabled={generalView || disabled}\n />\n
\n
\n

\n *Residual land value, post DA professional fees, council fees and\n contributions, SBBIS bond, contract sum including builder's margin,\n contingency allowance, project manager costs, provision for 50% of\n agents presales, capitalised interest and line fee, holding costs\n during construction (land tax and rates), project marketing costs\n

\n
\n
\n Project manager required\n\n \n handleLocalChange(\"projectManagerRequired\", v)\n }\n disabled={generalView || disabled}\n >\n {YesNoOptions.map(x => (\n \n {x.label}\n \n ))}\n \n
\n
\n Contingencies allowance percentage of construction sum\n `${value}%`}\n parser={(value: string) => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"m-l-6 hideNumberPointers\"\n value={construction.contingenciesAllowance}\n onBlur={() => {}}\n onChange={(value: number) =>\n handleLocalChange(\"contingenciesAllowance\", value)\n }\n placeholder={\"\"}\n maxLength={undefined}\n maxValue={undefined}\n disabled={generalView || disabled}\n />\n
\n
\n Developer past successful projects (number up to 100)\n `${value}`}\n parser={(value: string) => value}\n className=\"m-l-6 hideNumberPointers\"\n value={construction.developerSuccessfulProjects}\n onBlur={() => {}}\n onChange={(value: number) =>\n handleLocalChange(\n \"developerSuccessfulProjects\",\n value > 100 ? 100 : value\n )\n }\n placeholder={\"\"}\n maxLength={undefined}\n maxValue={100}\n disabled={generalView || disabled}\n />\n
\n
\n Pre-committed commercial tenants\n\n \n handleLocalChange(\"preCommittedCommercialTenants\", v)\n }\n disabled={generalView || disabled}\n >\n {YesNoOptions.map(x => (\n \n {x.label}\n \n ))}\n \n
\n \n \n );\n}\n\nexport default ConstructionModal;\n","import { Button, Input, Modal, Select } from \"antd\";\nimport React, { useEffect, useState } from \"react\";\nimport NumberInput from \"../../../Common/NumberInput\";\nimport { ILookupItem } from \"../../../libs/types\";\nimport { mustBeArray } from \"../../../libs\";\nimport { useDispatch } from \"react-redux\";\nimport Axios from \"axios\";\nimport { loansSubdivisionTypeLookups } from \"../../../actions/lookup\";\n\ninterface Subdivision {\n typeKey: string | null;\n type: string | null;\n presalesDebtCoverRequired: string;\n loanAmountPercentageGstEx: number | null;\n qsRequired: string;\n isBuilderDeveloper: string;\n isBuildToHold: string;\n tdcEquity: number | null;\n projectManagerRequired: string;\n contingenciesAllowance: number | null;\n developerSuccessfulProjects: number | null;\n}\n\ninterface SubdivisionModalProps {\n loanDetails: any;\n handleFieldChange?: (payload: { field: string; value: any }) => void;\n generalView?: boolean;\n className?: string;\n}\n\nconst YesNoOptions = [\n {\n label: \"Yes\",\n value: \"true\"\n },\n {\n label: \"No\",\n value: \"false\"\n }\n];\n\nconst defaultSubdivisionDetails: Subdivision = {\n typeKey: null,\n type: \"\",\n presalesDebtCoverRequired: \"false\",\n loanAmountPercentageGstEx: null,\n qsRequired: \"false\",\n isBuilderDeveloper: \"false\",\n isBuildToHold: \"false\",\n tdcEquity: null,\n projectManagerRequired: \"false\",\n contingenciesAllowance: null,\n developerSuccessfulProjects: 0\n};\n\nfunction SubdivisionModal({\n loanDetails,\n handleFieldChange = () => {},\n generalView = false,\n className = \"\"\n}: SubdivisionModalProps) {\n const dispatch = useDispatch();\n const signal = Axios.CancelToken.source();\n\n const [isModalOpen, setIsModalOpen] = useState(false);\n const [typeOptions, setTypeOptions] = useState([]);\n const [subdivision, setSubdivision] = useState(\n defaultSubdivisionDetails\n );\n\n function loadDetails() {\n if (loanDetails.subdivisionScenario) {\n setSubdivision({\n typeKey: loanDetails.subdivisionScenario.typeKey || null,\n type: loanDetails.subdivisionScenario.type || null,\n presalesDebtCoverRequired: toStringValue(\n loanDetails.subdivisionScenario.presalesDebtCoverRequired\n ),\n loanAmountPercentageGstEx:\n loanDetails.subdivisionScenario.loanAmountPercentageGstEx || null,\n qsRequired: toStringValue(loanDetails.subdivisionScenario.qsRequired),\n isBuilderDeveloper: toStringValue(\n loanDetails.subdivisionScenario.isBuilderDeveloper\n ),\n isBuildToHold: toStringValue(\n loanDetails.subdivisionScenario.isBuildToHold\n ),\n tdcEquity: loanDetails.subdivisionScenario.tdcEquity || null,\n projectManagerRequired: toStringValue(\n loanDetails.subdivisionScenario.projectManagerRequired\n ),\n contingenciesAllowance:\n loanDetails.subdivisionScenario.contingenciesAllowance || null,\n developerSuccessfulProjects:\n loanDetails.subdivisionScenario.developerSuccessfulProjects || null\n });\n } else {\n setSubdivision(defaultSubdivisionDetails);\n }\n }\n\n function openModal() {\n setIsModalOpen(true);\n }\n\n function closeModal() {\n setIsModalOpen(false);\n }\n\n function toBoolean(value: string) {\n return value === \"true\";\n }\n\n function toStringValue(value: boolean | undefined | null) {\n return value ? \"true\" : \"false\";\n }\n\n function typeCheckConvert(\n value: string | number | null,\n regularString: boolean = false\n ) {\n return typeof value === \"string\" && !regularString\n ? toBoolean(value)\n : value;\n }\n\n function handleLocalChange(field: string, value: string | number) {\n setSubdivision(s => ({\n ...s,\n [field]: value\n }));\n }\n\n function handleOk() {\n if (!generalView) {\n const payload = {\n typeKey: subdivision.typeKey || null,\n presalesDebtCoverRequired: typeCheckConvert(\n subdivision.presalesDebtCoverRequired\n ),\n loanAmountPercentageGstEx: typeCheckConvert(\n subdivision.loanAmountPercentageGstEx\n ),\n qsRequired: typeCheckConvert(subdivision.qsRequired),\n isBuilderDeveloper: typeCheckConvert(subdivision.isBuilderDeveloper),\n isBuildToHold: typeCheckConvert(subdivision.isBuildToHold),\n tdcEquity: typeCheckConvert(subdivision.tdcEquity),\n projectManagerRequired: typeCheckConvert(\n subdivision.projectManagerRequired\n ),\n contingenciesAllowance: typeCheckConvert(\n subdivision.contingenciesAllowance\n ),\n developerSuccessfulProjects: typeCheckConvert(\n subdivision.developerSuccessfulProjects\n )\n };\n\n handleFieldChange({\n field: \"subdivisionScenario\",\n value: payload\n });\n }\n\n closeModal();\n }\n\n function handleCancel() {\n closeModal();\n loadDetails();\n }\n\n useEffect(() => {\n loadDetails();\n }, [loanDetails]);\n\n useEffect(() => {\n if (!generalView) {\n dispatch(loansSubdivisionTypeLookups({ cancelToken: signal.token })).then(\n x => {\n setTypeOptions(mustBeArray(x));\n }\n );\n }\n\n return () => {\n signal.cancel();\n };\n }, [generalView]);\n\n return (\n <>\n \n \n \n \n \n \n \n }\n >\n
Subdivision
\n
\n Type\n {generalView ? (\n \n ) : (\n handleLocalChange(\"typeKey\", v)}\n allowClear\n disabled={generalView}\n >\n {typeOptions.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n )}\n
\n
\n Presales debt cover required?\n \n handleLocalChange(\"presalesDebtCoverRequired\", v)\n }\n disabled={generalView}\n >\n {YesNoOptions.map(x => (\n \n {x.label}\n \n ))}\n \n
\n {subdivision.presalesDebtCoverRequired === \"true\" && (\n
\n Percentage of loan amount exclusive of GST\n `${value}%`}\n parser={(value: string) => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"m-l-6 hideNumberPointers\"\n value={subdivision.loanAmountPercentageGstEx}\n onBlur={() => {}}\n onChange={(value: number) =>\n handleLocalChange(\"loanAmountPercentageGstEx\", value)\n }\n placeholder={\"\"}\n maxLength={undefined}\n maxValue={undefined}\n disabled={generalView}\n />\n
\n )}\n
\n QS required\n handleLocalChange(\"qsRequired\", v)}\n disabled={generalView}\n >\n {YesNoOptions.map(x => (\n \n {x.label}\n \n ))}\n \n
\n
\n Builder/Developer\n handleLocalChange(\"isBuilderDeveloper\", v)}\n disabled={generalView}\n >\n {YesNoOptions.map(x => (\n \n {x.label}\n \n ))}\n \n
\n
\n Build to hold\n\n handleLocalChange(\"isBuildToHold\", v)}\n disabled={generalView}\n >\n {YesNoOptions.map(x => (\n \n {x.label}\n \n ))}\n \n
\n
\n Equity percentage of total development costs* (TDC) %\n `${value}%`}\n parser={(value: string) => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"m-l-6 hideNumberPointers\"\n value={subdivision.tdcEquity}\n onBlur={() => {}}\n onChange={(value: number) => handleLocalChange(\"tdcEquity\", value)}\n placeholder={\"\"}\n maxLength={undefined}\n maxValue={undefined}\n disabled={generalView}\n />\n
\n
\n

\n *Residual land value, post DA professional fees, council fees and\n contributions, SBBIS bond, contract sum including builder's margin,\n contingency allowance, project manager costs, provision for 50% of\n agents presales, capitalised interest and line fee, holding costs\n during construction (land tax and rates), project marketing costs\n

\n
\n
\n Project manager required\n\n \n handleLocalChange(\"projectManagerRequired\", v)\n }\n disabled={generalView}\n >\n {YesNoOptions.map(x => (\n \n {x.label}\n \n ))}\n \n
\n
\n Contingencies allowance percentage of construction sum\n `${value}%`}\n parser={(value: string) => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"m-l-6 hideNumberPointers\"\n value={subdivision.contingenciesAllowance}\n onBlur={() => {}}\n onChange={(value: number) =>\n handleLocalChange(\"contingenciesAllowance\", value)\n }\n placeholder={\"\"}\n maxLength={undefined}\n maxValue={undefined}\n disabled={generalView}\n />\n
\n
\n Developer past successful projects (number up to 100)\n `${value}`}\n parser={(value: string) => value}\n className=\"m-l-6 hideNumberPointers\"\n value={subdivision.developerSuccessfulProjects}\n onBlur={() => {}}\n onChange={(value: number) =>\n handleLocalChange(\n \"developerSuccessfulProjects\",\n value > 100 ? 100 : value\n )\n }\n placeholder={\"\"}\n maxLength={undefined}\n maxValue={100}\n disabled={generalView}\n />\n
\n \n \n );\n}\n\nexport default SubdivisionModal;\n","import { Button, Modal, Table } from \"antd\";\nimport React, { useEffect, useState } from \"react\";\nimport { ILoanDetails, ILoanLogsListItemDto } from \"../../libs/types\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { getLoanLogs } from \"../../actions/loans\";\nimport Axios from \"axios\";\nimport { PaginationConfig } from \"antd/lib/pagination\";\nimport { ColumnProps } from \"antd/lib/table\";\nimport { isSystemUserPolicy } from \"../../Common/Authorization/policies/isSystemUserPolicy\";\nimport { asDefaultDisplayFormatDate } from \"../../libs\";\nimport moment from \"moment\";\nimport { DEFAULT_DATE_WITH_TIME_FORMAT } from \"../../constants/moment\";\n\ninterface ViewLogsProps {\n className?: string;\n loanDetails: ILoanDetails;\n}\n\nfunction ViewLogs({ className = \"\", loanDetails }: ViewLogsProps) {\n const dispatch = useDispatch();\n const signal = Axios.CancelToken.source();\n\n const { user } = useSelector((state: any) => state.authorization);\n\n const [isSystemUser, setIsSystemUser] = useState(false);\n const [list, setList] = useState([]);\n const [listTotal, setListTotal] = useState(0);\n const [isModalOpen, setIsModalOpen] = useState(false);\n const [isLoading, setIsLoading] = useState(false);\n const [paginationConfig, setPaginationConfig] = useState({\n page: 1,\n pageSize: 20\n });\n\n const checkIfUserIsSystemUser = async () => {\n const isSystemUser = await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n setIsSystemUser(isSystemUser);\n };\n\n function getLogs() {\n setIsLoading(true);\n dispatch(\n getLoanLogs({\n loanId: loanDetails.id,\n isSystemUser,\n cancelToken: signal.token\n })\n )\n .then(x => {\n setList(x.rows);\n setListTotal(x.total);\n })\n .finally(() => {\n setIsLoading(false);\n });\n }\n\n function openModal() {\n setIsModalOpen(true);\n }\n\n function closeModal() {\n setIsModalOpen(false);\n }\n\n function handleViewSnapshot(logId: number) {\n const url = `/loans/${loanDetails.id}/logs/${logId}`;\n window.open(url, \"_blank\");\n }\n\n const handleTableChange = (pagination: PaginationConfig) => {\n setPaginationConfig({\n pageSize: 20,\n page: pagination.current ? pagination.current : 1\n });\n };\n\n function formatDateTime(dateString: string) {\n const newDateString = moment.utc(dateString).local();\n return moment(newDateString).format(DEFAULT_DATE_WITH_TIME_FORMAT);\n }\n\n useEffect(() => {\n checkIfUserIsSystemUser();\n }, []);\n\n useEffect(() => {\n if (loanDetails.id) {\n getLogs();\n }\n\n return () => {\n signal.cancel();\n };\n }, [loanDetails]);\n\n const tablePagination = {\n current: paginationConfig.page,\n total: listTotal,\n pageSize: paginationConfig.pageSize\n };\n\n const columns: ColumnProps[] = [\n {\n title: \"Date\",\n dataIndex: \"id\",\n render: (data, record) => {\n return (\n handleViewSnapshot(record.id)}\n style={{ color: \"blue\" }}\n >\n {formatDateTime(record.snapshotDate)}\n \n );\n }\n }\n ];\n\n return (\n <>\n \n \n Logs\n \n \n \n \n \n \n \n \n }\n >\n \n \n \n );\n}\n\nexport default ViewLogs;\n","import React, { useEffect, useState } from \"react\";\nimport {\n ADMIN_USER,\n BROKER_USER,\n DUAL_USER,\n LAW_FIRM_USER,\n LENDER_USER,\n SYSTEM_ADMIN_USER\n} from \"../../constants/systemUsers\";\nimport useCheckUserRoles from \"./useCheckUserRoles\";\n\ntype Role = \"admin\" | \"lender\" | \"broker\" | \"dual\" | \"lawFirm\" | \"systemAdmin\"; // update with constants/systemUsers\n\n/**\n * Check user's roles if any listed is applicable\n *\n * Use constants from src/constants/systemUsers\n *\n * @param {Role[]} rolesToAllow\n * @returns\n */\nfunction useAllowUserWithRoles(rolesToAllow: Role[]) {\n const {\n isSystemAdmin,\n isBrokerUser,\n isDualUser,\n isLawFirmUser,\n isLenderUser\n } = useCheckUserRoles();\n\n const [userHasRole, setUserHasRole] = useState(false);\n\n useEffect(() => {\n rolesToAllow.forEach(role => {\n if (role === LAW_FIRM_USER && isLawFirmUser) {\n setUserHasRole(true);\n }\n if (role === LENDER_USER && isLenderUser) {\n setUserHasRole(true);\n }\n if (role === BROKER_USER && isBrokerUser) {\n setUserHasRole(true);\n }\n if (role === DUAL_USER && isDualUser) {\n setUserHasRole(true);\n }\n if (\n (role === ADMIN_USER || role === SYSTEM_ADMIN_USER) &&\n isSystemAdmin\n ) {\n setUserHasRole(true);\n }\n });\n }, [rolesToAllow]);\n\n return userHasRole;\n}\n\nexport default useAllowUserWithRoles;\n","import React, { useEffect, useState } from \"react\";\nimport { connect, useDispatch, useSelector } from \"react-redux\";\nimport { updateHeader, updateRouteOptions } from \"../../actions/member\";\nimport {\n Button,\n Col,\n Row,\n Input,\n InputNumber,\n Rate,\n Popconfirm,\n message\n} from \"antd\";\nimport produce from \"immer\";\nimport axios from \"axios\";\nimport history from \"../../routes/history\";\nimport {\n getLoanDetails,\n deleteLoan,\n updateLoanInView,\n checkUserLoanInvolvement\n} from \"../../actions/loans\";\nimport AttributedLenders from \"../../components/Loans/AttributedLenders\";\nimport {\n asDefaultDisplayFormatDate,\n isNullEmptyOrUndefined\n} from \"../../libs/utilities\";\nimport authService from \"../../actions/AuthorizeService\";\nimport _ from \"lodash\";\nimport LoanFormHeader from \"../../components/Loans/Create/LoadFormHeader\";\nimport AttributedBrokers from \"../../components/Loans/AttributedBrokers\";\nimport { evaluatePolicy } from \"../../libs\";\nimport {\n isLenderUserPolicy,\n isLenderOwnProfilePolicy\n} from \"../../Common/Authorization/policies/isLenderUserPolicy\";\nimport {\n isBrokerUserPolicy,\n isBrokerOwnProfilePolicy\n} from \"../../Common/Authorization/policies/isBrokerUserPolicy\";\nimport { isSystemUserPolicy } from \"../../Common/Authorization/policies/isSystemUserPolicy\";\nimport {\n isLawFirmUserPolicy,\n isLawFirmOwnProfilePolicy\n} from \"../../Common/Authorization/policies/isLawFirmUserPolicy\";\nimport {\n ADMIN_USER,\n DUAL_USER,\n BROKER_USER,\n LENDER_USER,\n LAW_FIRM_USER,\n SYSTEM_ADMIN_USER\n} from \"../../constants/systemUsers\";\nimport {\n EMAIL_SUBSCRIPTIONS_OPTION_LENDER_USER,\n LENDER_PROFILE_ROUTES_WITHOUT_BROKER_PROFILE_SYSTEM_USER,\n LENDER_PROFILE_ROUTES_WITH_BROKER_PROFILE_SYSTEM_USER,\n BROKER_PROFILE_ROUTES_WITHOUT_LENDER_PROFILE_SYSTEM_USER,\n LAWFIRM_PROFILE_ROUTES_SYSTEM_USER,\n PROFILE_EDIT_OPTION,\n DEFAULT_ROUTES_SYSTEM_USER\n} from \"../../constants/routeOptions\";\n\nimport { dummyLoansDetails } from \"../../constants/DummyData/loansdetailsview\";\nimport CreditLookup from \"../../components/Loans/Create/CreditLookup\";\nimport ConstructionModal from \"../../components/Loans/Create/ConstructionModal\";\nimport SubdivisionModal from \"../../components/Loans/Create/SubdivisionModal\";\nimport ViewLogs from \"../../components/Loans/ViewLogs\";\n\nimport useAllowUserWithRoles from \"../../Common/Hooks/useAllowUserWithRoles\";\nimport useCheckUserRoles from \"../../Common/Hooks/useCheckUserRoles\";\n\nconst LoansDetailsView = props => {\n const {\n updateHeader,\n match,\n getLoanDetails,\n checkUserLoanInvolvement,\n deleteLoan,\n updateLoanInView,\n user,\n generalView = false\n } = props;\n const header = useSelector(state => state.member.header);\n const dispatchAction = useDispatch();\n const [isUserInvolvedAsLender, setIsUserInvolvedAsLender] = useState(false);\n\n const userIsAllowedToEdit = useAllowUserWithRoles([SYSTEM_ADMIN_USER, LENDER_USER, LAW_FIRM_USER]);\n const {isLawFirmUser, isLenderUser, isSystemAdmin} = useCheckUserRoles();\n\n const signal = axios.CancelToken.source();\n const loanId = match.params.id;\n\n useEffect(() => {\n const auth = async () => {\n const authenticated = await authService.isAuthenticated();\n if (authenticated) history.push(`/loans/${loanId}/view`);\n };\n auth();\n }, []);\n\n useEffect(() => {\n updateHeader({\n header: {\n title: \" \",\n action: \"\",\n page: \"loans-details-view\",\n enableBack: false,\n showMasterSwitch: false,\n showIsProfileActive: false,\n hasSwitchProfile: false,\n editMode: false,\n showOmicronBDM: false,\n omicronBdm: null,\n showPageTitle: false,\n showSettings: true,\n showNotesButton: false,\n showSearchBox: !generalView && !isLawFirmUser\n }\n });\n const cleanUp = () => {\n signal.cancel(\"\");\n };\n\n //\n getLoanData();\n\n return cleanUp;\n }, [loanId, user]);\n\n useEffect(() => {\n updateHeader({\n header: {\n showSearchBox: !isLawFirmUser\n }\n });\n }, [isLawFirmUser]);\n\n const [loanDetails, setLoanDetails] = useState({});\n const [userRoles, setUserRoles] = useState([]);\n const [userType, setUserType] = useState();\n const [enableLenderFields, setEnableLenderFields] = useState(false);\n const [enableBrokerFields, setEnableBrokerFields] = useState(false);\n const [enableLawyerFields, setEnableLawyerFields] = useState(false);\n const [stateAndSuburb, setStateAndSuburb] = useState({\n state: \"\",\n suburb: \"\"\n });\n\n const [hasChangesInForm, setHasChangesInForm] = useState(false);\n const [isSaving, setIsSaving] = useState(false);\n const individualUser = useSelector(\n state => state.authorization && state.authorization.individualUser\n );\n\n const getLoanData = async () => {\n if (!generalView) {\n let userDetails = await authService.getUser();\n let usersLenderId = userDetails[\"app.user.lenderid\"];\n let usersBrokerId = userDetails[\"app.user.brokerid\"];\n let usersLawfirmId = userDetails[\"app.user.lawfirmid\"];\n\n let userRole = \"\";\n\n setUserRoles(userDetails[\"role\"]);\n\n let isSystemUser;\n isSystemUser = userDetails.role === 'SYSUSER' ? SYSTEM_ADMIN_USER : \"\";\n let isInvolvedBroker = false;\n let isInvolvedLender = false;\n\n await checkUserLoanInvolvement({\n id: match.params.id\n }).then(resp => {\n if (resp.status) {\n if (\n typeof userDetails[\"role\"] !== \"string\" &&\n userDetails[\"role\"].length > 1\n ) {\n if (\n resp.data.attributedBrokers.includes(parseInt(usersBrokerId))\n // && userDetails[\"role\"].includes[\"BROKER\"]\n ) {\n setEnableBrokerFields(true);\n isInvolvedBroker = true;\n }\n\n if (\n resp.data.attributedLenders.includes(parseInt(usersLenderId))\n // && userDetails[\"role\"].includes(\"LENDER\")\n ) {\n setEnableLenderFields(true);\n isInvolvedLender = true;\n }\n } else {\n if (\n resp.data.attributedBrokers.includes(parseInt(usersBrokerId)) &&\n (userDetails[\"role\"] === \"BROKER\" ||\n userDetails[\"role\"].includes(\"BROKER\"))\n ) {\n setEnableBrokerFields(true);\n isInvolvedBroker = true;\n }\n\n if (\n resp.data.attributedLenders.includes(parseInt(usersLenderId)) &&\n (userDetails[\"role\"] === \"LENDER\" ||\n userDetails[\"role\"].includes(\"LENDER\"))\n ) {\n setEnableLenderFields(true);\n isInvolvedLender = true;\n }\n\n if (\n resp.data.attributedLawyer === parseInt(usersLawfirmId) &&\n (userDetails[\"role\"] === \"LAWFIRM\" ||\n userDetails[\"role\"].includes(\"LAWFIRM\"))\n ) {\n setEnableLawyerFields(true);\n }\n }\n }\n });\n\n setTimeout(\"1500\");\n await getLoanDetails({\n id: match.params.id,\n userType: isSystemUser,\n isUserInvolvedAsLender: isInvolvedLender,\n isUserInvolvedAsBroker: isInvolvedBroker\n }).then(resp => {\n if (resp.status) {\n setLoanDetails(resp.data);\n setStateAndSuburb({\n state: resp.data.state,\n suburb: resp.data.suburb\n });\n }\n });\n\n if (userDetails[\"role\"].includes(\"SYSUSER\")) {\n userRole = \"admin\";\n setUserType(userRole);\n }\n } else {\n await getLoanDetails({\n id: match.params.id,\n userType: \"\",\n isUserInvolvedAsLender: false,\n isUserInvolvedAsBroker: false,\n generalView\n }).then(resp => {\n if (resp.status) {\n setLoanDetails(resp.data);\n setStateAndSuburb({\n state: resp.data.state,\n suburb: resp.data.suburb\n });\n }\n });\n }\n };\n\n useEffect(() => {\n updateUsersRouteOptions();\n }, [window.location.href]);\n\n const updateUsersRouteOptions = async () => {\n let isLender = await isLenderUserPolicy(user.roles, user.permissions, user);\n let isBroker = await isBrokerUserPolicy(user.roles, user.permissions, user);\n let systemUser = await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n let isLawFirm = await isLawFirmUserPolicy(user.roles);\n\n const isOwnProfile =\n (await evaluatePolicy(user, isBrokerOwnProfilePolicy(user.id))) ||\n (await evaluatePolicy(user, isLenderOwnProfilePolicy(user.id))) ||\n (await evaluatePolicy(user, isLawFirmOwnProfilePolicy(user.id)));\n\n const roleType = systemUser\n ? ADMIN_USER\n : isLawFirm\n ? LAW_FIRM_USER\n : user.roles.length == 2\n ? DUAL_USER\n : isLender\n ? LENDER_USER\n : isBroker\n ? BROKER_USER\n : \"\";\n\n let newRouteOptions;\n if (roleType === DUAL_USER) {\n newRouteOptions = LENDER_PROFILE_ROUTES_WITH_BROKER_PROFILE_SYSTEM_USER;\n } else if (roleType === LENDER_USER) {\n newRouteOptions = LENDER_PROFILE_ROUTES_WITHOUT_BROKER_PROFILE_SYSTEM_USER;\n } else if (roleType === BROKER_USER) {\n newRouteOptions = BROKER_PROFILE_ROUTES_WITHOUT_LENDER_PROFILE_SYSTEM_USER;\n } else if (roleType === LAW_FIRM_USER) {\n newRouteOptions = LAWFIRM_PROFILE_ROUTES_SYSTEM_USER;\n } else {\n newRouteOptions = DEFAULT_ROUTES_SYSTEM_USER;\n }\n\n newRouteOptions = [...newRouteOptions].map(o => {\n o.name = o.id == 9 ? individualUser.companyName : o.name;\n return o;\n });\n\n const menuOptions = isOwnProfile\n ? [...EMAIL_SUBSCRIPTIONS_OPTION_LENDER_USER, ...PROFILE_EDIT_OPTION]\n : [];\n\n dispatchAction(\n await updateRouteOptions({\n routeOptions: _.concat(newRouteOptions, menuOptions)\n })\n );\n };\n\n const [lenderHasNoBrokerRating, setLenderHasNoBrokerRating] = useState(false);\n const [lenderHasNoSolicitorRating, setLenderHasNoSolicitorRating] = useState(\n false\n );\n const [brokerHasNoLenderRating, setBrokerHasNoLenderRating] = useState(false);\n const [brokerHasNoSolicitorRating, setBrokerHasNoSolicitorRating] = useState(\n false\n );\n\n // const [payload, setPayload] = useState({});\n const saveUpdateToHybridView = async () => {\n let payload = {};\n setIsSaving(true);\n if (enableLenderFields || enableBrokerFields || enableLawyerFields) {\n if (enableLenderFields && enableBrokerFields){\n // Check lender side \n if (\n loanDetails.brokerStarsFromLender === null ||\n loanDetails.brokerStarsFromLender === 0\n ) {\n setLenderHasNoBrokerRating(true);\n setIsSaving(false);\n } else {\n setLenderHasNoBrokerRating(false);\n }\n if (\n loanDetails.lawyerStarsFromLender === null ||\n loanDetails.lawyerStarsFromLender === 0\n ) {\n setLenderHasNoSolicitorRating(true);\n setIsSaving(false);\n } else {\n setLenderHasNoSolicitorRating(false);\n }\n\n // Check broker side\n if (\n loanDetails.lenderStarsFromBroker === null ||\n loanDetails.lenderStarsFromBroker === 0\n ) {\n setBrokerHasNoLenderRating(true);\n setIsSaving(false);\n } else {\n setBrokerHasNoLenderRating(false);\n }\n\n if (\n loanDetails.lawyerStarsFromBroker === null ||\n loanDetails.lawyerStarsFromBroker === 0\n ) {\n setBrokerHasNoSolicitorRating(true);\n setIsSaving(false);\n } else {\n setBrokerHasNoSolicitorRating(false);\n }\n // Check if all fields complete\n if (\n loanDetails.lenderStarsFromBroker !== null &&\n loanDetails.lenderStarsFromBroker > 0 &&\n (loanDetails.lawyerStarsFromBroker !== null &&\n loanDetails.lawyerStarsFromBroker > 0) && \n loanDetails.brokerStarsFromLender !== null &&\n loanDetails.brokerStarsFromLender > 0 &&\n (loanDetails.lawyerStarsFromLender !== null ||\n loanDetails.lawyerStarsFromLender > 0)\n ) {\n handleSave();\n }\n\n } else if (enableLenderFields) {\n if (\n loanDetails.brokerStarsFromLender === null ||\n loanDetails.brokerStarsFromLender === 0\n ) {\n setLenderHasNoBrokerRating(true);\n setIsSaving(false);\n } else {\n setLenderHasNoBrokerRating(false);\n }\n if (\n loanDetails.lawyerStarsFromLender === null ||\n loanDetails.lawyerStarsFromLender === 0\n ) {\n setLenderHasNoSolicitorRating(true);\n setIsSaving(false);\n } else {\n setLenderHasNoSolicitorRating(false);\n }\n\n if (\n loanDetails.brokerStarsFromLender !== null &&\n loanDetails.brokerStarsFromLender > 0 &&\n (loanDetails.lawyerStarsFromLender !== null ||\n loanDetails.lawyerStarsFromLender > 0)\n ) {\n // await preparePayload(loanDetails);\n handleSave();\n }\n } else if (enableBrokerFields) {\n if (\n loanDetails.lenderStarsFromBroker === null ||\n loanDetails.lenderStarsFromBroker === 0\n ) {\n setBrokerHasNoLenderRating(true);\n setIsSaving(false);\n } else {\n setBrokerHasNoLenderRating(false);\n }\n\n if (\n loanDetails.lawyerStarsFromBroker === null ||\n loanDetails.lawyerStarsFromBroker === 0\n ) {\n setBrokerHasNoSolicitorRating(true);\n setIsSaving(false);\n } else {\n setBrokerHasNoSolicitorRating(false);\n }\n\n if (\n loanDetails.lenderStarsFromBroker !== null &&\n loanDetails.lenderStarsFromBroker > 0 &&\n (loanDetails.lawyerStarsFromBroker !== null &&\n loanDetails.lawyerStarsFromBroker > 0)\n ) {\n handleSave();\n }\n } else if (enableLawyerFields) {\n handleSave();\n }\n }\n };\n\n const preparePayload = async loanDetails => {\n let payload;\n if (enableBrokerFields && enableLenderFields) {\n payload = {\n lenderReviewByBroker: loanDetails.lenderReviewByBroker,\n lenderStarsFromBroker: loanDetails.lenderStarsFromBroker,\n brokerResponseToLender: loanDetails.brokerResponseToLender,\n lawyerReviewByBroker: loanDetails.lawyerReviewByBroker,\n lawyerStarsFromBroker: loanDetails.lawyerStarsFromBroker,\n brokerReviewByLender: loanDetails.brokerReviewByLender,\n brokerStarsFromLender: loanDetails.brokerStarsFromLender,\n lenderResponseToBroker: loanDetails.lenderResponseToBroker,\n lawyerReviewByLender: loanDetails.lawyerReviewByLender,\n lawyerStarsFromLender: loanDetails.lawyerStarsFromLender\n };\n } else if (enableBrokerFields) {\n payload = {\n lenderReviewByBroker: loanDetails.lenderReviewByBroker,\n lenderStarsFromBroker: loanDetails.lenderStarsFromBroker,\n brokerResponseToLender: loanDetails.brokerResponseToLender,\n lawyerReviewByBroker: loanDetails.lawyerReviewByBroker,\n lawyerStarsFromBroker: loanDetails.lawyerStarsFromBroker\n };\n } else if (enableLenderFields) {\n payload = {\n brokerReviewByLender: loanDetails.brokerReviewByLender,\n brokerStarsFromLender: loanDetails.brokerStarsFromLender,\n lenderResponseToBroker: loanDetails.lenderResponseToBroker,\n lawyerReviewByLender: loanDetails.lawyerReviewByLender,\n lawyerStarsFromLender: loanDetails.lawyerStarsFromLender\n };\n } else if (enableLawyerFields) {\n payload = {\n lawyerResponseToLender: loanDetails.lawyerResponseToLender,\n lawyerResponseToBroker: loanDetails.lawyerResponseToBroker\n };\n }\n // setPayload(payload);\n return payload;\n };\n\n useEffect(() => {}, [\n lenderHasNoBrokerRating,\n lenderHasNoSolicitorRating,\n brokerHasNoLenderRating,\n brokerHasNoSolicitorRating\n ]);\n\n const handleRatingChange = async () => {\n if (enableLenderFields || enableBrokerFields) {\n if (enableLenderFields) {\n if (\n loanDetails.brokerStarsFromLender != null ||\n loanDetails.brokerStarsFromLender === 0\n ) {\n setLenderHasNoBrokerRating(false);\n setBrokerHasNoLenderRating(false);\n }\n if (\n loanDetails.lawyerStarsFromLender != null ||\n loanDetails.lawyerStarsFromLender === 0\n ) {\n setLenderHasNoSolicitorRating(false);\n setBrokerHasNoSolicitorRating(false);\n }\n }\n if (enableBrokerFields) {\n if (\n loanDetails.lenderStarsFromBroker != null ||\n loanDetails.lenderStarsFromBroker === 0\n ) {\n setBrokerHasNoLenderRating(false);\n setLenderHasNoBrokerRating(false);\n }\n if (\n loanDetails.lawyerStarsFromBroker != null ||\n loanDetails.lawyerStarsFromBroker === 0\n ) {\n setBrokerHasNoSolicitorRating(false);\n setLenderHasNoSolicitorRating(false);\n }\n }\n }\n };\n\n const handleSave = async () => {\n let id = match.params.id;\n let userType;\n\n let payload = await preparePayload(loanDetails);\n\n if(enableBrokerFields && enableLenderFields){\n userType = DUAL_USER;\n } else if (enableLenderFields) {\n userType = LENDER_USER;\n } else if (enableBrokerFields) {\n userType = BROKER_USER;\n } else if (isSystemAdmin) {\n userType = ADMIN_USER;\n } else if (enableLawyerFields) {\n userType = LAW_FIRM_USER;\n }\n\n updateLoanInView({\n id,\n payload,\n userType,\n cancelToken: signal.token\n }).then(resp => {\n if (resp.status) {\n let id = match.params.id;\n message.success(`Loan updated successfully.`);\n window.location.reload();\n setIsSaving(false);\n }\n });\n };\n\n const handleCancel = () => {\n window.location.reload();\n };\n\n const handleDelete = () => {\n let id = match.params.id;\n\n let payload = {\n id: id\n };\n\n deleteLoan({\n id,\n payload,\n cancelToken: signal.token\n }).then(resp => {\n //redirect user to dashboard\n if (resp.status) {\n message.success(`Loan deleted successfully.`);\n history.push(\"/\");\n }\n });\n };\n\n const handleRedirectEdit = () => {\n let id = match.params.id;\n history.push(`/loans/${id}/edit`);\n };\n\n return (\n
\n \n
\n
\n Loan No.\n \n
\n {!generalView && (\n
\n \n \n Attributed

Lender\n
\n
\n \n
\n )}\n
\n \n \n Attributed

Broker\n
\n
\n \n
\n
\n \n \n Last

Edit\n
\n
\n \n
\n {!generalView && }\n
\n \n \n Broker

BDM\n
\n
\n \n
\n
\n \n \n Lender

BDM\n
\n
\n \n
\n
\n
\n \n \n Suburb and State\n \n \n \n \n \n Priority\n \n \n \n \n \n Principal\n \n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n className=\"m-l-6 hideNumberPointers\"\n disabled={true}\n value={loanDetails.principal}\n hasDecimal={true}\n />\n \n \n \n Lower Rate\n \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"m-l-6 hideNumberPointers\"\n disabled={true}\n value={loanDetails.lowerRate}\n />\n \n\n \n \n Higher Rate\n \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"m-l-6 hideNumberPointers\"\n disabled={true}\n value={loanDetails.higherRate}\n />\n \n \n \n Establishment Fee (incl GST)\n \n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n className=\" m-l-6 hideNumberPointers\"\n disabled={true}\n value={loanDetails.establishmentFee}\n />\n \n \n \n Establishment Fee\n \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"m-l-6 hideNumberPointers\"\n disabled={true}\n value={loanDetails.establishmentFeePercentage}\n />\n \n
\n
\n
\n
\n \n Scenario\n \n \n
\n {loanDetails.scenarioKey === \"CONSTRUCTION\" && (\n \n )}\n {loanDetails.scenarioKey === \"SUBDIVISION\" && (\n \n )}\n
\n \n \n \n Security Type\n \n \n \n \n \n Security Sub-Type\n \n \n \n\n \n \n LVR\n \n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"m-l-6 hideNumberPointers\"\n disabled={true}\n value={loanDetails.lvr}\n />\n \n \n \n Valuation Required\n \n \n \n \n \n Interest (Payable)\n \n \n \n \n
\n
\n \n \n Lawfirm\n \n \n \n\n \n \n Partner\n \n \n \n\n \n \n Associate\n \n \n \n \n \n Status\n \n \n \n \n \n Shortfall\n \n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n disabled={true}\n value={loanDetails.shortfall}\n >\n \n \n \n Settlement Date\n \n \n \n \n \n Repayment Date\n \n \n \n \n \n Discharged\n \n \n \n
\n
\n {!generalView && (\n \n \n saveUpdateToHybridView()}\n disabled={isSaving}\n >\n Save\n \n \n \n \n )}\n
\n \n \n \n Broker stars from Lender\n \n \n {\n setHasChangesInForm(true);\n handleRatingChange();\n setLoanDetails(\n produce(loanDetails, x => {\n x.brokerStarsFromLender = e;\n })\n );\n }}\n >\n
\n {enableLenderFields && lenderHasNoBrokerRating && (\n \n Your rating of the Broker goes here. Giving a Broker rating is\n required by the Omicron Platform\n \n )}\n \n \n
\n \n \n \n Broker review by Lender\n \n 0 &&\n isNullEmptyOrUndefined(loanDetails.brokerReviewByLender))\n ? \"Give your review of the Broker here. Giving a review is not mandatory however it is always good for your relationship with a Broker to say something nice.\"\n : \"\"\n }\n onChange={e => {\n setHasChangesInForm(true);\n setLoanDetails(\n produce(loanDetails, x => {\n x.brokerReviewByLender = e.currentTarget.value;\n })\n );\n }}\n value={loanDetails.brokerReviewByLender}\n />\n \n \n \n Broker's Response\n \n {\n setHasChangesInForm(true);\n setLoanDetails(\n produce(loanDetails, x => {\n x.brokerResponseToLender = e.currentTarget.value;\n })\n );\n }}\n value={loanDetails.brokerResponseToLender}\n />\n \n \n \n \n \n Lender stars from Broker\n \n \n {\n setHasChangesInForm(true);\n handleRatingChange();\n setLoanDetails(\n produce(loanDetails, x => {\n x.lenderStarsFromBroker = e;\n })\n );\n }}\n >\n
\n {enableBrokerFields && brokerHasNoLenderRating && (\n \n Your rating of the Lender goes here. Giving a Lender rating is\n required by the Omicron Platform\n \n )}\n \n \n
\n \n \n \n Lender review by Broker\n \n {\n setHasChangesInForm(true);\n setLoanDetails(\n produce(loanDetails, x => {\n x.lenderReviewByBroker = e.currentTarget.value;\n })\n );\n }}\n value={loanDetails.lenderReviewByBroker}\n />\n \n \n \n Lender's Response\n \n {\n setHasChangesInForm(true);\n setLoanDetails(\n produce(loanDetails, x => {\n x.lenderResponseToBroker = e.currentTarget.value;\n })\n );\n }}\n value={loanDetails.lenderResponseToBroker}\n />\n \n \n \n \n \n Lawyer stars from Lender\n \n \n {\n setHasChangesInForm(true);\n handleRatingChange();\n setLoanDetails(\n produce(loanDetails, x => {\n x.lawyerStarsFromLender = e;\n })\n );\n }}\n >{\" \"}\n
\n {enableLenderFields && lenderHasNoSolicitorRating && (\n \n Your rating of Lawyer goes here. Giving a Lawyer rating is\n required by the Omicron Platform\n \n )}\n \n \n
\n \n \n \n Lawyer review by Lender\n \n 0 &&\n isNullEmptyOrUndefined(loanDetails.lawyerReviewByLender))\n ? \"Give your review of the Lawyer here. Giving a review is not mandatory however it is always good for your relationship with a Lawyer to say something nice.\"\n : \"\"\n }\n onChange={e => {\n setHasChangesInForm(true);\n setLoanDetails(\n produce(loanDetails, x => {\n x.lawyerReviewByLender = e.currentTarget.value;\n })\n );\n }}\n />\n \n \n \n Lawyer's Response\n \n {\n setHasChangesInForm(true);\n setLoanDetails(\n produce(loanDetails, x => {\n x.lawyerResponseToLender = e.currentTarget.value;\n })\n );\n }}\n />\n \n \n \n \n \n Lawyer stars from Broker\n \n \n {\n setHasChangesInForm(true);\n handleRatingChange();\n setLoanDetails(\n produce(loanDetails, x => {\n x.lawyerStarsFromBroker = e;\n })\n );\n }}\n >\n

\n {enableBrokerFields && brokerHasNoSolicitorRating && (\n \n Your rating of the Lawyer goes here. Giving a Lawyer rating is\n required by the Omicron Platform\n \n )}\n \n \n
\n \n \n \n Lawyer review by Broker\n \n 0 &&\n isNullEmptyOrUndefined(loanDetails.lawyerReviewByBroker))\n ? \"Give your review of the Lawyer here. Giving a review is not mandatory however it is always good for your relationship with a Lawyer to say something nice.\"\n : \"\"\n }\n onChange={e => {\n setHasChangesInForm(true);\n setLoanDetails(\n produce(loanDetails, x => {\n x.lawyerReviewByBroker = e.currentTarget.value;\n })\n );\n }}\n value={loanDetails.lawyerReviewByBroker}\n />\n \n \n \n Lawyer's Response\n \n {\n setHasChangesInForm(true);\n setLoanDetails(\n produce(loanDetails, x => {\n x.lawyerResponseToBroker = e.currentTarget.value;\n })\n );\n }}\n value={loanDetails.lawyerResponseToBroker}\n />\n \n \n
\n );\n};\n\nconst mapStateToProps = state => {\n return {\n member: state.member || {},\n profile: (state.profile && state.profile.details) || {},\n user: state.authorization && state.authorization.user,\n lender: state.profile.lender\n };\n};\n\nconst mapDispatchToProps = {\n updateHeader,\n getLoanDetails,\n checkUserLoanInvolvement,\n deleteLoan,\n updateLoanInView\n};\n\nexport default connect(\n mapStateToProps,\n mapDispatchToProps\n)(LoansDetailsView);\n","import React from 'react'\n\nconst LoanCreateContext = React.createContext({});\nexport default LoanCreateContext;","import { Button, Modal } from \"antd\";\nimport React, { useContext } from \"react\";\n\nconst AddInactiveFinancierConfirmationModal = ({\n confirmModal,\n handleConfirm,\n message\n}) => {\n return (\n \n handleConfirm(false, confirmModal.financier)}\n closable={false}\n footer={[\n \n handleConfirm(true, confirmModal.financier)\n }\n >\n Yes\n ,\n \n ]}\n >\n {message}\n \n );\n};\nexport default AddInactiveFinancierConfirmationModal;\n","import { Select } from \"antd\";\nimport React, { useCallback, useContext, useEffect, useState } from \"react\";\nimport { loansLawFirmLookup } from \"../../../actions/lookup\";\nimport axios from \"axios\";\nimport { useDispatch } from \"react-redux\";\nimport { mustBeArray } from \"../../../libs\";\nimport LoanCreateContext from \"./LoanCreateContext\";\nimport AddInactiveFinancierConfirmationModal from \"./AddInactiveFinancierConfirmationModal\";\nimport { debounce } from \"lodash\";\nimport useCheckUserRoles from \"../../../Common/Hooks/useCheckUserRoles\";\nimport authService from \"../../../actions/AuthorizeService\";\n\nconst LawFirmLookup = ({ value, className, setLawFirm, disabled = false, createMode = false }) => {\n const [list, setList] = useState([]);\n const dispatchAction = useDispatch();\n const signal = axios.CancelToken.source();\n const { lawFirm } = useContext(LoanCreateContext);\n\n const {\n isLawFirmUser,\n isSystemAdmin,\n checkIfUserIsSystemAdmin\n } = useCheckUserRoles();\n\n const [\n inactiveLawFirmConfirmModal,\n setInactiveLawFirmConfirmModal\n ] = useState({\n saveLoading: false,\n visible: false,\n financier: {}\n });\n\n useEffect(() => {\n checkIfUserIsSystemAdmin().then(isSystemUser => {\n dispatchAction(\n loansLawFirmLookup({\n cancelToken: signal.token,\n search: \"\",\n isSystemUser\n })\n ).then(resp => {\n setList(mustBeArray(resp));\n });\n });\n }, []);\n\n useEffect(() => {\n updateList(list);\n }, [lawFirm, value]);\n\n useEffect(()=>{\n if(list.length > 0 && isLawFirmUser && createMode){\n setDefaultLawfirm();\n }\n },[isLawFirmUser, list, createMode]);\n\n const setDefaultLawfirm = async () => {\n const userDetails = await authService.getUser();\n const usersLawfirmId = userDetails[\"app.user.lawfirmid\"];\n if(isLawFirmUser){\n handleChange(parseInt(usersLawfirmId || \"0\"));\n }\n }\n\n const updateList = currentList => {\n const listIncludesLawFirm = list.find(o => o.id === value);\n if (!listIncludesLawFirm && lawFirm) {\n setList([...list, { id: value, name: lawFirm }]);\n return;\n }\n setList(currentList);\n };\n\n const handleChange = value => {\n const lawFirm = list.find(b => {\n return b.id === value;\n });\n handleLawFirmChange(lawFirm);\n };\n\n const handleLawFirmChange = lawFirm => {\n if (lawFirm.isMasterSwitchOn && lawFirm.isActive) setLawFirm(lawFirm);\n else {\n displayInactiveLawFirmConfirmModal(lawFirm);\n }\n };\n\n const handleConfirmAddInactiveLawFirm = (confirm, lawFirm) => {\n if (confirm) {\n setLawFirm(lawFirm);\n } else {\n handleSearch(\"\");\n }\n\n handleInactiveLawFirmConfirmModalClose();\n };\n\n const displayInactiveLawFirmConfirmModal = lawFirm => {\n setInactiveLawFirmConfirmModal({\n ...inactiveLawFirmConfirmModal,\n visible: true,\n financier: lawFirm\n });\n };\n\n const handleInactiveLawFirmConfirmModalClose = () => {\n setInactiveLawFirmConfirmModal({\n visible: false,\n saveLoading: false,\n financier: {}\n });\n };\n\n const handleSearch = async (e = \"\") => {\n let isSystemUser = await checkIfUserIsSystemAdmin();\n dispatchAction(\n loansLawFirmLookup({ cancelToken: signal.token, search: e, isSystemUser })\n ).then(resp => {\n setList(mustBeArray(resp));\n });\n };\n const debouncedSearch = useCallback(debounce(handleSearch, 300));\n\n return (\n \n
\n Lawfirm\n handleChange(value)}\n allowClear={false}\n onSearch={debouncedSearch}\n showSearch\n filterOption={false}\n disabled={disabled}\n >\n {list.map(lawFirm => {\n return (\n \n {lawFirm.name}\n \n );\n })}\n \n \n *{\" \"}\n \n
\n \n
\n );\n};\n\nexport default LawFirmLookup;\n","import { Select } from \"antd\";\nimport React, { useCallback, useContext, useEffect, useState } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport LoanCreateContext from \"./LoanCreateContext\";\nimport { loansLawFirmUsersLookup } from \"../../../actions/lookup\";\nimport { mustBeArray } from \"../../../libs\";\nimport { debounce } from \"lodash\";\nimport axios from \"axios\";\nimport useCheckUserRoles from \"../../../Common/Hooks/useCheckUserRoles\";\n\nconst PartnerLookup = ({\n value,\n handleFieldChange,\n lawFirmId,\n disabled = false\n}) => {\n const [list, setList] = useState([]);\n const dispatchAction = useDispatch();\n const signal = axios.CancelToken.source();\n\n const { isSystemAdmin, checkIfUserIsSystemAdmin } = useCheckUserRoles();\n\n useEffect(() => {\n if (lawFirmId) {\n checkIfUserIsSystemAdmin().then(isSystemUser => {\n dispatchAction(\n loansLawFirmUsersLookup({\n cancelToken: signal.token,\n search: \"\",\n id: lawFirmId,\n isSystemUser\n })\n ).then(resp => {\n setList(mustBeArray(resp));\n });\n });\n }\n }, [lawFirmId]);\n\n const handleSearch = e => {\n checkIfUserIsSystemAdmin().then(isSystemUser => {\n dispatchAction(\n loansLawFirmUsersLookup({\n cancelToken: signal.token,\n search: \"\",\n id: lawFirmId,\n isSystemUser\n })\n ).then(resp => {\n setList(mustBeArray(resp));\n });\n });\n };\n\n const debouncedSearch = useCallback(debounce(handleSearch, 300));\n\n return (\n
\n Partner\n \n handleFieldChange({ field: \"assignedPartnerId\", value })\n }\n allowClear={false}\n onSearch={debouncedSearch}\n showSearch\n filterOption={false}\n >\n {list.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n \n *{\" \"}\n \n
\n );\n};\n\nexport default PartnerLookup;\n","import { Select } from \"antd\";\nimport React, { useEffect, useState } from \"react\";\nimport axios from \"axios\";\nimport { useDispatch } from \"react-redux\";\nimport { mustBeArray } from \"../../../libs\";\nimport { loansPiorityLookup } from \"../../../actions/lookup\";\nimport _ from \"lodash\";\n\nconst PriorityLookup = ({ value, handleFieldChange, className, setPriority }) => {\n const [list, setList] = useState([]);\n const dispatchAction = useDispatch();\n const signal = axios.CancelToken.source();\n\n useEffect(() => {\n dispatchAction(loansPiorityLookup({ cancelToken: signal.token })).then(\n resp => {\n setList(mustBeArray(resp));\n }\n );\n }, []);\n\n useEffect(() => {\n if(!_.isEmpty(list) && value){\n const data = list.find(o => o.id === value);\n setPriority(data?.name);\n }\n },[value, list])\n\n return (\n
\n Priority\n handleFieldChange({ field: \"priorityKey\", value })}\n allowClear={false}\n >\n {list.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n \n *{\" \"}\n \n
\n );\n};\n\nexport default PriorityLookup;\n","import { Select } from \"antd\";\nimport React, { useEffect, useState } from \"react\";\nimport { loansScenarioLookups } from \"../../../actions/lookup\";\nimport axios from 'axios';\nimport { useDispatch } from \"react-redux\";\nimport { mustBeArray } from \"../../../libs\";\n\nconst ScenarioLookup = ({ value, handleFieldChange, className, disabled = false }) => {\n const [list, setList] = useState([]);\n const dispatchAction = useDispatch();\n const signal = axios.CancelToken.source();\n\n useEffect(() => {\n dispatchAction(loansScenarioLookups({cancelToken: signal.token})).then(resp => {\n setList(mustBeArray(resp));\n })\n }, []);\n return (\n
\n Scenario\n \n handleFieldChange({ field: \"scenarioKey\", value })\n } \n allowClear={false}\n disabled={disabled}\n >\n {list.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n \n *{\" \"}\n \n
\n );\n};\n\nexport default ScenarioLookup;\n","import { Select } from \"antd\";\nimport React, { useContext } from \"react\";\nimport LoanCreateContext from \"./LoanCreateContext\";\n\nconst SecuritySubTypeLookup = ({ value, handleFieldChange, disabled, className}) => {\n const {securitySubTypesList} = useContext(LoanCreateContext)\n return (\n
\n Security Sub Type\n \n handleFieldChange({ field: \"securitySubTypeKey\", value })\n } \n allowClear={false}\n disabled={disabled}\n >\n {securitySubTypesList.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n \n *{\" \"}\n \n
\n );\n};\n\nexport default SecuritySubTypeLookup;\n","import { Select } from \"antd\";\nimport React, { useEffect, useState } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport { loansSecurityTypesLookups } from \"../../../actions/lookup\";\nimport axios from \"axios\";\nimport { mustBeArray } from \"../../../libs\";\n\nconst SecurityTypeLookup = ({ value, handleFieldChange, className, disabled = false }) => {\n const [list, setList] = useState([]);\n const dispatchAction = useDispatch();\n const signal = axios.CancelToken.source();\n\n useEffect(() => {\n dispatchAction(\n loansSecurityTypesLookups({ cancelToken: signal.token })\n ).then(resp => {\n setList(mustBeArray(resp));\n });\n }, []);\n\n useEffect(() => {\n if (value) {\n const securitySubTypesList = list.find(o => o.id === value)\n ?.securitySubTypes;\n handleFieldChange({\n field: \"securityTypeKey\",\n value,\n securitySubTypesList\n });\n }\n }, [value, list]);\n\n const handleChange = ({ field, value }) => {\n const securitySubTypesList = list.find(o => o.id === value)\n ?.securitySubTypes;\n handleFieldChange({ field, value, securitySubTypesList });\n };\n return (\n
\n Security Type\n handleChange({ field: \"securityTypeKey\", value })}\n allowClear={false}\n disabled={disabled}\n >\n {list.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n \n *{\" \"}\n \n
\n );\n};\n\nexport default SecurityTypeLookup;\n","import { Select } from \"antd\";\nimport React, { useCallback, useContext, useEffect, useState } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport { loansStatesAndSuburbsLookups } from \"../../../actions/lookup\";\nimport axios from \"axios\";\nimport { mustBeArray } from \"../../../libs\";\nimport LoanCreateContext from \"./LoanCreateContext\";\nimport { debounce } from \"lodash\";\n\nconst SuburbAndStateLookup = ({ value, handleFieldChange, className, disabled = false }) => {\n const [list, setList] = useState([]);\n const { setStateAndSuburbList, validateOnBlur } = useContext(\n LoanCreateContext\n );\n const dispatchAction = useDispatch();\n const signal = axios.CancelToken.source();\n\n useEffect(() => {\n dispatchAction(\n loansStatesAndSuburbsLookups({ cancelToken: signal.token })\n ).then(resp => {\n const data = mustBeArray(resp);\n updateList(data);\n setStateAndSuburbList(data);\n });\n }, []);\n\n const updateList = currentList => {\n const listIncludesState = currentList.find(o => o.name === value);\n if (value && !listIncludesState) {\n const SuburbAndState = value.split(\", \");\n setList([\n ...currentList,\n { name: value, suburb: SuburbAndState[0], state: SuburbAndState[1] }\n ]);\n return;\n }\n setList(currentList);\n };\n\n const handleSearch = e => {\n dispatchAction(\n loansStatesAndSuburbsLookups({ cancelToken: signal.token, search: e })\n ).then(resp => {\n updateList(mustBeArray(resp));\n });\n };\n const debouncedSearch = useCallback(debounce(handleSearch, 300));\n return (\n
\n Suburb and State\n handleFieldChange({ field: \"suburbState\", value })}\n allowClear={false}\n onBlur={e => validateOnBlur({ field: \"suburbState\", value: e })}\n onSearch={debouncedSearch}\n showSearch\n filterOption={false}\n disabled={disabled}\n >\n {list.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n \n *{\" \"}\n \n
\n );\n};\n\nexport default SuburbAndStateLookup;\n","import { Select } from \"antd\";\nimport React, { useCallback, useContext, useEffect, useState } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport LoanCreateContext from \"./LoanCreateContext\";\nimport { loansLawFirmUsersLookup } from \"../../../actions/lookup\";\nimport { mustBeArray } from \"../../../libs\";\nimport { debounce } from \"lodash\";\nimport axios from \"axios\";\nimport useCheckUserRoles from \"../../../Common/Hooks/useCheckUserRoles\";\n\nconst AssociateLookup = ({ value, handleFieldChange, lawFirmId, disabled = false }) => {\n const [list, setList] = useState([]);\n const dispatchAction = useDispatch();\n const signal = axios.CancelToken.source();\n\n const {isSystemAdmin} = useCheckUserRoles();\n\n useEffect(() => {\n if(lawFirmId){\n dispatchAction(\n loansLawFirmUsersLookup({ cancelToken: signal.token, search: \"\", id: lawFirmId, isSystemUser: isSystemAdmin })\n ).then(resp => {\n setList(mustBeArray(resp));\n });\n }\n }, [lawFirmId]);\n\n const handleSearch = e => {\n dispatchAction(\n loansLawFirmUsersLookup({ cancelToken: signal.token, id: lawFirmId, search: e, isSystemUser: isSystemAdmin })\n ).then(resp => {\n setList(mustBeArray(resp));\n });\n };\n\n const debouncedSearch = useCallback(debounce(handleSearch, 300));\n\n return (\n
\n Associate\n \n handleFieldChange({ field: \"assignedAssociateId\", value })\n } \n allowClear={false}\n onSearch={debouncedSearch}\n showSearch\n filterOption={false}\n >\n {list.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n );\n};\n\nexport default AssociateLookup;\n","import { message, Select } from \"antd\";\nimport React, { useEffect, useState } from \"react\";\nimport { loansStatusLookups } from \"../../../actions/lookup\";\nimport axios from \"axios\";\nimport { useDispatch } from \"react-redux\";\nimport { mustBeArray } from \"../../../libs\";\n\nconst StatusLookup = ({ value, handleFieldChange, validateOnBlur, disabled = false }) => {\n const [list, setList] = useState([]);\n const dispatchAction = useDispatch();\n const signal = axios.CancelToken.source();\n\n useEffect(() => {\n dispatchAction(loansStatusLookups({ cancelToken: signal.token })).then(\n resp => {\n setList(mustBeArray(resp));\n }\n );\n }, []);\n\n return (\n
\n Status\n {\n handleFieldChange({ field: \"statusKey\", value });\n validateOnBlur({ field: \"statusKey\", value });\n }}\n allowClear={false}\n disabled={disabled}\n >\n {list.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n \n *{\" \"}\n \n
\n );\n};\n\nexport default StatusLookup;\n","import { Input, Rate } from \"antd\";\nimport React from \"react\";\n\nconst RatingsAndReview = ({\n ratingsText,\n reviewText,\n responseText,\n handleFieldChange,\n fields,\n loanDetails,\n disabledFields = {\n rating: false,\n review: false,\n response: false\n }\n}) => {\n return (\n \n
\n {ratingsText}\n handleFieldChange({ value: e, field: fields.rating })}\n disabled={ disabledFields.rating }\n />\n
\n
\n
\n {reviewText}\n handleFieldChange({ value: e.currentTarget.value, field: fields.review })}\n disabled={disabledFields.review}\n />\n
\n
\n {responseText}\n handleFieldChange({ value: e.currentTarget.value, field: fields.response })}\n disabled={disabledFields.response}\n />\n
\n
\n
\n );\n};\n\nexport default RatingsAndReview;\n","import { Button } from \"antd\";\nimport React from \"react\";\n\nconst AddAndDeleteButton = ({\n index,\n className,\n handleAdd,\n handleDelete,\n listSize,\n disabled = false\n}) => {\n return (\n
\n {index !== 0 &&
\n );\n};\n\nexport default AddAndDeleteButton;\n","import { Select } from \"antd\";\nimport React from \"react\";\nimport { AddAndDeleteButton } from \"../../../Common/Index\";\nimport NumberInput from \"../../../Common/NumberInput\";\nimport RequiredSign from \"../../../Common/RequiredSign\";\n\nconst AddedLendersDisplayAndUpdate = ({\n index,\n data,\n list,\n loanLenders,\n handleChange,\n handleLenderChange,\n handleAdd,\n handleDelete,\n disabled = false\n}) => {\n\n // useMemo causing rendering conflicts with Select component on update of loanLenders contribution amount\n const filteredList = () => {\n return list.reduce( (a,b) => { \n const isSelected = loanLenders.some(o => o.lenderId === b.id);\n return a.concat(b.id === data.lenderId || !isSelected ? [b] : [])\n },[]);\n }\n\n return (\n
\n \n handleLenderChange({\n value: e,\n index\n })\n }\n className=\"w-280 m-l-8 m-r-20\"\n allowClear={false}\n placeholder=\"Lender\"\n showSearch\n filterOption\n optionFilterProp={\"name\"}\n disabled={disabled}\n >\n {filteredList().map((lender, index) => {\n return (\n \n {lender.name}\n \n );\n })}\n \n \n handleChange({\n field: \"contributionAmount\",\n value: e,\n index\n })\n }\n formatter={value => `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")}\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n placeholder=\"Amount\"\n hasDecimal={false}\n disabled={disabled}\n />\n {index === 0 && }\n \n
\n );\n};\nexport default AddedLendersDisplayAndUpdate;\n","import { Button, Modal } from \"antd\";\nimport React, { useContext } from \"react\";\nimport { mustBeArray } from \"../../../libs\";\nimport AddedLendersDisplayAndUpdate from \"./AddedLendersDisplayAndUpdate\";\nimport LoanCreateContext from \"./LoanCreateContext\";\n\nconst AddLendersModal = ({\n list,\n loanLenders,\n handleAdd,\n handleDelete,\n handleChange,\n handleLenderChange,\n handleSave,\n handleDeleteAll,\n disabled = false\n}) => {\n const {lendersAddModal, handleLendersModalClose} = useContext(LoanCreateContext)\n return (\n \n \n \n \n \n \n \n }\n onCancel={handleLendersModalClose}\n >\n
Attributed Lenders
\n {mustBeArray(loanLenders).map((data, i) => {\n return (\n \n );\n })}\n
\n );\n};\nexport default AddLendersModal;\n","import { message } from \"antd\";\nimport React, { useContext, useEffect, useState } from \"react\";\nimport { loanErrors } from \"../../../constants\";\nimport AddLendersModal from \"./AddLendersModal\";\nimport AddInactiveFinancierConfirmationModal from \"./AddInactiveFinancierConfirmationModal\";\nimport LoanCreateContext from \"./LoanCreateContext\";\n\nconst AttributedLendersForm = ({ loanLenders, visible, disabled = false }) => {\n const [tempLoanLenders, setLoanLenders] = useState([]);\n const [inactiveLenderConfirmModal, setInactiveLenderConfirmModal] = useState({\n saveLoading: false,\n visible: false,\n financier: {}\n });\n\n const { lendersList, validateOnBlur, handleLoanLendersChange } = useContext(\n LoanCreateContext\n );\n\n useEffect(() => {\n if (visible) {\n setLoanLenders(loanLenders);\n }\n }, [loanLenders, visible]);\n\n const handleAdd = () => {\n setLoanLenders([\n ...tempLoanLenders,\n { lenderId: null, contributionAmount: null, omicronBdmId: null }\n ]);\n };\n\n const handleDelete = e => {\n let updatedList = [...tempLoanLenders];\n updatedList.splice(e, 1);\n setLoanLenders(updatedList);\n };\n\n const handleSave = () => {\n const hasInvalidData = tempLoanLenders.some(\n o => !o.lenderId || !o.contributionAmount || !o.omicronBdmId\n );\n if (hasInvalidData) {\n return message.error(loanErrors.validAttributedOmicronLender);\n }\n //handleFieldChange({ field: \"loanLenders\", value: tempLoanLenders });\n handleLoanLendersChange(tempLoanLenders);\n validateOnBlur({ field: \"loanLenders\", value: tempLoanLenders });\n };\n\n const handleChange = ({ index, field, value }) => {\n const updateList = tempLoanLenders.map((data, i) => {\n return index === i ? { ...data, [field]: value } : data;\n });\n setLoanLenders(updateList);\n };\n\n const handleLenderChange = ({ index, value }) => {\n const lender = lendersList.find(l => {\n return l.id === value;\n });\n \n if(lender.isMasterSwitchOn && lender.isActive){\n addLoanLender({index, value, lender});\n }else{\n displayInactiveLenderConfirmModal({index, value, lender})\n \n \n }\n };\n\n const addLoanLender= (lender) => {\n const updateList = tempLoanLenders.map((data, i) => {\n return lender.index === i ? { ...data, lenderId: lender.lender.id, omicronBdmId: lender.lender.omicronBdmId } : data;\n });\n setLoanLenders(updateList);\n closeInactiveLenderConfirmModal()\n }\n\n const closeInactiveLenderConfirmModal = () => {\n setInactiveLenderConfirmModal({ visible: false, saveLoading: false, financier: {} });\n };\n\n const displayInactiveLenderConfirmModal = (lender) => {\n setInactiveLenderConfirmModal({ ...inactiveLenderConfirmModal, visible: true, financier: lender });\n };\n\n const handleConfirmAddInactiveLender = (confirm, lender) => {\n if(confirm){\n addLoanLender(lender);\n }\n else{\n if(loanLenders.length == 1){\n setLoanLenders([\n ...tempLoanLenders\n ]);\n }else {\n handleDelete(lender.index);\n }\n closeInactiveLenderConfirmModal()\n }\n };\n\n return (\n \n \n setLoanLenders([{ lenderId: null, contributionAmount: null, omicronBdmId: null }])\n }\n disabled={disabled}\n />\n \n \n );\n};\nexport default AttributedLendersForm;\n","import { Icon, InputNumber, Select } from \"antd\";\nimport React, { useContext } from \"react\";\nimport { mustBeArray } from \"../../../libs\";\nimport LoanCreateContext from \"./LoanCreateContext\";\n\nconst AttributedLendersView = ({ loanLenders }) => {\n const { lendersList, displayLendersModal } = useContext(LoanCreateContext);\n return (\n
\n {mustBeArray(loanLenders).map((data, i) => {\n return (\n
\n \n {lendersList.map(lender => {\n return (\n \n {lender.name}\n \n );\n })}\n \n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n className=\" m-l-6 hideNumberPointers w-150\"\n disabled\n value={data.contributionAmount}\n />\n {i === 0 && (\n <>\n \n *\n \n \n \n )}\n
\n );\n })}\n
\n );\n};\nexport default AttributedLendersView;\n","import { Select } from \"antd\";\nimport React, { useMemo } from \"react\";\nimport { AddAndDeleteButton } from \"../../../Common/Index\";\nimport NumberInput from \"../../../Common/NumberInput\";\nimport RequiredSign from \"../../../Common/RequiredSign\";\n\nconst AddedBrokersDisplayAndUpdate = ({\n index,\n data,\n list,\n loanBrokers,\n handleChange,\n handleBrokerChange,\n handleAdd,\n handleDelete,\n disabled = false\n}) => {\n\n const filteredList = useMemo(() => {\n return list.reduce( (a,b) => { \n const isSelected = loanBrokers.some(o => o.brokerId === b.id);\n return a.concat(b.id === data.brokerId || !isSelected ? [b] : [])\n },[]);\n },[loanBrokers])\n\n return (\n
\n \n handleBrokerChange({\n value: e,\n index\n })\n }\n className=\"w-280 m-l-8 m-r-20\"\n allowClear={false}\n placeholder=\"Broker\"\n showSearch\n filterOption\n optionFilterProp={\"name\"}\n disabled={disabled}\n >\n {filteredList.map((broker, index) => {\n return (\n \n {broker.name}\n \n );\n })}\n \n {index === 0 && }\n \n
\n );\n};\nexport default AddedBrokersDisplayAndUpdate;\n","import { Button, Modal } from \"antd\";\nimport React, { useContext } from \"react\";\nimport { mustBeArray } from \"../../../libs\";\nimport AddedBrokersDisplayAndUpdate from \"./AddedBrokersDisplayAndUpdate\";\nimport LoanCreateContext from \"./LoanCreateContext\";\n\nconst AddBrokersModal = ({\n list,\n loanBrokers,\n handleAdd,\n handleDelete,\n handleChange,\n handleBrokerChange,\n handleSave,\n handleDeleteAll,\n disabled = false\n}) => {\n const {brokersAddModal, handleBrokersModalClose} = useContext(LoanCreateContext)\n return (\n \n \n \n \n \n \n \n }\n onCancel={handleBrokersModalClose}\n >\n
Attributed Brokers
\n {mustBeArray(loanBrokers).map((data, i) => {\n return (\n \n );\n })}\n
\n );\n};\nexport default AddBrokersModal;\n","import { message } from \"antd\";\nimport React, { useContext, useEffect, useState } from \"react\";\nimport { loanErrors } from \"../../../constants\";\nimport AddBrokersModal from \"./AddBrokersModal\";\nimport AddInactiveFinancierConfirmationModal from \"./AddInactiveFinancierConfirmationModal\";\nimport LoanCreateContext from \"./LoanCreateContext\";\n\nconst AttributedBrokersForm = ({ loanBrokers, visible, disabled = false }) => {\n const [tempLoanBrokers, setLoanBrokers] = useState([]);\n const [inactiveBrokerConfirmModal, setInactiveBrokerConfirmModal] = useState({\n saveLoading: false,\n visible: false,\n financier: {}\n });\n\n const { brokersList, validateOnBlur, handleLoanBrokersChange } = useContext(\n LoanCreateContext\n );\n\n useEffect(() => {\n if (visible) {\n setLoanBrokers(loanBrokers);\n }\n }, [loanBrokers, visible]);\n\n const handleAdd = () => {\n setLoanBrokers([\n ...tempLoanBrokers,\n { brokerId: null, omicronBdmId: null }\n ]);\n };\n\n const handleDelete = e => {\n let updatedList = [...tempLoanBrokers];\n updatedList.splice(e, 1);\n setLoanBrokers(updatedList);\n };\n\n const handleSave = () => {\n const hasInvalidData = tempLoanBrokers.some(\n o => !o.brokerId || !o.omicronBdmId\n );\n if (hasInvalidData) {\n return message.error(loanErrors.attributedOmicronBrokerRequired);\n }\n \n handleLoanBrokersChange(tempLoanBrokers);\n validateOnBlur({ field: \"loanBrokers\", value: tempLoanBrokers });\n };\n\n const handleChange = ({ index, field, value }) => {\n const updateList = tempLoanBrokers.map((data, i) => {\n return index === i ? { ...data, [field]: value } : data;\n });\n setLoanBrokers(updateList);\n };\n\n const handleBrokerChange = ({ index, value }) => {\n const broker = brokersList.find(l => {\n return l.id === value;\n });\n \n if(broker.isMasterSwitchOn && broker.isActive){\n addLoanBroker({index, value, broker: broker});\n }else{\n displayInactiveBrokerConfirmModal({index, value, broker: broker})\n \n \n }\n };\n\n const addLoanBroker= (broker) => {\n console.log(broker)\n const updateList = tempLoanBrokers.map((data, i) => {\n return broker.index === i ? { ...data, brokerId: broker.broker.id, omicronBdmId: broker.broker.omicronBdmId } : data;\n });\n setLoanBrokers(updateList);\n closeInactiveBrokerConfirmModal()\n }\n\n const closeInactiveBrokerConfirmModal = () => {\n setInactiveBrokerConfirmModal({ visible: false, saveLoading: false, financier: {} });\n };\n\n const displayInactiveBrokerConfirmModal = (broker) => {\n setInactiveBrokerConfirmModal({ ...inactiveBrokerConfirmModal, visible: true, financier: broker });\n };\n\n const handleConfirmAddInactiveBroker = (confirm, broker) => {\n if(confirm){\n addLoanBroker(broker);\n }\n else{\n if(loanBrokers.length == 1){\n setLoanBrokers([\n ...tempLoanBrokers\n ]);\n }else {\n handleDelete(broker.index);\n }\n closeInactiveBrokerConfirmModal()\n }\n };\n\n return (\n \n \n setLoanBrokers([{ brokerId: null, omicronBdmId: null }])\n }\n disabled={disabled}\n />\n \n \n );\n};\nexport default AttributedBrokersForm;\n","import { Icon, InputNumber, Select } from \"antd\";\nimport React, { useContext } from \"react\";\nimport { mustBeArray } from \"../../../libs\";\nimport LoanCreateContext from \"./LoanCreateContext\";\n\nconst AttributedBrokersView = ({ loanBrokers }) => {\n const { brokersList, displayBrokersModal } = useContext(LoanCreateContext);\n return (\n
\n {mustBeArray(loanBrokers).map((data, i) => {\n return (\n
\n \n {brokersList.map(broker => {\n return (\n \n {broker.name}\n \n );\n })}\n \n {i === 0 && (\n <>\n \n *\n \n \n \n )}\n
\n );\n })}\n
\n );\n};\nexport default AttributedBrokersView;\n","import { Alert } from \"antd\";\nimport React from \"react\";\nimport { mustBeArray } from \"../libs\";\n\nconst ErrorAlertDisplay = ({ errorsList, className }) => {\n return (\n
\n \n
\n The following errors must be resolved before this loan can be\n saved:\n
\n
    \n {mustBeArray(errorsList).map((errors, i) => {\n return
  • {errors}
  • ;\n })}\n
\n
\n }\n type=\"warning\"\n />\n \n );\n};\nexport default ErrorAlertDisplay;\n","import { Select } from \"antd\";\nimport React, { useContext } from \"react\";\nimport LoanCreateContext from \"./LoanCreateContext\";\n\nconst BrokerBdmView = ({ value, handleFieldChange, className, disabled }) => {\n const {partnerAssociateList} = useContext(LoanCreateContext)\n return (\n
\n Broker

BDM
\n \n handleFieldChange({ field: \"brokerBdmId\", value })\n } \n allowClear={false}\n >\n {partnerAssociateList.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n );\n};\n\nexport default BrokerBdmView;\n","import { Select } from \"antd\";\nimport React, { useContext } from \"react\";\nimport LoanCreateContext from \"./LoanCreateContext\";\n\nconst LenderBdmView = ({ value, handleFieldChange, className, disabled }) => {\n const {partnerAssociateList} = useContext(LoanCreateContext)\n return (\n
\n Lender

BDM
\n \n handleFieldChange({ field: \"LenderBdmId\", value })\n } \n allowClear={false}\n >\n {partnerAssociateList.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n );\n};\n\nexport default LenderBdmView;\n","import { Select } from \"antd\";\nimport React from \"react\";\n\ntype ValuationRequiredLookupProps = {\n value: string | null;\n handleFieldChange: (payload: { field: string; value: any }) => void;\n className?: string;\n disabled?: boolean\n};\n\nfunction ValuationRequiredLookup({\n value,\n handleFieldChange,\n className,\n disabled = false\n}: ValuationRequiredLookupProps) {\n const list: { id: string; name: string }[] = [\n {\n id: \"true\",\n name: \"Yes\"\n },\n {\n id: \"false\",\n name: \"No\"\n }\n ];\n\n return (\n
\n Valuation Required\n \n handleFieldChange({ field: \"valuationRequired\", value })\n }\n allowClear={false}\n disabled={disabled}\n >\n {list.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n );\n}\n\nexport default ValuationRequiredLookup;\n","import { Button, Checkbox, Modal, Select } from \"antd\";\nimport React, { useEffect, useState } from \"react\";\nimport { connect, useDispatch } from \"react-redux\";\nimport { loansInterestLookups } from \"../../../actions/lookup\";\nimport Axios from \"axios\";\nimport { mustBeArray } from \"../../../libs\";\nimport { ILookupItem } from \"../../../libs/types\";\n\ninterface InterestLookupProps {\n value: string;\n handleFieldChange: (payload: { field: string; value: any }) => void;\n generalView?: boolean;\n className?: string;\n disabled?: boolean\n}\n\nexport const InterestLookup = ({\n value,\n className,\n handleFieldChange,\n disabled = false\n}: InterestLookupProps) => {\n const dispatch = useDispatch();\n const signal = Axios.CancelToken.source();\n const [list, setList] = useState([]);\n\n useEffect(() => {\n dispatch(loansInterestLookups({ cancelToken: signal.token })).then(x => {\n setList(mustBeArray(x));\n });\n }, []);\n\n return (\n
\n Interest (Payable) \n handleFieldChange({ field: \"interestKey\", value })}\n allowClear={false}\n disabled={disabled}\n >\n {list.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n \n *{\" \"}\n \n
\n );\n};\n\nconst mapStateToProps = () => ({});\n\nconst mapDispatchToProps = {};\n\nexport default connect(\n mapStateToProps,\n mapDispatchToProps\n)(InterestLookup);\n","import { Button, DatePicker, InputNumber, Input, Space } from \"antd\";\nimport React from \"react\";\nimport AttributedBrokerLookup from \"./AttributedBrokerLookup\";\nimport LawFirmLookup from \"./LawFormLookup\";\nimport LoanFormHeader from \"./LoadFormHeader\";\nimport PartnerLookup from \"./PartnerLookup\";\nimport PriorityLookup from \"./PriorityLookup\";\nimport ScenarioLookup from \"./ScenarioLookup\";\nimport SecuritySubTypeLookup from \"./SecuritySubTypeLookup\";\nimport SecurityTypeLookup from \"./SecurityTypeLookup\";\nimport SuburbAndStateLookup from \"./SuburbAndStateLookup\";\nimport AssociateLookup from \"./AssociateLookup\";\nimport StatusLookup from \"./StatusLookup\";\nimport RatingsAndReview from \"./RatingsAndReview\";\nimport { isNullEmptyOrUndefined } from \"../../../libs\";\nimport AttributedLendersForm from \"./ArrtibutedLendersForm\";\nimport AttributedLendersView from \"./AttributedLendersView\";\nimport AttributedBrokersForm from \"./AttributedBrokersForm\";\nimport AttributedBrokersView from \"./AttributedBrokersView\";\nimport AddInactiveFinancierConfirmationModal from \"./AddInactiveFinancierConfirmationModal\";\nimport moment from \"moment\";\nimport ErrorAlertDisplay from \"../../../Common/ErrorAlertDisplay\";\nimport _ from \"lodash\";\nimport NumberInput from \"../../../Common/NumberInput\";\nimport BrokerBdmView from \"./BrokerBdmView\";\nimport LenderBdmView from \"./LenderBdmView\";\nimport ValuationRequiredLookup from \"./ValuationRequiredLookup\";\nimport CreditLookup from \"./CreditLookup\";\nimport InterestLookup from \"./InterestLookup\";\nimport ConstructionModal from \"./ConstructionModal\";\nimport ViewLogs from \"../ViewLogs\";\nimport SubdivisionModal from \"./SubdivisionModal\";\nimport useCheckUserRoles from \"../../../Common/Hooks/useCheckUserRoles\";\nimport useAllowUserWithRoles from \"../../../Common/Hooks/useAllowUserWithRoles\";\nimport {\n DUAL_USER,\n LAW_FIRM_USER,\n LENDER_USER,\n SYSTEM_ADMIN_USER\n} from \"../../../constants/systemUsers\";\n\nconst LoanCreateForm = ({\n loanDetails,\n handleFieldChange,\n setAttributedBroker,\n setLawFirm,\n handleCancel,\n handleSave,\n errorsList,\n validateOnBlur,\n saveLoading,\n lendersAddModal,\n brokersAddModal,\n stateAndSuburb,\n priority,\n setPriority,\n createMode,\n userIsAttributedLender,\n userIsAttributedBroker\n}) => {\n const {\n isSystemAdmin,\n isBrokerUser,\n isDualUser,\n isLawFirmUser,\n isLenderUser\n } = useCheckUserRoles();\n\n return (\n
\n \n {!_.isEmpty(errorsList) && (\n \n )}\n\n \n
\n Loan No.\n \n handleFieldChange({\n field: \"loanNo\",\n value: e.currentTarget.value\n })\n }\n hasDecimal={false}\n maxLength={12}\n onBlur={e =>\n validateOnBlur({ field: \"loanNo\", value: e.currentTarget.value })\n }\n >\n \n *{\" \"}\n \n
\n
\n \n Attributed

Lender\n
\n \n \n
\n
\n \n Attributed

Broker\n
\n \n \n
\n {/* */}\n
\n \n Last

Edit\n
\n \n
\n \n \n \n
\n
\n \n \n
\n Principal\n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n className=\" m-l-6 hideNumberPointers\"\n value={loanDetails.principal}\n disabled\n />\n
\n\n
\n Lower Rate\n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\" m-l-6 hideNumberPointers\"\n value={loanDetails.lowerRate}\n onChange={e => handleFieldChange({ field: \"lowerRate\", value: e })}\n onBlur={e => validateOnBlur({ field: \"lowerRate\", value: e })}\n />\n \n *{\" \"}\n \n
\n
\n Higher Rate\n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\" m-l-6 hideNumberPointers\"\n value={loanDetails.higherRate}\n onChange={e => handleFieldChange({ field: \"higherRate\", value: e })}\n onBlur={e => validateOnBlur({ field: \"higherRate\", value: e })}\n />\n \n *{\" \"}\n \n
\n
\n Establishment Fee (incl GST)\n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n className=\" m-l-6 hideNumberPointers\"\n value={loanDetails.establishmentFeeWithGst}\n onChange={e => {\n if(typeof e === 'number'){\n handleFieldChange({ field: \"establishmentFeeWithGst\", value: Math.floor(e)})\n }\n }}\n hasDecimal={false}\n />\n
\n
\n \n \n \n {loanDetails.scenarioKey === \"CONSTRUCTION\" && (\n \n )}\n {loanDetails.scenarioKey === \"SUBDIVISION\" && (\n \n )}\n \n \n \n
\n LVR\n `${value}%`}\n parser={value => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"m-l-6 hideNumberPointers\"\n value={loanDetails.lvr}\n onChange={e => handleFieldChange({ field: \"lvr\", value: e })}\n onBlur={e => validateOnBlur({ field: \"lvr\", value: e })}\n />\n
\n \n \n \n \n
\n \n \n \n \n
\n Shortfall\n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n className=\"m-l-6 hideNumberPointers\"\n value={loanDetails.shortfall}\n onChange={e => handleFieldChange({ field: \"shortfall\", value: e })}\n hasDecimal={false}\n disabled={!loanDetails.dischargedDate}\n />\n
\n
\n Settlement Date\n \n handleFieldChange({ value: e, field: \"settlementDate\" })\n }\n allowClear={false}\n />\n
\n
\n Repayment Date\n \n handleFieldChange({ value: e, field: \"repaymentDate\" })\n }\n allowClear={false}\n />\n
\n
\n Discharged\n \n handleFieldChange({ value: e, field: \"dischargedDate\" })\n }\n allowClear={false}\n disabled={!loanDetails.settlementDate || !loanDetails.repaymentDate}\n disabledDate={e =>\n moment(e).isBefore(moment(loanDetails.settlementDate))\n }\n />\n
\n
\n\n {/* Broker Ratings */}\n\n \n\n {/* Lender Ratings */}\n\n \n\n {/* Lawyers ratings by lenders */}\n \n\n {/* Lawyer ratings by brokers */}\n \n \n );\n};\n\nexport default LoanCreateForm;\n","import { Table } from \"antd\";\nimport React, { useEffect, useMemo } from \"react\";\nimport moment from \"moment\";\nimport history from \"../../routes/history\";\nimport { AU_DATE_FORMAT, DEFAULT_DATE_FORMAT } from \"../../constants/moment\";\nimport { mustBeArray } from \"../../libs\";\nimport { BROKER_USER, LENDER_USER } from \"../../constants/systemUsers\";\n\nconst AllLoansList = ({\n list,\n loading,\n sortInfo,\n page,\n handleTableChange,\n total,\n className = \"\",\n selectedColumns = []\n}) => {\n const formatDecimalToCurrency = value => {\n return value\n ? value.toLocaleString(\"en-US\", {\n style: \"currency\",\n currency: \"USD\",\n minimumFractionDigits: 0,\n maximumFractionDigits: 0\n })\n : \"$0\";\n };\n\n const handleLoanNumberClick = record => {\n history.push(`/loans/${record.id}/view`);\n };\n\n const handleProfileClick = (record, actionSource, profileType) => {\n let profileId;\n if (actionSource === \"mainList\") {\n profileId =\n profileType === \"lender\"\n ? record.associatedLenderId\n : record.associatedBrokerId;\n } else if (actionSource === \"lenderList\") {\n profileId = record.loanLenderId;\n } else if (actionSource === \"brokerList\") {\n profileId = record.loanBrokerId;\n }\n history.push(`/users/${profileId}/` + profileType);\n };\n\n const formatDecimal2 = value => {\n return value ? value.toFixed(2) : \"\";\n };\n\n const formatDecimalWithDefaultValue = (value, precision) => {\n return value\n ? value.toFixed(precision)\n : value == 0\n ? (0).toFixed(precision)\n : \"\";\n };\n\n const asDefaultDisplayFormatDate = dateString => {\n if (typeof dateString === \"string\" && dateString !== \"\") {\n dateString = moment.utc(dateString).local();\n return moment(dateString).format(DEFAULT_DATE_FORMAT);\n }\n\n if (dateString instanceof moment) {\n return dateString.format(DEFAULT_DATE_FORMAT);\n }\n return \"\";\n };\n\n /**\n * @type {import(\"antd/lib/table\").ColumnProps[]}\n */\n const colTemplate = [\n {\n title: \"Loan No.\",\n dataIndex: \"loanNo\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30,\n render: (data, record) => {\n return (\n handleLoanNumberClick(record)}\n style={{ color: \"blue\" }}\n >\n {data}\n \n );\n }\n },\n {\n title: \"Lender\",\n dataIndex: \"associatedLenderCompany\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30,\n render: (data, record) => {\n /**\n * @type {import(\"../../libs/types\").ILoanLendersBrokers | null}\n */\n let lender = null;\n let mostContribution = 0;\n record.loanLendersBrokers.forEach(x => {\n if(x.loanLenderContribution > mostContribution){\n mostContribution = x.loanLenderContribution;\n lender = x;\n }\n });\n if(lender){\n if (record.associatedLenderCompany === \"Privacy Engaged\") {\n return {lender.loanLenderName};\n } else {\n return (\n handleProfileClick(lender, \"lenderList\", \"lender\")}\n style={{ color: \"blue\" }}\n >\n {lender.loanLenderName}\n \n );\n }\n }\n else {\n return \"\";\n }\n }\n },\n {\n title: \"Broker\",\n dataIndex: \"associatedBrokerCompany\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30,\n render: (data, record) => {\n if(record.loanLendersBrokers && record.loanLendersBrokers.length > 0){\n let broker = record.loanLendersBrokers.find(x => x.loanBrokerName && x.loanBrokerId);\n if(broker){\n return (\n handleProfileClick(broker, \"brokerList\", \"broker\")}\n style={{ color: \"blue\" }}\n >\n {broker.loanBrokerName}\n \n );\n }\n else {\n return \"\";\n }\n }\n }\n },\n {\n title: \"Broker BDM\",\n dataIndex: \"brokerBdm\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30\n },\n {\n title: \"Lender BDM\",\n dataIndex: \"lenderBdm\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30\n },\n {\n title: \"Suburb & State\",\n dataIndex: \"suburbState\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30\n },\n {\n title: \"Priority\",\n dataIndex: \"priority\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30\n },\n {\n title: \"Principal\",\n dataIndex: \"principal\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30,\n render: data => {\n return {formatDecimalToCurrency(data)};\n }\n },\n {\n title: \"Lower Rate\",\n dataIndex: \"lowerRate\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30,\n render: data => {\n return {formatDecimal2(data)};\n }\n },\n {\n title: \"Higher Rate\",\n dataIndex: \"higherRate\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30,\n render: data => {\n return {formatDecimal2(data)};\n }\n },\n {\n title: \"Estab %\",\n dataIndex: \"establishmentFee\",\n ellipsis: true,\n sorter: false,\n sortOrder:\n sortInfo && sortInfo.field === \"establishmentFee\" && sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n width: 30,\n render: data => {\n return {formatDecimalWithDefaultValue(data, 1)};\n }\n },\n {\n title: \"Estab with GST\",\n dataIndex: \"establishmentFeeWithGst\",\n ellipsis: true,\n sorter: false,\n sortOrder:\n sortInfo &&\n sortInfo.field === \"establishmentFeeWithGst\" &&\n sortInfo.order\n ? sortInfo.order === \"asc\"\n ? \"ascend\"\n : \"descend\"\n : false,\n width: 30,\n render: data => {\n return {formatDecimalWithDefaultValue(data, 1)};\n }\n },\n {\n title: \"LVR %\",\n dataIndex: \"lvr\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30,\n render: data => {\n return {formatDecimal2(data)};\n }\n },\n {\n title: \"Valuation Obtained\",\n dataIndex: \"valuationRequired\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30\n },\n {\n title: \"Interest Payable\",\n dataIndex: \"interest\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30\n },\n {\n title: \"Law Firm\",\n dataIndex: \"lawFirm\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30\n },\n {\n title: \"Scenario\",\n dataIndex: \"scenario\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30\n },\n {\n title: \"Security Type\",\n dataIndex: \"securityType\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30\n },\n {\n title: \"Security Sub Type\",\n dataIndex: \"securitySubType\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30\n },\n {\n title: \"Partner\",\n dataIndex: \"partner\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30\n },\n {\n title: \"Associate\",\n dataIndex: \"associate\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30\n },\n {\n title: \"Status\",\n dataIndex: \"status\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30\n },\n {\n title: \"Shortfall\",\n dataIndex: \"shortfall\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30,\n render: data => {\n return {formatDecimalToCurrency(data)};\n }\n },\n {\n title: \"Settlement\",\n dataIndex: \"settlement\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30,\n dataType: \"date\",\n dateFormat: AU_DATE_FORMAT,\n render: data => {\n return {asDefaultDisplayFormatDate(data)};\n }\n },\n {\n title: \"Repayment\",\n dataIndex: \"repayment\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30,\n dataType: \"date\",\n dateFormat: AU_DATE_FORMAT,\n render: (data, record) => {\n return {asDefaultDisplayFormatDate(data)};\n }\n },\n {\n title: \"Discharged\",\n dataIndex: \"discharged\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30,\n dataType: \"date\",\n dateFormat: AU_DATE_FORMAT,\n render: (data, record) => {\n return {asDefaultDisplayFormatDate(data)};\n }\n },\n {\n title: (\n \n Broker\n \n \n ),\n dataIndex: \"brokerStarsFromLender\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30,\n render: data => {\n return {data ? data : \"\"};\n }\n },\n {\n title: \"Broker Review by Lender\",\n dataIndex: \"brokerReviewByLender\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30,\n render: data => {\n return (\n {data ? data : \"\"}\n );\n }\n },\n {\n title: \"Broker Response\",\n dataIndex: \"brokerResponseToLender\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30,\n render: data => {\n return (\n {data ? data : \"\"}\n );\n }\n },\n {\n title: (\n \n Lender\n \n \n ),\n dataIndex: \"lenderStarsFromBroker\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30,\n render: data => {\n return {data ? data : \"\"};\n }\n },\n {\n title: \"Lender Review by Broker\",\n dataIndex: \"lenderReviewByBroker\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30,\n render: data => {\n return (\n {data ? data : \"\"}\n );\n }\n },\n {\n title: \"Lender Response\",\n dataIndex: \"lenderResponseToBroker\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30,\n render: data => {\n return (\n {data ? data : \"\"}\n );\n }\n },\n // Lawyer to Lender\n {\n title: (\n \n Lawyer's\n from Lender\n \n ),\n dataIndex: \"lawyerStarsFromLender\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30,\n render: data => {\n return {data ? data : \"\"};\n }\n },\n {\n title: \"Lender Review by Lender\",\n dataIndex: \"lawyerReviewByLender\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30,\n render: data => {\n return (\n {data ? data : \"\"}\n );\n }\n },\n {\n title: \"Lawyer Response to Lender\",\n dataIndex: \"lawyerResponseToLender\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30,\n render: data => {\n return (\n {data ? data : \"\"}\n );\n }\n },\n // Lawyer to broker\n {\n title: (\n \n Lawyer's\n from Broker\n \n ),\n dataIndex: \"lawyerStarsFromBroker\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30,\n render: data => {\n return {data ? data : \"\"};\n }\n },\n {\n title: \"Lender Review by Broker\",\n dataIndex: \"lawyerReviewByBroker\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30,\n render: data => {\n return (\n {data ? data : \"\"}\n );\n }\n },\n {\n title: \"Lawyer Response to Lender\",\n dataIndex: \"lawyerResponseToBroker\",\n ellipsis: true,\n sorter: false,\n sortOrder: false,\n width: 30,\n render: data => {\n return (\n {data ? data : \"\"}\n );\n }\n }\n ];\n\n /**\n * @type {import(\"antd/lib/table\").ColumnProps[]}\n */\n const expandedRowLoanListColumns = [\n {\n title: \"Lender List\",\n dataIndex: \"loanLenderName\",\n key: \"associatedLenderCompany\",\n width: 400,\n render: (data, record) => {\n if (\n record.loanLenderId &&\n record.loanLenderName === \"Privacy Engaged\"\n ) {\n return {data};\n } else if (record.loanLenderId) {\n return (\n handleProfileClick(record, \"lenderList\", \"lender\")}\n style={{ color: \"blue\" }}\n >\n {data}\n \n );\n }\n }\n },\n {\n dataIndex: \"loanLenderContribution\",\n key: \"attributedLenderContribution\",\n width: 200,\n render: (data, record) => {\n return {data ? formatDecimalToCurrency(data) : \"\"};\n }\n },\n {\n title: \"Broker List\",\n dataIndex: \"loanBrokerName\",\n key: \"associatedBrokerCompany\",\n width: 200,\n render: (data, record) => {\n return record.loanBrokerId ? (\n handleProfileClick(record, \"brokerList\", \"broker\")}\n style={{ color: \"blue\" }}\n >\n {data}\n \n ) : (\n {data}\n );\n }\n }\n ];\n\n const columnsToShow = useMemo(() => {\n const updatedSelection = selectedColumns.map(x => {\n return x.charAt(0).toLowerCase() + x.slice(1);\n });\n // this extra column controls whether to show the expandable icon on the row\n let mainColumns =\n updatedSelection.length > 0\n ? [\n {\n title: \"\",\n dataIndex: \"\",\n render: (data, record) => {\n return (\n selectedColumns.includes(x))\n ? \"hideExpandIcon\"\n : \"\"\n }\n >\n );\n },\n width: 0\n }\n ]\n : [];\n const filteredMain = colTemplate.filter(col =>\n updatedSelection.includes(col.dataIndex)\n );\n mainColumns = [...mainColumns, ...filteredMain];\n\n const filteredExpanded = expandedRowLoanListColumns.filter(col =>\n updatedSelection.includes(col.key)\n );\n const expandedColumns =\n filteredExpanded.length > 0\n ? [\n {\n dataIndex: \"\",\n key: \"\",\n width: \"2%\"\n },\n ...filteredExpanded,\n {\n dataIndex: \"\",\n key: \"\"\n }\n ]\n : [];\n return {\n mainColumns,\n expandedColumns\n };\n }, [selectedColumns]);\n\n return (\n 0}\n expandedRowRender={record =>\n record.loanLendersBrokers.length > 1 && (\n \n )\n }\n columns={columnsToShow.mainColumns}\n dataSource={\n list.length > 0 && columnsToShow.mainColumns.length > 0 ? list : []\n }\n loading={loading}\n pagination={{ current: page, pageSize: 50, total }}\n onChange={handleTableChange}\n scroll={{\n y: 600,\n x: columnsToShow.mainColumns.length * 250,\n scrollToFirstRowOnChange: true\n }}\n />\n );\n};\nexport default AllLoansList;\n","import { Card, Radio } from \"antd\";\nimport axios from \"axios\";\nimport React, { useEffect, useState } from \"react\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { mustBeArray } from \"../../../libs\";\nimport { loansStatusLookups } from \"../../../actions/lookup\";\nimport { isSystemUserPolicy } from \"../../../Common/Authorization/policies/isSystemUserPolicy\";\nimport { ADMIN_USER } from \"../../../constants/systemUsers\";\nimport { ALL_LOANS_STATUS } from \"../../../constants\";\nimport Loading from \"../../loading\";\n\nconst LoanStatusFilter = ({ value, handleStatusChange }) => {\n const [list, setList] = useState([]);\n const signal = axios.CancelToken.source();\n const dispatchAction = useDispatch();\n const user = useSelector(state => state?.authorization?.user);\n const [loading, setLoading] = useState(false);\n\n const handleOnLoad = async () => {\n setLoading(true);\n const userType = (await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n ))\n ? ADMIN_USER\n : \"\";\n\n dispatchAction(loansStatusLookups({ cancelToken: signal.token })).then(\n resp => {\n setList(mustBeArray(resp));\n setLoading(false);\n }\n );\n };\n useEffect(() => {\n handleOnLoad();\n }, []);\n\n return (\n \n {loading ? (\n
\n \n
\n ) : (\n <>\n {list.map(option => (\n \n {option.name}\n \n ))}\n All\n \n )}\n \n );\n};\n\nexport default LoanStatusFilter;\n","import { Card, Radio, Row, Col } from \"antd\";\nimport React, { Fragment, useEffect, useState } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport { mustBeArray } from \"../../../libs\";\nimport { getAllLoansExpiryLookups } from \"../../../actions/loans\";\nimport Loading from \"../../loading\";\n\nconst LoanExpiryFilter = ({ value, handleExpiryChange }) => {\n const dispatch = useDispatch();\n\n const [list, setList] = useState([]);\n const [loading, setLoading] = useState(false);\n\n function getExpiryList() {\n setLoading(true);\n dispatch(getAllLoansExpiryLookups({})).then(resp => {\n setList(mustBeArray(resp?.data));\n setLoading(false);\n });\n }\n\n useEffect(() => {\n getExpiryList();\n }, []);\n\n return (\n \n {loading ? (\n
\n \n
\n ) : (\n \n \n
\n
Expiry
\n \n All\n \n
\n \n \n \n \n
Expires in
\n \n \n {list\n .filter(x => {\n return x.id.includes(\"ExpiresIn\");\n })\n .map((option, i) => {\n return (\n \n \n {option.name}\n \n \n );\n })}\n \n
\n \n \n
Expired
\n \n \n {list\n .filter(x => {\n return x.id.includes(\"Expired\");\n })\n .map((option, i) => {\n return (\n \n \n {option.name}\n \n \n );\n })}\n \n
\n \n
\n )}\n \n );\n};\n\nexport default LoanExpiryFilter;\n","import { Button, Modal } from \"antd\";\nimport React from \"react\";\n\ntype StatusErrorModalProps = {\n statusErrorModal: {\n visible: boolean;\n message: string;\n };\n closeStatusErrorModal: () => void;\n};\n\nexport default function StatusErrorModal({\n statusErrorModal,\n closeStatusErrorModal\n}: StatusErrorModalProps) {\n return (\n \n Cancel\n \n ]}\n >\n {statusErrorModal.message}\n \n );\n}\n","import React, { useEffect, useState } from 'react'\nimport authService from '../../actions/AuthorizeService';\n\n\nexport default function useGetLenderBrokerId() {\n const [userLenderId, setUserLenderId] = useState();\n const [userBrokerId, setUserBrokerId] = useState();\n\n async function getIds(){\n let userDetails = await authService.getUser();\n let lenderId = userDetails[\"app.user.lenderid\"];\n let brokerId = userDetails[\"app.user.brokerid\"];\n\n setUserLenderId(parseInt(lenderId) || undefined);\n setUserBrokerId(parseInt(brokerId) || undefined);\n }\n\n useEffect(()=>{\n getIds();\n },[]);\n\n return {\n userLenderId,\n userBrokerId\n }\n}","import React, { useState, useEffect, useMemo } from \"react\";\nimport { LoanForm } from \"../../components/Loans/Index\";\nimport axios from \"axios\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { updateHeader } from \"../../actions/member\";\nimport LoanCreateContext from \"../../components/Loans/Create/LoanCreateContext\";\nimport {\n loansLendersLookups,\n loansPartnerAssociateLookup,\n loansLawFirmUsersLookup,\n loansBrokersLookups\n} from \"../../actions/lookup\";\nimport {\n formatDateTimeForPayload,\n isNullEmptyOrUndefined,\n mustBeArray\n} from \"../../libs\";\nimport _, { xorBy } from \"lodash\";\nimport moment from \"moment\";\nimport { loanErrors, loanFieldErrors } from \"../../constants/errors\";\nimport {\n getAttributedLenders,\n getAttributedBrokers,\n getLoanDetails,\n loansCreate,\n loansEdit,\n validateNewLoanNo,\n validateLoanNo\n} from \"../../actions/loans\";\nimport { message } from \"antd\";\nimport history from \"../../routes/history\";\nimport { ADMIN_USER, SYSTEM_ADMIN_USER } from \"../../constants/systemUsers\";\nimport authService from \"../../actions/AuthorizeService\";\nimport AddInactiveBrokerConfirmationModal from \"../../components/Loans/Create/AddInactiveFinancierConfirmationModal\";\nimport { ALL_LOANS_STATUS } from \"../../constants\";\nimport StatusErrorModal from \"../../components/Loans/Create/StatusErrorModal\";\nimport useCheckUserRoles from \"../../Common/Hooks/useCheckUserRoles\";\nimport useGetLenderBrokerId from \"../../Common/Hooks/useGetLenderBrokerId\";\n\nconst LoansCreate = ({ match }) => {\n \n const {\n isSystemAdmin,\n isBrokerUser,\n isLenderUser,\n isLawFirmUser,\n isDualUser,\n checkIfUserIsSystemAdmin,\n checkIfUserIsLawfirm\n } = useCheckUserRoles();\n\n const { userLenderId, userBrokerId } = useGetLenderBrokerId();\n const { lender } = useSelector(state => state.profile);\n\n const [loanDetails, setLoanDetails] = useState({\n loanNo: \"\",\n lawFirmId: null,\n lawFirm: null,\n lastEditBy: null,\n assignedAssociateId: null,\n brokerBdmId: null,\n lenderBdmId: null,\n assignedPartnerId: null,\n associatedBroker: null,\n lowerRate: null,\n higherRate: null,\n lvr: null,\n principal: null,\n priorityKey: null,\n establishmentFeeWithGst: null,\n repaymentDate: undefined,\n scenarioKey: null,\n securityTypeKey: null,\n securitySubTypeKey: null,\n settlementDate: undefined,\n dischargedDate: undefined,\n shortfall: null,\n statusKey: null,\n suburbState: null,\n lenderReviewByBroker: \"\",\n lenderStarsFromBroker: null,\n brokerResponseToLender: \"\",\n lawyerReviewByBroker: \"\",\n lawyerStarsFromBroker: null,\n lawyerResponseToBroker: \"\",\n brokerReviewByLender: \"\",\n brokerStarsFromLender: null,\n lenderResponseToBroker: \"\",\n lawyerReviewByLender: \"\",\n lawyerStarsFromLender: null,\n lawyerResponseToLender: \"\",\n loanLenders: [\n {\n lenderId: null,\n contributionAmount: null\n }\n ],\n interestKey: null,\n loanBrokers: [\n {\n brokerId: null\n }\n ],\n valuationRequired: null,\n credits: [],\n });\n const [priority, setPriority] = useState(null);\n const [loanId, setLoanId] = useState(null);\n const [saveLoading, setSaveLoading] = useState(false);\n const [securitySubTypesList, setSecuritySubTypesList] = useState([]);\n const [stateAndSuburbList, setStateAndSuburbList] = useState([]);\n const [partnerAssociateList, setPartnerAssociateList] = useState([]);\n const [lendersList, setLendersList] = useState([]);\n const [brokersList, setBrokersList] = useState([]);\n const [lendersAddModal, setLendersAddModal] = useState({\n saveLoading: false,\n visible: false\n });\n const [brokersAddModal, setBrokersAddModal] = useState({\n saveLoading: false,\n visible: false\n });\n const [statusErrorModal, setStatusErrorModal] = useState({\n visible: false,\n message: \"\"\n });\n const [userIsAttributedLender, setUserIsAttributedLender] = useState(false);\n const [userIsAttributedBroker, setUserIsAttributedBroker] = useState(false);\n\n const [errorsList, setErrorsList] = useState([]);\n const [validationErrors, setValidationErrors] = useState([]);\n const signal = axios.CancelToken.source();\n const dispatchAction = useDispatch();\n\n async function changeHeaderSettings(loanId = 0){\n const isSystemAdmin = await checkIfUserIsSystemAdmin();\n const isLawfirm = await checkIfUserIsLawfirm();\n\n dispatchAction(\n updateHeader({\n header: {\n title: \" \",\n action: \"\",\n page: `loans-${loanId ? \"edit\" : \"create\"}-view`,\n enableBack: false,\n showSettings: true,\n showMasterSwitch: false,\n showIsProfileActive: false,\n hasSwitchProfile: false,\n editMode: false,\n showNotesButton: !isLawfirm,\n showOmicronBDM: false,\n omicronBdm: null,\n showPageTitle: false,\n showSearchBox: !isLawfirm\n }\n })\n );\n }\n\n useEffect(() => {\n const id = match?.params?.id;\n changeHeaderSettings(id);\n if (id) {\n getLoanDetail(id);\n setLoanId(id);\n }\n getPartnerAssociateList();\n getLendersList();\n getBrokersList();\n\n const cleanUp = () => {\n signal.cancel(\"\");\n };\n return cleanUp;\n }, []);\n\n // Calculate principal when loanlenders changes\n useEffect(() => {\n const principal = _.sumBy(\n loanDetails.loanLenders,\n o => o.contributionAmount\n );\n setLoanDetails({ ...loanDetails, principal });\n\n if((isLenderUser || isDualUser)) {\n var attributedLenderErr = loanErrors.permissionAttributedLender(lender.companyName || \"your company\");\n const userLender = loanDetails.loanLenders.find(x => x.lenderId === userLenderId);\n if(!userLender) {\n \n setErrorsList(errorsList.filter(e => e !== attributedLenderErr).concat([attributedLenderErr]));\n } \n else {\n setErrorsList(errorsList.filter(o => o !== attributedLenderErr))\n }\n }\n\n }, [loanDetails?.loanLenders]);\n\n // Check if user is an attributed lender/broker\n useEffect(() => {\n let isAttributedLender = false;\n let isAttributedBroker = false;\n if(loanDetails.loanLenders){\n loanDetails.loanLenders.forEach(x => {\n isAttributedLender = x.lenderId === userLenderId;\n });\n }\n if(loanDetails.loanBrokers){\n loanDetails.loanBrokers.forEach(x => {\n isAttributedBroker = x.brokerId === userBrokerId;\n });\n }\n setUserIsAttributedLender(isAttributedLender);\n setUserIsAttributedBroker(isAttributedBroker);\n }, [loanDetails?.loanLenders, loanDetails.loanBrokers]);\n\n const getPartnerAssociateList = () => {\n checkIfUserIsSystemAdmin().then(isSystemUser => {\n dispatchAction(\n loansPartnerAssociateLookup({ cancelToken: signal.token, isSystemUser })\n ).then(resp => {\n setPartnerAssociateList(mustBeArray(resp));\n });\n });\n };\n\n\n const getLoanDetail = id => {\n checkIfUserIsSystemAdmin().then(isSystemUser => {\n dispatchAction(\n getLoanDetails({ cancelToken: signal.token, id, userType: isSystemUser ? SYSTEM_ADMIN_USER : \"\", isUserInvolvedAsLender: isLenderUser })\n ).then(resp => {\n // Format data to include in loan details\n const {\n loanNo,\n associatedBroker,\n associatedBrokerId,\n brokerBdmId,\n lenderBdmId,\n lastEditBy,\n settlementDate,\n repaymentDate,\n dischargedDate,\n associateId,\n partnerId,\n establishmentFee,\n lawFirm,\n lawFirmId,\n lowerRate,\n higherRate,\n lvr,\n principal,\n priority,\n priorityKey,\n scenarioKey,\n securityTypeKey,\n securitySubTypeKey,\n shortfall,\n statusKey,\n suburbState,\n lenderReviewByBroker,\n lenderStarsFromBroker,\n brokerResponseToLender,\n lawyerReviewByBroker,\n lawyerStarsFromBroker,\n lawyerResponseToBroker,\n brokerReviewByLender,\n brokerStarsFromLender,\n lenderResponseToBroker,\n lawyerReviewByLender,\n lawyerStarsFromLender,\n lawyerResponseToLender,\n interestKey,\n id,\n valuationRequired,\n credits,\n constructionScenario,\n subdivisionScenario\n } = resp.data;\n \n const userType = isSystemUser ? SYSTEM_ADMIN_USER : \"\"\n\n dispatchAction(getAttributedLenders({ id, userType })).then(res => {\n const loanLender = mustBeArray(res?.data).reduce((a, b) => {\n return [\n ...a,\n {\n lenderId: b.loanLenderId,\n contributionAmount: b.loanLenderContribution,\n omicronBdmId: b.omicronBdmId\n // ? Number(b.loanLenderContribution.replace(\"$\", \"\"))\n // : null\n }\n ];\n }, []);\n dispatchAction(getAttributedBrokers({ id, userType }))\n .then(res => {\n const loanBrokers = mustBeArray(res?.data).reduce((a, b) => {\n return [\n ...a,\n {\n brokerId: b.loanBrokerId,\n omicronBdmId: b.omicronBdmId\n }\n ];\n }, []);\n \n setLoanDetails({\n loanNo: !isNullEmptyOrUndefined(loanNo) ? loanNo : null,\n lawFirm: lawFirm,\n lawFirmId: lawFirmId,\n settlementDate: !isNullEmptyOrUndefined(settlementDate)\n ? moment(settlementDate)\n : undefined,\n repaymentDate: !isNullEmptyOrUndefined(repaymentDate)\n ? moment(repaymentDate)\n : undefined,\n dischargedDate: !isNullEmptyOrUndefined(dischargedDate)\n ? moment(dischargedDate)\n : undefined,\n assignedAssociateId: associateId,\n lastEditBy: lastEditBy,\n brokerBdmId: brokerBdmId,\n lenderBdmId: lenderBdmId,\n assignedPartnerId: partnerId,\n establishmentFeeWithGst: establishmentFee,\n loanLenders: _.isEmpty(loanLender)\n ? [{ lenderId: null, contributionAmount: null, omicronBdmId: null }]\n : loanLender,\n loanBrokers: _.isEmpty(loanBrokers)\n ? [{ brokerId: null, omicronBdmId: null }]\n : loanBrokers,\n lowerRate,\n higherRate,\n lvr,\n principal,\n priority,\n priorityKey,\n scenarioKey,\n securityTypeKey,\n securitySubTypeKey,\n shortfall,\n statusKey,\n suburbState,\n lenderReviewByBroker,\n lenderStarsFromBroker,\n brokerResponseToLender,\n lawyerReviewByBroker,\n lawyerStarsFromBroker,\n lawyerResponseToBroker,\n brokerReviewByLender,\n brokerStarsFromLender,\n lenderResponseToBroker,\n lawyerReviewByLender,\n lawyerStarsFromLender,\n lawyerResponseToLender,\n interestKey,\n id,\n credits: credits || [],\n valuationRequired: valuationRequired === true ? \"true\" : valuationRequired === false ? \"false\" : null, // Map to string because selection input only accepts string or number\n constructionScenario,\n subdivisionScenario\n });\n \n });\n \n \n });\n });\n });\n };\n\n const getLendersList = () => {\n checkIfUserIsSystemAdmin().then(isSystemUser => {\n dispatchAction(loansLendersLookups({ cancelToken: signal.token, isSystemUser })).then(\n resp => {\n setLendersList(mustBeArray(resp));\n }\n );\n });\n };\n\n const getBrokersList = () => {\n checkIfUserIsSystemAdmin().then(isSystemUser => {\n dispatchAction(loansBrokersLookups({ cancelToken: signal.token, isSystemUser })).then(\n resp => {\n setBrokersList(mustBeArray(resp));\n }\n );\n });\n };\n\n const validateExistingLoan = _.debounce((loanNo = \"\", loanLenders = []) => {\n validateLoanNo({\n loanId,\n loanNo,\n loanLenders: mustBeArray(loanLenders).filter(x => x.lenderId !== null).map(x => x.lenderId)\n }).then(res => {\n if(res.data.errors){\n const errors = mustBeArray(res.data.errors).map(x => x.message);\n setValidationErrors(s => {\n let newErrorList = [...s];\n errors.forEach(q => {\n if(!newErrorList.includes(q)){\n newErrorList.push(q);\n }\n });\n return newErrorList;\n });\n }\n });\n }, 300);\n\n const validateNewLoan = _.debounce((loanNo = \"\", loanLenders = []) => {\n validateNewLoanNo({\n loanNo,\n loanLenders: mustBeArray(loanLenders).filter(x => x.lenderId !== null).map(x => x.lenderId)\n }).then(res => {\n if(res.data.errors){\n const errors = mustBeArray(res.data.errors).map(x => x.message);\n setValidationErrors(s => {\n let newErrorList = [...s];\n errors.forEach(q => {\n if(!newErrorList.includes(q)){\n newErrorList.push(q);\n }\n });\n return newErrorList;\n });\n }\n });\n }, 300);\n\n const setAttributedBroker = broker => {\n setLoanDetails({ ...loanDetails, attributedBrokerId: broker.id, brokerBdmId: broker.omicronBdmId });\n }\n\n const setLawFirm = lawFirm => {\n setLoanDetails({ ...loanDetails, lawFirmId: lawFirm.id});\n }\n\n const handleLoanLendersChange = data => {\n let sorted = data.sort((a, b) => b.contributionAmount - a.contributionAmount);\n const { loanNo } = loanDetails;\n\n setLoanDetails({ ...loanDetails, loanLenders: data, lenderBdmId: sorted[0].omicronBdmId });\n setValidationErrors([]);\n\n if(loanNo) {\n if(loanId == null)\n validateNewLoan(loanNo, data);\n else\n validateExistingLoan(loanNo, data);\n \n }\n \n handleLendersModalClose();\n }\n\n const handleLoanBrokersChange = data => {\n setLoanDetails({ ...loanDetails, loanBrokers: data, brokerBdmId: data[0].omicronBdmId });\n handleBrokersModalClose();\n }\n\n const handleFieldChange = data => {\n const { field, value, securitySubTypesList } = data;\n const {settlementDate, dischargedDate, loanLenders, loanNo} = loanDetails\n switch (field) {\n case \"loanNo\":\n setLoanDetails({ ...loanDetails, [field]: value });\n setValidationErrors([]);\n \n if(value){\n if(loanId == null)\n validateNewLoan(value, loanLenders);\n else\n validateExistingLoan(value, loanLenders);\n }\n break;\n case \"securityTypeKey\":\n setSecuritySubTypesList(securitySubTypesList);\n setLoanDetails({\n ...loanDetails,\n [field]: value,\n securitySubTypeKey: \"\"\n });\n break;\n case \"loanLenders\":\n setLoanDetails({ ...loanDetails, [field]: value });\n handleLendersModalClose();\n break;\n case \"loanBrokers\":\n setLoanDetails({ ...loanDetails, [field]: value });\n handleBrokersModalClose();\n break;\n case \"settlementDate\":\n const dateIsAfterDischargedDate = !!(\n loanDetails.dischargedDate &&\n moment(value).isAfter(moment(loanDetails.dischargedDate))\n );\n setLoanDetails({\n ...loanDetails,\n [field]: value,\n dischargedDate: dateIsAfterDischargedDate\n ? null\n : loanDetails.dischargedDate,\n statusKey: loanDetails.statusKey === ALL_LOANS_STATUS.PreSettlement || !loanDetails.statusKey ? ALL_LOANS_STATUS.Settled : loanDetails.statusKey\n });\n validateOnBlur({field: 'statusKey', value: loanDetails.statusKey === ALL_LOANS_STATUS.PreSettlement ? ALL_LOANS_STATUS.Settled : loanDetails.statusKey});\n break;\n case \"dischargedDate\":\n setLoanDetails({\n ...loanDetails,\n [field]: value,\n statusKey: loanDetails.statusKey !== ALL_LOANS_STATUS.Discharged ? ALL_LOANS_STATUS.Discharged : loanDetails.statusKey\n });\n validateOnBlur({field: 'statusKey', value: loanDetails.statusKey !== ALL_LOANS_STATUS.Discharged ? ALL_LOANS_STATUS.Discharged : loanDetails.statusKey});\n break;\n case \"priorityKey\":\n setLoanDetails({\n ...loanDetails,\n [field]: value,\n priority: value === \"FIRST\" ? \"First\" : \"Second\"\n });\n break;\n case \"statusKey\":\n const hasSettlementDate = Boolean(settlementDate);\n const hasDischargedDate = Boolean(dischargedDate);\n if(hasDischargedDate){\n setLoanDetails({\n ...loanDetails,\n statusKey: value !== ALL_LOANS_STATUS.Discharged ? ALL_LOANS_STATUS.Discharged : value\n });\n }\n else if(hasSettlementDate && value === ALL_LOANS_STATUS.PreSettlement){\n setLoanDetails({\n ...loanDetails,\n statusKey: value === ALL_LOANS_STATUS.PreSettlement ? ALL_LOANS_STATUS.Settled : value\n });\n }\n else {\n setLoanDetails({ ...loanDetails, [field]: value });\n }\n break;\n default:\n setLoanDetails({ ...loanDetails, [field]: value });\n break;\n }\n };\n\n const handleSubmit = () => {};\n\n const stateAndSuburb = useMemo(() => {\n const stateAndSub = mustBeArray(loanDetails.suburbState?.split(\", \"));\n if (!_.isEmpty(stateAndSub)) {\n return {\n state: stateAndSub[1],\n suburb: stateAndSub[0]\n };\n }\n return {};\n }, [loanDetails.suburbState, stateAndSuburbList]);\n\n const handleLendersModalClose = () => {\n setLendersAddModal({ visible: false, saveLoading: false });\n };\n\n const displayLendersModal = () => {\n setLendersAddModal({ ...lendersAddModal, visible: true });\n };\n\n const handleBrokersModalClose = () => {\n setBrokersAddModal({ visible: false, saveLoading: false });\n };\n\n const displayBrokersModal = () => {\n setBrokersAddModal({ ...brokersAddModal, visible: true });\n };\n\n const validateFormFields = () => {\n let errors = [];\n const {\n loanNo,\n loanLenders,\n loanBrokers,\n principal,\n suburbState,\n lowerRate,\n higherRate,\n lvr,\n statusKey,\n settlementDate,\n repaymentDate,\n priorityKey,\n scenarioKey,\n securityTypeKey,\n securitySubTypeKey,\n interestKey,\n lawFirmId,\n } = loanDetails;\n // Settlement date required when repayment date is filled, vice versa\n if(settlementDate && !repaymentDate) errors.push(loanErrors.repaymentDateRequired);\n if(repaymentDate && !settlementDate) errors.push(loanErrors.settlementDateRequired);\n\n // Loan No. is required\n const loanNoError = isInValid({field: \"loanNo\", value: loanNo})\n if (loanNoError) errors.push(loanNoError);\n\n // Attributed Omicron Lender is required\n const lenderError = isInValid({ field: \"loanLenders\", value: loanLenders });\n if (lenderError) errors.push(lenderError);\n\n const brokerError = isInValid({ field: \"loanBrokers\", value: loanBrokers });\n if (brokerError) errors.push(brokerError);\n\n // Principal is required\n if (!principal) errors.push(loanErrors.principalRequired);\n\n // suburb and State are required\n if (!suburbState) errors.push(loanErrors.suburbAndStateRequired);\n\n // validate lower rate\n const lowerRateError = isInValid({ field: \"lowerRate\", value: lowerRate });\n if (lowerRateError) errors.push(lowerRateError);\n\n // validate higher rate\n const higherRateError = isInValid({\n field: \"higherRate\",\n value: higherRate\n });\n if (higherRateError) errors.push(higherRateError);\n\n // validate lvr\n const lvrError = isInValid({ field: \"lvr\", value: lvr });\n if (lvrError) errors.push(lvrError);\n\n const statusError = isInValid({field: 'statusKey', value: statusKey});\n if(statusError) errors.push(statusError);\n\n if(!scenarioKey) errors.push(loanErrors.scenarioRequired);\n if(!priorityKey) errors.push(loanErrors.priorityRequired);\n if(!lawFirmId) errors.push(loanErrors.lawfirmRequired);\n if(!interestKey) errors.push(loanErrors.interestRequired);\n if(!securityTypeKey) errors.push(loanErrors.securityTypeRequired);\n if(!securitySubTypeKey) errors.push(loanErrors.securitySubTypeRequired);\n\n if((isLenderUser || isDualUser) && loanLenders.length > 0 && !loanId !== null) {\n const userLender = loanLenders.find(x => x.lenderId === userLenderId);\n if(!userLender) errors.push(loanErrors.permissionAttributedLender(lender.companyName || \"your company\"));\n }\n\n return errors;\n };\n const handleSave = () => {\n // Start validation\n const errors = validateFormFields();\n setErrorsList(errors);\n if (_.isEmpty([...errors, ...validationErrors])) {\n setSaveLoading(true);\n const suburbAndState = loanDetails.suburbState.split(\", \");\n let payload = {\n ...loanDetails,\n suburb: suburbAndState[0],\n state: suburbAndState[1],\n settlementDate: formatDateTimeForPayload(loanDetails.settlementDate),\n dischargedDate: formatDateTimeForPayload(loanDetails.dischargedDate),\n repaymentDate: formatDateTimeForPayload(loanDetails.repaymentDate),\n loanBrokers: loanDetails.loanBrokers.map( x => {\n return x.brokerId\n }),\n statusKey: loanDetails.statusKey ? loanDetails.statusKey : ALL_LOANS_STATUS.PreSettlement,\n valuationRequired: loanDetails.valuationRequired === 'true' ? true : loanDetails.valuationRequired === 'false' ? false : null\n };\n delete payload.principal;\n delete payload.suburbState;\n const action = loanDetails?.id ? loansEdit : loansCreate;\n dispatchAction(action({ cancelToken: signal.token, payload, isLawFirmUser, isLenderUser, isSystemAdmin })).then(\n resp => {\n setSaveLoading(false);\n\n if (!resp?.status) {\n const validationErrors = mustBeArray(resp?.data?.errors).reduce(\n (a, b) => {\n return [...a, b.message];\n },\n []\n );\n return setErrorsList(validationErrors);\n }\n message.success(\n `Loan ${payload.id ? \"updated\" : \"created\"} successfully.`\n );\n if (payload.id) {\n history.push(`/loans/${payload.id}/view`);\n } else {\n history.push(`/loans/${resp.data}/view`);\n }\n }\n );\n }\n };\n\n const handleCancel = () => {\n if (loanDetails.id == null) {\n history.push(\"/\");\n } else {\n history.push(`/loans/${loanDetails.id}/view`);\n }\n };\n\n const isInValid = ({ field, value = \"\" }) => {\n const { higherRate, lowerRate, settlementDate, dischargedDate } = loanDetails;\n const specialCharacters = /[!@#$%^&*()_+\\-=\\[\\]{};':\"\\\\|,.<>\\/?]/;\n switch (field) {\n case \"loanLenders\":\n const hasInValidLender = mustBeArray(value).some(\n o => !o.lenderId || !o.contributionAmount\n );\n return hasInValidLender\n ? loanErrors.attributedOmicronLenderRequired\n : \"\";\n case \"loanBrokers\":\n const hasInValidBroker = mustBeArray(value).some(\n o => !o.brokerId\n );\n return hasInValidBroker\n ? loanErrors.attributedOmicronBrokerRequired\n : \"\";\n case \"suburbState\":\n return value ? \"\" : loanErrors.suburbAndStateRequired;\n case \"loanNo\":\n if(value){\n return specialCharacters.test(value) ? loanErrors.loanNumberContainsSpecial : \"\";\n }\n else {\n return loanErrors.loanNumberRequired;\n }\n case \"principal\":\n return value ? \"\" : loanErrors.principalRequired;\n case \"lowerRate\":\n const numeralValue = Number(value);\n if(isNullEmptyOrUndefined(value)) {\n return loanErrors.lowerRateRequired;\n }\n else if(\n numeralValue > 80 ||\n numeralValue < 2 ||\n numeralValue > higherRate )\n {\n return loanErrors.lowerRateValidation;\n }\n else {\n return \"\";\n }\n case \"higherRate\":\n const higherNumeralValue = Number(value);\n if(isNullEmptyOrUndefined(value)){\n return loanErrors.higherRateRequired;\n }\n else if( \n higherNumeralValue > 80 ||\n higherNumeralValue < 2 ||\n higherNumeralValue < lowerRate)\n {\n return loanErrors.higherRateValidation;\n }\n else {\n return \"\";\n }\n case \"lvr\":\n if(value && (value > 99 || value < 5)){\n return loanErrors.lvrValidation\n }\n else {\n return \"\";\n }\n case 'statusKey':\n const hasSettlementDate = Boolean(settlementDate);\n const hasDischargedDate = Boolean(dischargedDate);\n if(hasDischargedDate && value !== ALL_LOANS_STATUS.Discharged){\n setStatusErrorModal({\n visible: true,\n message: loanErrors.statusKeyDischarged\n });\n // return loanErrors.statusKeyDischarged;\n }\n else if(hasSettlementDate && value === ALL_LOANS_STATUS.PreSettlement){\n setStatusErrorModal({\n visible: true,\n message: loanErrors.statusKeySettled\n });\n // return loanErrors.statusKeySettled;\n }\n default:\n return \"\";\n }\n };\n\n const validateOnBlur = ({ field, value }) => {\n const error = isInValid({ field, value });\n let tempErrorList = [...errorsList];\n switch (field) {\n case \"lowerRate\":\n const higherRateError = isInValid({\n field: \"higherRate\",\n value: loanDetails.higherRate\n });\n tempErrorList = getUpdatedErrorList({\n field: \"higherRate\",\n error: higherRateError,\n currentErrors: tempErrorList\n });\n tempErrorList = getUpdatedErrorList({\n field: \"higherRateRequired\",\n error: higherRateError,\n currentErrors: tempErrorList\n });\n tempErrorList = getUpdatedErrorList({\n field: \"lowerRateRequired\",\n error: error,\n currentErrors: tempErrorList\n });\n break;\n case \"higherRate\":\n const lowerRateError = isInValid({\n field: \"lowerRate\",\n value: loanDetails.lowerRate\n });\n tempErrorList = getUpdatedErrorList({\n field: \"lowerRate\",\n error: lowerRateError,\n currentErrors: tempErrorList\n });\n tempErrorList = getUpdatedErrorList({\n field: \"lowerRateRequired\",\n error: lowerRateError,\n currentErrors: tempErrorList\n });\n tempErrorList = getUpdatedErrorList({\n field: \"higherRateRequired\",\n error: error,\n currentErrors: tempErrorList\n });\n break;\n case 'statusKey':\n tempErrorList = getUpdatedErrorList({\n field: 'statusKeySettled',\n error: error,\n currentErrors: tempErrorList\n });\n tempErrorList = getUpdatedErrorList({\n field: 'statusKeyDischarged',\n error: error,\n currentErrors: tempErrorList\n });\n break;\n default:\n break;\n }\n const finalErrorList = getUpdatedErrorList({\n field,\n error,\n currentErrors: tempErrorList\n });\n setErrorsList(finalErrorList);\n };\n\n const getUpdatedErrorList = ({ currentErrors, error, field }) => {\n if (error && !currentErrors.includes(error))\n return [...currentErrors, error];\n if (!error) {\n const fieldError = loanFieldErrors[field];\n return currentErrors.filter(o => o !== fieldError);\n }\n return currentErrors;\n };\n\n const closeStatusErrorModal = () => {\n setStatusErrorModal({\n visible: false,\n message: \"\"\n });\n }\n\n return (\n \n \n \n \n );\n};\n\nexport default LoansCreate;\n","import { useEffect, useState } from \"react\";\nimport { useResizeListener } from \"../../Common/Hooks\";\n\nexport const useFilterView = () => {\n const [viewFilter, setViewFilter] = useState(false);\n const [smallView, setSmallView] = useState(window.innerWidth <= 1200);\n const {windowWidth} = useResizeListener();\n const [cardWidth, setCardWidth] = useState({\n sm: window.innerWidth <= 1200 ? 24 : 14,\n md: window.innerWidth <= 1200 ? 24 : 16,\n lg: window.innerWidth <= 1200 ? 24 : 20\n });\n \n const toggleViewFilter = () => {\n setViewFilter(!viewFilter);\n };\n\n useEffect(() => {\n if(windowWidth > 1200){\n setViewFilter(true);\n setSmallView(false);\n setCardWidth({\n sm: 14,\n md: 16,\n lg: 20\n })\n }else{\n setViewFilter(false);\n setSmallView(true);\n setCardWidth({\n sm: 24,\n md: 24,\n lg: 24\n })\n }\n },[windowWidth]);\n\n useEffect(() => {\n if(viewFilter){\n setCardWidth({\n sm: 14,\n md: 16,\n lg: 20\n })\n }else{\n setCardWidth({\n sm: smallView ? 24 : 14,\n md: smallView ? 24 : 16,\n lg: smallView ? 24 : 20\n })\n }\n },[viewFilter]);\n \n return { viewFilter, toggleViewFilter, smallView, cardWidth };\n}","import { useCallback, useEffect, useState } from 'react';\nimport _ from 'lodash';\n\nexport const useResizeListener = () => { \n const [windowSize, setWindowSize] = useState({\n windowWidth: window.innerWidth,\n windowHeight: window.innerHeight\n }); \n\n const updateWindowSize = useCallback(() => {\n setWindowSize({\n windowWidth: window.innerWidth,\n windowHeight: window.innerHeight\n })\n },[]);\n\n const debouncedWindowSize = _.debounce(updateWindowSize, 200);\n\n useEffect(() => {\n window.addEventListener('resize', debouncedWindowSize);\n return () => window.removeEventListener('resize', debouncedWindowSize);\n }, []);\n\n return {\n ...windowSize\n };\n};\n","import React, { useContext } from \"react\";\nimport { LENDER_USER } from \"../../../constants/systemUsers\";\nimport { convertCurrenyToHighestFigure } from \"../../../libs\";\nimport FinderUtilityContext from \"../FinderUtilityContext\";\nimport LabelValuePair from \"./LabelValuePair\";\nimport { List } from \"antd\";\n\nconst MobileKeyMetrics = ({ user }) => {\n const { userType } = useContext(FinderUtilityContext);\n const {\n dischargedLoansCount,\n currentLoanBook,\n dischargedLoanBook,\n currentLoansCount,\n shortfall,\n positiveLenderReviewsCount,\n positiveBrokerReviewsCount\n } = user;\n const userTypeText = userType === LENDER_USER ? \"Broker\" : \"Lender\";\n return (\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n );\n};\n\nexport default MobileKeyMetrics;\n","import React, { useContext } from \"react\";\nimport { LENDER_USER } from \"../../../constants/systemUsers\";\nimport FinderUtilityContext from \"../FinderUtilityContext\";\nimport RateView from \"../../../Common/RateView\";\nimport { Button } from \"antd\";\nimport { UserProfileImage } from \"../../Common\";\nimport MobileKeyMetrics from \"./mobileKeyMetrics\";\n\nconst FinderUserViewMobile = ({ user }) => {\n const { userType, handleViewDetails, generalView } = useContext(FinderUtilityContext);\n const ratingsValue =\n userType === LENDER_USER\n ? user?.avgBrokerStarRating\n : user?.avgLenderStarRating;\n const logo = user?.logoFile?.fileUrl;\n const idText = userType === LENDER_USER ? \"lenderId\" : \"brokerId\"; \n const userFullName = userType === LENDER_USER ? \"lenderName\" : 'brokerName';\n\n return (\n
\n {logo && }\n
\n {user?.matchedLoansCount || 0}{\" \"}\n Matching Loans\n
\n {/* Profile Section */}\n \n
\n
{user?.[userFullName]}
\n
{user?.mobileNumber}
\n {user?.email}\n
\n \n \n\n {/* View Details */}\n {!generalView && (\n handleViewDetails(user[idText])}\n >\n Details\n \n )}\n
\n );\n};\n\nexport default FinderUserViewMobile;\n","import { Icon, Pagination } from \"antd\";\nimport React, {useEffect, useMemo, useState } from \"react\";\nimport {\n FinderUtilitySearchModal,\n FinderHeader,\n defaultFilters,\n FinderSidebar,\n FinderUtilityContext,\n finderFilterTypes,\n LenderBrokerFilter,\n FinderUserView\n} from \"../../components/FinderUtility\";\nimport axios from \"axios\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport Loading from \"../../components/loading\";\nimport {\n errorDisplay,\n isNullEmptyOrUndefined,\n mustBeArray,\n parseItem,\n evaluatePolicy\n} from \"../../libs\";\nimport { ADMIN_USER, DUAL_USER, BROKER_USER, LENDER_USER, LAW_FIRM_USER } from \"../../constants/systemUsers\";\nimport {\n finderBrokersLookups,\n finderLendersLookups,\n finderPiorityLookup,\n finderRadiusLookups,\n finderScenarioLookups,\n finderSecurityTypesLookups,\n finderSettlementDateLookups,\n finderStatesAndSuburbsLookups,\n finderTermLookups,\n finderInterestLookups\n} from \"../../actions/finderUtility\";\nimport _, { isEmpty } from \"lodash\";\nimport { updateHeader, updateRouteOptions } from \"../../actions/member\";\nimport history from \"../../routes/history\";\nimport { isLenderUserPolicy, isLenderOwnProfilePolicy } from \"../../Common/Authorization/policies/isLenderUserPolicy\";\nimport { isBrokerUserPolicy, isBrokerOwnProfilePolicy } from \"../../Common/Authorization/policies/isBrokerUserPolicy\";\nimport { isSystemUserPolicy } from \"../../Common/Authorization/policies/isSystemUserPolicy\";\nimport { isLawFirmUserPolicy, isLawFirmOwnProfilePolicy } from \"../../Common/Authorization/policies/isLawFirmUserPolicy\";\nimport { FINDER_FILTER, FINDER_USER_TYPE } from \"../../constants\";\nimport authService from \"../../actions/AuthorizeService\";\nimport { useFilterView } from \"./use-filter-view\";\nimport FinderUserViewMobile from \"../../components/FinderUtility/UserDisplayCard/mobileIndex\";\nimport {\n EMAIL_SUBSCRIPTIONS_OPTION_LENDER_USER,\n LENDER_PROFILE_ROUTES_WITHOUT_BROKER_PROFILE_SYSTEM_USER,\n LENDER_PROFILE_ROUTES_WITH_BROKER_PROFILE_SYSTEM_USER,\n BROKER_PROFILE_ROUTES_WITHOUT_LENDER_PROFILE_SYSTEM_USER,\n LAWFIRM_PROFILE_ROUTES_SYSTEM_USER,\n PROFILE_EDIT_OPTION,\n DEFAULT_ROUTES_SYSTEM_USER\n} from \"../../constants/routeOptions\";\nimport { SuperSEO } from \"react-super-seo\";\n\nconst yesNoList = [\n {\n id: \"true\",\n name: \"Yes\"\n },\n {\n id: \"false\",\n name: \"No\"\n }\n];\n\nconst getSearchText = filters => {\n const {\n lowerRate,\n higherRate,\n lvr,\n establishmentFee,\n principal,\n radius,\n suburbAndState,\n priority,\n scenario,\n securityType,\n settlementDate,\n term,\n brokerStarsFromLender,\n lenderStarsFromBroker,\n valuation,\n credit,\n interest,\n construction,\n subdivision\n } = finderFilterTypes;\n\n const searchParam = mustBeArray(filters).reduce((a, b) => {\n let search = \"\";\n switch (b.type) {\n case lowerRate:\n search = !isNullEmptyOrUndefined(b?.value?.low)\n ? `minLowerRate=${b.value.low}&maxLowerRate=${b.value.high}`\n : \"\";\n break;\n case higherRate:\n search = !isNullEmptyOrUndefined(b?.value?.low)\n ? `minHigherRate=${b.value.low}&maxHigherRate=${b.value.high}`\n : \"\";\n break;\n case lvr:\n search = !isNullEmptyOrUndefined(b?.value?.low)\n ? `minLvr=${b.value.low}&maxLvr=${b.value.high}`\n : \"\";\n break;\n case establishmentFee:\n search = !isNullEmptyOrUndefined(b?.value?.low)\n ? `minEstablishmentFee=${b.value.low}&maxEstablishmentFee=${b.value.high}`\n : \"\";\n break;\n case term:\n search = b?.value?.low\n ? `minTermKey=${b.value.low}&maxTermKey=${b.value.high}`\n : \"\";\n break;\n case priority:\n search = b?.value ? `priorityKey=${b.value}` : \"\";\n break;\n case brokerStarsFromLender:\n search = b?.value ? `brokerStarsFromLender=${b.value}` : \"\";\n break;\n case lenderStarsFromBroker:\n search = b?.value ? `lenderStarsFromBroker=${b.value}` : \"\";\n break;\n case scenario:\n search = b?.value ? `scenarioKey=${b.value}` : \"\";\n break;\n case settlementDate:\n search = b?.value ? `settlementDateKey=${b.value}` : \"\";\n break;\n case securityType:\n if (mustBeArray(b?.value).length === 2) {\n search = `securityTypeKey=${b.value[0]}&securitySubTypeKey=${\n b.value[1]\n }`;\n }\n if (mustBeArray(b?.value).length === 1) {\n search = `securityTypeKey=${b.value[0]}`;\n }\n break;\n case principal:\n search = b?.value?.low\n ? `minPrincipal=${b.value.low}&maxPrincipal=${b.value.high}`\n : \"\";\n break;\n case radius:\n search = b?.value ? `radiusSearchkey=${b.value}` : \"\";\n break;\n case suburbAndState:\n const stateAndSub = b.value?.split(\", \");\n search = stateAndSub?.[0]\n ? `suburb=${stateAndSub?.[0]}&state=${stateAndSub?.[1]}`\n : \"\";\n break;\n case valuation:\n search = b.value ? `valuationRequired=${b.value}` : \"\";\n break;\n case credit:\n search = mustBeArray(b.value).length > 0 ? mustBeArray(b.value).map(x => `credits=${x}&`).join('') : \"\";\n break;\n case interest:\n search = b.value ? `interestKey=${b.value}` : \"\";\n break;\n case construction:\n let constructionParams = new URLSearchParams(\"\");\n if(b.value){\n constructionParams.set(\"constructionScenario.presalesDebtCoverRequired\", b.value.presalesDebtCoverRequired || \"\");\n constructionParams.set(\"constructionScenario.loanAmountPercentageGstEx\", b.value.loanAmountPercentageGstEx || \"\");\n constructionParams.set(\"constructionScenario.qSRequired\", b.value.qsRequired || \"\");\n constructionParams.set(\"constructionScenario.isBuilderDeveloper\", b.value.isBuilderDeveloper || \"\");\n constructionParams.set(\"constructionScenario.isBuildToHold\", b.value.isBuildToHold || \"\");\n constructionParams.set(\"constructionScenario.tdcEquity\", b.value.tdcEquity || \"\");\n constructionParams.set(\"constructionScenario.projectManagerRequired\", b.value.projectManagerRequired || \"\");\n constructionParams.set(\"constructionScenario.contingenciesAllowance\", b.value.contingenciesAllowance || \"\");\n constructionParams.set(\"constructionScenario.developerSuccessfulProjects\", b.value.developerSuccessfulProjects || \"\");\n constructionParams.set(\"constructionScenario.preCommittedCommercialTenants\", b.value.preCommittedCommercialTenants || \"\");\n }\n search = constructionParams.toString();\n break;\n case subdivision:\n let subdivisionParams = new URLSearchParams(\"\");\n if(b.value){\n subdivisionParams.set(\"subdivisionScenario.typeKey\", b.value.typeKey || \"\");\n subdivisionParams.set(\"subdivisionScenario.presalesDebtCoverRequired\", b.value.presalesDebtCoverRequired || \"\");\n subdivisionParams.set(\"subdivisionScenario.loanAmountPercentageGstEx\", b.value.loanAmountPercentageGstEx || \"\");\n subdivisionParams.set(\"subdivisionScenario.qSRequired\", b.value.qsRequired || \"\");\n subdivisionParams.set(\"subdivisionScenario.isBuilderDeveloper\", b.value.isBuilderDeveloper || \"\");\n subdivisionParams.set(\"subdivisionScenario.isBuildToHold\", b.value.isBuildToHold || \"\");\n subdivisionParams.set(\"subdivisionScenario.tdcEquity\", b.value.tdcEquity || \"\");\n subdivisionParams.set(\"subdivisionScenario.projectManagerRequired\", b.value.projectManagerRequired || \"\");\n subdivisionParams.set(\"subdivisionScenario.contingenciesAllowance\", b.value.contingenciesAllowance || \"\");\n subdivisionParams.set(\"subdivisionScenario.developerSuccessfulProjects\", b.value.developerSuccessfulProjects || \"\");\n subdivisionParams.set(\"subdivisionScenario.preCommittedCommercialTenants\", b.value.preCommittedCommercialTenants || \"\");\n }\n search = subdivisionParams.toString();\n break;\n }\n return search ? `${a}${search}&` : a;\n }, \"\");\n return searchParam;\n};\n\nconst FinderUtilityView = ({ generalView }) => {\n const {viewFilter, toggleViewFilter, smallView} = useFilterView();\n const dispatchAction = useDispatch();\n const user = useSelector(state => state?.authorization?.user);\n const signal = axios.CancelToken.source();\n const [list, setList] = useState({\n data: [],\n page: 1,\n loading: false,\n total: 0\n });\n\n const individualUser = useSelector(state => state.authorization && state.authorization.individualUser);\n const [userType, setUserType] = useState(undefined);\n const [isSystemUser, setIsSystemUser] = useState(undefined);\n const [suburbList, setSuburbList] = useState([]);\n const [radiusList, setRadiusList] = useState([]);\n const [priorityList, setPriorityList] = useState([]);\n const [scenarioList, setScenarioList] = useState([]);\n const [securityList, setSecurityList] = useState([]);\n const [settlementList, setSettlementList] = useState([]);\n const [termList, setTermList] = useState([]);\n const [interestList, setInterestList] = useState([]);\n const [filters, setFilters] = useState({\n value: defaultFilters,\n loading: true\n });\n \n const [modalProps, setModalProps] = useState({\n title: \"Lvr\",\n type: \"lvr\",\n visible: false,\n value: { low: undefined, high: undefined }\n });\n\n const getDefaultUserType = async () => {\n if (generalView) {\n return setUserType(BROKER_USER);\n }\n \n const systemUser = await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n \n if(systemUser)\n setIsSystemUser(systemUser);\n\n const savedUserType = localStorage.getItem(FINDER_USER_TYPE);\n\n const lenderUser = await isLenderUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n\n const brokerUser = await isBrokerUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n\n if (savedUserType) {\n return setUserType(savedUserType);\n }\n \n if (systemUser || (lenderUser && brokerUser))\n return setUserType(BROKER_USER);\n\n if (lenderUser) return setUserType(BROKER_USER);\n return setUserType(LENDER_USER);\n \n };\n\n const getTermList = () => {\n dispatchAction(\n finderTermLookups({ cancelToken: signal.token, generalView })\n ).then(resp => {\n const data = mustBeArray(resp);\n setTermList(data);\n });\n };\n\n const getSuburbList = () => {\n dispatchAction(\n finderStatesAndSuburbsLookups({ cancelToken: signal.token, generalView })\n ).then(resp => {\n const data = mustBeArray(resp);\n setSuburbList(data);\n });\n };\n\n const getSecurityList = () => {\n dispatchAction(\n finderSecurityTypesLookups({ cancelToken: signal.token, generalView })\n ).then(resp => {\n const data = mustBeArray(resp);\n setSecurityList(data);\n });\n };\n\n const getPriorityList = () => {\n dispatchAction(\n finderPiorityLookup({ cancelToken: signal.token, generalView })\n ).then(resp => {\n const data = mustBeArray(resp);\n setPriorityList(data);\n });\n };\n\n const getSettlementList = () => {\n dispatchAction(\n finderSettlementDateLookups({ cancelToken: signal.token, generalView })\n ).then(resp => {\n const data = mustBeArray(resp);\n setSettlementList(data);\n });\n };\n\n const getScenarioList = () => {\n dispatchAction(\n finderScenarioLookups({ cancelToken: signal.token, generalView })\n ).then(resp => {\n const data = mustBeArray(resp);\n setScenarioList(data);\n });\n };\n\n const getRadiusList = () => {\n dispatchAction(\n finderRadiusLookups({ cancelToken: signal.token, generalView })\n ).then(resp => {\n const data = mustBeArray(resp);\n setRadiusList(data);\n });\n };\n\n function getInterestList() {\n dispatchAction(\n finderInterestLookups({\n cancelToken: signal.token,\n generalView\n })\n ).then(x => {\n setInterestList(mustBeArray(x));\n });\n }\n\n const checkAuthentication = async() => {\n const authenticated = await authService.isAuthenticated();\n if(authenticated) history.push('/finder-utility')\n }\n\n useEffect(() => {\n checkAuthentication();\n // Lookup arrays are located here to provide in useContext\n // Then they are passed to FilterView component, getItemName() to display labels\n // TODO: Put all lookups into hook then put into context\n getSuburbList();\n getTermList();\n getSecurityList();\n getPriorityList();\n getSettlementList();\n getScenarioList();\n getRadiusList();\n getDefaultUserType();\n getInterestList();\n\n dispatchAction(\n updateHeader({\n header: {\n title: \"\",\n action: \"\",\n page: \"finder-utility\",\n enableBack: false,\n showSettings: generalView ? false : true,\n showMasterSwitch: false,\n showIsProfileActive: false,\n hasSwitchProfile: false,\n editMode: false,\n showNotesButton: generalView ? false : true,\n showOmicronBDM: false,\n omicronBdm: null,\n showPageTitle: false\n }\n })\n );\n setTimeout(() => {\n setFilters({\n value: generalView\n ? defaultFilters\n : parseItem(localStorage.getItem(FINDER_FILTER), defaultFilters),\n loading: false\n });\n }, 500);\n }, []);\n\n useEffect(() => {\n if (list.loading) {\n getData();\n }\n }, [list.loading]);\n\n useEffect(() => {\n if (!filters?.loading) {\n setTimeout(() => {\n setList({ ...list, loading: true, total: 0 });\n }, 200);\n }\n }, [userType, isSystemUser, filters]);\n\n const getData = () => {\n const action =\n userType === LENDER_USER\n ? finderLendersLookups\n : userType === BROKER_USER\n ? finderBrokersLookups\n : null;\n if (action) {\n const search = getSearchText(filters?.value);\n dispatchAction(\n action({\n cancelToken: signal.token,\n search: `page=${list.page}&${search}`,\n generalView,\n isSystemUser\n })\n ).then(resp => {\n if (!_.isEmpty(mustBeArray(resp?.data?.errors))) {\n errorDisplay(resp?.data?.errors);\n setList({ ...list, loading: false, total: 0, data: [] });\n return;\n }\n setList({\n ...list,\n total: resp?.total || 0,\n data: mustBeArray(resp?.rows),\n loading: false\n });\n });\n }\n };\n\n useEffect(() => {\n updateUsersRouteOptions();\n }, [window.location.href]);\n \n const updateUsersRouteOptions = async () => {\n\n let isLender = await isLenderUserPolicy(user.roles, user.permissions, user);\n let isBroker = await isBrokerUserPolicy(user.roles, user.permissions, user);\n let systemUser = await isSystemUserPolicy(user.roles, user.permissions, user);\n let isLawFirm = await isLawFirmUserPolicy(user.roles);\n\n const isOwnProfile =\n (await evaluatePolicy(user, isBrokerOwnProfilePolicy(user.id))) ||\n (await evaluatePolicy(user, isLenderOwnProfilePolicy(user.id))) ||\n (await evaluatePolicy(user, isLawFirmOwnProfilePolicy(user.id)));\n\n const roleType = systemUser\n ? ADMIN_USER\n : isLawFirm\n ? LAW_FIRM_USER\n : user.roles.length == 2\n ? DUAL_USER\n : isLender\n ? LENDER_USER\n : isBroker\n ? BROKER_USER\n : \"\";\n \n let newRouteOptions;\n if(roleType === DUAL_USER){\n newRouteOptions = LENDER_PROFILE_ROUTES_WITH_BROKER_PROFILE_SYSTEM_USER;\n }\n else if(roleType === LENDER_USER){\n newRouteOptions = LENDER_PROFILE_ROUTES_WITHOUT_BROKER_PROFILE_SYSTEM_USER\n }\n else if(roleType === BROKER_USER){\n newRouteOptions = BROKER_PROFILE_ROUTES_WITHOUT_LENDER_PROFILE_SYSTEM_USER\n }\n else if(roleType === LAW_FIRM_USER){\n newRouteOptions = LAWFIRM_PROFILE_ROUTES_SYSTEM_USER;\n }\n else {\n newRouteOptions = DEFAULT_ROUTES_SYSTEM_USER;\n }\n\n newRouteOptions = [...newRouteOptions].map(o => {\n o.name = o.id == 9 ? individualUser.companyName : o.name;\n return o;\n });\n\n const menuOptions = isOwnProfile\n ? [...EMAIL_SUBSCRIPTIONS_OPTION_LENDER_USER, ...PROFILE_EDIT_OPTION]\n : [];\n \n dispatchAction(\n await updateRouteOptions({\n routeOptions: _.concat(newRouteOptions, menuOptions)\n })\n );\n }\n \n const handleModalClose = () => {\n setModalProps({ ...modalProps, visible: false });\n };\n\n const handleSearch = value => {\n const tempFilters = [...filters?.value].reduce((a, b) => {\n return [...a, modalProps.type === b.type ? { ...b, value } : b];\n }, []);\n setFilters({ value: tempFilters, loading: false });\n updateStoredFilters(tempFilters);\n handleModalClose();\n };\n\n const updateStoredFilters = newValue => {\n if (!generalView) {\n localStorage.setItem(FINDER_FILTER, JSON.stringify(newValue));\n }\n };\n\n const handleClearAll = () => {\n setFilters({ value: defaultFilters, loading: false });\n updateStoredFilters(defaultFilters);\n };\n\n const displayFilter = data => {\n setModalProps({ ...data, visible: true });\n };\n\n const handleDelete = ({ type, defaultValue, index }) => {\n let tempFilter = [...filters?.value].reduce((a, b) => {\n if (isNullEmptyOrUndefined(index))\n return [...a, b.type === type ? { ...b, value: defaultValue } : b];\n if (b.type === type) {\n let currentValue = filters?.value.find(o => o.type === type)?.value;\n return [...a, { ...b, value: index === 0 ? [] : [currentValue[0]] }];\n }\n return [...a, b];\n }, []);\n setFilters({ value: tempFilter, loading: false });\n updateStoredFilters(tempFilter);\n };\n\n const handleUserTypeChange = value => {\n setUserType(value);\n setList({ ...list, page: 1, total: 0 });\n if (!generalView) {\n localStorage.setItem(FINDER_USER_TYPE, value ? value : \"\");\n }\n };\n\n const handlePageChange = page => {\n setList({ ...list, page, loading: true, total: 0 });\n };\n const handleViewDetails = id => {\n const search = getSearchText(filters?.value);\n const url = generalView ?\n `/general/${userType}s/${id}?searchMatch=true&${search}` \n : `/users/${id}/${ userType === LENDER_USER ? \"lender\" : \"broker\"}?searchMatch=true&${search}`;\n window.open(url, '__blank');\n };\n\n const selectedSubAndState = useMemo(\n () =>\n mustBeArray(filters?.value).find(\n o => o.type === finderFilterTypes.suburbAndState\n )?.value,\n [filters?.value]\n );\n\n return (\n \n \n {!smallView && }\n
\n {\n (!smallView || viewFilter) &&\n
\n \n Clear All\n
\n \n
\n }\n \n
\n
\n {\n smallView &&\n \n }\n {!generalView &&\n <>\n
\n \n
\n
\n \n }\n
\n {\n smallView &&\n \n }\n\n {list.loading ? (\n \n ) : isEmpty(mustBeArray(list.data)) ? (\n
{`There are no ${\n userType === LENDER_USER ? \"lenders\" : \"brokers\"\n } matching your search criteria.`}
\n ) : (\n mustBeArray(list.data).map(user => {\n return smallView ? : ;\n })\n )}\n \n
\n {/* */}\n
\n\n \n \n );\n};\n\nexport default FinderUtilityView;\n","import { Card, Form, Radio } from \"antd\";\nimport React from \"react\";\n\nconst DayActivity = ({\n getFieldDecorator\n}) => {\n return (\n \n
90 Day Activity
\n \n {getFieldDecorator(\"ninetyDayActivityShowName\")(\n \n Visible\n Private\n \n )}\n \n
\n );\n};\nexport default DayActivity;\n","import { Card, Form, Radio } from \"antd\";\nimport React from \"react\";\n\nconst FinderFunction = ({\n getFieldDecorator\n}) => {\n return (\n \n
Finder Function
\n \n {getFieldDecorator(\"finderFunctionOptIn\")(\n \n Visible\n Private\n \n )}\n \n
\n );\n};\nexport default FinderFunction;\n","import { Card, Form, Radio } from \"antd\";\nimport React from \"react\";\n\nconst FundsAvailableEmail = ({\n getFieldDecorator\n}) => {\n return (\n \n
Funds Available Email
\n \n {getFieldDecorator(\"fundsAvailableShowCurrentLoanBook\")(\n \n Visible\n Private\n \n )}\n \n \n {getFieldDecorator(\"fundsAvailableShowDischargedLoanBook\")(\n \n Visible\n Private\n \n )}\n \n \n {getFieldDecorator(\"fundsAvailableShowSuburbs\")(\n \n Visible\n Private\n \n )}\n \n
\n );\n};\nexport default FundsAvailableEmail;\n","import { Card, Form, Radio } from \"antd\";\nimport React from \"react\";\n\nconst LoanTab = ({\n getFieldDecorator\n}) => {\n return (\n \n
Loan Tab
\n \n {getFieldDecorator(\"loanTabShowCurrentLoanBook\")(\n \n Visible\n Private\n \n )}\n \n \n {getFieldDecorator(\"loanTabShowDischargedLoanBook\")(\n \n Visible\n Private\n \n )}\n \n
\n );\n};\nexport default LoanTab;\n","import { Col, Form, Button, message } from \"antd\";\nimport React, { useCallback, useEffect, useState } from \"react\";\nimport axios from \"axios\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport _ from \"lodash\";\nimport { updateHeader } from \"../../actions/member\";\nimport {\n DayActivity,\n FinderFunction,\n FundsAvailableEmail,\n LoanTab,\n} from \"../../components/PrivacySettings\";\nimport { Row } from \"antd/es/grid\";\nimport AwesomeDebouncePromise from \"awesome-debounce-promise\";\nimport Loading from \"../../components/loading\";\nimport { isLenderUserPolicy } from \"../../Common/Authorization/policies/isLenderUserPolicy\";\nimport { isSystemUserPolicy } from \"../../Common/Authorization/policies/isSystemUserPolicy\";\nimport authService from \"../../actions/AuthorizeService\";\nimport {\n ADMIN_USER,\n DUAL_USER,\n LENDER_USER\n} from \"../../constants/systemUsers\";\nimport { getLenderProfile } from \"../../actions/profile\";\nimport { getLendersPrivacySettings, updateLendersPrivacySettings } from \"../../actions/privacySettings\";\nimport history from \"../../routes/history\";\n\nconst PrivacySettingsView = props => {\n const dispatchAction = useDispatch();\n const [pageLoading, setPageLoading] = useState(true);\n const [processing, setProcessing] = useState(false);\n const lender = useSelector(state => state?.profile?.lender);\n const user = useSelector(state => state?.authorization?.user);\n const signal = axios.CancelToken.source();\n const { match, form } = props;\n const { getFieldDecorator } = form;\n const [defaultValuesUpdated, setDefaultValuesUpdated] = useState(false);\n\n useEffect(() => {\n dispatchAction(\n updateHeader({\n header: {\n title: \"\",\n action: \"\",\n page: \"privacySettings\",\n enableBack: false,\n showSettings: false,\n showMasterSwitch: false,\n showIsProfileActive: false,\n hasSwitchProfile: false,\n editMode: false,\n showNotesButton: true,\n showOmicronBDM: false,\n omicronBdm: null,\n showPageTitle: false\n }\n })\n );\n }, []);\n\n useEffect(() => {\n getUserData();\n getCurrentPrivacyDate();\n }, []);\n\n const getCurrentPrivacyDate = () => {\n const id = match?.params?.id;\n dispatchAction(\n getLendersPrivacySettings({ cancelToken: signal.token, id })\n ).then(resp => {\n setPageLoading(false);\n if (resp) {\n const {\n finderFunctionOptIn,\n fundsAvailableShowCurrentLoanBook,\n fundsAvailableShowDischargedLoanBook,\n fundsAvailableShowSuburbs,\n loanTabShowCurrentLoanBook,\n loanTabShowDischargedLoanBook,\n ninetyDayActivityShowName\n } = resp;\n props.form.setFieldsValue({\n finderFunctionOptIn,\n fundsAvailableShowCurrentLoanBook,\n fundsAvailableShowDischargedLoanBook,\n fundsAvailableShowSuburbs,\n loanTabShowCurrentLoanBook,\n loanTabShowDischargedLoanBook,\n ninetyDayActivityShowName\n });\n setTimeout(() => {\n setDefaultValuesUpdated(true);\n }, 300);\n }\n });\n };\n\n const getUserData = async () => {\n const id = match?.params?.id;\n var isLender = await isLenderUserPolicy(user.roles, user.permissions, user);\n var systemUser = await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n let userDetails = await authService.getUser();\n let usersLenderId = userDetails[\"app.user.lenderid\"];\n var roleType = systemUser\n ? ADMIN_USER\n : user.roles?.length == 2\n ? DUAL_USER\n : isLender\n ? LENDER_USER\n : \"\";\n\n dispatchAction(\n getLenderProfile({\n id,\n userType: roleType,\n notClearProfileImage: true,\n isUserViewingSelfProfile: usersLenderId === id\n })\n ) \n };\n\n const handleSave = () => {\n setProcessing(true);\n const {form} = props;\n const payload = {\n finderFunctionOptIn: form.getFieldValue(\"finderFunctionOptIn\"), \n fundsAvailableShowCurrentLoanBook: form.getFieldValue(\"fundsAvailableShowCurrentLoanBook\"), \n fundsAvailableShowDischargedLoanBook: form.getFieldValue(\"fundsAvailableShowDischargedLoanBook\"), \n fundsAvailableShowSuburbs: form.getFieldValue(\"fundsAvailableShowSuburbs\"), \n loanTabShowCurrentLoanBook: form.getFieldValue(\"loanTabShowCurrentLoanBook\"), \n loanTabShowDischargedLoanBook: form.getFieldValue(\"loanTabShowDischargedLoanBook\"), \n ninetyDayActivityShowName: form.getFieldValue(\"ninetyDayActivityShowName\")\n }\n\n dispatchAction(updateLendersPrivacySettings({cancelToken: signal.token, id: match?.params?.id, payload}))\n .then(resp => {\n history.push(`/users/${lender.id}/lender`)\n setProcessing(false);\n });\n \n\n };\n\n useEffect(() => {\n if (props?.form?.getFieldValue(\"autoAddNewBrokers\") === \"true\") {\n props.form.setFieldsValue({\n addAfter: null,\n loansDone: null\n });\n }\n }, [props?.form?.getFieldValue(\"autoAddNewBrokers\")]);\n\n useEffect(() => {\n if (props?.form?.getFieldValue(\"addAfter\") === \"true\") {\n props.form.setFieldsValue({\n autoAddNewBrokers: null\n });\n }\n }, [props?.form?.getFieldValue(\"addAfter\")]);\n\n const defaultLabelColSpan = { span: 10 };\n const defaultValueColSpan = { span: 14 };\n return (\n \n {pageLoading ? (\n \n ) : (\n <>\n
\n \n Lender Profile Privacy Settings\n {lender?.companyName}\n \n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n handleSave()}\n >\n Save\n \n history.push(`/users/${lender.id}/lender`)}\n >\n Cancel\n \n
\n \n
\n \n )}\n \n );\n};\n\nexport default Form.create({ name: \"Profile Settings\" })(PrivacySettingsView);\n","import { http } from \"../libs/http\";\nimport ResponseHandler from \"../libs/response\";\nimport APIHandler, { apiUrls } from \"../constants/apiUrl\";\n\nexport const getLendersPrivacySettings = ({ cancelToken, id }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.GET_LENDER_PRIVACY_SETTINGS,\n options: {id}\n });\n const response = await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n };\n\n export const updateLendersPrivacySettings = ({ cancelToken, id, payload }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.GET_LENDER_PRIVACY_SETTINGS,\n options: {id}\n });\n const response = await http.put(url, payload, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n };\n ","import { Card, Form, Radio } from \"antd\";\nimport React from \"react\";\n\nconst SyndicateFunders = ({\n getFieldDecorator,\n canEdit\n}) => {\n return (\n \n
Syndicate Funders
\n \n {getFieldDecorator(\"syndicateFundersFirstRanking\")(\n \n Subscribed\n Unsubscribed\n \n )}\n \n \n {getFieldDecorator(\"syndicateFundersSecondRanking\")(\n \n Subscribed\n Unsubscribed\n \n )}\n \n \n {getFieldDecorator(\"syndicateFundersConstruction\")(\n \n Subscribed\n Unsubscribed\n \n )}\n \n \n {getFieldDecorator(\"syndicateFundersMezzanine\")(\n \n Subscribed\n Unsubscribed\n \n )}\n \n \n {getFieldDecorator(\"syndicateFundersLandBank\")(\n \n Subscribed\n Unsubscribed\n \n )}\n \n \n {getFieldDecorator(\"syndicateFundersRural\")(\n \n Subscribed\n Unsubscribed\n \n )}\n \n
\n );\n};\nexport default SyndicateFunders;\n","import { Card, Form, Radio } from \"antd\";\nimport React from \"react\";\n\nconst BrokerSubscriptions = ({\n getFieldDecorator,\n canEdit\n}) => {\n return (\n \n
What you will receive as a Broker
\n \n {getFieldDecorator(\"brokerFirstRanking\")(\n \n Subscribed\n Unsubscribed\n \n )}\n \n \n {getFieldDecorator(\"brokerSecondRanking\")(\n \n Subscribed\n Unsubscribed\n \n )}\n \n \n {getFieldDecorator(\"brokerConstruction\")(\n \n Subscribed\n Unsubscribed\n \n )}\n \n \n {getFieldDecorator(\"brokerMezzanine\")(\n \n Subscribed\n Unsubscribed\n \n )}\n \n \n {getFieldDecorator(\"brokerLandBank\")(\n \n Subscribed\n Unsubscribed\n \n )}\n \n \n {getFieldDecorator(\"brokerRural\")(\n \n Subscribed\n Unsubscribed\n \n )}\n \n
\n );\n};\nexport default BrokerSubscriptions;\n","import { Card, Form, Radio } from \"antd\";\nimport React from \"react\";\n\nconst LenderSubscriptions = ({\n getFieldDecorator,\n verifiedLenderCategories,\n canEdit\n}) => {\n return (\n \n
What you will receive as a Lender
\n \n {getFieldDecorator(\"lenderFirstRanking\")(\n x === \"FirstRanking\") || !canEdit}>\n Subscribed\n Unsubscribed\n \n )}\n \n \n {getFieldDecorator(\"lenderSecondRanking\")(\n x === \"SecondRanking\") || !canEdit}>\n Subscribed\n Unsubscribed\n \n )}\n \n \n {getFieldDecorator(\"lenderConstruction\")(\n x === \"Construction\") || !canEdit}>\n Subscribed\n Unsubscribed\n \n )}\n \n \n {getFieldDecorator(\"lenderMezzanine\")(\n x === \"Mezzanine\") || !canEdit}>\n Subscribed\n Unsubscribed\n \n )}\n \n \n {getFieldDecorator(\"lenderLandBank\")(\n x === \"LandBank\") || !canEdit}>\n Subscribed\n Unsubscribed\n \n )}\n \n \n {getFieldDecorator(\"lenderRural\")(\n x === \"Rural\") || !canEdit}>\n Subscribed\n Unsubscribed\n \n )}\n \n
\n );\n};\nexport default LenderSubscriptions;\n","import { Card, Form, Radio } from \"antd\";\nimport React from \"react\";\n\nconst NinetyDaysActivity = ({\n getFieldDecorator,\n canEdit\n}) => {\n return (\n \n
90 Days Activity
\n {getFieldDecorator(\"ninetyDaysActivity\")(\n \n Subscribed\n Unsubscribed\n \n )}\n
\n );\n};\nexport default NinetyDaysActivity;\n","import { http } from \"../libs/http\";\nimport ResponseHandler from \"../libs/response\";\nimport APIHandler, { apiUrls } from \"../constants/apiUrl\";\nimport { LAW_FIRM_USER, LENDER_USER } from \"../constants/systemUsers\";\n\n/**\n * \n * @param {{\n * cancelToken: any,\n * id: string | number,\n * userType: string\n * }} param0 \n * @returns \n */\nexport const getEmailSubscriptions = ({ cancelToken, id, userType = LENDER_USER }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: userType === LAW_FIRM_USER ? apiUrls.GET_LAWFIRM_EMAIL_SUBSCRIPTIONS : apiUrls.GET_INDIVIDUAL_EMAIL_SUBSCRIPTIONS,\n options: {id}\n });\n const response = await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n };\n\n export const updateEmailSubscriptions = ({ cancelToken, id, payload, userType = LENDER_USER }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: userType === LAW_FIRM_USER ? apiUrls.GET_LAWFIRM_EMAIL_SUBSCRIPTIONS : apiUrls.GET_INDIVIDUAL_EMAIL_SUBSCRIPTIONS,\n options: {id}\n });\n const response = await http.put(url, payload, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n }\n };\n\n/**\n * \n * @param {{\n* cancelToken: any,\n* token: string,\n* }} param0 \n* @returns \n*/\nexport const getEmailPreferences = async ({ cancelToken, token}) => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.EMAIL_PREFERENCES_URL,\n options: { token }\n });\n const response = await http.get(url, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n};\n\nexport const updateEmailPreferences = async ({ cancelToken, token, payload }) => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.EMAIL_PREFERENCES_URL,\n options: {token}\n });\n const response = await http.put(url, payload, cancelToken);\n if (ResponseHandler.isValidStatus(response)) {\n return ( \n response.data && response.data.result\n ? response.data.result\n : response.data\n );\n } else {\n return ResponseHandler.inValidObject(response);\n } \n};","import { Card, Form, Radio } from \"antd\";\nimport React from \"react\";\n\nconst MarketingEmails = ({\n getFieldDecorator,\n canEdit\n}) => {\n return (\n \n
Marketing Emails
\n {getFieldDecorator(\"marketingEmails\")(\n \n Subscribed\n Unsubscribed\n \n )}\n
\n );\n};\nexport default MarketingEmails;\n","import React, { useEffect, useState } from \"react\";\nimport {\n ADMIN_USER,\n BROKER_USER,\n DUAL_USER,\n LAW_FIRM_USER,\n LENDER_USER,\n SYSTEM_ADMIN_USER\n} from \"../../constants/systemUsers\";\nimport useCheckUserRoles from \"./useCheckUserRoles\";\n\ntype Role = \"admin\" | \"lender\" | \"broker\" | \"dual\" | \"lawFirm\" | \"systemAdmin\"; // update with constants/systemUsers\n\n/**\n * Hook function to check user's roles if any listed is applicable\n *\n * Use constants from src/constants/systemUsers\n * @returns\n */\nfunction useUserHasRoles() {\n const {\n isSystemAdmin,\n isBrokerUser,\n isDualUser,\n isLawFirmUser,\n isLenderUser\n } = useCheckUserRoles();\n\n function userHasRole(rolesToAllow: Role[]){\n let allowed = false;\n rolesToAllow.forEach(role => {\n if (role === LAW_FIRM_USER && isLawFirmUser) {\n allowed = true;\n }\n if (role === LENDER_USER && isLenderUser) {\n allowed = true;\n }\n if (role === BROKER_USER && isBrokerUser) {\n allowed = true;\n }\n if (role === DUAL_USER && isDualUser) {\n allowed = true;\n }\n if (\n (role === ADMIN_USER || role === SYSTEM_ADMIN_USER) &&\n isSystemAdmin\n ) {\n allowed = true;\n }\n });\n return allowed;\n }\n return userHasRole;\n}\n\nexport default useUserHasRoles;\n","import { Col, Form, Button, message } from \"antd\";\nimport React, { useCallback, useEffect, useState } from \"react\";\nimport axios from \"axios\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport _ from \"lodash\";\nimport { updateHeader } from \"../../actions/member\";\nimport SyndicateFunders from \"../../components/EmailSubscriptions/syndicateFunders\";\nimport brokerSubscriptions from \"../../components/EmailSubscriptions/brokerSubscriptions\";\nimport LenderSubscriptions from \"../../components/EmailSubscriptions/lenderSubscriptions\";\nimport NinetyDaysActivity from \"../../components/EmailSubscriptions/ninetyDaysActivity\";\nimport { Row } from \"antd/es/grid\";\nimport AwesomeDebouncePromise from \"awesome-debounce-promise\";\nimport Loading from \"../../components/loading\";\nimport { isLenderUserPolicy } from \"../../Common/Authorization/policies/isLenderUserPolicy\";\nimport { isSystemUserPolicy } from \"../../Common/Authorization/policies/isSystemUserPolicy\";\nimport authService from \"../../actions/AuthorizeService\";\nimport {\n errorDisplay,\n} from \"../../libs/utilities\";\nimport {\n ADMIN_USER,\n BROKER_USER,\n DUAL_USER,\n LAW_FIRM_USER,\n LENDER_USER,\n SYSTEM_ADMIN_USER\n} from \"../../constants/systemUsers\";\nimport { getIndividualDetails, getLawFirmProfile } from \"../../actions/profile\";\nimport { getEmailSubscriptions, updateEmailSubscriptions } from \"../../actions/emailSubscriptions\";\nimport history from \"../../routes/history\";\nimport BrokerSubscriptions from \"../../components/EmailSubscriptions/brokerSubscriptions\";\nimport MarketingEmails from \"../../components/EmailSubscriptions/marketingEmails\";\nimport useUserHasRoles from \"../../Common/Hooks/useUserHasRole\";\nimport useCheckUserRoles from \"../../Common/Hooks/useCheckUserRoles\";\n\nconst EmailSubscriptionsView = props => {\n const dispatchAction = useDispatch();\n const [pageLoading, setPageLoading] = useState(true);\n const [processing, setProcessing] = useState(false);\n const lender = useSelector(state => state?.profile?.lender);\n const lawFirm = useSelector(state => state?.profile?.lawFirm);\n const user = useSelector(state => state?.authorization?.user);\n const [redirectionUrl, setRedirectionUrl] = useState(\"/\");\n const [individual, setIndividual] = useState({});\n const [verifiedLenderCategories, setVerifiedLenderCategories] = useState([]);\n const [canEditLenderSubscriptions, setCanEditLenderSubscriptions] = useState(true);\n const [canEditBrokerSubscriptions, setCanEditBrokerSubscriptions] = useState(true);\n const [isMasterSwitchOn, setIsMasterSwitchOn] = useState(false);\n const signal = axios.CancelToken.source();\n const { match, form, profileType } = props;\n const { getFieldDecorator } = form;\n const [defaultValuesUpdated, setDefaultValuesUpdated] = useState(false);\n\n\n const userHasRoles = useUserHasRoles();\n const {\n isLawFirmUser,\n checkIfUserIsLawfirm,\n checkIfUserIsSystemAdmin\n } = useCheckUserRoles();\n\n async function updateHeaderView(){\n const isLawFirm = await checkIfUserIsLawfirm();\n dispatchAction(\n updateHeader({\n header: {\n title: \"\",\n action: \"\",\n page: \"privacySettings\",\n enableBack: false,\n showSettings: false,\n showMasterSwitch: false,\n showIsProfileActive: false,\n hasSwitchProfile: false,\n editMode: false,\n showNotesButton: !isLawFirm,\n showOmicronBDM: false,\n omicronBdm: null,\n showPageTitle: false,\n showSearchBox: !isLawFirm\n }\n })\n );\n }\n\n useEffect(() => {\n updateHeaderView();\n }, []);\n\n useEffect(() => {\n getUserData();\n getUserEmailSubscriptions();\n }, []);\n\n const getUserEmailSubscriptions = () => {\n const id = match?.params?.id;\n dispatchAction(\n getEmailSubscriptions({ cancelToken: signal.token, id, userType: profileType || LENDER_USER })\n ).then(resp => {\n setPageLoading(false);\n if (resp) {\n setIsMasterSwitchOn(resp.isMasterSwitchOn);\n setCanEditBrokerSubscriptions(resp.canEditBrokerSubscriptions);\n setCanEditLenderSubscriptions(resp.canEditLenderSubscriptions);\n setVerifiedLenderCategories(resp.verifiedLenderCategories);\n const {\n syndicateFundersConstruction,\n syndicateFundersFirstRanking,\n syndicateFundersLandBank,\n syndicateFundersMezzanine,\n syndicateFundersRural,\n syndicateFundersSecondRanking,\n lenderConstruction,\n lenderFirstRanking,\n lenderLandBank,\n lenderMezzanine,\n lenderRural,\n lenderSecondRanking,\n brokerConstruction,\n brokerFirstRanking,\n brokerLandBank,\n brokerMezzanine,\n brokerRural,\n brokerSecondRanking,\n ninetyDaysActivity,\n marketingEmails\n } = resp;\n props.form.setFieldsValue({\n syndicateFundersConstruction,\n syndicateFundersFirstRanking,\n syndicateFundersLandBank,\n syndicateFundersMezzanine,\n syndicateFundersRural,\n syndicateFundersSecondRanking,\n lenderConstruction,\n lenderFirstRanking,\n lenderLandBank,\n lenderMezzanine,\n lenderRural,\n lenderSecondRanking,\n brokerConstruction,\n brokerFirstRanking,\n brokerLandBank,\n brokerMezzanine,\n brokerRural,\n brokerSecondRanking,\n ninetyDaysActivity,\n marketingEmails\n });\n setTimeout(() => {\n setDefaultValuesUpdated(true);\n }, 300);\n }\n });\n };\n\n const getUserData = async () => {\n const id = match?.params?.id;\n const lawfirmUser = await checkIfUserIsLawfirm();\n const systemUser = await checkIfUserIsSystemAdmin();\n\n if(profileType === LAW_FIRM_USER){\n setPageLoading(false);\n const indiv = lawFirm.portraits.find(x => x.individualId === Number(id || \"0\"));\n setIndividual(indiv);\n setRedirectionUrl(`/users/${lawFirm.id}/lawfirm`);\n\n }\n else {\n dispatchAction(\n getIndividualDetails({ id })\n ).then(resp => {\n setPageLoading(false);\n if (resp) {\n setIndividual(resp.data);\n let individualDetails = resp.data;\n if(individualDetails.lenderId != null){\n setRedirectionUrl(`/users/${individualDetails.lenderId}/lender`);\n }\n else if(individualDetails.brokerId != null){\n setRedirectionUrl(`/users/${individualDetails.brokerId}/broker`);\n }\n }\n });\n }\n };\n\n const handleSave = () => {\n setProcessing(true);\n const {form} = props;\n const payload = {\n syndicateFundersConstruction: form.getFieldValue(\"syndicateFundersConstruction\"), \n syndicateFundersFirstRanking: form.getFieldValue(\"syndicateFundersFirstRanking\"), \n syndicateFundersLandBank: form.getFieldValue(\"syndicateFundersLandBank\"), \n syndicateFundersMezzanine: form.getFieldValue(\"syndicateFundersMezzanine\"), \n syndicateFundersRural: form.getFieldValue(\"syndicateFundersRural\"), \n syndicateFundersSecondRanking: form.getFieldValue(\"syndicateFundersSecondRanking\"),\n lenderConstruction: form.getFieldValue(\"lenderConstruction\"), \n lenderFirstRanking: form.getFieldValue(\"lenderFirstRanking\"), \n lenderLandBank: form.getFieldValue(\"lenderLandBank\"), \n lenderMezzanine: form.getFieldValue(\"lenderMezzanine\"), \n lenderRural: form.getFieldValue(\"lenderRural\"), \n lenderSecondRanking: form.getFieldValue(\"lenderSecondRanking\"),\n brokerConstruction: form.getFieldValue(\"brokerConstruction\"), \n brokerFirstRanking: form.getFieldValue(\"brokerFirstRanking\"), \n brokerLandBank: form.getFieldValue(\"brokerLandBank\"), \n brokerMezzanine: form.getFieldValue(\"brokerMezzanine\"), \n brokerRural: form.getFieldValue(\"brokerRural\"), \n brokerSecondRanking: form.getFieldValue(\"brokerSecondRanking\"),\n ninetyDaysActivity: form.getFieldValue(\"ninetyDaysActivity\"),\n marketingEmails: form.getFieldValue(\"marketingEmails\")\n \n }\n\n dispatchAction(updateEmailSubscriptions ({cancelToken: signal.token, id: match?.params?.id, payload, userType: profileType }))\n .then(resp => {\n if(resp && resp.data && resp.data.errors){\n errorDisplay(resp.data.errors);\n setProcessing(false);\n }\n else{\n history.push(redirectionUrl)\n setProcessing(false);\n }\n });\n \n\n };\n\n useEffect(() => {\n if (props?.form?.getFieldValue(\"autoAddNewBrokers\") === \"true\") {\n props.form.setFieldsValue({\n addAfter: null,\n loansDone: null\n });\n }\n }, [props?.form?.getFieldValue(\"autoAddNewBrokers\")]);\n\n useEffect(() => {\n if (props?.form?.getFieldValue(\"addAfter\") === \"true\") {\n props.form.setFieldsValue({\n autoAddNewBrokers: null\n });\n }\n }, [props?.form?.getFieldValue(\"addAfter\")]);\n\n const defaultLabelColSpan = { span: 7 };\n const defaultValueColSpan = { span: 17 };\n return (\n \n {pageLoading ? (\n \n ) : (\n <>\n
\n Email Subscriptions for {` ${individual?.firstName || individual.firstname || \"\"} ${individual?.lastName || individual.lastname || \"\"}`}\n
\n \n \n {userHasRoles([SYSTEM_ADMIN_USER, BROKER_USER, LENDER_USER, DUAL_USER]) && profileType !== LAW_FIRM_USER && }\n {userHasRoles([SYSTEM_ADMIN_USER, BROKER_USER, LENDER_USER, DUAL_USER, LAW_FIRM_USER]) && }\n \n {userHasRoles([SYSTEM_ADMIN_USER, BROKER_USER, LENDER_USER, DUAL_USER]) && \n \n }\n {userHasRoles([SYSTEM_ADMIN_USER, BROKER_USER, LENDER_USER, DUAL_USER]) && \n \n }\n {userHasRoles([SYSTEM_ADMIN_USER, BROKER_USER, LENDER_USER, DUAL_USER]) && profileType !== LAW_FIRM_USER && \n \n }\n \n \n \n
\n handleSave()}\n >\n Save\n \n history.push(redirectionUrl)}\n >\n Cancel\n \n
\n \n
\n \n )}\n \n );\n};\n\nexport default Form.create({ name: \"Email Subscriptions\" })(EmailSubscriptionsView);\n","import { Select } from \"antd\";\nimport React, { useCallback, useContext, useEffect, useState } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport axios from \"axios\";\nimport { mustBeArray } from \"../../../libs\";\nimport { debounce } from \"lodash\";\nimport { loansStatesAndSuburbsLookups } from \"../../../actions/lookup\";\nimport Loading from \"../../loading\";\n\nconst SuburbAndStateLookup = ({ value, handleFieldChange }) => {\n const dispatchAction = useDispatch();\n const signal = axios.CancelToken.source();\n const [suburbList, setSuburbList] = useState([]);\n const [loading, setLoading] = useState(false);\n\n const updateList = currentList => {\n const listIncludesState = currentList.find(o => o.name === value);\n if (value && !listIncludesState) {\n const SuburbAndState = value.split(\", \");\n setSuburbList([\n ...currentList,\n { name: value, suburb: SuburbAndState[0], state: SuburbAndState[1] }\n ]);\n return;\n }\n setSuburbList(currentList);\n };\n\n const handleSearch = (e = \"\") => {\n setLoading(true);\n dispatchAction(\n loansStatesAndSuburbsLookups({ cancelToken: signal.token, search: e })\n ).then(resp => {\n updateList(mustBeArray(resp));\n setLoading(false);\n });\n };\n const debouncedSearch = useCallback(debounce(handleSearch, 300));\n\n useEffect(() => {\n handleSearch();\n }, []);\n\n return loading ? (\n
\n \n
\n ) : (\n {\n const res = value === \"all\" ? [\"\", \"\"] : value.split(\", \");\n handleFieldChange({ field: \"suburb\", value: res[0] || \"\" });\n handleFieldChange({ field: \"state\", value: res[1] || \"\" });\n }}\n allowClear={false}\n onSearch={debouncedSearch}\n showSearch\n filterOption={false}\n >\n All\n {suburbList.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n );\n};\n\nexport default SuburbAndStateLookup;\n","import { Select } from \"antd\";\nimport React, { useContext, useMemo, useState, useEffect } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport { loansSecurityTypesLookups } from \"../../../actions/lookup\";\nimport axios from \"axios\";\nimport { mustBeArray } from \"../../../libs\";\nimport Loading from \"../../loading\";\n\nconst SecurityTypeLookup = ({ value, handleFieldChange, subValue }) => {\n const [securityList, setSecurityList] = useState([]);\n const dispatchAction = useDispatch();\n const signal = axios.CancelToken.source();\n const [loading, setLoading] = useState(false);\n\n useEffect(() => {\n setLoading(true);\n dispatchAction(\n loansSecurityTypesLookups({ cancelToken: signal.token })\n ).then(resp => {\n setSecurityList(mustBeArray(resp));\n setLoading(false);\n });\n }, []);\n\n const subTypeList = useMemo(() => {\n const selectedType = value;\n if (selectedType) {\n return securityList.find(o => o.id === selectedType)?.securitySubTypes;\n }\n return [];\n }, [value, securityList]);\n\n const handleChange = e => {\n handleFieldChange({ field: \"securityTypeKey\", value: value });\n handleFieldChange({ field: \"securitySubTypeKey\", value: e });\n };\n\n return (\n
\n
\n
Type:
\n {loading ? (\n
\n \n
\n ) : (\n {\n handleFieldChange({\n field: \"securityTypeKey\",\n value: value || \"\"\n });\n handleFieldChange({ field: \"securitySubTypeKey\", value: \"\" });\n }}\n allowClear\n filterOption={false}\n >\n All\n {mustBeArray(securityList).map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n )}\n
\n {loading ? (\n
\n \n
\n ) : (\n value && (\n
\n
Subtype:
\n \n {mustBeArray(subTypeList).map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n )\n )}\n
\n );\n};\n\nexport default SecurityTypeLookup;\n","import { Select } from \"antd\";\nimport React, { useContext, useEffect, useState } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport Axios from \"axios\";\nimport { mustBeArray } from \"../../../libs\";\nimport { loansPiorityLookup } from \"../../../actions/lookup\";\nimport Loading from \"../../loading\";\n\nconst PriorityLookup = ({ value, handleFieldChange }) => {\n const dispatch = useDispatch();\n const signal = Axios.CancelToken.source();\n\n const [priorityList, setPriorityList] = useState([]);\n const [loading, setLoading] = useState(false);\n\n const getPriorityList = () => {\n setLoading(true);\n dispatch(loansPiorityLookup({ cancelToken: signal.token })).then(resp => {\n const data = mustBeArray(resp);\n setPriorityList(data);\n setLoading(false);\n });\n };\n\n useEffect(() => {\n getPriorityList();\n }, []);\n\n return loading ? (\n
\n \n
\n ) : (\n handleFieldChange({ field: \"priorityKey\", value })}\n allowClear\n filterOption={false}\n >\n All\n {priorityList.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n );\n};\n\nexport default PriorityLookup;\n","import { Select } from \"antd\";\nimport React from \"react\";\nimport { FinderFilterFieldChangeHandlerParams } from \"../../../libs/types\";\n\ntype ValuationProps = {\n handleFieldChange: (\n params: FinderFilterFieldChangeHandlerParams\n ) => void;\n value: string;\n};\n\nconst yesNoList = [\n {\n id: \"true\",\n name: \"Yes\"\n },\n {\n id: \"false\",\n name: \"No\"\n }\n];\n\nexport default function Valuation({\n value,\n handleFieldChange\n}: ValuationProps) {\n return (\n
\n \n handleFieldChange({ field: \"valuationRequired\", value: v })\n }\n allowClear\n >\n All\n {yesNoList.map((data: { id: string; name: string }) => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n );\n}\n","import { Select } from \"antd\";\nimport React, { useEffect, useState } from \"react\";\nimport {\n FinderFilterFieldChangeHandlerParams,\n ILookupItem\n} from \"../../../libs/types\";\nimport { useDispatch } from \"react-redux\";\nimport Axios from \"axios\";\nimport { loansInterestLookups } from \"../../../actions/lookup\";\nimport { mustBeArray } from \"../../../libs\";\nimport Loading from \"../../loading\";\n\ninterface InterestProps {\n value: string;\n handleFieldChange: (\n params: FinderFilterFieldChangeHandlerParams\n ) => void;\n}\n\nexport const Interest = ({ value, handleFieldChange }: InterestProps) => {\n const dispatch = useDispatch();\n const signal = Axios.CancelToken.source();\n\n const [options, setOptions] = useState([]);\n const [loading, setLoading] = useState(false);\n\n async function getLookup() {\n setLoading(true);\n dispatch(\n loansInterestLookups({\n cancelToken: signal.token\n })\n ).then(x => {\n setOptions(mustBeArray(x));\n setLoading(false);\n });\n }\n\n useEffect(() => {\n getLookup();\n }, []);\n\n return loading ? (\n
\n \n
\n ) : (\n \n handleFieldChange({ field: \"interestKey\", value })\n }\n allowClear\n loading={loading}\n >\n All\n {options.map((data: { id: string; name: string }) => {\n return (\n \n {data.name}\n \n );\n })}\n \n );\n};\n\nexport default Interest;\n","import React, { useEffect, useState } from \"react\";\nimport { FinderFilterFieldChangeHandlerParams } from \"../../../libs/types\";\nimport { Checkbox } from \"antd\";\nimport { mustBeArray } from \"../../../libs\";\nimport { useDispatch } from \"react-redux\";\nimport Axios from \"axios\";\nimport authService from \"../../../actions/AuthorizeService\";\nimport { loansCreditLookups } from \"../../../actions/lookup\";\nimport Loading from \"../../loading\";\n\ntype CreditProps = {\n handleFieldChange: (\n params: FinderFilterFieldChangeHandlerParams\n ) => void;\n value: number[];\n};\n\ntype Option = {\n label: string;\n value: string;\n disabled?: boolean;\n};\n\nexport default function Credit({\n value = [],\n handleFieldChange = () => {}\n}: CreditProps) {\n const dispatch = useDispatch();\n const signal = Axios.CancelToken.source();\n\n const [list, setList] = useState([]);\n const [loading, setLoading] = useState(false);\n\n async function getLookupValues() {\n const isLoggedIn = await authService.isAuthenticated();\n setLoading(true);\n dispatch(\n loansCreditLookups({\n cancelToken: signal.token,\n generalView: !isLoggedIn\n })\n ).then(x => {\n const translated = x.map(v => ({\n value: v.id,\n label: v.name\n }));\n setList(mustBeArray(translated));\n setLoading(false);\n });\n }\n\n useEffect(() => {\n getLookupValues();\n }, []);\n\n return (\n
\n \n handleFieldChange({ field: \"credits\", value })\n }\n >\n {loading ? (\n
\n \n
\n ) : (\n list.map(x => {\n return (\n
\n {x.label}\n
\n );\n })\n )}\n \n
\n );\n}\n","import { Select } from \"antd\";\nimport React, { useCallback, useEffect, useState } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport { mustBeArray } from \"../../../libs\";\nimport { debounce } from \"lodash\";\nimport { getAllLoansPartnerLookups } from \"../../../actions/loans\";\nimport Loading from \"../../loading\";\nimport axios from \"axios\";\n\nconst AllLoansPartnerLookup = ({ value, lawFirmId, handlePartnerChange }) => {\n const [list, setList] = useState([]);\n const dispatchAction = useDispatch();\n const signal = axios.CancelToken.source();\n const [loading, setLoading] = useState(false);\n\n useEffect(() => {\n if (lawFirmId) {\n handleSearch();\n }\n }, [lawFirmId]);\n\n const handleSearch = (e = \"\") => {\n setLoading(true);\n dispatchAction(\n getAllLoansPartnerLookups({ \n cancelToken: signal.token,\n id: lawFirmId,\n search: e,\n })\n ).then(resp => {\n setList(mustBeArray(resp?.data));\n setLoading(false);\n });\n };\n const debouncedSearch = useCallback(debounce(handleSearch, 300));\n return (\n
\n Partner\n {loading ? (\n
\n \n
\n ) : (\n \n \n All\n \n {list.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n )}\n
\n );\n};\n\nexport default AllLoansPartnerLookup;\n","import { Select } from \"antd\";\nimport React, { useCallback, useEffect, useState } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport { mustBeArray } from \"../../../libs\";\nimport { debounce } from \"lodash\";\nimport { getAllLoansBdmLookup } from \"../../../actions/loans\";\nimport Loading from \"../../loading\";\n\nconst AllLoansOmicronBdmLookup = ({\n value,\n handleOmicronBdmChange,\n className = \"\"\n}) => {\n const [list, setList] = useState([]);\n const dispatchAction = useDispatch();\n const [loading, setLoading] = useState(false);\n\n useEffect(() => {\n handleSearch();\n }, []);\n\n const handleSearch = (e = \"\") => {\n setLoading(true);\n dispatchAction(getAllLoansBdmLookup({ search: e })).then(resp => {\n setList(mustBeArray(resp?.data));\n setLoading(false);\n });\n };\n const debouncedSearch = useCallback(debounce(handleSearch, 300));\n return (\n
\n {loading ? (\n
\n \n
\n ) : (\n \n \n All\n \n {list.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n )}\n
\n );\n};\n\nexport default AllLoansOmicronBdmLookup;\n","import { Select } from \"antd\";\nimport React, { useContext, useEffect, useState } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport Axios from \"axios\";\nimport { mustBeArray } from \"../../../libs\";\nimport { finderRadiusLookups } from \"../../../actions/finderUtility\";\nimport Loading from \"../../loading\";\n\nconst RadiusLookup = ({ value, handleFieldChange }) => {\n const dispatch = useDispatch();\n const signal = Axios.CancelToken.source();\n\n const [radiusList, setRadiusList] = useState([]);\n const [loading, setLoading] = useState(false);\n\n const getRadiusList = () => {\n setLoading(true);\n dispatch(finderRadiusLookups({ cancelToken: signal.token })).then(resp => {\n const data = mustBeArray(resp);\n setRadiusList(data);\n setLoading(false);\n });\n };\n\n useEffect(() => {\n getRadiusList();\n }, []);\n\n return loading ? (\n
\n \n
\n ) : (\n handleFieldChange({ field: \"radiusSearchKey\", value })}\n allowClear={false}\n filterOption={false}\n >\n None\n {radiusList.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n );\n};\n\nexport default RadiusLookup;\n","import React, { useEffect, useState } from \"react\";\nimport {\n MAX_PRINCIPAL_FINDER_LIST,\n MIN_PRINCIPAL_FINDER_LIST\n} from \"../../../constants\";\nimport { Select } from \"antd\";\n\nconst PrincipalFilters = ({\n minPrincipal,\n maxPrincipal,\n handleFieldChange\n}) => {\n const [localMinValue, setLocalMinValue] = useState(minPrincipal);\n const [localMaxValue, setLocalMaxValue] = useState(maxPrincipal);\n\n useEffect(() => {\n setLocalMinValue(minPrincipal);\n }, [minPrincipal]);\n\n useEffect(() => {\n setLocalMaxValue(maxPrincipal);\n }, [maxPrincipal]);\n\n useEffect(() => {\n if (\n (localMinValue && localMaxValue) ||\n (!localMinValue && !localMaxValue)\n ) {\n handleFieldChange({ field: \"minPrincipal\", value: localMinValue });\n handleFieldChange({ field: \"maxPrincipal\", value: localMaxValue });\n }\n }, [localMinValue, localMaxValue]);\n\n return (\n
\n
\n
From:
\n setLocalMinValue(e)}\n allowClear\n filterOption={false}\n >\n All\n {MIN_PRINCIPAL_FINDER_LIST.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n
\n
To:
\n setLocalMaxValue(e)}\n allowClear\n filterOption={false}\n >\n All\n {MAX_PRINCIPAL_FINDER_LIST.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n
\n );\n};\n\nexport default PrincipalFilters;\n","import React, { useEffect, useState } from \"react\";\nimport NumberInput from \"../../../Common/NumberInput\";\n\nconst LowAndHighPercentageFilters = ({\n minValue,\n maxValue,\n handleFieldChange = ({ field, value }) => {},\n minField = \"\",\n maxField = \"\"\n}) => {\n const [localMinValue, setLocalMinValue] = useState(minValue);\n const [localMaxValue, setLocalMaxValue] = useState(maxValue);\n\n useEffect(() => {\n setLocalMinValue(minValue);\n }, [minValue]);\n\n useEffect(() => {\n setLocalMaxValue(maxValue);\n }, [maxValue]);\n\n useEffect(() => {\n // Valid values are numbers including 0 or null, so we have to allow any number\n if ((typeof localMinValue === 'number' && typeof localMaxValue === 'number') || (localMinValue === null && localMaxValue === null)) {\n handleFieldChange({ field: minField, value: localMinValue });\n handleFieldChange({ field: maxField, value: localMaxValue });\n }\n }, [localMinValue, localMaxValue]);\n\n return (\n
\n
\n
From:
\n `${e}%`}\n parser={e => e.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\" hideNumberPointers w-180\"\n value={localMinValue}\n onChange={e => setLocalMinValue(e)}\n />\n
\n
\n
To:
\n `${e}%`}\n parser={e => e.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"hideNumberPointers w-180\"\n value={localMaxValue}\n onChange={e => setLocalMaxValue(e)}\n />\n
\n
\n );\n};\n\nexport default LowAndHighPercentageFilters;\n","import { Select } from \"antd\";\nimport React, { useContext, useEffect, useState } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport { mustBeArray } from \"../../../libs\";\nimport Axios from \"axios\";\nimport { finderScenarioLookups } from \"../../../actions/finderUtility\";\nimport Loading from \"../../loading\";\n\nconst ScenarioLookup = ({ value, handleFieldChange }) => {\n const dispatch = useDispatch();\n const signal = Axios.CancelToken.source();\n\n const [scenarioList, setScenarioList] = useState([]);\n const [loading, setLoading] = useState(false);\n\n const getScenarioList = () => {\n setLoading(true);\n dispatch(finderScenarioLookups({ cancelToken: signal.token })).then(\n resp => {\n const data = mustBeArray(resp);\n setScenarioList(data);\n setLoading(false);\n }\n );\n };\n\n useEffect(() => {\n getScenarioList();\n }, []);\n\n return loading ? (\n
\n \n
\n ) : (\n \n handleFieldChange({ field: \"scenarioKey\", value: value || null })\n }\n allowClear\n filterOption={false}\n >\n All\n {scenarioList.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n );\n};\n\nexport default ScenarioLookup;\n","import { Button, Modal, Select } from \"antd\";\nimport React, { useContext, useEffect, useState } from \"react\";\nimport NumberInput from \"../../../Common/NumberInput\";\nimport { FinderFilterFieldChangeHandlerParams } from \"../../../libs/types\";\n\ninterface ConstructionFilters {\n \"constructionScenario.presalesDebtCoverRequired\": string;\n \"constructionScenario.loanAmountPercentageGstEx\": number | null;\n \"constructionScenario.qSRequired\": string;\n \"constructionScenario.isBuilderDeveloper\": string;\n \"constructionScenario.isBuildToHold\": string;\n \"constructionScenario.tdcEquity\": number | null;\n \"constructionScenario.projectManagerRequired\": string;\n \"constructionScenario.contingenciesAllowance\": number | null;\n \"constructionScenario.developerSuccessfulProjects\": number | null;\n \"constructionScenario.preCommittedCommercialTenants\": string;\n}\n\ninterface Construction {\n presalesDebtCoverRequired: string;\n loanAmountPercentageGstEx: number | null;\n qsRequired: string;\n isBuilderDeveloper: string;\n isBuildToHold: string;\n tdcEquity: number | null;\n projectManagerRequired: string;\n contingenciesAllowance: number | null;\n developerSuccessfulProjects: number | null;\n preCommittedCommercialTenants: string;\n}\n\ninterface ConstructionProps {\n value: ConstructionFilters | undefined;\n handleFieldChange: (\n payload: FinderFilterFieldChangeHandlerParams\n ) => void;\n}\n\nconst yesNoList = [\n {\n id: \"true\",\n name: \"Yes\"\n },\n {\n id: \"false\",\n name: \"No\"\n }\n];\n\nfunction Construction({\n value,\n handleFieldChange = () => {}\n}: ConstructionProps) {\n\n const [construction, setConstruction] = useState({\n presalesDebtCoverRequired: \"\",\n loanAmountPercentageGstEx: null,\n qsRequired: \"\",\n isBuilderDeveloper: \"\",\n isBuildToHold: \"\",\n tdcEquity: null,\n projectManagerRequired: \"\",\n contingenciesAllowance: null,\n developerSuccessfulProjects: 0,\n preCommittedCommercialTenants: \"\"\n });\n\n function handleLocalChange(field: string, value: string | number) {\n setConstruction(s => ({\n ...s,\n [field]: value\n }));\n const payload = {\n presalesDebtCoverRequired: construction.presalesDebtCoverRequired,\n loanAmountPercentageGstEx: construction.loanAmountPercentageGstEx,\n qsRequired: construction.qsRequired,\n isBuilderDeveloper: construction.isBuilderDeveloper,\n isBuildToHold: construction.isBuildToHold,\n tdcEquity: construction.tdcEquity,\n projectManagerRequired: construction.projectManagerRequired,\n contingenciesAllowance: construction.contingenciesAllowance,\n developerSuccessfulProjects: construction.developerSuccessfulProjects,\n preCommittedCommercialTenants: construction.preCommittedCommercialTenants,\n [field]: value // Overwrites the field with same key\n };\n handleFieldChange({\n field: \"constructionScenario\",\n value: payload\n });\n }\n\n useEffect(() => {\n if (value) {\n setConstruction({\n presalesDebtCoverRequired: value[\"constructionScenario.presalesDebtCoverRequired\"]\n ? value[\"constructionScenario.presalesDebtCoverRequired\"].toString()\n : \"\",\n qsRequired: value[\"constructionScenario.qSRequired\"] ? value[\"constructionScenario.qSRequired\"].toString() : \"\",\n isBuilderDeveloper: value[\"constructionScenario.isBuilderDeveloper\"]\n ? value[\"constructionScenario.isBuilderDeveloper\"].toString()\n : \"\",\n isBuildToHold: value[\"constructionScenario.isBuildToHold\"]\n ? value[\"constructionScenario.isBuildToHold\"].toString()\n : \"\",\n projectManagerRequired: value[\"constructionScenario.projectManagerRequired\"]\n ? value[\"constructionScenario.projectManagerRequired\"].toString()\n : \"\",\n preCommittedCommercialTenants: value[\"constructionScenario.preCommittedCommercialTenants\"]\n ? value[\"constructionScenario.preCommittedCommercialTenants\"].toString()\n : \"\",\n contingenciesAllowance: value[\"constructionScenario.contingenciesAllowance\"],\n developerSuccessfulProjects: value[\"constructionScenario.developerSuccessfulProjects\"],\n loanAmountPercentageGstEx: value[\"constructionScenario.loanAmountPercentageGstEx\"],\n tdcEquity: value[\"constructionScenario.tdcEquity\"]\n });\n }\n }, [value]);\n\n return (\n <>\n
\n Presales debt cover required?\n \n handleLocalChange(\"presalesDebtCoverRequired\", v || \"\")\n }\n allowClear\n >\n {yesNoList.map((data: { id: string; name: string }) => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n {construction.presalesDebtCoverRequired === \"true\" && (\n
\n Percentage of loan amount exclusive of GST\n `${value}%`}\n parser={(value: string) => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"m-l-6 hideNumberPointers\"\n value={construction.loanAmountPercentageGstEx}\n onBlur={() => {}}\n onChange={(value: number) =>\n handleLocalChange(\"loanAmountPercentageGstEx\", value)\n }\n placeholder={\"\"}\n maxLength={undefined}\n maxValue={undefined}\n />\n
\n )}\n
\n QS required\n handleLocalChange(\"qsRequired\", v || \"\")}\n allowClear\n >\n {yesNoList.map((data: { id: string; name: string }) => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n
\n Builder/Developer\n \n handleLocalChange(\"isBuilderDeveloper\", v || \"\")\n }\n allowClear\n >\n {yesNoList.map((data: { id: string; name: string }) => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n
\n Build to hold\n\n handleLocalChange(\"isBuildToHold\", v || \"\")}\n allowClear\n >\n {yesNoList.map((data: { id: string; name: string }) => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n
\n Equity percentage of total development costs* (TDC) %\n `${value}%`}\n parser={(value: string) => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"m-l-6 hideNumberPointers\"\n value={construction.tdcEquity}\n onBlur={() => {}}\n onChange={(value: number) => handleLocalChange(\"tdcEquity\", value)}\n placeholder={\"\"}\n maxLength={undefined}\n maxValue={undefined}\n disabled={undefined}\n />\n
\n
\n

\n *Residual land value, post DA professional fees, council fees and\n contributions, SBBIS bond, contract sum including builder's margin,\n contingency allowance, project manager costs, provision for 50% of\n agents presales, capitalised interest and line fee, holding costs\n during construction (land tax and rates), project marketing costs\n

\n
\n
\n Project manager required\n\n \n handleLocalChange(\"projectManagerRequired\", v || \"\")\n }\n allowClear\n >\n {yesNoList.map((data: { id: string; name: string }) => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n
\n Contingencies allowance percentage of construction sum\n `${value}%`}\n parser={(value: string) => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"m-l-6 hideNumberPointers\"\n value={construction.contingenciesAllowance}\n onBlur={() => {}}\n onChange={(value: number) =>\n handleLocalChange(\"contingenciesAllowance\", value)\n }\n placeholder={\"\"}\n maxLength={undefined}\n maxValue={undefined}\n disabled={undefined}\n />\n
\n
\n Developer past successful projects (number up to 100)\n `${value}`}\n parser={(value: string) => value}\n className=\"m-l-6 hideNumberPointers\"\n value={construction.developerSuccessfulProjects}\n onBlur={() => {}}\n onChange={(value: number) =>\n handleLocalChange(\n \"developerSuccessfulProjects\",\n value > 100 ? 100 : value\n )\n }\n placeholder={\"\"}\n maxLength={undefined}\n maxValue={100}\n disabled={undefined}\n />\n
\n
\n Pre-committed commercial tenants\n\n \n handleLocalChange(\"preCommittedCommercialTenants\", v || \"\")\n }\n allowClear\n >\n {yesNoList.map((data: { id: string; name: string }) => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n \n );\n}\n\nexport default Construction;\n","import { Select } from \"antd\";\nimport React, { useEffect, useState } from \"react\";\nimport NumberInput from \"../../../Common/NumberInput\";\nimport {\n FinderFilterFieldChangeHandlerParams,\n ILookupItem\n} from \"../../../libs/types\";\nimport { mustBeArray } from \"../../../libs\";\nimport { useDispatch } from \"react-redux\";\nimport Axios from \"axios\";\nimport authService from \"../../../actions/AuthorizeService\";\nimport { finderSubdivisionTypeLookups } from \"../../../actions/finderUtility\";\n\ninterface SubdivisionFilters {\n \"subdivisionScenario.typeKey\": string | null;\n \"subdivisionScenario.presalesDebtCoverRequired\": string;\n \"subdivisionScenario.loanAmountPercentageGstEx\": number | null;\n \"subdivisionScenario.qSRequired\": string;\n \"subdivisionScenario.isBuilderDeveloper\": string;\n \"subdivisionScenario.isBuildToHold\": string;\n \"subdivisionScenario.tdcEquity\": number | null;\n \"subdivisionScenario.projectManagerRequired\": string;\n \"subdivisionScenario.contingenciesAllowance\": number | null;\n \"subdivisionScenario.developerSuccessfulProjects\": number | null;\n}\n\ninterface Subdivision {\n typeKey: string | null;\n presalesDebtCoverRequired: string;\n loanAmountPercentageGstEx: number | null;\n qsRequired: string;\n isBuilderDeveloper: string;\n isBuildToHold: string;\n tdcEquity: number | null;\n projectManagerRequired: string;\n contingenciesAllowance: number | null;\n developerSuccessfulProjects: number | null;\n}\n\ninterface SubdivisionProps {\n value: SubdivisionFilters | undefined;\n handleFieldChange: (\n payload: FinderFilterFieldChangeHandlerParams\n ) => void;\n}\n\nconst YesNoOptions = [\n {\n label: \"Yes\",\n value: \"true\"\n },\n {\n label: \"No\",\n value: \"false\"\n }\n];\n\nfunction Subdivision({\n value,\n handleFieldChange = () => {}\n}: SubdivisionProps) {\n const dispatch = useDispatch();\n const signal = Axios.CancelToken.source();\n\n const [typeOptions, setTypeOptions] = useState([]);\n const [subdivision, setSubdivision] = useState({\n typeKey: null,\n presalesDebtCoverRequired: \"\",\n loanAmountPercentageGstEx: null,\n qsRequired: \"\",\n isBuilderDeveloper: \"\",\n isBuildToHold: \"\",\n tdcEquity: null,\n projectManagerRequired: \"\",\n contingenciesAllowance: null,\n developerSuccessfulProjects: 0\n });\n\n function handleLocalChange(field: string, value: string | number) {\n setSubdivision(s => ({\n ...s,\n [field]: value\n }));\n\n const payload = {\n typeKey: subdivision.typeKey || null,\n presalesDebtCoverRequired: subdivision.presalesDebtCoverRequired,\n loanAmountPercentageGstEx: subdivision.loanAmountPercentageGstEx,\n qsRequired: subdivision.qsRequired,\n isBuilderDeveloper: subdivision.isBuilderDeveloper,\n isBuildToHold: subdivision.isBuildToHold,\n tdcEquity: subdivision.tdcEquity,\n projectManagerRequired: subdivision.projectManagerRequired,\n contingenciesAllowance: subdivision.contingenciesAllowance,\n developerSuccessfulProjects: subdivision.developerSuccessfulProjects,\n [field]: value // Overwrites the field with same key\n };\n handleFieldChange({\n field: \"subdivisionScenario\",\n value: payload\n });\n }\n\n async function getTypeLookup() {\n const isLoggedIn = await authService.isAuthenticated();\n dispatch(\n finderSubdivisionTypeLookups({\n cancelToken: signal.token,\n generalView: !isLoggedIn\n })\n ).then(x => {\n setTypeOptions(mustBeArray(x));\n });\n }\n\n useEffect(() => {\n if (value) {\n setSubdivision({\n typeKey: value[\"subdivisionScenario.typeKey\"],\n presalesDebtCoverRequired: value[\"subdivisionScenario.presalesDebtCoverRequired\"]\n ? value[\"subdivisionScenario.presalesDebtCoverRequired\"].toString()\n : \"\",\n qsRequired: value[\"subdivisionScenario.qSRequired\"] ? value[\"subdivisionScenario.qSRequired\"].toString() : \"\",\n isBuilderDeveloper: value[\"subdivisionScenario.isBuilderDeveloper\"]\n ? value[\"subdivisionScenario.isBuilderDeveloper\"].toString()\n : \"\",\n isBuildToHold: value[\"subdivisionScenario.isBuildToHold\"]\n ? value[\"subdivisionScenario.isBuildToHold\"].toString()\n : \"\",\n projectManagerRequired: value[\"subdivisionScenario.projectManagerRequired\"]\n ? value[\"subdivisionScenario.projectManagerRequired\"].toString()\n : \"\",\n contingenciesAllowance: value[\"subdivisionScenario.contingenciesAllowance\"],\n developerSuccessfulProjects: value[\"subdivisionScenario.developerSuccessfulProjects\"],\n loanAmountPercentageGstEx: value[\"subdivisionScenario.loanAmountPercentageGstEx\"],\n tdcEquity: value[\"subdivisionScenario.tdcEquity\"]\n });\n }\n }, [value]);\n\n useEffect(() => {\n getTypeLookup();\n\n return () => {\n signal.cancel();\n };\n }, []);\n\n return (\n <>\n
\n Type\n handleLocalChange(\"typeKey\", v || \"\")}\n allowClear\n >\n {typeOptions.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n
\n Presales debt cover required?\n \n handleLocalChange(\"presalesDebtCoverRequired\", v || \"\")\n }\n allowClear\n >\n {YesNoOptions.map(x => (\n \n {x.label}\n \n ))}\n \n
\n {subdivision.presalesDebtCoverRequired === \"true\" && (\n
\n Percentage of loan amount exclusive of GST\n `${value}%`}\n parser={(value: string) => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"m-l-6 hideNumberPointers\"\n value={subdivision.loanAmountPercentageGstEx}\n onBlur={() => {}}\n onChange={(value: number) =>\n handleLocalChange(\"loanAmountPercentageGstEx\", value)\n }\n placeholder={\"\"}\n maxLength={undefined}\n maxValue={undefined}\n />\n
\n )}\n
\n QS required\n handleLocalChange(\"qsRequired\", v || \"\")}\n allowClear\n >\n {YesNoOptions.map(x => (\n \n {x.label}\n \n ))}\n \n
\n
\n Builder/Developer\n \n handleLocalChange(\"isBuilderDeveloper\", v || \"\")\n }\n allowClear\n >\n {YesNoOptions.map(x => (\n \n {x.label}\n \n ))}\n \n
\n
\n Build to hold\n\n handleLocalChange(\"isBuildToHold\", v || \"\")}\n allowClear\n >\n {YesNoOptions.map(x => (\n \n {x.label}\n \n ))}\n \n
\n
\n Equity percentage of total development costs* (TDC) %\n `${value}%`}\n parser={(value: string) => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"m-l-6 hideNumberPointers\"\n value={subdivision.tdcEquity}\n onBlur={() => {}}\n onChange={(value: number) => handleLocalChange(\"tdcEquity\", value)}\n placeholder={\"\"}\n maxLength={undefined}\n maxValue={undefined}\n />\n
\n
\n

\n *Residual land value, post DA professional fees, council fees and\n contributions, SBBIS bond, contract sum including builder's margin,\n contingency allowance, project manager costs, provision for 50% of\n agents presales, capitalised interest and line fee, holding costs\n during construction (land tax and rates), project marketing costs\n

\n
\n
\n Project manager required\n\n \n handleLocalChange(\"projectManagerRequired\", v || \"\")\n }\n allowClear\n >\n {YesNoOptions.map(x => (\n \n {x.label}\n \n ))}\n \n
\n
\n Contingencies allowance percentage of construction sum\n `${value}%`}\n parser={(value: string) => value.replace(/\\%\\s?|(,*)/g, \"\")}\n className=\"m-l-6 hideNumberPointers\"\n value={subdivision.contingenciesAllowance}\n onBlur={() => {}}\n onChange={(value: number) =>\n handleLocalChange(\"contingenciesAllowance\", value)\n }\n placeholder={\"\"}\n maxLength={undefined}\n maxValue={undefined}\n />\n
\n
\n Developer past successful projects (number up to 100)\n `${value}`}\n parser={(value: string) => value}\n className=\"m-l-6 hideNumberPointers\"\n value={subdivision.developerSuccessfulProjects}\n onBlur={() => {}}\n onChange={(value: number) =>\n handleLocalChange(\n \"developerSuccessfulProjects\",\n value > 100 ? 100 : value\n )\n }\n placeholder={\"\"}\n maxLength={undefined}\n maxValue={100}\n />\n
\n \n );\n}\n\nexport default Subdivision;\n","import { Select } from \"antd\";\nimport React, { useContext, useEffect, useState } from \"react\";\nimport { mustBeArray } from \"../../../libs\";\nimport { useDispatch } from \"react-redux\";\nimport Axios from \"axios\";\nimport { finderTermLookups } from \"../../../actions/finderUtility\";\nimport Loading from \"../../loading\";\n\nconst TermLookup = ({ minTerm, maxTerm, handleFieldChange }) => {\n const signal = Axios.CancelToken.source();\n const dispatch = useDispatch();\n const [termList, setTermList] = useState([]);\n const [loading, setLoading] = useState(false);\n\n const [localMinValue, setLocalMinValue] = useState(minTerm);\n const [localMaxValue, setLocalMaxValue] = useState(maxTerm);\n\n const getTermList = () => {\n setLoading(true);\n dispatch(finderTermLookups({ cancelToken: signal.token })).then(resp => {\n const data = mustBeArray(resp);\n setTermList(data);\n setLoading(false);\n });\n };\n\n useEffect(() => {\n getTermList();\n }, []);\n\n useEffect(() => {\n setLocalMinValue(minTerm);\n }, [minTerm]);\n\n useEffect(() => {\n setLocalMaxValue(maxTerm);\n }, [maxTerm]);\n\n useEffect(() => {\n if (\n (localMinValue && localMaxValue) ||\n (localMinValue === \"\" && localMaxValue === \"\")\n ) {\n handleFieldChange({ field: \"minTermKey\", value: localMinValue });\n handleFieldChange({ field: \"maxTermKey\", value: localMaxValue });\n }\n }, [localMinValue, localMaxValue]);\n\n return (\n
\n
\n
From:
\n {loading ? (\n
\n \n
\n ) : (\n setLocalMinValue(e)}\n allowClear={false}\n filterOption={false}\n >\n All\n {termList.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n )}\n
\n
\n
To:
\n {loading ? (\n
\n \n
\n ) : (\n setLocalMaxValue(e)}\n allowClear={false}\n filterOption={false}\n >\n All\n {termList.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n )}\n
\n
\n );\n};\n\nexport default TermLookup;\n","import { Rate } from 'antd';\nimport React from 'react';\nimport { Visible } from '../../Common/visiblityWrapper';\n\nconst Ratings = ({ value, handleFieldChange }) => { \n\n return (\n
\n handleFieldChange({ value: e })}\n />\n \n (or more)\n \n
\n );\n};\n\nexport default Ratings;\n","import { Select, Spin } from \"antd\";\nimport React, { useCallback, useEffect, useState } from \"react\";\nimport { loansLawFirmLookup } from \"../../../actions/lookup\";\nimport axios from \"axios\";\nimport { useDispatch } from \"react-redux\";\nimport { mustBeArray } from \"../../../libs\";\nimport { debounce } from \"lodash\";\nimport useCheckUserRoles from \"../../../Common/Hooks/useCheckUserRoles\";\nimport Loading from \"../../loading\";\n\nconst LawFirm = ({ value, handleFieldChange }) => {\n const [list, setList] = useState([]);\n const dispatchAction = useDispatch();\n const signal = axios.CancelToken.source();\n\n const [loading, setLoading] = useState(false);\n\n const {\n isLawFirmUser,\n isSystemAdmin,\n checkIfUserIsSystemAdmin\n } = useCheckUserRoles();\n\n useEffect(() => {\n handleSearch();\n }, []);\n\n const handleSearch = async (e = \"\") => {\n let isSystemUser = await checkIfUserIsSystemAdmin();\n setLoading(true);\n dispatchAction(\n loansLawFirmLookup({\n cancelToken: signal.token,\n search: e,\n isSystemUser\n })\n ).then(resp => {\n setList(mustBeArray(resp));\n setLoading(false);\n });\n };\n const debouncedSearch = useCallback(debounce(handleSearch, 300));\n\n return (\n
\n Lawfirm\n {loading ? (\n
\n \n
\n ) : (\n {\n handleFieldChange({ field: \"lawFirmId\", value: value || null });\n }}\n allowClear\n onSearch={debouncedSearch}\n showSearch\n filterOption={false}\n loading={loading}\n >\n All\n {list.map(lawFirm => {\n return (\n \n {lawFirm.name}\n \n );\n })}\n \n )}\n
\n );\n};\n\nexport default LawFirm;\n","import { Select } from \"antd\";\nimport React, { useCallback, useContext, useEffect, useState } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport { loansLawFirmUsersLookup } from \"../../../actions/lookup\";\nimport { mustBeArray } from \"../../../libs\";\nimport { debounce } from \"lodash\";\nimport axios from \"axios\";\nimport useCheckUserRoles from \"../../../Common/Hooks/useCheckUserRoles\";\nimport Loading from \"../../loading\";\n\nconst AssociateLookup = ({\n value,\n handleFieldChange,\n lawFirmId,\n disabled = false\n}) => {\n const [list, setList] = useState([]);\n const dispatchAction = useDispatch();\n const signal = axios.CancelToken.source();\n const [loading, setLoading] = useState(false);\n\n const { checkIfUserIsSystemAdmin } = useCheckUserRoles();\n\n useEffect(() => {\n if (lawFirmId) {\n handleSearch();\n }\n }, [lawFirmId]);\n\n const handleSearch = async (e = \"\") => {\n setLoading(true);\n let isSystemUser = await checkIfUserIsSystemAdmin();\n dispatchAction(\n loansLawFirmUsersLookup({\n cancelToken: signal.token,\n id: lawFirmId,\n search: e,\n isSystemUser\n })\n ).then(resp => {\n setList(mustBeArray(resp));\n setLoading(false);\n });\n };\n\n const debouncedSearch = useCallback(debounce(handleSearch, 300));\n\n return (\n
\n Associate\n {loading ? (\n
\n \n
\n ) : (\n \n handleFieldChange({\n field: \"associateId\",\n value: value || null\n })\n }\n allowClear\n onSearch={debouncedSearch}\n showSearch\n filterOption={false}\n >\n All\n {list.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n )}\n
\n );\n};\n\nexport default AssociateLookup;\n","import React, { useMemo } from \"react\";\nimport { Button, Col, Modal, Row, Tabs } from \"antd\";\nimport { IAllLoanFilters } from \"../../../libs/types\";\nimport SettlementDateLookup from \"./settlementDate\";\nimport SuburbAndStateLookup from \"./suburbAndState\";\nimport SecurityTypeLookup from \"./securityType\";\nimport PriorityLookup from \"./priority\";\nimport Valuation from \"./Valuation\";\nimport Interest from \"./Interest\";\nimport Credit from \"./Credit\";\nimport LoanStatusFilter from \"./status\";\nimport AllLoansPartnerLookup from \"./partner\";\nimport AllLoansOmicronBdmLookup from \"./omicronBdm\";\nimport { ALL_LOANS_STATUS } from \"../../../constants\";\nimport LoanExpiryFilter from \"./expiry\";\nimport RadiusLookup from \"./radius\";\nimport PrincipalFilters from \"./principal\";\nimport LowAndHighPercentageFilters from \"./LowAndHighPercentageFilters\";\nimport ScenarioLookup from \"./scenario\";\nimport Construction from \"./Construction\";\nimport Subdivision from \"./Subdivision\";\nimport TermLookup from \"./term\";\nimport Ratings from \"./ratings\";\nimport LawFirm from \"./LawFirm\";\nimport AssociateLookup from \"./AssociateLookup\";\n\ntype AllLoansFiltersProps = {\n isModalOpen: boolean;\n onFiltersChange: (field: string, value: any) => void;\n onCancel: () => void;\n onClearAll: () => void;\n filters: IAllLoanFilters;\n};\n\ntype FilterNode = {\n label: React.ReactNode | null;\n key: string;\n node: React.ReactNode | null;\n visible?: boolean;\n};\n\nexport default function AllLoansFilters({\n isModalOpen,\n onCancel,\n filters,\n onClearAll,\n onFiltersChange\n}: AllLoansFiltersProps) {\n const handleFieldChange = ({ field, value }: { field: string; value: any }) =>\n onFiltersChange(field, value);\n\n const filterNodes: FilterNode[] = useMemo(() => {\n return [\n {\n label: \"BDM\",\n key: \"omicronBdmId\",\n node: (\n \n onFiltersChange(\"omicronBdmId\", e)\n }\n />\n )\n },\n {\n label: \"Lawfirm / Partner / Associate\",\n key: \"lawFirmId\",\n node: (\n <>\n \n onFiltersChange(\"lawFirmId\", value)\n }\n />\n {filters.lawFirmId && (\n <>\n \n onFiltersChange(\"partnerId\", e)\n }\n />\n \n onFiltersChange(\"associateId\", value)\n }\n />\n \n )}\n \n )\n },\n {\n label: \"Broker stars from lender\",\n key: \"brokerStarsFromLender\",\n node: (\n \n onFiltersChange(\"brokerStarsFromLender\", value)\n }\n />\n )\n },\n {\n label: \"Lender stars from Broker\",\n key: \"lenderStarsFromBroker\",\n node: (\n \n onFiltersChange(\"lenderStarsFromBroker\", value)\n }\n />\n )\n },\n {\n label: \"Lower Rate\",\n key: \"lowerRate\",\n node: (\n \n )\n },\n {\n label: \"Higher Rate\",\n key: \"higherRate\",\n node: (\n \n )\n },\n {\n label: \"Establishment Fee\",\n key: \"establishmentFee\",\n node: (\n \n )\n },\n {\n label: \"Term\",\n key: \"term\",\n node: (\n \n )\n },\n {\n label: \"State and Suburb / Search Radius\",\n key: \"stateAndSuburb\",\n node: (\n <>\n
\n
Suburb and State
\n \n
\n {filters.suburb !== null &&\n filters.state !== null &&\n filters.suburb !== \"\" &&\n filters.state !== \"\" && (\n
\n
Search Radius
\n \n
\n )}\n \n )\n },\n {\n label: \"Principal\",\n key: \"principal\",\n node: (\n \n )\n },\n {\n label: \"Security Type\",\n key: \"securityType\",\n node: (\n \n )\n },\n {\n label: \"Credits\",\n key: \"credits\",\n node: (\n \n )\n },\n {\n label: \"Status\",\n key: \"statusKey\",\n node: (\n <>\n
\n
Status
\n\n \n onFiltersChange(\"status\", e.target.value)\n }\n />\n
\n {[\n ALL_LOANS_STATUS.Settled,\n ALL_LOANS_STATUS.Default,\n ALL_LOANS_STATUS.VariationInProgress,\n \"\" // Empty string represents all option\n ].includes(filters.statusKey || \"\") && ( // null value on statusKey defaults to empty string\n \n onFiltersChange(\"expiryKey\", e.target.value)\n }\n />\n )}\n \n )\n },\n {\n label: \"Interest\",\n key: \"interestKey\",\n node: (\n \n )\n },\n {\n label: \"LVR\",\n key: \"lvr\",\n node: (\n \n )\n },\n {\n label: \"Valuation\",\n key: \"valuationRequired\",\n node: (\n \n )\n },\n {\n label: \"Priority\",\n key: \"priorityKey\",\n node: (\n \n )\n },\n {\n label: \"Scenario\",\n key: \"scenarioKey\",\n node: (\n <>\n
\n
Scenario
\n \n
\n \n {filters.scenarioKey === \"CONSTRUCTION\" && (\n \n
Construction
\n
\n \n
\n \n )}\n {filters.scenarioKey === \"SUBDIVISION\" && (\n \n
Subdivision
\n
\n \n
\n \n )}\n
\n \n )\n }\n ];\n }, [filters]);\n\n return (\n <>\n \n Reset\n ,\n \n ]}\n width=\"80%\"\n >\n \n {filterNodes.map(\n item =>\n (item.visible || item.visible === undefined) && (\n \n {item.node}\n \n )\n )}\n \n \n \n );\n}\n","import { Button, Checkbox, Col, Modal } from \"antd\";\nimport React, { useMemo } from \"react\";\nimport { IAllLoansReportColumnListItem } from \"../../libs/types\";\nimport { Row } from \"antd/es/grid\";\n\ntype AllLoansColumnsSelectionProps = {\n isOpen: boolean;\n onClose: () => void;\n onChange: (selectedColumns: string[]) => void;\n columnsList: IAllLoansReportColumnListItem[];\n selectedColumns: string[];\n};\n\nexport default function AllLoansColumnsSelection({\n isOpen,\n onClose,\n onChange,\n columnsList,\n selectedColumns = []\n}: AllLoansColumnsSelectionProps) {\n const defaultColumns = useMemo(() => {\n return columnsList.filter(x => x.isDefault).map(x => x.id);\n }, [columnsList]);\n\n return (\n <>\n {\n onChange(defaultColumns);\n }}\n >\n Reset\n ,\n {\n onClose();\n }}\n >\n Close\n \n ]}\n width={\"80%\"}\n onCancel={onClose}\n >\n
\n 0 ? selectedColumns : defaultColumns\n }\n onChange={value => {\n let values: string[] = [];\n value.forEach(x => {\n if (typeof x === \"string\") {\n values.push(x);\n }\n });\n onChange(values);\n }}\n >\n \n {columnsList.map(column => (\n \n \n {column.name}\n \n \n ))}\n \n \n
\n \n \n );\n}\n","import { useCallback, useEffect, useRef } from \"react\";\n\nconst useDebounceCallback = (callback: (...arg0: any) => void, delay: number = 500) => {\n const handlerRef = useRef();\n const debouncedCallback = useCallback((...args) => {\n if (handlerRef.current) {\n clearTimeout(handlerRef.current);\n }\n handlerRef.current = setTimeout(() => {\n callback(...args);\n }, delay);\n }, [callback, delay]);\n // Cleanup\n useEffect(() => {\n return () => {\n if (handlerRef.current) {\n clearTimeout(handlerRef.current);\n }\n };\n }, []);\n return debouncedCallback;\n };\n export default useDebounceCallback;","import { Button, Col, Input, message, Modal, Row, Typography } from \"antd\";\nimport React, { useEffect, useState } from \"react\";\nimport {\n IAllLoanSaveSearchFilters,\n IAllLoanSearchFilterPayload\n} from \"../../../libs/types\";\nimport useCheckUserRoles from \"../../../Common/Hooks/useCheckUserRoles\";\nimport {\n saveAllLoansLastSearch,\n saveAllLoansSearch\n} from \"../../../actions/loans\";\nimport { debounce } from \"lodash\";\nimport useDebounceCallback from \"../../../Common/Hooks/useDebounceCallback\";\n\ntype AllLoansSaveSearchProps = {\n currentSelectedColumns: string[];\n currentFilters: IAllLoanSaveSearchFilters;\n isFiltersEdited: boolean;\n onSave: (nameOfLatestSave: string) => void;\n idOfLoadedSave?: number;\n};\n\nexport default function AllLoansSaveSearch({\n currentSelectedColumns,\n currentFilters,\n isFiltersEdited,\n onSave,\n idOfLoadedSave = 0\n}: AllLoansSaveSearchProps) {\n const { checkIfUserIsSystemAdmin } = useCheckUserRoles();\n\n const [isOpen, setIsOpen] = useState(false);\n const [isLoading, setIsLoading] = useState(false);\n const [saveSearchName, setSaveSearchName] = useState(\"\");\n const [isSaved, setIsSaved] = useState(false);\n\n function toggleModal() {\n setIsOpen(s => !s);\n }\n\n function nestFilters(\n filters: IAllLoanSaveSearchFilters\n ): IAllLoanSearchFilterPayload {\n return {\n ...filters,\n constructionScenario: {\n contingenciesAllowance:\n filters[\"constructionScenario.contingenciesAllowance\"],\n developerSuccessfulProjects:\n filters[\"constructionScenario.developerSuccessfulProjects\"],\n isBuilderDeveloper: filters[\"constructionScenario.isBuilderDeveloper\"]\n ? filters[\"constructionScenario.isBuilderDeveloper\"] === \"true\"\n : null,\n isBuildToHold: filters[\"constructionScenario.isBuildToHold\"]\n ? filters[\"constructionScenario.isBuildToHold\"] === \"true\"\n : null,\n loanAmountPercentageGstEx:\n filters[\"constructionScenario.loanAmountPercentageGstEx\"],\n preCommittedCommercialTenants: filters[\n \"constructionScenario.preCommittedCommercialTenants\"\n ]\n ? filters[\"constructionScenario.preCommittedCommercialTenants\"] ===\n \"true\"\n : null,\n presalesDebtCoverRequired: filters[\n \"constructionScenario.presalesDebtCoverRequired\"\n ]\n ? filters[\"constructionScenario.presalesDebtCoverRequired\"] === \"true\"\n : null,\n projectManagerRequired: filters[\n \"constructionScenario.projectManagerRequired\"\n ]\n ? filters[\"constructionScenario.projectManagerRequired\"] === \"true\"\n : null,\n qsRequired: filters[\"constructionScenario.qSRequired\"]\n ? filters[\"constructionScenario.qSRequired\"] === \"true\"\n : null,\n tdcEquity: filters[\"constructionScenario.tdcEquity\"]\n },\n subdivisionScenario: {\n contingenciesAllowance:\n filters[\"subdivisionScenario.contingenciesAllowance\"],\n developerSuccessfulProjects:\n filters[\"subdivisionScenario.developerSuccessfulProjects\"],\n isBuilderDeveloper: filters[\"subdivisionScenario.isBuilderDeveloper\"]\n ? filters[\"subdivisionScenario.isBuilderDeveloper\"] === \"true\"\n : null,\n isBuildToHold: filters[\"subdivisionScenario.isBuildToHold\"]\n ? filters[\"subdivisionScenario.isBuildToHold\"] === \"true\"\n : null,\n loanAmountPercentageGstEx:\n filters[\"subdivisionScenario.loanAmountPercentageGstEx\"],\n presalesDebtCoverRequired: filters[\n \"subdivisionScenario.presalesDebtCoverRequired\"\n ]\n ? filters[\"subdivisionScenario.presalesDebtCoverRequired\"] === \"true\"\n : null,\n projectManagerRequired: filters[\n \"subdivisionScenario.projectManagerRequired\"\n ]\n ? filters[\"subdivisionScenario.projectManagerRequired\"] === \"true\"\n : null,\n qsRequired: filters[\"subdivisionScenario.qSRequired\"]\n ? filters[\"subdivisionScenario.qSRequired\"] === \"true\"\n : null,\n tdcEquity: filters[\"subdivisionScenario.tdcEquity\"],\n typeKey: filters[\"subdivisionScenario.typeKey\"]\n }\n };\n }\n\n async function saveSearch() {\n if (isFiltersEdited) {\n const isSystemUser = await checkIfUserIsSystemAdmin();\n setIsLoading(true);\n const res: any = await saveAllLoansSearch(isSystemUser, {\n name: saveSearchName,\n selectedColumns: currentSelectedColumns,\n filters: nestFilters(currentFilters)\n });\n if (res.status === 200) {\n setIsSaved(true);\n onSave(saveSearchName);\n }\n setIsLoading(false);\n } else {\n message.warning(\"No filters changed\");\n }\n }\n\n const saveLast = useDebounceCallback(saveLastSearch);\n\n async function saveLastSearch() {\n setIsLoading(true);\n await saveAllLoansLastSearch({\n name: \"Last Saved\",\n selectedColumns: currentSelectedColumns,\n filters: nestFilters(currentFilters),\n savedSearchId: idOfLoadedSave || null\n });\n setIsLoading(false);\n }\n\n function closeModal() {\n toggleModal();\n setSaveSearchName(\"\");\n setIsSaved(false);\n }\n\n useEffect(() => {\n if(isFiltersEdited){\n saveLast();\n }\n }, [currentFilters, currentSelectedColumns, isFiltersEdited, idOfLoadedSave]);\n\n return (\n <>\n \n \n
\n \n \n {isSaved ? (\n All done\n ) : (\n \n Save current filters and columns as\n \n )}\n \n \n {isSaved ? (\n \n Your search for {saveSearchName} has been saved\n \n ) : (\n {\n if (e.target.value.length <= 100) {\n setSaveSearchName(e.target.value);\n }\n }}\n disabled={isLoading}\n />\n )}\n \n \n \n {isSaved ? \"Finished\" : \"Save Filters\"}\n \n \n \n
\n {/* Save current search */}\n
\n \n );\n}\n","import React from \"react\";\n\nconst ExcelIcon = ({\n className = \"\",\n onClick = () => {},\n width = 20,\n height = 32\n}) => {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default ExcelIcon;\n","import { Button, message } from \"antd\";\nimport React from \"react\";\nimport useCheckUserRoles from \"../../Common/Hooks/useCheckUserRoles\";\nimport { exportLoansSearchToXLS } from \"../../actions/loans\";\nimport ExcelIcon from \"../../assets/icons/ExcelIcon\";\n\ntype ExportLoanSearchToXlsProps = {\n id: number;\n visible?: boolean;\n};\n\nexport default function ExportLoanSearchToXls({\n id,\n visible = false\n}: ExportLoanSearchToXlsProps) {\n const { checkIfUserIsSystemAdmin } = useCheckUserRoles();\n\n async function exportXLS(id: number) {\n const isSystemUser = await checkIfUserIsSystemAdmin();\n const res = await exportLoansSearchToXLS(isSystemUser, id);\n if (res.status) {\n message.success(\"Loaded search exported. Please check your e-mail\");\n } else {\n console.error(res.message);\n message.error(\n `${res.message ? res.message + \".\" : \"\"} Cannot export at this time`\n );\n }\n }\n\n return (\n <>\n {visible && (\n \n )}\n \n );\n}\n","import { useState, useEffect } from 'react';\n\nfunction useDebounce(value: T, delay: number) {\n const [debouncedValue, setDebouncedValue] = useState(value);\n\n useEffect(() => {\n const timer = setTimeout(() => {\n setDebouncedValue(value);\n }, delay);\n\n return () => {\n clearTimeout(timer);\n };\n }, [value, delay]);\n\n return debouncedValue;\n};\n\nexport default useDebounce;","import React, { useEffect, useMemo, useState } from \"react\";\nimport {\n IAllLoanFilters,\n IAllLoanSearchFilterPayload\n} from \"../../../libs/types\";\nimport useCheckUserRoles from \"../../../Common/Hooks/useCheckUserRoles\";\nimport {\n getSavedSearchesList,\n loadAllLoanLastSearch,\n loadSavedSearch\n} from \"../../../actions/loans\";\nimport { Select } from \"antd\";\nimport useDebounce from \"../../../Common/Hooks/useDebounce\";\n\ntype AllLoansLoadSearchProps = {\n currentLoaded: number;\n onLoadSavedSearch: (\n result: {\n id: number;\n pagination?: {\n page: number;\n pageSize: number;\n sort: string | null;\n orderBy: string | null;\n sortDirection: {\n name: string | null;\n key: string | null;\n } | null;\n };\n filters?: IAllLoanFilters;\n selectedColumns?: string[];\n },\n keepLastChange?: boolean\n ) => void;\n onLoadSavedList: () => void;\n shouldLoadSavedList: boolean;\n nameOfLatestSave?: string;\n onClearSearch?: () => void;\n};\n\ninterface SaveSearchListItem {\n id: number;\n name: string;\n createdDate: string;\n}\n\nexport default function AllLoansLoadSearch({\n currentLoaded = 0,\n onLoadSavedSearch,\n onLoadSavedList,\n shouldLoadSavedList,\n nameOfLatestSave = \"\",\n onClearSearch = () => {}\n}: AllLoansLoadSearchProps) {\n const { checkIfUserIsSystemAdmin } = useCheckUserRoles();\n\n const [isLoading, setIsLoading] = useState(false);\n const [searchValue, setSearchValue] = useState(\"\");\n const [savedSearchList, setSavedSearchList] = useState(\n []\n );\n\n const debouncedSearchValue = useDebounce(searchValue, 500);\n\n function flattenFilters(filters: IAllLoanSearchFilterPayload): IAllLoanFilters {\n return {\n ...filters,\n \"constructionScenario.contingenciesAllowance\":\n filters.constructionScenario?.contingenciesAllowance || null,\n \"constructionScenario.developerSuccessfulProjects\":\n filters.constructionScenario?.developerSuccessfulProjects || null,\n \"constructionScenario.isBuilderDeveloper\":\n typeof filters.constructionScenario?.isBuilderDeveloper === 'boolean' ? `${filters.constructionScenario.isBuilderDeveloper}` : null ,\n \"constructionScenario.isBuildToHold\":\n typeof filters.constructionScenario?.isBuildToHold === 'boolean' ? `${filters.constructionScenario?.isBuildToHold}` : null,\n \"constructionScenario.loanAmountPercentageGstEx\":\n filters.constructionScenario?.loanAmountPercentageGstEx || null,\n \"constructionScenario.preCommittedCommercialTenants\":\n typeof filters.constructionScenario?.preCommittedCommercialTenants === 'boolean' ? `${filters.constructionScenario.preCommittedCommercialTenants}` : null,\n \"constructionScenario.presalesDebtCoverRequired\":\n typeof filters.constructionScenario?.presalesDebtCoverRequired === 'boolean' ? `${filters.constructionScenario?.presalesDebtCoverRequired}`: null,\n \"constructionScenario.projectManagerRequired\":\n typeof filters.constructionScenario?.projectManagerRequired === 'boolean' ? `${filters.constructionScenario?.projectManagerRequired}` : null,\n \"constructionScenario.qSRequired\":\n typeof filters.constructionScenario?.qsRequired === 'boolean' ? `${filters.constructionScenario?.qsRequired}` : null ,\n \"constructionScenario.tdcEquity\":\n filters.constructionScenario?.tdcEquity || null,\n\n \"subdivisionScenario.contingenciesAllowance\":\n filters.subdivisionScenario?.contingenciesAllowance || null,\n \"subdivisionScenario.developerSuccessfulProjects\":\n filters.subdivisionScenario?.developerSuccessfulProjects || null,\n \"subdivisionScenario.isBuilderDeveloper\":\n typeof filters.subdivisionScenario?.isBuilderDeveloper === 'boolean' ? `${filters.subdivisionScenario.isBuilderDeveloper}` : null ,\n \"subdivisionScenario.isBuildToHold\":\n typeof filters.subdivisionScenario?.isBuildToHold === 'boolean' ? `${filters.subdivisionScenario?.isBuildToHold}` : null,\n \"subdivisionScenario.loanAmountPercentageGstEx\":\n filters.subdivisionScenario?.loanAmountPercentageGstEx || null,\n \"subdivisionScenario.presalesDebtCoverRequired\":\n typeof filters.subdivisionScenario?.presalesDebtCoverRequired === 'boolean' ? `${filters.subdivisionScenario?.presalesDebtCoverRequired}`: null,\n \"subdivisionScenario.projectManagerRequired\":\n typeof filters.subdivisionScenario?.projectManagerRequired === 'boolean' ? `${filters.subdivisionScenario?.projectManagerRequired}` : null,\n \"subdivisionScenario.qSRequired\":\n typeof filters.subdivisionScenario?.qsRequired === 'boolean' ? `${filters.subdivisionScenario?.qsRequired}` : null ,\n \"subdivisionScenario.tdcEquity\":\n filters.subdivisionScenario?.tdcEquity || null,\n \"subdivisionScenario.typeKey\": filters.subdivisionScenario?.typeKey || null\n };\n }\n\n async function loadSavedSearchList(search = \"\") {\n const isSystemUser = await checkIfUserIsSystemAdmin();\n setIsLoading(true);\n const res = await getSavedSearchesList(isSystemUser, {\n search: search\n });\n if (res && res.length > 0) {\n setSavedSearchList(res);\n onLoadSavedList();\n }\n setIsLoading(false);\n }\n\n async function loadLastSaved() {\n setIsLoading(true);\n const res = await loadAllLoanLastSearch();\n if (res.status && res.data) {\n const {\n filters: { page, pageSize, sort, orderBy, sortDirection, ...filters },\n selectedColumns,\n savedSearchId\n } = res.data;\n const pagination = {\n page,\n pageSize,\n sort,\n orderBy,\n sortDirection\n };\n if(savedSearchId){\n loadFiltersAndColumns(savedSearchId, false);\n } else {\n onLoadSavedSearch({\n id: savedSearchId || 0,\n pagination,\n filters: flattenFilters(filters),\n selectedColumns\n }, false);\n }\n }\n setIsLoading(false);\n }\n\n /**\n * keepLastChange is used for indicating prop function to not call the api for loading the specific id\n */\n async function loadFiltersAndColumns(id: number, keepLastChange?: boolean) {\n const isSystemUser = await checkIfUserIsSystemAdmin();\n setIsLoading(true);\n if (!keepLastChange) {\n const res = await loadSavedSearch(isSystemUser, id);\n const {\n filters: { page, pageSize, sort, orderBy, sortDirection, ...filters },\n selectedColumns\n } = res;\n const pagination = {\n page,\n pageSize,\n sort,\n orderBy,\n sortDirection\n };\n\n onLoadSavedSearch({\n id,\n pagination,\n filters: flattenFilters(filters),\n selectedColumns\n });\n } else {\n onLoadSavedSearch(\n {\n id\n },\n keepLastChange\n );\n }\n setIsLoading(false);\n }\n\n useEffect(() => {\n loadSavedSearchList();\n loadLastSaved();\n }, []);\n\n useEffect(() => {\n loadSavedSearchList(debouncedSearchValue);\n }, [debouncedSearchValue]);\n\n useEffect(() => {\n if (shouldLoadSavedList) {\n loadSavedSearchList();\n }\n }, [shouldLoadSavedList]);\n\n useEffect(() => {\n if (nameOfLatestSave) {\n const item = savedSearchList.find(v => v.name === nameOfLatestSave);\n if (item) {\n loadFiltersAndColumns(item.id, true);\n }\n }\n }, [nameOfLatestSave, savedSearchList]);\n\n return (\n <>\n setSearchValue(value)}\n onChange={(value: string) => {\n if (value) {\n loadFiltersAndColumns(Number.parseInt(value || \"0\"));\n } else if (!value) {\n onClearSearch();\n }\n }}\n allowClear\n showSearch\n loading={isLoading}\n filterOption={false}\n >\n {savedSearchList.map(x => (\n \n {x.name}\n \n ))}\n \n \n );\n}\n","import React, { Fragment, useEffect, useMemo, useState } from \"react\";\nimport { Row, Col, Typography, Modal, Card, Button, Icon, message } from 'antd';\nimport _, { filter } from \"lodash\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { updateHeader, updateRouteOptions } from \"../../actions/member\";\nimport { getAllLoansAsSystemUser, getAllLoansAsIndividual, getAllLoansExpiryLookups } from \"../../actions/loans\";\nimport { evaluatePolicy, mustBeArray } from \"../../libs\";\nimport AllLoansList from \"../../components/Loans/AllLoansList\";\nimport { ALL_LOANS_STATUS } from \"../../constants\";\nimport { isLenderUserPolicy, isLenderOwnProfilePolicy } from \"../../Common/Authorization/policies/isLenderUserPolicy\";\nimport { isBrokerUserPolicy, isBrokerOwnProfilePolicy } from \"../../Common/Authorization/policies/isBrokerUserPolicy\";\nimport { isSystemUserPolicy } from \"../../Common/Authorization/policies/isSystemUserPolicy\";\nimport { isLawFirmUserPolicy, isLawFirmOwnProfilePolicy } from \"../../Common/Authorization/policies/isLawFirmUserPolicy\";\nimport { ADMIN_USER, DUAL_USER, BROKER_USER, LENDER_USER, LAW_FIRM_USER } from \"../../constants/systemUsers\";\nimport {\n EMAIL_SUBSCRIPTIONS_OPTION_LENDER_USER,\n LENDER_PROFILE_ROUTES_WITHOUT_BROKER_PROFILE_SYSTEM_USER,\n LENDER_PROFILE_ROUTES_WITH_BROKER_PROFILE_SYSTEM_USER,\n BROKER_PROFILE_ROUTES_WITHOUT_LENDER_PROFILE_SYSTEM_USER,\n LAWFIRM_PROFILE_ROUTES_SYSTEM_USER,\n PROFILE_EDIT_OPTION,\n DEFAULT_ROUTES_SYSTEM_USER\n} from \"../../constants/routeOptions\";\nimport { getAllLoansBdmLookup, getAllLoansPartnerLookups } from \"../../actions/loans\";\nimport AllLoansFilters from \"../../components/Loans/AllFilters/AllLoansFilters\";\nimport useCheckUserRoles from \"../../Common/Hooks/useCheckUserRoles\";\nimport { allLoansColumnsLookups } from \"../../actions/lookup\";\nimport AllLoansColumnsSelection from \"../../components/Loans/AllLoansColumnsSelection\";\nimport AllLoansSaveSearch from \"../../components/Loans/AllFilters/AllLoansSaveSearch\";\nimport ExportLoanSearchToXls from \"../../components/Loans/ExportLoanSearchToXls\";\nimport AllLoansLoadSearch from \"../../components/Loans/AllFilters/AllLoansLoadSearch\";\nimport useDebounceCallback from \"../../Common/Hooks/useDebounceCallback\";\n\n/**\n * @type {import(\"../../libs/types\").IAllLoanListItem[]}\n */\nconst defaultList = [];\n\n/**\n * @type {import(\"../../libs/types\").IAllLoanFilters}\n */\nconst baseFilters = {\n expiryKey: \"all\",\n statusKey: \"\",\n omicronBdmId: null,\n partnerId: \"all\",\n associateId: null,\n lawFirmId: null,\n credits: [],\n interestKey: \"\",\n valuationRequired: \"\",\n priorityKey: \"\",\n securityTypeKey: \"\",\n securitySubTypeKey: \"\",\n suburb: \"\",\n state: \"\",\n radiusSearchKey: \"\",\n minPrincipal: null,\n maxPrincipal: null,\n minLowerRate: null,\n maxLowerRate: null,\n minHigherRate: null,\n maxHigherRate: null,\n minEstablishmentFee: null,\n maxEstablishmentFee: null,\n minLvr: null,\n maxLvr: null,\n scenarioKey: \"\",\n \"constructionScenario.contingenciesAllowance\": null,\n \"constructionScenario.developerSuccessfulProjects\": null,\n \"constructionScenario.isBuilderDeveloper\": null,\n \"constructionScenario.isBuildToHold\": null,\n \"constructionScenario.loanAmountPercentageGstEx\": null,\n \"constructionScenario.preCommittedCommercialTenants\": \"\",\n \"constructionScenario.presalesDebtCoverRequired\": null,\n \"constructionScenario.projectManagerRequired\": null,\n \"constructionScenario.qSRequired\": null,\n \"constructionScenario.tdcEquity\": null,\n \"subdivisionScenario.typeKey\": null,\n \"subdivisionScenario.contingenciesAllowance\": null,\n \"subdivisionScenario.developerSuccessfulProjects\": null,\n \"subdivisionScenario.isBuilderDeveloper\": null,\n \"subdivisionScenario.isBuildToHold\": \"\",\n \"subdivisionScenario.loanAmountPercentageGstEx\": null,\n \"subdivisionScenario.presalesDebtCoverRequired\": null,\n \"subdivisionScenario.projectManagerRequired\": null,\n \"subdivisionScenario.qSRequired\": null,\n \"subdivisionScenario.tdcEquity\": null,\n minTermKey: \"\",\n maxTermKey: \"\",\n brokerStarsFromLender: null,\n lenderStarsFromBroker: null\n}\n\nconst defaultLoadedSearch = {\n id: 0,\n canExport: false\n}\n\nconst LoansView = () => {\n const dispatchAction = useDispatch();\n const [loading, setLoading] = useState(false);\n const [page, setPage] = useState(1);\n const [total, setTotal] = useState(0);\n const [list, setList] = useState(defaultList);\n const user = useSelector(state => state?.authorization?.user);\n const individualUser = useSelector(state => state.authorization && state.authorization.individualUser);\n\n const [isModalOpen, setIsModalOpen] = useState(false);\n const [isColumnsDrawerOpen, setIsColumnsDrawerOpen] = useState(false);\n\n const [defaultFilters, setDefaultFilters] = useState(baseFilters);\n const [filters, setFilters] = useState(baseFilters);\n const [columnsList, setColumnsList] = useState([]);\n const [selectedColumns, setSelectedColumns] = useState([]);\n const [loadedSearch, setloadedSearch] = useState(defaultLoadedSearch);\n const [isFiltersEdited, setIsFiltersEdited] = useState(false);\n const [shouldLoadSavedList, setShouldLoadSavedList] = useState(false);\n const [nameOfLatestSave, setNameOfLatestSave] = useState(\"\");\n\n const {\n isSystemAdmin,\n checkIfUserIsSystemAdmin\n } = useCheckUserRoles();\n\n useEffect(() => {\n dispatchAction(\n updateHeader({\n header: {\n title: \" \",\n action: \"\",\n page: `loans-view`,\n enableBack: false,\n showSettings: true,\n showMasterSwitch: false,\n showIsProfileActive: false,\n hasSwitchProfile: false,\n editMode: false,\n showNotesButton: false,\n showOmicronBDM: false,\n omicronBdm: null,\n showPageTitle: false\n }\n })\n );\n\n getTableColumns();\n }, []);\n\n useEffect(() => {\n updateUsersRouteOptions();\n }, [window.location.href]);\n \n const updateUsersRouteOptions = async () => {\n\n let isLender = await isLenderUserPolicy(user.roles, user.permissions, user);\n let isBroker = await isBrokerUserPolicy(user.roles, user.permissions, user);\n let systemUser = await isSystemUserPolicy(user.roles, user.permissions, user);\n let isLawFirm = await isLawFirmUserPolicy(user.roles);\n\n const isOwnProfile =\n (await evaluatePolicy(user, isBrokerOwnProfilePolicy(user.id))) ||\n (await evaluatePolicy(user, isLenderOwnProfilePolicy(user.id))) ||\n (await evaluatePolicy(user, isLawFirmOwnProfilePolicy(user.id)));\n\n const roleType = systemUser\n ? ADMIN_USER\n : isLawFirm\n ? LAW_FIRM_USER\n : user.roles.length == 2\n ? DUAL_USER\n : isLender\n ? LENDER_USER\n : isBroker\n ? BROKER_USER\n : \"\";\n \n let newRouteOptions;\n if(roleType === DUAL_USER){\n newRouteOptions = LENDER_PROFILE_ROUTES_WITH_BROKER_PROFILE_SYSTEM_USER;\n }\n else if(roleType === LENDER_USER){\n newRouteOptions = LENDER_PROFILE_ROUTES_WITHOUT_BROKER_PROFILE_SYSTEM_USER\n }\n else if(roleType === BROKER_USER){\n newRouteOptions = BROKER_PROFILE_ROUTES_WITHOUT_LENDER_PROFILE_SYSTEM_USER\n }\n else if(roleType === LAW_FIRM_USER){\n newRouteOptions = LAWFIRM_PROFILE_ROUTES_SYSTEM_USER;\n }\n else {\n newRouteOptions = DEFAULT_ROUTES_SYSTEM_USER;\n }\n\n newRouteOptions = [...newRouteOptions].map(o => {\n o.name = o.id == 9 ? individualUser.companyName : o.name;\n return o;\n });\n\n const menuOptions = isOwnProfile\n ? [...EMAIL_SUBSCRIPTIONS_OPTION_LENDER_USER, ...PROFILE_EDIT_OPTION]\n : [];\n \n dispatchAction(\n await updateRouteOptions({\n routeOptions: _.concat(newRouteOptions, menuOptions)\n })\n );\n }\n\n const getSearchParams = () => {\n const { omicronBdmId, expiryKey, partnerId, credits, statusKey } = filters;\n\n delete filters.constructionScenario;\n delete filters.subdivisionScenario;\n\n const params = {\n ...filters,\n omicronBdmId:\n omicronBdmId && omicronBdmId !== \"all\" ? omicronBdmId : null,\n partnerId: partnerId && partnerId !== \"all\" ? partnerId : null,\n expiryKey: expiryKey && expiryKey !== \"all\" ? expiryKey : null,\n statusKey: statusKey && statusKey !== \"all\" ? statusKey : null,\n };\n\n return params;\n };\n\n const getLoansList = useDebounceCallback(async () => {\n var isLender = await isLenderUserPolicy(user.roles, user.permissions, user);\n var isLawFirm = isLawFirm = await isLawFirmUserPolicy(user.roles);\n const isSystemUser = (await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n ));\n\n if(isSystemUser){\n dispatchAction(getAllLoansAsSystemUser({ queryParams: {...getSearchParams(), page, pageSize: 50} })).then(resp => {\n setList(mustBeArray(resp?.data));\n setTotal(resp?.total);\n });\n }\n else{\n dispatchAction(getAllLoansAsIndividual({ queryParams: {...getSearchParams(), page, pageSize: 50} })).then(resp => {\n setList(mustBeArray(resp?.data));\n setTotal(resp?.total);\n });\n }\n setLoading(false);\n });\n\n async function getTableColumns (){\n dispatchAction(allLoansColumnsLookups()).then(resp => {\n setColumnsList(mustBeArray(resp));\n setSelectedColumns(mustBeArray(resp).filter(x => x.isDefault).map(x => x.id));\n });\n }\n\n function clearAllFilters() {\n setFilters(defaultFilters);\n setloadedSearch(defaultLoadedSearch);\n setIsFiltersEdited(false);\n setPage(1);\n }\n\n function resetColumnsToDefault(){\n setSelectedColumns(columnsList.filter(x => x.isDefault).map(x => x.id));\n clearAllFilters();\n }\n\n function clearAllColumnsAndFilters(){\n resetColumnsToDefault();\n }\n\n /**\n * \n * @param {string} field \n * @param {any} value \n */\n function handleFieldChange(field = \"\", value = undefined){\n switch(field){\n case \"status\":\n setFilters(s => ({\n ...s,\n statusKey: value,\n expiryKey: [ALL_LOANS_STATUS.Settled, ALL_LOANS_STATUS.Default, ALL_LOANS_STATUS.VariationInProgress].includes(\n value\n )\n ? s.expiryKey\n : \"all\"\n }));\n break;\n case \"constructionScenario\":\n setFilters(s => ({\n ...s,\n \"constructionScenario.presalesDebtCoverRequired\": value.presalesDebtCoverRequired,\n \"constructionScenario.loanAmountPercentageGstEx\": value.loanAmountPercentageGstEx,\n \"constructionScenario.qSRequired\": value.qsRequired,\n \"constructionScenario.isBuilderDeveloper\": value.isBuilderDeveloper,\n \"constructionScenario.isBuildToHold\": value.isBuildToHold,\n \"constructionScenario.tdcEquity\": value.tdcEquity,\n \"constructionScenario.projectManagerRequired\": value.projectManagerRequired,\n \"constructionScenario.contingenciesAllowance\": value.contingenciesAllowance,\n \"constructionScenario.developerSuccessfulProjects\": value.developerSuccessfulProjects || null,\n \"constructionScenario.preCommittedCommercialTenants\": value.preCommittedCommercialTenants,\n }));\n break;\n case \"subdivisionScenario\":\n setFilters(s => ({\n ...s,\n \"subdivisionScenario.typeKey\": value.typeKey,\n \"subdivisionScenario.presalesDebtCoverRequired\": value.presalesDebtCoverRequired,\n \"subdivisionScenario.loanAmountPercentageGstEx\": value.loanAmountPercentageGstEx,\n \"subdivisionScenario.qSRequired\": value.qsRequired,\n \"subdivisionScenario.isBuilderDeveloper\": value.isBuilderDeveloper,\n \"subdivisionScenario.isBuildToHold\": value.isBuildToHold,\n \"subdivisionScenario.tdcEquity\": value.tdcEquity,\n \"subdivisionScenario.projectManagerRequired\": value.projectManagerRequired,\n \"subdivisionScenario.contingenciesAllowance\": value.contingenciesAllowance,\n \"subdivisionScenario.developerSuccessfulProjects\": value.developerSuccessfulProjects || null,\n }));\n break;\n case \"minLvr\":\n setFilters(s => ({\n ...s,\n [field]: value,\n valuationRequired: s.maxLvr && s[field] ? \"true\" : s.valuationRequired,\n }));\n break;\n case \"maxLvr\":\n setFilters(s => ({\n ...s,\n [field]: value,\n valuationRequired: s.minLvr && s[field] ? \"true\" : s.valuationRequired,\n }));\n break;\n case 'valuationRequired':\n setFilters(s => ({\n ...s,\n valuationRequired: s.minLvr && s.maxLvr ? \"true\" : value,\n }));\n if(filters.minLvr && filters.maxLvr){\n message.error(\"You cannot change the valuation required while searching with LVR\");\n }\n break;\n case \"brokerStarsFromLender\":\n case \"lenderStarsFromBroker\":\n // Case for number inputs translated to null\n setFilters(s => ({\n ...s,\n [field]: value || null,\n }));\n break;\n case \"lawFirmId\":\n setFilters(s => ({\n ...s,\n [field]: value,\n partnerId: null,\n associateId: null\n }));\n break;\n case \"suburb\":\n case \"state\":\n setFilters(s => ({\n ...s,\n [field]: value,\n radiusSearchKey: value ? s.radiusSearchKey : \"\"\n }));\n break;\n default:\n if(field !== \"\"){\n setFilters(s => ({\n ...s,\n [field]: value\n }));\n }\n break;\n }\n setPage(1);\n setIsFiltersEdited(true);\n setloadedSearch(defaultLoadedSearch);\n }\n\n useEffect(() => {\n if (!loading) {\n setLoading(true);\n getLoansList();\n setPage(1);\n }\n }, [filters]);\n\n useEffect(()=>{\n if (!loading) {\n setLoading(true);\n getLoansList();\n }\n }, [page])\n\n const handleTableChange = (pagination) => {\n setPage(pagination.current);\n }\n\n /**\n * \n * @param {string[]} columns \n */\n const handleColumnSelection = columns => {\n setSelectedColumns(columns);\n setloadedSearch(defaultLoadedSearch);\n }\n\n const handleLoadSavedSearch = ({\n id = 0,\n pagination,\n filters,\n selectedColumns = []\n }, keepLastChange = false) => {\n if(!keepLastChange){\n setPage(pagination.page);\n setFilters(filters);\n setSelectedColumns(selectedColumns);\n }\n setloadedSearch({\n id,\n canExport: id !== 0\n });\n setIsFiltersEdited(id !== 0);\n }\n\n const totalPrincipal = useMemo(()=>{\n let totalAmount = list.length > 0 ? list[0].totalPrincipal : 0;\n\n return totalAmount.toLocaleString(\"en-US\", {\n style: \"currency\",\n currency: \"USD\",\n minimumFractionDigits: 0,\n maximumFractionDigits: 0\n });\n }, [list]);\n\n /**\n * @type {import(\"../../libs/types\").IAllLoanSaveSearchFilters}\n */\n const saveSearchFilters = useMemo(()=>{\n return {\n ...getSearchParams(),\n page,\n pageSize: 50,\n }\n }, [filters]);\n\n return (\n
\n
\n
\n \n
\n \n \n
\n setIsColumnsDrawerOpen(s => !s)}\n >\n Columns\n \n \n
\n \n \n
\n {\n setIsModalOpen(s => !s);\n }}\n >\n Filters\n \n \n
\n \n \n
\n \n Clear All\n \n
\n \n \n Total Records\n {total}\n \n \n \n All Loans\n \n \n \n Total Principal\n {totalPrincipal}\n \n \n Total No. of Loans\n {total}\n \n
\n \n \n {\n setShouldLoadSavedList(false);\n }}\n nameOfLatestSave={nameOfLatestSave}\n getNameOfLatestSave={()=> nameOfLatestSave}\n shouldLoadSavedList={shouldLoadSavedList}\n onClearSearch={() => {\n resetColumnsToDefault();\n clearAllFilters();\n }}\n />\n \n \n {\n setIsFiltersEdited(false);\n setNameOfLatestSave(name || \"\");\n setShouldLoadSavedList(true);\n }}\n idOfLoadedSave={loadedSearch.id}\n />\n \n \n
\n\n \n {\n setIsModalOpen(s => !s);\n }}\n onFiltersChange={handleFieldChange}\n onClearAll={clearAllFilters}\n filters={filters}\n />\n setIsColumnsDrawerOpen(s => !s)}\n columnsList={columnsList}\n selectedColumns={selectedColumns}\n onChange={handleColumnSelection}\n />\n
\n );\n};\n\nexport default LoansView;\n","import React from \"react\";\nimport FilesList from \"../FilesList\";\nimport { LAW_FIRM_USER } from \"../../../constants/systemUsers\";\nimport { Tabs } from \"antd\";\nimport Details from \"../Details\";\nimport LoansTable from \"../../Loans/LoansTable\";\n\nconst LawFirmProfileTabs = ({\n activeTab,\n onTabChange,\n match,\n userType,\n id,\n userHasPermissionToUpdate,\n dispatchAction,\n user,\n loanSearchQueryParams,\n handleSubTabChange,\n activeSubTab,\n isOwnProfile,\n isSytemUser\n}) => {\n const updatedActiveSubKey =\n !isOwnProfile && !isSytemUser && activeSubTab === \"preSettlementLoans\"\n ? \"currentLoans\"\n : activeSubTab;\n return (\n
\n {!isOwnProfile && (\n <>\n \n \n \n {isSytemUser && (\n \n \n \n )}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )}\n {isOwnProfile && (\n <>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )}\n
\n );\n};\nexport default LawFirmProfileTabs;\n","import React, { Fragment } from \"react\";\nimport { useProfile } from \"./useProfile\";\nimport { Form, Spin } from \"antd\";\nimport { ADMIN_USER, LAW_FIRM_USER } from \"../../constants/systemUsers\";\nimport { FormDecoratorProvider } from \"../../components/Common/decoratedFormControl\";\nimport PortraitView from \"../../components/Profile/protrait-view\";\nimport { Visible } from \"../../components/Common/visiblityWrapper\";\nimport ProfileUtility from \"../../components/Profile/Utility/utility\";\nimport ConfirmationModal from \"../../Common/ConfirmationModal\";\nimport LawFirmProfileTabs from \"../../components/Profile/LawFirm/lawFirmProfileTabs\";\n\nconst LawFirmProfile = ({ match, form }) => {\n const {\n loading,\n userProfile,\n current,\n setCurrent,\n isSystemUser,\n setCurrentPortrait,\n portraitsUpdated,\n member,\n saveLoading,\n confirmationModalVisible,\n confirmationText,\n handleFormChange,\n handleRemove,\n handleProfileActiveChange,\n handleMasterSwitchChange,\n handleModalClose,\n handleConfirm,\n canToggleProfileSwitch,\n handleSave,\n user,\n dispatchAction,\n activeTab,\n activeSubTab,\n setActiveTab,\n setActiveSubTab,\n loanSearchQueryParams,\n isOwnProfile\n } = useProfile({ userType: LAW_FIRM_USER, match, form });\n const { getFieldDecorator } = form;\n if (loading) return ;\n\n return (\n \n \n
\n \n
\n \n \n
\n setActiveTab(value)}\n match={match}\n userType={isSystemUser ? ADMIN_USER : LAW_FIRM_USER }\n id={userProfile?.id}\n userHasPermissionToUpdate\n user={user}\n dispatchAction={dispatchAction}\n activeSubTab={activeSubTab}\n handleSubTabChange={value => setActiveSubTab(value) }\n loanSearchQueryParams={loanSearchQueryParams}\n isOwnProfile={isOwnProfile}\n isSytemUser={isSystemUser}\n />\n
\n
\n
\n \n
\n );\n};\n\nexport default Form.create({ name: \"LawFormProfile\" })(LawFirmProfile);\n","import { useEffect, useState } from \"react\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport { isSystemUserPolicy } from \"../../Common/Authorization/policies/isSystemUserPolicy\";\nimport { getLawFirmProfile, masterSwitchTurnOff, masterSwitchTurnOn, profileStatusTurnOff, \n profileStatusTurnOn, updateIndividualProfileV2, updateProfileLoading } from \"../../actions/profile\";\nimport { updateHeader, updateRouteOptions } from \"../../actions/member\";\nimport _, { isUndefined } from \"lodash\";\nimport {\n ALL_LOANS_OPTION,\n LAWFIRM_PROFILE_ROUTES_SYSTEM_USER,\n EMAIL_SUBSCRIPTIONS_OPTION_BROKER_USER,\n PROFILE_EDIT_OPTION,\n CAN_RESET_PROFILE_PASSWORD,\n PROFILE_HAS_NOT_ACCEPTED_INVITATION\n} from \"../../constants/routeOptions\";\nimport { getProfileStatusWarning } from \"../../libs/user\";\nimport { LAW_FIRM_MASTER_SWITCH_OFF_CONFIRMATION_TEXT, LAW_FIRM_MASTER_SWITCH_ON_CONFIRMATION_TEXT } from \"../../constants/warnings\";\nimport { LAW_FIRM_USER } from \"../../constants/systemUsers\";\nimport { message } from \"antd\";\nimport { errorDisplay, mustBeArray } from \"../../libs\";\nimport queryString from \"query-string\";\nimport { useLocation } from \"react-router-dom\";\nimport { isLawFirmUserPolicy } from \"../../Common/Authorization/policies/isLawFirmUserPolicy\";\nimport history from \"../../routes/history\";\n\nexport const useProfile = ({ userType, match, form }) => {\n const [loading, setLoading] = useState(true);\n const [portraitsUpdated, setPortraitsUpdated] = useState(false);\n const [activeTab, setActiveTab] = useState(\"fileNotes\");\n const [activeSubTab, setActiveSubTab] = useState(\"preSettlementLoans\");\n const [canToggleProfileSwitch, setCanToggleProfileSwitch] = useState(false);\n const [confirmationModalVisible, setConfirmationModalVisible] = useState(\n false\n );\n const [confirmationText, setConfirmationText] = useState(\"\");\n const [activeField, setActiveField] = useState(\"\");\n const [current, setCurrent] = useState(1);\n const [currentPortrait, setCurrentPortrait] = useState(null);\n const [isSystemUser, setIsSystemUser] = useState(false);\n const [initialized, setInitialized] = useState(false);\n const [userProfile, setUserProfile] = useState({});\n const [saveLoading, setSaveLoading] = useState(false);\n const [isOwnProfile, setIsOwnProfile] = useState(false);\n\n const profile = useSelector(state => state.profile?.lawFirm);\n const user = useSelector(state => state.authorization?.user);\n const member = useSelector(state => state.member);\n const header = useSelector(state => state.member?.header);\n const individualUser = useSelector(state => state.authorization && state.authorization.individualUser);\n const dispatchAction = useDispatch();\n\n const loansSearch = useLocation().search;\n const loanSearchQueryParams = loansSearch?.length\n ? queryString.parse(loansSearch)\n : null;\n\n useEffect(() => {\n // Set as false by default to prevent checking on notes button when page loads slower\n dispatchAction(\n updateHeader({\n header: {\n ...(header ?? {}),\n showSettings: false,\n showNotesButton: false,\n showPageTitle: false,\n showSearchBox: false\n }\n })\n );\n if (!initialized) {\n loadUserInformation();\n setInitialized(true);\n }\n }, []);\n\n useEffect(() => {\n loadUserInformation();\n }, [match.params.id]);\n\n // Override updateRouteOptions from components/Profile/protrait-view\n useEffect(() => {\n let userId = user[\"app.user.lawfirmid\"];\n // Update active tab to loans if viewing own profile\n const id = match?.params?.id;\n const isOwnProfile = Number(userId) === Number(id);\n if(isOwnProfile){\n setActiveTab(\"loans\")\n }\n // Profile Edit Option available only to SystemUsers or own profile\n const routes = isSystemUser || isOwnProfile ? [...LAWFIRM_PROFILE_ROUTES_SYSTEM_USER, ...PROFILE_EDIT_OPTION] : LAWFIRM_PROFILE_ROUTES_SYSTEM_USER;\n if(currentPortrait){\n let updatedOptions = routes;\n if(currentPortrait.hasAcceptedInvitation){\n updatedOptions = [...routes.filter(o => o.id != CAN_RESET_PROFILE_PASSWORD[0].id && o.id != PROFILE_HAS_NOT_ACCEPTED_INVITATION[0].id), CAN_RESET_PROFILE_PASSWORD[0]];\n }\n else {\n updatedOptions = [...routes.filter(o => o.id != CAN_RESET_PROFILE_PASSWORD[0].id && o.id != PROFILE_HAS_NOT_ACCEPTED_INVITATION[0].id), PROFILE_HAS_NOT_ACCEPTED_INVITATION[0]];\n }\n\n updatedOptions = updatedOptions.map(o => {\n o.name = o.id == 9 ? individualUser.companyName : o.name;\n return o;\n });\n dispatchAction(\n updateRouteOptions({\n routeOptions: updatedOptions\n })\n );\n dispatchAction(updateHeader({\n header: {\n ...(member?.header ?? {}),\n currentPortraitIndividualId: currentPortrait.individualId,\n emailSubcriptionProfileType: LAW_FIRM_USER\n }\n }));\n return;\n }\n }, [currentPortrait, isSystemUser, user]);\n\n useEffect(()=>{\n dispatchAction(updateHeader({\n header: {\n ...header,\n showDeactivatedMessage: !isSystemUser && (userProfile.isMasterSwitchOn === undefined ? false : !userProfile.isMasterSwitchOn),\n }\n }))\n },[userProfile, isSystemUser])\n\n const redirectLawFirmOnViewOther = (userId = 0) => {\n history.push(`/users/${userId}/lawfirm`);\n return;\n }\n\n const loadUserInformation = async (updatedEditMode=undefined) => {\n setLoading(true);\n setCurrent(1);\n const id = match?.params?.id;\n const systemUser = await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n const isLawFirmUser = await isLawFirmUserPolicy(user.roles,\n user.permissions,\n user\n );\n setIsSystemUser(systemUser);\n let userId = user[\"app.user.lawfirmid\"];\n\n // Note:\n // Update active tab to loans if viewing own profile\n const isOwnProfile = Number(userId) === Number(id);\n if(isOwnProfile){\n setActiveTab(\"loans\")\n }\n setIsOwnProfile(isOwnProfile);\n setCanToggleProfileSwitch(systemUser || isOwnProfile);\n\n if(isLawFirmUser && !isOwnProfile){\n redirectLawFirmOnViewOther(userId);\n }\n else {\n const resp = await dispatchAction(\n getLawFirmProfile({\n id,\n isUserViewingSelfProfile: isOwnProfile,\n isAdmin: systemUser\n })\n );\n \n if (resp.status && resp.data) {\n dispatchAction(\n updateHeader({\n header: {\n ...(header ?? {}),\n title: `${resp.data.firstname} ${resp.data.lastname}`,\n hasSwitchProfile: false,\n showOmicronBDM: false,\n showNotesButton: !isLawFirmUser,\n showMasterSwitch: true,\n showIsProfileActive: false,\n showSettings: true,\n omicronBdm: {},\n showPageTitle: true,\n editMode: isUndefined(updatedEditMode) ? header?.editMode : updatedEditMode,\n showSearchBox: !isLawFirmUser,\n showDeactivatedMessage: !systemUser ? !resp.data.isMasterSwitchOn : false,\n }\n })\n );\n \n const sortedPortraits = _.sortBy(\n resp.data.portraits ? resp.data.portraits : [],\n \"appearanceOrder\"\n );\n setUserProfile({ ...resp.data, portraits: sortedPortraits });\n setCurrentPortrait(sortedPortraits[0]);\n setPortraitsUpdated(!portraitsUpdated);\n }\n setLoading(false);\n dispatchAction(updateProfileLoading(false));\n }\n \n };\n\n const handleFormChange = ({ label, value }) => {\n if (\n label === \"website\" ||\n label === \"companyName\" ||\n label === \"companyACN\" ||\n label === \"previewCompanyLogo\" ||\n label === \"portraits\"\n ) {\n setUserProfile({ ...userProfile, [label]: value });\n setPortraitsUpdated(label === \"portraits\" ? !portraitsUpdated : portraitsUpdated);\n return;\n }\n const updatedPortraits = [...userProfile.portraits].map((portrait, i) => {\n if (i === current - 1) {\n portrait[label] = value;\n }\n return portrait;\n });\n setUserProfile({ ...userProfile, portraits: updatedPortraits });\n };\n\n const handleRemove = () => {\n const updatedPortraits = [...userProfile.portraits].filter(\n (_portrait, i) => i !== current - 1\n );\n setUserProfile({ ...userProfile, portraits: updatedPortraits });\n setCurrent(1);\n setPortraitsUpdated(!portraitsUpdated);\n\n message.success(\"User successfully deleted from this Profile and the Platform.\");\n };\n\n const handleProfileActiveChange = () => {\n const warningMessage = getProfileStatusWarning({\n profileType: LAW_FIRM_USER,\n userType,\n isProfileActive: !!profile?.isProfileActive\n });\n setConfirmationText(warningMessage);\n setActiveField(\"isProfileActive\");\n setConfirmationModalVisible(true);\n };\n\n const handleMasterSwitchChange = () => {\n const text = profile?.isMasterSwitchOn\n ? LAW_FIRM_MASTER_SWITCH_OFF_CONFIRMATION_TEXT\n : LAW_FIRM_MASTER_SWITCH_ON_CONFIRMATION_TEXT;\n setConfirmationText(text);\n setActiveField(\"isMasterSwitchActive\");\n setConfirmationModalVisible(true);\n };\n\n const handleConfirm = () => {\n activeField === \"isProfileActive\"\n ? handleConfirmProfileActiveChange()\n : handleConfirmMasterSwitchChange();\n handleModalClose();\n };\n\n const handleSave = () => {\n form.validateFields(err => {\n if (err) {\n console.log(err, \"error\");\n return;\n }\n setSaveLoading(true);\n const updatedProfile = {\n portraits: userProfile.portraits,\n website: userProfile.website,\n omicronBdmId: header?.omicronBdm?.id,\n logoFile: userProfile.logoFile,\n individualId: userProfile.individualId,\n companyACN: userProfile.companyACN,\n companyName: userProfile.companyName,\n previewCompanyLogo: userProfile.previewCompanyLogo\n };\n dispatchAction(updateIndividualProfileV2(updatedProfile, isSystemUser, LAW_FIRM_USER, profile?.id)).then(\n resp => {\n setCurrent(1);\n setCurrentPortrait(userProfile.portraits[0]);\n setSaveLoading(false);\n if (resp.status) {\n message.success(\"Profile updated successfully.\");\n dispatchAction(updateHeader({header: {...(header ?? {}), editMode: false, showNotesButton: true, showPageTitle: true}})).then(() => loadUserInformation(false));\n }\n }\n );\n });\n };\n\n const handleConfirmProfileActiveChange = () => {\n const actionName = !!profile?.isProfileActive\n ? profileStatusTurnOff\n : profileStatusTurnOn;\n const actionMessage = !!profile?.isProfileActive\n ? \"Profile paused successfully.\"\n : \"Profile set to active successfully.\";\n dispatchAction(actionName({ id: profile?.id, profileType: LAW_FIRM_USER })).then(resp => {\n handleModalClose();\n if (resp.status) {\n message.success(actionMessage);\n loadUserInformation();\n } else {\n errorDisplay(resp?.data?.errors);\n }\n });\n };\n\n const handleConfirmMasterSwitchChange = () => {\n const actionName = profile?.isMasterSwitchOn\n ? masterSwitchTurnOff\n : masterSwitchTurnOn;\n const actionMessage = profile?.isMasterSwitchOn ? \"off\" : \"on\";\n dispatchAction(\n actionName({ id: profile?.companyId, profileType: LAW_FIRM_USER })\n ).then(resp => {\n if (resp.status) {\n message.success(`Master switch turned ${actionMessage} successfully.`);\n loadUserInformation();\n }\n });\n };\n\n const handleModalClose = () => {\n setConfirmationModalVisible(false);\n setActiveField(\"\");\n setConfirmationText(\"\");\n };\n\n return {\n loading,\n setLoading,\n portraitsUpdated,\n setPortraitsUpdated,\n activeTab,\n setActiveTab,\n activeSubTab,\n setActiveSubTab,\n canToggleProfileSwitch,\n setCanToggleProfileSwitch,\n confirmationModalVisible,\n activeField,\n setActiveField,\n current,\n setCurrent,\n currentPortrait,\n setCurrentPortrait,\n isSystemUser,\n setIsSystemUser,\n userProfile,\n member,\n saveLoading,\n confirmationText,\n handleFormChange,\n handleRemove,\n handleProfileActiveChange,\n handleMasterSwitchChange,\n handleModalClose,\n handleConfirm,\n handleSave,\n user,\n dispatchAction,\n activeSubTab,\n setActiveSubTab,\n loanSearchQueryParams,\n isOwnProfile\n };\n};\n","import React, { useRef } from \"react\";\nimport { Editor } from \"@tinymce/tinymce-react\";\nimport { TINYMCE_APIKEY } from \"../../constants/api_key\";\n\n/**\n * @typedef TemplateLoaderProps\n * @property {string=} initialValue\n * @property {string=} value\n * @property {(value: string) => void=} onChange\n * @property {boolean=} disabled\n *\n * @param {TemplateLoaderProps} props\n * @returns {JSX.Element}\n *\n * Toolbar options can be found in old TinyMCE docs: https://www.tiny.cloud/docs-3x/reference/buttons/#defaultbuttonsavailableintheadvancedtheme\n *\n * Plugin options: https://www.tiny.cloud/docs-3x/reference/TinyMCE3x@Plugins/\n */\nconst TemplateLoader = ({\n initialValue = \"\",\n value = \"\",\n onChange = v => {},\n disabled\n}) => {\n const editorRef = useRef(null);\n\n return (\n (editorRef.current = editor)}\n init={{\n plugins: \"link image code lists wordcount table\", //preview table\n toolbar:\n \"undo redo | fontsizeselect fontselect | bold italic underline strikethrough blockquote | alignleft aligncenter alignright | bullist numlist | outdent indent | sizeselect | table code | sup sub | forecolor backcolor forecolorpicker backcolorpicker | image link unlink\",\n // skin: \"lightgray\", // table | preview code |\n // theme: \"modern\",\n relative_urls: true,\n remove_script_host: false,\n convert_urls: true,\n fontsize_formats: \"8pt 10pt 12pt 14pt 18pt 24pt 36pt\",\n height: \"40vh\",\n visual: false,\n content_css: \"/tinymce_custom.css\"\n }}\n onEditorChange={(v)=>onChange(v)} // Reference for cursor reset on pressing ENTER: https://github.com/tinymce/tinymce-react/issues/88\n apiKey={TINYMCE_APIKEY}\n />\n );\n};\n\nexport default TemplateLoader;\n","export const TINYMCE_APIKEY = \"13r59zuz9gzlgt9gemw078dz0yoxxllct6u2dlfiwp2kmpvd\";","import { http } from \"../libs/http\";\nimport ResponseHandler from \"../libs/response\";\nimport APIHandler, { apiUrls } from \"../constants/apiUrl\";\n\nexport const sendEmailToTest = ({\n payload\n}: {\n payload: FormData;\n}) => {\n return async () => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls?.BULK_EMAIL_TEST_URL || \"\"\n });\n const response: any = await http.post(url, payload);\n\n if (ResponseHandler.isValidStatus(response)) {\n return ResponseHandler.validObject(response);\n } else {\n return ResponseHandler.inValidObject(response);\n }\n };\n};\n\nexport const sendBulkEmail = ({\n payload\n}: {\n payload: FormData;\n}) => {\n return async () => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls?.BULK_EMAIL_SEND_URL || \"\"\n });\n const response: any = await http.postFormData(url, payload);\n\n if (ResponseHandler.isValidStatus(response)) {\n return ResponseHandler.validObject(response);\n } else {\n return ResponseHandler.inValidObject(response);\n }\n }\n};\n","import { Select } from \"antd\";\nimport React, { useEffect, useMemo, useState } from \"react\";\nimport { IBulkEmailRecipientLookupItem } from \"../../libs/types\";\nimport { useDispatch } from \"react-redux\";\nimport _ from \"lodash\";\nimport { bulkEmailRecipientsLookup } from \"../../actions/lookup\";\nimport { mustBeArray } from \"../../libs\";\nimport Axios from \"axios\";\n\ntype RecipientSearchProps = {\n onSelect: (items: IBulkEmailRecipientLookupItem) => void;\n includeUnsubscribed: boolean;\n toSendList: IBulkEmailRecipientLookupItem[]\n};\n\nexport default function RecipientSearch({ onSelect, includeUnsubscribed, toSendList }: RecipientSearchProps) {\n const dispatch = useDispatch();\n const signal = Axios.CancelToken.source();\n\n const [recipientList, setRecipientList] = useState<\n IBulkEmailRecipientLookupItem[]\n >([]);\n\n const getRecipients = _.debounce(async (value: string = \"\") => {\n const response = await dispatch(\n bulkEmailRecipientsLookup({\n search: value,\n includeUnsubscribed: includeUnsubscribed,\n cancelToken: signal.token\n })\n );\n setRecipientList(mustBeArray(response));\n }, 300);\n\n function handleSelect(value: string) {\n if (value !== \"\") {\n const parsed: IBulkEmailRecipientLookupItem = JSON.parse(value);\n onSelect(parsed);\n }\n }\n\n useEffect(() => {\n getRecipients();\n }, []);\n\n useEffect(() => {\n getRecipients();\n }, [toSendList])\n\n const filteredList = useMemo(()=>{\n return recipientList.filter(x => includeUnsubscribed ? x.isSubscribed || !x.isSubscribed : x.isSubscribed);\n }, [includeUnsubscribed, recipientList]);\n\n return (\n getRecipients(value || \"\")} // Default search is \"A\" to avoid blank option names on lookup\n filterOption={false}\n onSelect={(value: string) => {\n handleSelect(value);\n }}\n value={\"\"}\n showSearch\n >\n {filteredList.map((v, i) => (\n \n {v.name}\n \n ))}\n \n );\n}\n","import {\n Button,\n Col,\n Form,\n Icon,\n Input,\n Layout,\n message,\n Modal,\n Row,\n Select,\n Switch,\n Typography,\n Upload\n} from \"antd\";\nimport React, { useEffect, useMemo, useState } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport history from \"../../routes/history\";\nimport { FormComponentProps } from \"antd/es/form/Form\";\nimport { updateHeader } from \"../../actions/member\";\nimport TemplateLoader from \"../../components/Common/tempateLoader\";\nimport Axios from \"axios\";\nimport { marketingSenderLookup } from \"../../actions/lookup\";\nimport { errorDisplay, mustBeArray } from \"../../libs\";\nimport _ from \"lodash\";\nimport {\n IBulkEmailRecipientLookupItem,\n IBulkEmailSendError,\n IBulkEmailSendPayload,\n IMarketingSenderLookupItem\n} from \"../../libs/types\";\nimport { sendBulkEmail, sendEmailToTest } from \"../../actions/bulkEmail\";\nimport RecipientSearch from \"../../components/BulkEmail/RecipientSearch\";\nimport { UploadChangeParam } from \"antd/lib/upload\";\nimport RequiredSign from \"../../Common/RequiredSign\";\nimport ConfirmationModal from \"../../Common/ConfirmationModal\";\n\ninterface CreateEmailProps extends FormComponentProps {}\n\nconst SYSTEM_EMAIL = \"system@omicron.net.au\";\n\nexport const CreateEmail = React.forwardRef(\n (\n {\n form: { getFieldDecorator, getFieldValue, validateFields }\n }: CreateEmailProps,\n ref\n ) => {\n const dispatch = useDispatch();\n const signal = Axios.CancelToken.source();\n\n const [testEmail, setTestEmail] = useState(\"\");\n const [testEmailHasError, setTestEmailHasError] = useState(false);\n const [senderList, setSenderList] = useState(\n []\n );\n const [isSubmitLoading, setIsSubmitLoading] = useState(false);\n const [isAlertModalOpen, setIsAlertModalOpen] = useState(false);\n\n const [toSendList, setToSendList] = useState<\n IBulkEmailRecipientLookupItem[]\n >([]);\n const [includeUnsubscribed, setIncludeUnsubscribed] = useState(false);\n\n const numberOfUnsubscribedUsers = useMemo(() => {\n var unsubscribedUsersCount = toSendList.filter(x => !x.isSubscribed && x.individualId).length\n var unsubscribedCompanyUsersCount = toSendList.filter(x => x.companyId).map(x => x.numberOfUnsubscribedUsers || 0).filter(x => x > 0).reduce((x, y) => x + y, 0)\n unsubscribedUsersCount = unsubscribedUsersCount + unsubscribedCompanyUsersCount;\n\n return unsubscribedUsersCount;\n }, [toSendList]);\n\n // Lookups\n const getSenders = _.debounce(async (search: string = \"\") => {\n const s = await dispatch(\n marketingSenderLookup({\n search,\n cancelToken: signal.token\n })\n );\n setSenderList(mustBeArray(s));\n }, 500);\n\n function displayToast(response: any) {\n if (response.status) {\n message.success(\"Email sent successfully\");\n } else {\n if (response.data.errors) {\n const errors: IBulkEmailSendError[] = response.data.errors;\n errors.forEach(error => {\n message.error(error.message);\n });\n } else {\n console.error(response.data);\n }\n }\n }\n\n function handleSelectRecipient(item: IBulkEmailRecipientLookupItem) {\n const existingItem = toSendList.findIndex(x => x.key === item.key);\n if (existingItem === -1) {\n setToSendList(s => [...s, item]);\n }\n }\n\n function handleDeselectRecipient(itemKey: string) {\n setToSendList(s => s.filter(x => x.key !== itemKey));\n }\n\n function handleIncludeUnsubscribedChange(value: boolean){\n setIncludeUnsubscribed(value);\n setToSendList([]);\n }\n\n async function submit(type: \"user\" | \"test\" = \"user\") {\n validateFields(async (errors, values) => {\n if (errors) {\n message.error(\"Please check for missing fields\");\n return;\n } else {\n try {\n if (type === \"test\") {\n const emailBody = getFieldValue(\"emailBody\") || \"\";\n const emailSubject = getFieldValue(\"emailSubject\");\n const senderEmail = getFieldValue(\"senderEmail\");\n const attachments: UploadChangeParam | undefined = getFieldValue(\n \"attachments\"\n );\n const attachmentList = attachments ? attachments.fileList : [];\n let totalAttachmentSize = 0;\n const formData = new FormData();\n\n if (testEmail === \"\") {\n message.error(\"No test email/s added\");\n setTestEmailHasError(true);\n return;\n }\n setIsSubmitLoading(true);\n const testEmails = testEmail.split(\";\");\n formData.append(\n \"emailBody\",\n JSON.stringify({\n emailBody,\n emailSubject,\n senderEmail,\n testEmails\n })\n );\n attachmentList.forEach(x => {\n if (x.originFileObj) {\n totalAttachmentSize += x.originFileObj.size;\n formData.append(\"attachments\", x.originFileObj);\n }\n });\n if (totalAttachmentSize / 1024 ** 2 > 25) {\n message.error(\n \"Total attachments size cannot exceed more than 25MB\"\n );\n return;\n }\n const response: any = await dispatch(\n sendEmailToTest({\n payload: formData\n })\n );\n displayToast(response);\n } else {\n setIsSubmitLoading(true);\n\n if (\n numberOfUnsubscribedUsers > 0 &&\n values.senderEmail === SYSTEM_EMAIL\n ) {\n message.error(\n `You cannot send an email to unsubscribed users as ${SYSTEM_EMAIL}`\n );\n return;\n }\n\n let companyIds: number[] = [];\n let individualIds: number[] = [];\n\n toSendList.forEach(x => {\n if (x.companyId) {\n companyIds.push(x.companyId);\n } else if (x.individualId) {\n individualIds.push(x.individualId);\n }\n });\n\n const payload: IBulkEmailSendPayload = {\n emailBody: values.emailBody || \"\",\n emailSubject: values.emailSubject,\n senderEmail: values.senderEmail,\n individualIds,\n companyIds,\n includeUnsubscribed\n };\n\n const attachments: UploadChangeParam | undefined = getFieldValue(\n \"attachments\"\n );\n const attachmentList = attachments ? attachments.fileList : [];\n let totalAttachmentSize = 0;\n const formData = new FormData();\n\n attachmentList.forEach(x => {\n if (x.originFileObj) {\n totalAttachmentSize += x.originFileObj.size;\n formData.append(\"attachments\", x.originFileObj);\n }\n });\n formData.append(\"emailBody\", JSON.stringify(payload));\n if (totalAttachmentSize / 1024 ** 2 > 25) {\n message.error(\n \"Total attachments size cannot exceed more than 25MB\"\n );\n return;\n }\n const response: any = await dispatch(\n sendBulkEmail({\n payload: formData\n })\n );\n displayToast(response);\n }\n } catch (error) {\n message.error(\n \"The process could not be completed. Please try again.\"\n );\n } finally {\n setIsSubmitLoading(false);\n }\n }\n });\n }\n\n useEffect(() => {\n dispatch(\n updateHeader({\n header: {\n title: \"Bulk Email\",\n action: \"\",\n page: `bulk-email`,\n enableBack: false,\n showSettings: false,\n showMasterSwitch: false,\n showIsProfileActive: false,\n hasSwitchProfile: false,\n editMode: false,\n showNotesButton: false,\n showOmicronBDM: false,\n omicronBdm: null,\n showPageTitle: false\n }\n })\n );\n getSenders();\n }, []);\n\n return (\n \n {\n e.preventDefault();\n if (includeUnsubscribed && numberOfUnsubscribedUsers > 0) {\n setIsAlertModalOpen(true);\n } else {\n submit();\n }\n }}\n >\n {/* Filters start */}\n
\n \n \n

Bulk Email

\n \n \n
\n {/* Filters end */}\n \n \n \n \n Add\n \n \n \n \n \n {\n handleIncludeUnsubscribedChange(checked);\n }}\n />\n \n Include unsubscribed users\n \n \n \n \n \n To:\n \n \n x.key)}\n onDeselect={handleDeselectRecipient}\n >\n {toSendList.map(v => (\n \n {v.name}\n \n ))}\n \n \n \n \n \n \n {getFieldDecorator(\"emailSubject\", {\n initialValue: \"\",\n rules: [\n {\n required: true,\n whitespace: true,\n message: \"Please enter email subject\"\n }\n ]\n })()}\n \n \n \n \n \n \n \n \n \n \n \n Type your email here\n \n \n \n {getFieldDecorator(\"emailBody\", {\n initialValue: \"\",\n preserve: true,\n validateTrigger: \"onChange\"\n })()}\n \n \n \n \n Attachments\n \n \n {getFieldDecorator(\"attachments\")(\n false}>\n \n \n )}\n \n \n \n \n \n \n Sender\n \n \n {getFieldDecorator(\"senderEmail\", {\n rules: [{ required: true, message: \"Select a sender\" }],\n initialValue: SYSTEM_EMAIL\n })(\n \n {senderList.map((v, i) => (\n \n {v.senderName}\n \n ))}\n \n )}\n \n \n \n \n 0 &&\n getFieldValue(\"senderEmail\") === SYSTEM_EMAIL)\n }\n title={\n numberOfUnsubscribedUsers > 0 &&\n getFieldValue(\"senderEmail\") === SYSTEM_EMAIL\n ? `You cannot send an email to unsubscribed users as ${SYSTEM_EMAIL}`\n : \"\"\n }\n >\n Send\n \n \n \n \n \n \n submit(\"test\")}\n >\n Test\n \n \n \n {\n setTestEmail(value);\n setTestEmailHasError(false);\n }}\n />\n \n \n \n \n {\n setIsAlertModalOpen(false);\n submit();\n }}\n handleModalClose={() => {\n setIsAlertModalOpen(false);\n }}\n title=\"Alert: Unsubsribed Recipients\"\n confirmationText={\n \n {numberOfUnsubscribedUsers > 1\n ? `${numberOfUnsubscribedUsers} have`\n : `${numberOfUnsubscribedUsers} has`}{\" \"}\n unsubscribed from marketing emails. Do you want to send this\n email?\n \n }\n />\n \n \n

\n This window will automatically close when the process is complete,\n or runs into a problem.\n

\n \n
\n );\n }\n);\n\nexport default Form.create({ name: \"marketingEmail\" })(CreateEmail);\n","import { Card, Radio } from 'antd'\nimport React from 'react'\nimport { RadioOption } from '../../libs/types'\n\ninterface RadioInCardProps {\n options: RadioOption[],\n onChange?: (value: string) => void,\n value?: string,\n name?: string,\n label?: string,\n hasError?: boolean\n}\n\nfunction RadioInCard({options, value, onChange, name, label, hasError}: RadioInCardProps, ref: any) {\n return (\n \n {label && {label}}\n {\n if (onChange) {\n onChange(e.target.value);\n }\n }}\n />\n \n );\n}\n\nexport default React.forwardRef(RadioInCard)","import { Table } from \"antd\";\nimport { PaginationConfig } from \"antd/lib/pagination\";\nimport { ColumnProps, SorterResult } from \"antd/lib/table\";\nimport React from \"react\";\nimport { AllUsersListItem } from \"../../libs/types\";\nimport { asDefaultDisplayFormatDate } from \"../../libs\";\nimport history from \"../../routes/history\";\n\ntype AllUsersListProps = {\n loading: boolean;\n total: number;\n page: number;\n handleTableChange: (\n pagination: PaginationConfig,\n sorter: SorterResult\n ) => void;\n data: AllUsersListItem[];\n};\n\nfunction AllUsersList({\n loading,\n page = 1,\n total = 0,\n handleTableChange,\n data = []\n}: AllUsersListProps) {\n const formatDecimalToCurrency = (value: number) => {\n return value\n ? value.toLocaleString(\"en-US\", {\n style: \"currency\",\n currency: \"USD\",\n minimumFractionDigits: 0,\n maximumFractionDigits: 0\n })\n : \"$0\";\n };\n\n function displayFinancier(value: string | null, record: AllUsersListItem) {\n let financier = \"#\";\n if (record.profile === \"LENDER\" || record.profile === \"DUAL\") {\n financier = `/users/${record.lenderId}/lender`;\n } else if (record.profile === \"BROKER\") {\n financier = `/users/${record.brokerId}/broker`;\n }\n\n return value ? (\n \n {value || \"N/A\"}\n \n ) : (\n N/A\n );\n }\n\n function displayLoan(value: string | null, record: AllUsersListItem) {\n return value ? (\n \n {value || \"N/A\"}\n \n ) : (\n N/A\n );\n }\n\n function displayCriteria(value:string){\n return \n {value}\n \n }\n\n function displayFundsAvailable(value:number | null, record: AllUsersListItem){\n if(record.criteria === 'N/A'){\n return \"N/A\"\n }\n\n return formatDecimalToCurrency(value ?? 0);\n }\n\n function displayLastLoginBy(value:string | null, record: AllUsersListItem){\n return value || \"N/A\";\n }\n\n function displayLastLogin(value:any | null, record: AllUsersListItem){\n\n return asDefaultDisplayFormatDate(value) || \"N/A\";\n }\n\n const colTemplate: ColumnProps[] = [\n {\n title: \"Financier\",\n dataIndex: \"companyName\",\n render: displayFinancier,\n width: \"8%\"\n },\n {\n title: \"Profile\",\n dataIndex: \"profile\"\n },\n {\n title: \"User 1\",\n dataIndex: \"user1\",\n render: displayFinancier,\n width: \"8%\"\n },\n {\n title: \"User 2\",\n dataIndex: \"user2\",\n render: displayFinancier,\n width: \"8%\"\n },\n {\n title: \"User 3\",\n dataIndex: \"user3\",\n render: displayFinancier,\n width: \"8%\"\n },\n {\n title: \"Last Call With\",\n dataIndex: \"lastCallWith\",\n width: \"8%\"\n },\n {\n title: \"Last Call\",\n dataIndex: \"lastCallDate\",\n render: value => asDefaultDisplayFormatDate(value)\n },\n {\n title: \"Last Login\",\n dataIndex: \"lastLoginDate\",\n render: displayLastLogin\n },\n {\n title: \"Last Login By\",\n dataIndex: \"lastLoginBy\",\n width: \"8%\",\n render: displayLastLoginBy\n },\n {\n title: \"Criteria\",\n dataIndex: \"criteria\",\n render: displayCriteria\n },\n {\n title: \"Last Loan\",\n dataIndex: \"lastLoanNo\",\n render: displayLoan\n },\n {\n title: \"Last Date\",\n dataIndex: \"lastLoanDate\",\n render: value => asDefaultDisplayFormatDate(value)\n },\n {\n title: \"Last Suburb\",\n dataIndex: \"lastLoanSuburb\"\n },\n {\n title: \"Last Partner\",\n dataIndex: \"lastPartner\"\n },\n {\n title: \"Last Principal\",\n dataIndex: \"lastPrincipal\",\n render: value => formatDecimalToCurrency(value)\n },\n {\n title: \"Funds Available\",\n dataIndex: \"fundsAvailable\",\n render: displayFundsAvailable\n }\n ];\n\n return (\n {\n handleTableChange(pagination, sorter);\n }}\n />\n );\n}\n\nexport default AllUsersList;\n","import _ from \"lodash\";\nimport { updateRouteOptions } from \"../../actions/member\";\nimport { LENDER_PROFILE_ROUTES_WITH_BROKER_PROFILE_SYSTEM_USER, LENDER_PROFILE_ROUTES_WITHOUT_BROKER_PROFILE_SYSTEM_USER, BROKER_PROFILE_ROUTES_WITHOUT_LENDER_PROFILE_SYSTEM_USER, LAWFIRM_PROFILE_ROUTES_SYSTEM_USER, DEFAULT_ROUTES_SYSTEM_USER, EMAIL_SUBSCRIPTIONS_OPTION_LENDER_USER, PROFILE_EDIT_OPTION } from \"../../constants/routeOptions\";\nimport { ADMIN_USER, LAW_FIRM_USER, DUAL_USER, LENDER_USER, BROKER_USER } from \"../../constants/systemUsers\";\nimport { evaluatePolicy } from \"../../libs\";\nimport { isBrokerUserPolicy, isBrokerOwnProfilePolicy } from \"../Authorization/policies/isBrokerUserPolicy\";\nimport { isLawFirmUserPolicy, isLawFirmOwnProfilePolicy } from \"../Authorization/policies/isLawFirmUserPolicy\";\nimport { isLenderUserPolicy, isLenderOwnProfilePolicy } from \"../Authorization/policies/isLenderUserPolicy\";\nimport { isSystemUserPolicy } from \"../Authorization/policies/isSystemUserPolicy\";\nimport { useDispatch, useSelector } from \"react-redux\";\n\n\nconst useUpdateUsersRouteOptions = async () => {\n const dispatchAction = useDispatch();\n const user: any = useSelector(state => state?.authorization?.user);\n const individualUser:any = useSelector(state => state.authorization && state.authorization.individualUser); \n\n\n let isLender = await isLenderUserPolicy(user.roles, user.permissions, user);\n let isBroker = await isBrokerUserPolicy(user.roles, user.permissions, user);\n let systemUser = await isSystemUserPolicy(user.roles, user.permissions, user);\n let isLawFirm = await isLawFirmUserPolicy(user.roles, [], user);\n\n const isOwnProfile =\n (await evaluatePolicy(user, isBrokerOwnProfilePolicy(user.id))) ||\n (await evaluatePolicy(user, isLenderOwnProfilePolicy(user.id))) ||\n (await evaluatePolicy(user, isLawFirmOwnProfilePolicy(user.id)));\n\n const roleType = systemUser\n ? ADMIN_USER\n : isLawFirm\n ? LAW_FIRM_USER\n : user.roles.length == 2\n ? DUAL_USER\n : isLender\n ? LENDER_USER\n : isBroker\n ? BROKER_USER\n : \"\";\n \n let newRouteOptions;\n if(roleType === DUAL_USER){\n newRouteOptions = LENDER_PROFILE_ROUTES_WITH_BROKER_PROFILE_SYSTEM_USER;\n }\n else if(roleType === LENDER_USER){\n newRouteOptions = LENDER_PROFILE_ROUTES_WITHOUT_BROKER_PROFILE_SYSTEM_USER\n }\n else if(roleType === BROKER_USER){\n newRouteOptions = BROKER_PROFILE_ROUTES_WITHOUT_LENDER_PROFILE_SYSTEM_USER\n }\n else if(roleType === LAW_FIRM_USER){\n newRouteOptions = LAWFIRM_PROFILE_ROUTES_SYSTEM_USER;\n }\n else {\n newRouteOptions = DEFAULT_ROUTES_SYSTEM_USER;\n }\n\n newRouteOptions = [...newRouteOptions].map(o => {\n o.name = o.id == 9 ? individualUser.companyName : o.name;\n return o;\n });\n\n const menuOptions: any = isOwnProfile\n ? [...EMAIL_SUBSCRIPTIONS_OPTION_LENDER_USER, ...PROFILE_EDIT_OPTION]\n : [];\n \n console.log(menuOptions);\n\n dispatchAction(\n await updateRouteOptions({\n routeOptions: _.concat(newRouteOptions, menuOptions)\n })\n );\n }\n\n export default useUpdateUsersRouteOptions;","import { Col, Form, Row, Select, Typography } from \"antd\";\nimport React, { useEffect, useMemo, useState } from \"react\";\nimport { connect, useDispatch, useSelector } from \"react-redux\";\nimport RadioInCard from \"../../components/Common/RadioInCard\";\nimport { updateHeader } from \"../../actions/member\";\nimport AllUsersList from \"../../components/Users/AllUsersList\";\nimport { PaginationConfig } from \"antd/lib/pagination\";\nimport Axios from \"axios\";\nimport _, { filter } from \"lodash\";\nimport { mustBeArray } from \"../../libs\";\nimport {\n AllUsersListItem,\n AllUsersSearchPayload,\n IBaseLookupItem,\n RadioOption\n} from \"../../libs/types\";\nimport {\n financierTypeLookup,\n firstFundsAvailableLookup,\n getAllUsersList,\n profileStatusLookup,\n settledLoansLookup,\n getAllUsersBdmLookup\n} from \"../../actions/users\";\nimport { FormComponentProps } from \"antd/lib/form\";\nimport { isSystemUserPolicy } from \"../../Common/Authorization/policies/isSystemUserPolicy\";\nimport { ADMIN_USER } from \"../../constants/systemUsers\";\nimport { SorterResult } from \"antd/lib/table\";\nimport useUpdateUsersRouteOptions from \"../../Common/Hooks/useUpdateUsersRouteOptions\";\n\ninterface AllUsersProps extends FormComponentProps {\n updateHeader: typeof updateHeader;\n financierTypeLookup: typeof financierTypeLookup;\n profileStatusLookup: typeof profileStatusLookup;\n settledLoansLookup: typeof settledLoansLookup;\n firstFundsAvailableLookup: typeof firstFundsAvailableLookup;\n getAllUsersList: typeof getAllUsersList;\n getAllUsersBdmLookup: typeof getAllUsersBdmLookup;\n}\n\nexport const AllUsers = React.forwardRef((props: AllUsersProps, ref) => {\n const cancelToken = Axios.CancelToken.source();\n\n const user = useSelector((state: any) => state.authorization.user);\n\n useUpdateUsersRouteOptions();\n\n const [filters, setFilters] = useState({\n omicronBdmId: \"null\",\n typeKey: \"null\",\n settledLoansKey: \"null\",\n profileStatusKey: \"MasterSwitchOn\",\n firstFundsAvailableKey: \"null\",\n page: 1,\n pageSize: 20, // Page size fixed to 20\n orderBy: \"\",\n sort: \"\"\n });\n const [bdmList, setBdmList] = useState([]);\n const [loading, setLoading] = useState(false);\n\n const [filterProfileStatus, setFilterProfileStatus] = useState(\n []\n );\n const [filterFirstFundsAvailable, setFilterFirstFundsAvailable] = useState<\n RadioOption[]\n >([]);\n const [filterFinancierType, setFilterFinancierType] = useState(\n []\n );\n const [filterSettledLoans, setFilterSettledLoans] = useState(\n []\n );\n const [rows, setRows] = useState([]);\n const [total, setTotal] = useState(0);\n\n function changeFilterToRadio(items: IBaseLookupItem[] = []): RadioOption[] {\n return mustBeArray(items).map(v => {\n const converted: RadioOption = {\n label: v.name || \"\",\n value: v.id || 0\n };\n return converted;\n });\n }\n\n const getBdmList = _.debounce(async (search: string = \"\") => {\n const s: any = await props.getAllUsersBdmLookup({ search });\n const list: IBaseLookupItem[] = mustBeArray(s.data);\n setBdmList([\n ...list,\n {\n id: null,\n name: \"All\"\n }\n ]);\n let usersSystemUserId = parseInt(user[\"app.user.systemuserid\"]);\n let bdm = list.filter(bdm => bdm.id == usersSystemUserId);\n if (bdm.length > 0) {\n setFilters(s => ({ ...s, omicronBdmId: `${usersSystemUserId}` }));\n }\n }, 500);\n\n async function getAllUsers(payload: AllUsersSearchPayload) {\n const userType = (await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n ))\n ? ADMIN_USER\n : \"\";\n const res = await props.getAllUsersList({\n cancelToken: cancelToken.token,\n userType,\n payload\n });\n setTotal(res.total);\n setRows(res.rows);\n setLoading(false);\n }\n\n async function getFinancierTypes() {\n const res = await props.financierTypeLookup({\n cancelToken: cancelToken.token\n });\n setFilterFinancierType([\n ...changeFilterToRadio(res),\n {\n label: \"All\",\n value: \"null\"\n }\n ]);\n }\n\n async function getProfileStatuses() {\n const res = await props.profileStatusLookup({\n cancelToken: cancelToken.token\n });\n setFilterProfileStatus(changeFilterToRadio(res));\n }\n\n async function getFirstFundsAvailable() {\n const res = await props.firstFundsAvailableLookup({\n cancelToken: cancelToken.token\n });\n setFilterFirstFundsAvailable([\n ...changeFilterToRadio(res),\n {\n label: \"All\",\n value: \"null\"\n }\n ]);\n }\n\n async function getSettledLoans() {\n const res = await props.settledLoansLookup({\n cancelToken: cancelToken.token\n });\n setFilterSettledLoans([\n ...changeFilterToRadio(res),\n {\n label: \"All\",\n value: \"null\"\n }\n ]);\n }\n\n function changeFilter(\n type:\n | \"omicronBdmId\"\n | \"typeKey\"\n | \"settledLoansKey\"\n | \"profileStatusKey\"\n | \"firstFundsAvailableKey\",\n value: string | number\n ) {\n setFilters(s => ({ ...s, [type]: value }));\n }\n\n function handleTableChange(\n pagination: PaginationConfig,\n sorter: SorterResult\n ) {\n pagination.current;\n setFilters(s => ({\n ...s,\n page: pagination.current || 1,\n sort: sorter.field,\n orderBy: sorter.order\n }));\n }\n\n useEffect(() => {\n props.updateHeader({\n header: {\n title: \"All Users\",\n action: \"\",\n page: `all-users`,\n enableBack: false,\n showSettings: true,\n showMasterSwitch: false,\n showIsProfileActive: false,\n hasSwitchProfile: false,\n editMode: false,\n showNotesButton: true,\n showOmicronBDM: false,\n omicronBdm: null,\n showPageTitle: false\n }\n });\n getBdmList();\n getProfileStatuses();\n getFirstFundsAvailable();\n getFinancierTypes();\n getSettledLoans();\n }, []);\n\n useEffect(() => {}, [filters]);\n\n useEffect(() => {\n if (bdmList.length > 0) {\n setLoading(true);\n const payload: AllUsersSearchPayload = {\n ...filters,\n typeKey: filters.typeKey === \"null\" ? null : filters.typeKey,\n settledLoansKey:\n filters.settledLoansKey === \"null\" ? null : filters.settledLoansKey,\n profileStatusKey:\n filters.profileStatusKey === \"null\" ? null : filters.profileStatusKey,\n firstFundsAvailableKey:\n filters.firstFundsAvailableKey === \"null\"\n ? null\n : filters.firstFundsAvailableKey,\n omicronBdmId: parseInt(filters.omicronBdmId) || null\n };\n getAllUsers(payload);\n }\n\n return () => {\n cancelToken.cancel();\n };\n }, [filters, bdmList]);\n\n const totalPrincipal = useMemo(() => {\n let totalAmount = 0;\n rows.forEach(item => {\n totalAmount += item.lastPrincipal || 0;\n });\n\n return totalAmount.toLocaleString(\"en-US\", {\n style: \"currency\",\n currency: \"USD\",\n minimumFractionDigits: 0,\n maximumFractionDigits: 0\n });\n }, [rows]);\n\n return (\n
\n
\n \n \n changeFilter(\"typeKey\", v)}\n options={filterFinancierType}\n />\n \n \n All Users\n \n \n changeFilter(\"settledLoansKey\", v)}\n options={filterSettledLoans}\n />\n \n \n \n \n \n \n \n \n \n \n changeFilter(\"firstFundsAvailableKey\", v)}\n options={filterFirstFundsAvailable}\n />\n \n \n {/* \n \n Columns\n Filters\n \n \n Total Records\n {total}\n \n \n All Users\n \n \n Total Principal\n {totalPrincipal}\n \n \n Total No. of Users\n {total}\n \n \n \n \n Filters\n \n */}\n
\n
\n \n \n \n \n \n
\n
\n );\n});\n\nconst mapStateToProps = () => ({});\n\nconst mapDispatchToProps = {\n updateHeader,\n financierTypeLookup,\n profileStatusLookup,\n settledLoansLookup,\n firstFundsAvailableLookup,\n getAllUsersList,\n getAllUsersBdmLookup\n};\n\nexport default connect(\n mapStateToProps,\n mapDispatchToProps\n)(Form.create({ name: \"allUsers\" })(AllUsers));\n\n// pages/Users/AllUsers.tsx\n","import React, { useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Input, Table } from \"antd\";\nimport { tableColumnGenerator } from \"../../../libs/table\";\nimport { mustBeArray } from \"../../../libs/utilities\";\nimport NumberInput from \"../../../Common/NumberInput\";\nimport history from \"../../../routes/history\";\nimport { isLawFirmUserPolicy } from \"../../../Common/Authorization/policies/isLawFirmUserPolicy\";\nimport { ILoanSnapshotLender } from \"../../../libs/types\";\n\ninterface LogsAttributedLendersProps {\n attributedLenderList: ILoanSnapshotLender[] | null;\n}\n\nconst SnapshotAttributedLenders = ({\n attributedLenderList\n}: LogsAttributedLendersProps) => {\n const { user } = useSelector((state: any) => state.authorization);\n\n const [isUserLawfirm, setIsUserLawfirm] = useState(false);\n\n const checkIfUserIsLawfirm = async () => {\n const isLawfirm = await isLawFirmUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n setIsUserLawfirm(isLawfirm);\n };\n\n useEffect(() => {\n checkIfUserIsLawfirm();\n }, [user]);\n\n const handleLenderProfileClick = (lenderId: any) => {\n history.push(`/users/${lenderId}/lender`);\n };\n\n return (\n
\n {mustBeArray(attributedLenderList).map((data, i) => {\n return (\n
\n {data.loanLenderId && (\n {\n if (!isUserLawfirm) {\n handleLenderProfileClick(data.loanLenderId);\n }\n }}\n >\n )}\n {!data.loanLenderId && (\n \n )}\n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={(value: any) => value.replace(/\\$\\s?|(,*)/g, \"\")}\n className=\"m-l-6 m-r-6 hideNumberPointers w-150\"\n value={data.loanLenderContribution}\n disabled\n maxLength={undefined}\n maxValue={undefined}\n onBlur={() => {}}\n onChange={() => {}}\n placeholder={\"\"}\n >\n
\n );\n })}\n
\n );\n};\n\nexport default SnapshotAttributedLenders;\n","import React, { useEffect, useState } from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Input } from \"antd\";\nimport { mustBeArray } from \"../../../libs/utilities\";\nimport history from \"../../../routes/history\";\nimport { isLawFirmUserPolicy } from \"../../../Common/Authorization/policies/isLawFirmUserPolicy\";\nimport { ILoanSnapshotBroker } from \"../../../libs/types\";\n\ninterface SnapshotAttributedBrokersProps {\n attributedBrokerList: ILoanSnapshotBroker[] | null;\n}\n\nconst SnapshotAttributedBrokers = ({\n attributedBrokerList\n}: SnapshotAttributedBrokersProps) => {\n const { user } = useSelector((state: any) => state.authorization);\n\n const [isUserLawfirm, setIsUserLawfirm] = useState(false);\n\n const checkIfUserIsLawfirm = async () => {\n const isLawfirm = await isLawFirmUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n setIsUserLawfirm(isLawfirm);\n };\n\n useEffect(() => {\n checkIfUserIsLawfirm();\n }, [user]);\n\n const handleBrokerProfileClick = (brokerId: number | null) => {\n if (brokerId) {\n history.push(`/users/${brokerId}/broker`);\n }\n };\n\n return (\n
\n {mustBeArray(attributedBrokerList).map(\n (data: ILoanSnapshotBroker, i: number) => {\n return (\n
\n {data.loanBrokerId && (\n {\n if (!isUserLawfirm) {\n handleBrokerProfileClick(data.loanBrokerId);\n }\n }}\n >\n )}\n {!data.loanBrokerId && (\n \n )}\n
\n );\n }\n )}\n
\n );\n};\n\nexport default SnapshotAttributedBrokers;\n","import React, { useEffect, useState } from \"react\";\nimport { connect, useDispatch } from \"react-redux\";\nimport { updateHeader } from \"../../actions/member\";\nimport {\n Col,\n Row,\n Input,\n InputNumber,\n Rate,\n} from \"antd\";\nimport axios from \"axios\";\nimport {\n getLoanSnapshotDetails\n} from \"../../actions/loans\";\nimport AttributedLenders from \"../../components/Loans/AttributedLenders\";\nimport {\n asCustomFormatDate,\n asDefaultDisplayFormatDate,\n} from \"../../libs/utilities\";\nimport _ from \"lodash\";\nimport LoanFormHeader from \"../../components/Loans/Create/LoadFormHeader\";\nimport AttributedBrokers from \"../../components/Loans/AttributedBrokers\";\nimport { isSystemUserPolicy } from \"../../Common/Authorization/policies/isSystemUserPolicy\";\nimport {\n isLawFirmUserPolicy,\n} from \"../../Common/Authorization/policies/isLawFirmUserPolicy\";\nimport CreditLookup from \"../../components/Loans/Create/CreditLookup\";\nimport ConstructionModal from \"../../components/Loans/Create/ConstructionModal\";\nimport SubdivisionModal from \"../../components/Loans/Create/SubdivisionModal\";\nimport { ILoanSnapshotDetailsDto } from \"../../libs/types\";\nimport SnapshotAttributedLenders from \"../../components/Loans/Logs/SnapshotAttributedLenders\";\nimport SnapshotAttributedBrokers from \"../../components/Loans/Logs/SnapshotAttributedBrokers\";\n\n\ninterface LoansSnapshotViewProps {\n match: any,\n user: any,\n getLoanSnapshotDetails: typeof getLoanSnapshotDetails\n}\n\nconst LoansSnapshotView = ({ match, user, getLoanSnapshotDetails }: LoansSnapshotViewProps) => {\n const dispatch = useDispatch();\n const [isUserLawfirm, setIsUserLawfirm] = useState(false);\n const [loanDetails, setLoanDetails] = useState();\n\n const signal = axios.CancelToken.source();\n const loanId = match.params.id;\n const logId = match.params.logId;\n\n const checkIfUserIsLawfirm = async () => {\n const isLawfirm = await isLawFirmUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n setIsUserLawfirm(isLawfirm);\n };\n\n useEffect(() => {\n checkIfUserIsLawfirm();\n loadSnapshotDetails();\n const cleanUp = () => {\n signal.cancel(\"\");\n };\n return cleanUp;\n }, [loanId]);\n\n useEffect(() => {\n dispatch(updateHeader({\n header: {\n showSearchBox: !isUserLawfirm\n }\n }));\n }, [isUserLawfirm]);\n\n const loadSnapshotDetails = async () => {\n const isSystemUser = await isSystemUserPolicy(\n user.roles,\n user.permissions,\n user\n );\n getLoanSnapshotDetails({\n loanId,\n logId,\n isSystemUser,\n cancelToken: signal.token\n }).then(x => {\n setLoanDetails(x.data);\n });\n };\n\n return !loanDetails ?
\n \n Loading...\n \n
:\n
\n \n
\n
\n Loan No.\n \n
\n\n
\n \n \n Attributed

Lender\n
\n
\n \n
\n
\n \n \n Attributed

Broker\n
\n
\n \n
\n
\n \n \n Last

Edit\n
\n
\n \n
\n
\n \n \n Broker

BDM\n
\n
\n \n
\n
\n \n \n Lender

BDM\n
\n
\n \n
\n
\n
\n \n \n Suburb and State\n \n \n \n \n \n Priority\n \n \n \n \n \n Principal\n \n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value?.replace(/\\$\\s?|(,*)/g, \"\") || \"$\"}\n className=\"m-l-6 hideNumberPointers\"\n disabled={true}\n value={loanDetails?.principal || 0}\n />\n \n \n \n Lower Rate\n \n `${value}%`}\n parser={value => value?.replace(/\\%\\s?|(,*)/g, \"\") || \"%\"}\n className=\"m-l-6 hideNumberPointers\"\n disabled={true}\n value={parseInt(loanDetails?.lowerRate || \"\") || 0}\n />\n \n\n \n \n Higher Rate\n \n `${value}%`}\n parser={value => value?.replace(/\\%\\s?|(,*)/g, \"\") || \"%\"}\n className=\"m-l-6 hideNumberPointers\"\n disabled={true}\n value={parseInt(loanDetails?.higherRate || \"\") || 0}\n />\n \n \n \n Establishment Fee (incl GST)\n \n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value?.replace(/\\$\\s?|(,*)/g, \"\") || \"$\"}\n className=\" m-l-6 hideNumberPointers\"\n disabled={true}\n value={loanDetails?.establishmentFee || 0}\n />\n \n \n \n Establishment Fee\n \n `${value}%`}\n parser={value => value?.replace(/\\%\\s?|(,*)/g, \"\") || \"%\"}\n className=\"m-l-6 hideNumberPointers\"\n disabled={true}\n value={parseFloat(loanDetails?.establishmentFeePercentage || \"\") || 0}\n />\n \n
\n
\n
\n
\n \n Scenario\n \n \n
\n {loanDetails.scenarioKey === \"CONSTRUCTION\" && (\n \n )}\n {loanDetails.scenarioKey === \"SUBDIVISION\" && (\n \n )}\n
\n \n \n \n Security Type\n \n \n \n \n \n Security Sub-Type\n \n \n \n\n \n \n LVR\n \n `${value}%`}\n parser={value => value?.replace(/\\%\\s?|(,*)/g, \"\") || \"\"}\n className=\"m-l-6 hideNumberPointers\"\n disabled={true}\n value={parseInt(loanDetails?.lvr || \"\") || 0}\n />\n \n \n \n Valuation Required\n \n \n \n \n \n Interest (Payable)\n \n \n \n \n
\n
\n \n \n Lawfirm\n \n \n \n\n \n \n Partner\n \n \n \n\n \n \n Associate\n \n \n \n \n \n Status\n \n \n \n \n \n Shortfall\n \n \n `$ ${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")\n }\n parser={value => value?.replace(/\\$\\s?|(,*)/g, \"\") || \"$\"}\n disabled={true}\n value={parseInt(loanDetails?.shortfall || \"\") || 0}\n >\n \n \n \n Settlement Date\n \n \n \n \n \n Repayment Date\n \n \n \n \n \n Discharged\n \n \n \n
\n \n \n \n Broker stars from Lender\n \n \n \n \n \n \n \n \n \n Broker review by Lender\n \n \n \n \n \n Broker's Response\n \n \n \n \n \n \n \n Lender stars from Broker\n \n \n \n \n \n \n \n \n \n Lender review by Broker\n \n \n \n \n \n Lender's Response\n \n \n \n \n \n \n \n Lawyer stars from Lender\n \n \n \n \n \n \n \n \n \n Lawyer review by Lender\n \n \n \n \n \n Lawyer's Response\n \n \n \n \n \n \n \n Lawyer stars from Broker\n \n \n \n \n \n \n \n \n \n Lawyer review by Broker\n \n \n \n \n \n Lawyer's Response\n \n \n \n \n \n \n \n Notes\n \n \n \n \n
\n};\n\nconst mapStateToProps = (state: any) => {\n return {\n member: state.member || {},\n profile: (state.profile && state.profile.details) || {},\n user: state.authorization && state.authorization.user,\n lender: state.profile.lender\n };\n};\n\nconst mapDispatchToProps = {\n getLoanSnapshotDetails,\n};\n\nexport default connect(\n mapStateToProps,\n mapDispatchToProps\n)(LoansSnapshotView);\n","import { Col, Form, Button, message } from \"antd\";\nimport React, { useEffect, useState } from \"react\";\nimport axios from \"axios\";\nimport { useDispatch } from \"react-redux\";\nimport _ from \"lodash\";\nimport { updateHeader } from \"../../actions/member\";\nimport { Row } from \"antd/es/grid\";\nimport Loading from \"../../components/loading\";\nimport history from \"../../routes/history\";\nimport MarketingEmails from \"../../components/EmailSubscriptions/marketingEmails\";\nimport { FormComponentProps } from \"antd/lib/form\";\nimport { getEmailPreferences, updateEmailPreferences } from \"../../actions/emailSubscriptions\";\nimport { errorDisplay } from \"../../libs\";\n\ninterface EmailSubscriptionsPublicProps extends FormComponentProps {\n match: any;\n}\n\nconst EmailSubscriptionsPublic = ({\n form,\n match\n}: EmailSubscriptionsPublicProps) => {\n const dispatch = useDispatch();\n const [pageLoading, setPageLoading] = useState(true);\n const [processing, setProcessing] = useState(false);\n const [redirectionUrl, setRedirectionUrl] = useState(\"/login\");\n const [isMasterSwitchOn, setIsMasterSwitchOn] = useState(false);\n const signal = axios.CancelToken.source();\n\n const { getFieldDecorator } = form;\n\n useEffect(() => {\n dispatch(\n updateHeader({\n header: {\n title: \"\",\n action: \"\",\n page: \"emailSubscriptionPublic\",\n enableBack: false,\n showSettings: false,\n showMasterSwitch: false,\n showIsProfileActive: false,\n hasSwitchProfile: false,\n editMode: false,\n showNotesButton: false,\n showOmicronBDM: false,\n omicronBdm: null,\n showPageTitle: false,\n showSearchBox: false,\n allowSwitchProfile: false\n }\n })\n );\n }, []);\n\n useEffect(() => {\n getUserEmailSubscriptions();\n }, []);\n\n function getUserEmailSubscriptions() {\n const token = match.params.token;\n if (token) {\n getEmailPreferences({ cancelToken: signal.token, token }).then(resp => {\n setPageLoading(false);\n if (resp) {\n setIsMasterSwitchOn(resp.isMasterSwitchOn);\n const { marketingEmails } = resp;\n form.setFieldsValue({\n marketingEmails\n });\n }\n });\n }\n }\n\n const handleSave = () => {\n setProcessing(true);\n const token = match.params.token;\n const payload = {\n marketingEmails: form.getFieldValue(\"marketingEmails\")\n };\n updateEmailPreferences({cancelToken: signal.token, token, payload })\n .then(resp => {\n if(resp && resp.data && resp.data.errors){\n errorDisplay(resp.data.errors);\n setProcessing(false);\n }\n else{\n message.success(\"Email subcription updated\");\n setProcessing(false);\n }\n });\n };\n\n const defaultLabelColSpan = { span: 7 };\n const defaultValueColSpan = { span: 17 };\n return (\n \n {pageLoading ? (\n \n ) : (\n <>\n
\n Update Your Email Subscriptions\n
\n \n \n \n \n
\n \n \n
\n handleSave()}\n >\n Save\n \n history.push(redirectionUrl)}\n >\n Cancel\n \n
\n \n
\n \n )}\n \n );\n};\n\nexport default Form.create({ name: \"Email Subscriptions\" })(\n EmailSubscriptionsPublic\n);\n","import React from \"react\";\nimport { Route, Switch } from \"react-router-dom\";\n// Templates\nimport TemplateNothing from \"../Layout/TemplateNothing\";\n// Routes\nimport { Login } from \"../pages/Login\";\nimport SignUpComponent from \"../pages/Signup\";\nimport ForgotPasswordComponent from \"../pages/ForgotPassword\";\n\nimport IndexComponent from \"../pages/Initialize\";\n//exception\nimport Exception from \"../Common/Exception\";\nimport InactiveProfileException from \"../Common/InactiveProfile\";\nimport AuthorizedRoute from \"../Common/Authorization/AuthorizedRoutes\";\nimport Profile from \"../pages/Profile/Index\";\n\nimport {\n LoginActions,\n LogoutActions\n} from \"../constants/ApiAuthorizationConstants\";\nimport { Logout } from \"../pages/Logout\";\nimport TemplateNavbar from \"../Layout/TemplateNavbar\";\nimport SystemUsersList from \"../pages/Users/SystemUser\";\nimport AddCompanyUser from \"../pages/Users/AddCompanyUser\";\nimport CreateCompany from \"../pages/Companies/CreateCompany\";\nimport AddSystemUser from \"../pages/Users/AddSystemUser\";\nimport { ChangePasswordPage } from \"../pages/Users/ChangePassword\";\nimport FindBroker from \"../pages/Users/FindBroker\";\nimport FindLender from \"../pages/Users/FindLender\";\nimport { BrokerProfile } from \"../pages/Profile/Broker\";\nimport Notes from \"../pages/Users/Notes\";\nimport LoansDetailsView from \"../pages/Loans/LoansDetailsView\";\nimport LoansCreate from \"../pages/Loans/Create\";\nimport { FinderUtilityView } from \"../pages/FinderUtility\";\nimport { PrivacySettingsView } from \"../pages/PrivacySettings\";\nimport { EmailSubscriptionsView } from \"../pages/EmailSubscriptions\";\nimport LoansView from \"../pages/Loans/View\";\nimport LawFirmProfile from \"../pages/Profile/LawFirm\";\nimport CreateEmail from \"../pages/Marketing/CreateEmail\";\nimport AllUsers from \"../pages/Users/AllUsers\";\nimport LoansSnapshotView from \"../pages/Loans/LoansSnapshotView\";\nimport { LAW_FIRM_USER } from \"../constants/systemUsers\";\nimport EmailSubscriptionsPublic from \"../pages/EmailSubscriptions/EmailSubscriptionsPublic\";\n\nlet id = 0;\n\n/** @type {{id: number, name: string, index: string, auth: string, layout: JSX.Element, page: JSX.Element, path: string}[]} */\nconst defaultRoutes = [\n {\n id: id++,\n name: \"users\",\n index: \"users\",\n layout: TemplateNavbar,\n page: SystemUsersList,\n path: \"/users\"\n },\n {\n id: id++,\n name: \"users\",\n index: \"users\",\n layout: TemplateNavbar,\n page: Profile,\n path: \"/users/:id/lender\",\n profileType: \"lender\"\n },\n {\n id: id++,\n name: \"users\",\n index: \"users\",\n layout: TemplateNavbar,\n page: BrokerProfile,\n path: \"/users/:id/broker\",\n profileType: \"broker\"\n },\n {\n id: id++,\n name: \"users\",\n index: \"users\",\n layout: TemplateNavbar,\n page: LawFirmProfile,\n path: \"/users/:id/lawfirm\",\n profileType: \"lawfirm\"\n },\n {\n id: id++,\n name: \"users\",\n index: \"users\",\n layout: TemplateNavbar,\n page: AddCompanyUser,\n path: \"/companies/:id/users/create\"\n },\n {\n id: id++,\n name: \"users\",\n index: \"users\",\n layout: TemplateNavbar,\n page: AddSystemUser,\n path: \"/systemUsers/create\"\n },\n {\n id: id++,\n name: \"Change password\",\n index: \"change-password\",\n layout: TemplateNavbar,\n page: ChangePasswordPage,\n path: \"/change-password\"\n },\n {\n id: id++,\n name: \"Search Lender\",\n index: \"search-lender\",\n layout: TemplateNavbar,\n page: FindLender,\n path: \"/search/lender\"\n },\n {\n id: id++,\n name: \"Search Broker\",\n index: \"search-broker\",\n layout: TemplateNavbar,\n page: FindBroker,\n path: \"/search/broker\"\n },\n {\n id: id++,\n name: \"Notes\",\n index: \"individual-notes\",\n layout: TemplateNavbar,\n page: Notes,\n path: \"/users/notes\"\n },\n\n {\n id: id++,\n name: \"MonthlyScores\",\n index: \"monthly-scores\",\n layout: TemplateNavbar,\n page: Notes,\n path: \"/users/notes\"\n },\n {\n id: id++,\n name: \"LoansDetailsViews\",\n index: \"loans-details-view\",\n layout: TemplateNavbar,\n page: LoansDetailsView,\n path: \"/loans/:id/view\"\n },\n {\n id: id++,\n name: \"LoansSnapshotDetailsViews\",\n index: \"loans-snapshot-view\",\n layout: TemplateNavbar,\n page: LoansSnapshotView,\n path: \"/loans/:id/logs/:logId\"\n },\n {\n id: id++,\n name: \"LoansCreateViews\",\n index: \"loans-create-view\",\n layout: TemplateNavbar,\n page: LoansCreate,\n path: \"/loans/create\"\n },\n {\n id: id++,\n name: \"LoansEditView\",\n index: \"loans-edit-view\",\n layout: TemplateNavbar,\n page: LoansCreate,\n path: \"/loans/:id/edit\"\n },\n {\n id: id++,\n name: \"LoansView\",\n index: \"loans\",\n layout: TemplateNavbar,\n page: LoansView,\n path: \"/loans\"\n },\n {\n id: id++,\n name: \"FinderUtilityView\",\n index: \"finder-utility\",\n layout: TemplateNavbar,\n page: FinderUtilityView,\n path: \"/finder-utility\"\n },\n {\n id: id++,\n name: \"PrivacySettingsView\",\n index: \"privacy-settings\",\n layout: TemplateNavbar,\n page: PrivacySettingsView,\n path: \"/privacy-settings/:id\"\n },\n {\n id: id++,\n name: \"EmailSubscriptionsView\",\n index: \"email-subscriptions\",\n layout: TemplateNavbar,\n page: EmailSubscriptionsView,\n path: \"/email-subscriptions/:id\"\n },\n {\n id: id++,\n name: \"EmailSubscriptionsView\",\n index: \"email-subscriptions\",\n layout: TemplateNavbar,\n page: EmailSubscriptionsView,\n path: \"/email-subscriptions/:id/lawfirm\",\n profileType: LAW_FIRM_USER\n },\n {\n id: id++,\n name: \"companies\",\n index: \"companies\",\n layout: TemplateNavbar,\n page: CreateCompany,\n path: \"/companies/create\"\n },\n {\n id: id++,\n name: \"bulk-email\",\n index: \"users\",\n layout: TemplateNavbar,\n page: CreateEmail,\n path: \"/bulk-email\",\n generalView: true\n },\n {\n id: id++,\n name: \"all-users\",\n index: \"users\",\n layout: TemplateNavbar,\n page: AllUsers,\n path: \"/users/all\"\n },\n];\n\nconst Index = () => (\n \n {defaultRoutes.map((View, key) => {\n return (\n (\n \n \n \n \n \n )}\n />\n );\n })}\n\n (\n \n \n \n )}\n />\n (\n \n \n \n )}\n />\n (\n \n \n \n )}\n />\n (\n \n \n \n )}\n />\n (\n \n \n \n )}\n />\n\n (\n \n \n \n )}\n />\n\n (\n \n \n \n )}\n />\n\n (\n \n \n \n )}\n />\n\n (\n \n \n \n )}\n />\n\n (\n \n \n \n )}\n />\n\n (\n \n \n \n )}\n />\n\n }\n />\n \n } />\n }\n />\n } />\n \n);\n\nexport default Index;\n","import React from \"react\";\nimport { render } from \"react-dom\";\nimport { Provider } from \"react-redux\";\nimport { Router } from \"react-router-dom\";\nimport Loading from \"./components/loading\";\nimport { PersistGate } from \"redux-persist/es/integration/react\";\nimport \"ant-design-pro/dist/ant-design-pro.css\";\n\nimport { library } from \"@fortawesome/fontawesome-svg-core\";\nimport { fab } from \"@fortawesome/free-brands-svg-icons\";\nimport { fas } from \"@fortawesome/free-solid-svg-icons\";\nimport { far } from \"@fortawesome/free-regular-svg-icons\";\n\nimport * as serviceWorker from \"./serviceWorker\";\n\nimport configureStore from \"./store/index\";\n\nimport Routes from \"./routes/index\";\nimport history from \"./routes/history\";\nimport \"./styles/app.scss\";\n\nlibrary.add(fab, fas, far);\n\nconst rootElement = document.getElementById(\"root\");\nconst { persistor, store } = configureStore();\n\nconst Root = () => (\n \n } persistor={persistor}>\n \n \n \n \n \n);\n\nrender(, rootElement);\n\nserviceWorker.unregister();\n","const environment = {\n baseurl: parseEnv(window.env.BE_URL) ?? process.env.REACT_APP_BE_URL ?? \"https://localhost:5001\",\n callback_url: parseEnv(window.env.CALLBACK_URL) ?? process.env.REACT_APP_FE_CALLBACK_URL ?? \"http://localhost:3000/confirm-login\",\n redirect_url: parseEnv(window.env.FE_REDIRECT_URL) ?? process.env.REACT_APP_FE_REDIRECT_URL ??\n \"http://localhost:3000/confirm-logout\"\n};\n\nfunction parseEnv(env) {\n // Replacement Marker, ignore as it wasn't replaced\n if (/#\\[.*\\]#/.test(env)) {\n return null;\n }\n\n return env;\n}\n\nexport default environment;\n"],"sourceRoot":""}