{"version":3,"sources":["libs/index.js","libs/http.js","libs/apiHelper.js","routes/history.js","libs/dateTime.js","libs/common.js","constants/auth.js","actions/AuthorizeService.js","assets/marketing.png","constants/systemUsers.js","constants/ApiAuthorizationConstants.js","constants/errors.js","libs/utilities.js","libs/table.js","constants/moment.js","libs/response.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","Common/Hooks/useDebounceCallback.tsx","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","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/Loans/Logs/SnapshotAttributedLenders.tsx","components/Loans/Logs/SnapshotAttributedBrokers.tsx","pages/Loans/LoansSnapshotView.tsx","pages/EmailSubscriptions/EmailSubscriptionsPublic.tsx","actions/emailMarketing.ts","Common/Hooks/useGetSearchParams.tsx","pages/MarketingEmail/MarketingEmail.tsx","components/Users/AllUsersColumnsSelection.tsx","components/Users/AllFilters/followup.js","components/Users/AllFilters/leadScore.js","components/Users/AllFilters/userType.js","components/Users/AllFilters/masterSwitch.js","components/Users/AllFilters/profileStatus.js","components/Users/AllFilters/visibility.js","components/Users/AllFilters/state.tsx","components/Users/AllFilters/currentLoansNumbers.js","components/Users/AllFilters/dischargedLoansNumbers.js","components/Users/AllFilters/currentLoansTotalPrincipal.js","components/Users/AllFilters/dischargedLoansTotalPrincipal.js","components/Users/AllFilters/omicronBdm.js","components/Users/AllFilters/LowAndHighParcelFilters.js","components/Users/AllFilters/lawfirm.js","components/Users/AllFilters/partner.js","components/Users/AllFilters/AllUsersFilters.tsx","components/Users/AllUsersSaveSearch.tsx","components/Users/AllUsersLoadSearch.tsx","components/Users/AllUsersList.tsx","components/Users/ExportUserSearchToXls.tsx","assets/icons/MarketingEmailIcon.tsx","components/Users/MarketingEmailButton.tsx","pages/AllUsers/View.tsx","routes/index.js","index.js","constants/env.js"],"names":["_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","concat","QueryParameterNames","ReturnUrl","encodeURI","history","push","local","method","requestPayloadWrapper","_ref","Object","_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","data","queryParams","accessToken","headers","wrap","_context","prev","next","authService","getAccessToken","sent","Content-Type","Authorization","abrupt","axios","params","timeout","validateStatus","status","includes","stop","_x","_x2","_x3","apply","this","arguments","requestWrapper","_ref2","_callee2","cancelToken","_context2","_x4","_x5","requestFileWrapper","_ref4","_callee4","payload","name","fileList","_context4","Promise","resolve","reject","req","XMLHttpRequest","formData","FormData","_","isUndefined","append","JSON","stringify","mustBeArray","map","file","index","theBlob","fileName","File","open","setRequestHeader","send","onreadystatechange","_x10","_x11","_x12","_x13","requestFormData","_ref8","_callee8","_context8","_x20","_x21","_x22","http","get","getWithQueryParams","_ref3","_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","instance","ApiUrlHandler","_home_vsts_work_1_s_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_0__","_urls","COMPANY_URL","BUSINESS_UNIT_URL","COMPANY_LOOKUP_URL","endpoint","_ref$options","options","userArea","localStorage","getItem","env","baseurl","templateEngine","freeze","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","message","error","signinRedirect","redirect","t2","_completeSignIn","signinCallback","_signOut","signoutPopup","undefined","signoutRedirect","_completeSignOut","response","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","module","exports","p","ADMIN_USER","LENDER_USER","BROKER_USER","DUAL_USER","LAW_FIRM_USER","SYSTEM_ADMIN_USER","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","errorDisplay","errors","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","toString","each","isNull","Array","isArray","items","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","err","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","type","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","ResponseHandler","_data","reduce","errorArray","errorDesc","errorMessage","hasOwnProperty","isAxiosError","actionType","model","total","toParse","hasNoModel","rows","row","parseResponse","page","ErrorMessage","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","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","GET_ALL_USERS_COLUMNS_LOOKUPS","ALL_USERS_SAVED_SEARCHES_AS_SYSTEM_USER","ALL_USERS_SAVED_SEARCHES_AS_INDIVIDUAL","ALL_USERS_SAVED_SEARCH_ITEM_AS_SYSTEM_USER","ALL_USERS_SAVED_SEARCH_ITEM_AS_INDIVIDUAL","ALL_USERS_SAVED_SEARCH_ITEM_EXPORT_AS_SYSTEM_USER","ALL_USERS_SAVED_SEARCH_ITEM_EXPORT_AS_INDIVIDUAL","ALL_USERS_LAST_SEARCH","EXPORT_USER_SEARCH_TO_XLS_AS_SYSTEM_USER","EXPORT_USER_SEARCH_TO_XLS_INDIVIDUAL","USERS_FOLLOW_UP_LOOKUP","USERS_LEAD_SCORE_LOOKUP","USERS_USER_TYPE_LOOKUP","USERS_STATE_LOOKUP","USERS_CURRENT_LOANS_COUNT_LOOKUP","USERS_DISCHARGED_LOANS_COUNT_LOOKUP","USERS_CURRENT_LOANS_PRINCIPAL_LOOKUP","USERS_DISCHARGED_LOANS_PRINCIPAL_LOOKUP","GET_ALL_USERS_LAWFIRM_LOOKUP","GET_ALL_USERS_PARTNER_LOOKUP","COMPANIES_URL","COMPANIES_LENDER_PROFILE_REMOVE_URL","COMPANIES_BROKER_PROFILE_REMOVE_URL","COMPANIES_DELETE_URL","COMPANIES_DELETE_LAWFIRM_URL","COMPANIES_UPDATE_LEAD_SCORE","COMPANIES_UPDATE_LEAD_SCORE_AS_SYSTEM_USER","COMPANIES_UPDATE_FOLLOWUP_DATE","COMPANIES_UPDATE_FOLLOWUP_DATE_AS_SYSTEM_USER","INDIVIDUALS_LIST_URL","INDIVIDUAL_DETAIL_URL","INDIVIDUAL_DETAIL_SYSTEM_USER_URL","COMPANIES_ADD_BROKER_PROFILE_URL","INDIVIDUALS_BROKER_PROFILE_REMOVE_URL","COMPANIES_ADD_LENDER_PROFILE_URL","INDIVIDUALS_LENDER_PROFILE_REMOVE_URL","INDIVIDUALS_DELETE_URL","INDIVIDUALS_RESEND_INVITATION","INDIVIDUALS_RESET_PASSWORD","LENDER_UPDATE_INDIVIDUAL_URL","LENDER_UPDATE_SYSTEM_USER_URL","BROKER_UPDATE_INDIVIDUAL_URL","BROKER_UPDATE_SYSTEM_USER_URL","MASTER_SWITCH_TURN_OFF_URL","MASTER_SWITCH_TURN_ON_URL","LENDER_PROFILE_STATUS_OFF_URL","LENDER_PROFILE_STATUS_ON_URL","BROKER_PROFILE_STATUS_OFF_URL","BROKER_PROFILE_STATUS_ON_URL","LENDER_PRODUCT_STATUS_TOGGLE","BROKER_PRODUCT_STATUS_TOGGLE","LENDER_FILE_NOTES_URL","LENDER_FILE_NOTES_SYSTEM_USER_URL","LENDER_FILE_NOTES_DELETE_URL","LENDER_FILE_NOTES_DELETE_SYSTEM_USER_URL","BROKER_FILE_NOTES_URL","BROKER_FILE_NOTES_SYSTEM_USER_URL","BROKER_FILE_NOTES_DELETE_URL","BROKER_FILE_NOTES_DELETE_SYSTEM_USER_URL","NOTES_SYSTEM_USER_URL","NOTES_NON_SYSTEM_USER_URL","MONTHLYSCORES_SYSTEM_USER_URL","DAILYSCORES_SYSTEM_USER_URL","MONTHLYSCORES_INDIVIDUAL_USER_URL","DAILYSCORES_INDIVIDUAL_USER_URL","NOTE_TYPE_URL","LOANS_VERIFY_LOANNO","NEW_LOANS_VERIFY_LOANNO","LOANS_CREATE","LOANS_CREATE_AS_LENDER","LOANS_CREATE_AS_LAW_FIRM","LOANS_EDIT","LOANS_EDIT_AS_LENDER","LOANS_EDIT_AS_LAW_FIRM","COMPANY_OMICRON_BDM_LOOKUP","LOANS_SECURITY_TYPE_LOOKUP","LOANS_STATUS_LOOKUP","LOANS_INTEREST_LOOKUP","LOANS_SCENARIO_LOOKUP","LOANS_SUBURB_STATES_LOOKUP","LOANS_PRIORITY_LOOKUP","LOANS_CREDIT_LOOKUP","LOANS_SUBDIVISION_TYPE_LOOKUP","CHECK_USER_INVOLVEMENT","GET_LOAN_DETAILS_FOR_UNINVOLVED_USER","GET_LOAN_DETAILS_FOR_BROKER_USER","GET_LOAN_DETAILS_FOR_LENDER_USER","LOANS_LENDERS_LOOKUP","LOANS_LENDERS_LOOKUP_AS_LENDER_LAW_FIRM","LOANS_BROKERS_LOOKUP","LOANS_BROKERS_LOOKUP_AS_LENDER_LAW_FIRM","LOANS_PARTNER_ASSOCIATE_LOOKUP","LOANS_PARTNER_ASSOCIATE_LOOKUP_AS_LENDER_LAW_FIRM","LOANS_LAWFIRM_LOOKUP","LOANS_LAWFIRM_LOOKUP_AS_LENDER_LAW_FIRM","LOANS_LAWFIRM_USERS_LOOKUP","LOANS_LAWFIRM_USERS_LOOKUP_AS_LENDER_LAW_FIRM","GET_LENDER_PRIVACY_SETTINGS","GET_INDIVIDUAL_EMAIL_SUBSCRIPTIONS","GET_LAWFIRM_EMAIL_SUBSCRIPTIONS","GET_LOAN_DETAILS_FOR_SYSTEM_USER","GET_BROKER_LOAN_DETAILS_FOR_SYSTEM_USER","GET_LENDER_LOAN_DETAILS_FOR_SYSTEM_USER","GET_LOAN_ATTRIBUTED_LENDER_FOR_SYSTEM_USER","GET_LOAN_ATTRIBUTED_LENDER","GET_LOAN_ATTRIBUTED_BROKERS_FOR_SYSTEM_USER","GET_LOAN_ATTRIBUTED_BROKERS","GET_MATCHING_LOANS_FOR_LENDER_URL","GET_MATCHING_LOANS_FOR_LENDER_URL_AS_SYSTEM_USER","GET_MATCHING_LOANS_FOR_BROKER_URL","GET_MATCHING_LOANS_FOR_BROKER_URL_AS_SYSTEM_USER","GET_PRESETTLED_LOANS_FOR_LENDER_URL","GET_PRESETTLED_LOANS_FOR_BROKER_URL","GET_PRESETTLED_LOANS_FOR_LAW_FIRM_URL","GET_PRESETTLED_LOANS_FOR_LENDER_AS_ADMIN_URL","GET_PRESETTLED_LOANS_FOR_BROKER_AS_ADMIN_URL","GET_PRESETTLED_LOANS_FOR_LAW_FIRM_URL_AS_ADMIN_URL","DELETE_LOAN_AS_SYSTEM_USER","UPDATE_LOAN_IN_VIEW_AS_SYSTEM_USER","UPDATE_LOAN_IN_VIEW_AS_LENDER","UPDATE_LOAN_IN_VIEW_AS_BROKER","UPDATE_LOAN_IN_VIEW_AS_LAWFIRM","UPDATE_LOAN_IN_VIEW_AS_DUAL","GET_PRESETTLED_LOANS_FOR_LENDER","GET_CURRENT_LOANS_FOR_LENDER_URL","GET_CURRENT_LOANS_FOR_LENDER_URL_AS_SYSTEM_USER","GET_CURRENT_LOANS_FOR_BROKER_URL","GET_CURRENT_LOANS_FOR_BROKER_URL_AS_SYSTEM_USER","GET_CURRENT_LOANS_FOR_LAW_FIRM_URL","GET_CURRENT_LOANS_FOR_LAW_FIRM_URL_AS_SYSTEM_USER","GET_DISCHARGED_LOANS_FOR_LENDER_URL","GET_DISCHARGED_LOANS_FOR_LENDER_URL_AS_SYSTEM_USER","GET_DISCHARGED_LOANS_FOR_BROKER_URL","GET_DISCHARGED_LOANS_FOR_BROKER_URL_AS_SYSTEM_USER","GET_DISCHARGED_LOANS_FOR_LAW_FIRM_URL","GET_DISCHARGED_LOANS_FOR_LAW_FIRM_URL_AS_SYSTEM_USER","GET_ALL_LOANS_AS_SYSTEM_USER","GET_ALL_LOANS_AS_INDIVIDUAL","GET_ALL_LOANS_COLUMNS_LOOKUPS","GET_ALL_LOANS_EXPIRY_LOOKUPS","GET_ALL_LOANS_BDM_LOOKUP","GET_ALL_LOANS_PARTNER_LOOKUPS","ALL_LOANS_SAVED_SEARCHES_AS_SYSTEM_USER","ALL_LOANS_SAVED_SEARCHES_AS_INDIVIDUAL","ALL_LOANS_SAVED_SEARCH_ITEM_AS_SYSTEM_USER","ALL_LOANS_SAVED_SEARCH_ITEM_AS_INDIVIDUAL","ALL_LOANS_SAVED_SEARCH_ITEM_EXPORT_AS_SYSTEM_USER","ALL_LOANS_SAVED_SEARCH_ITEM_EXPORT_AS_INDIVIDUAL","ALL_LOANS_LAST_SEARCH","EXPORT_LOAN_SEARCH_TO_XLS_AS_SYSTEM_USER","EXPORT_LOAN_SEARCH_TO_XLS_INDIVIDUAL","FINDER_SECURITY_TYPE_LOOKUP","FINDER_SETTLEMENT_DATE_LOOKUP","FINDER_SCENARIO_LOOKUP","FINDER_LENDERS_LOOKUP","FINDER_LENDERS_LOOKUP_AS_SYSTEM_USER","FINDER_BROKERS_LOOKUP","FINDER_SUBURB_STATES_LOOKUP","FINDER_PRIORITY_LOOKUP","FINDER_RADIUS_LOOKUP","FINDER_TERM_LOWER_LOOKUP","FINDER_TERM_HIGHER_LOOKUP","FINDER_CREDIT_LOOKUP","FINDER_INTEREST_LOOKUP","FINDER_SCENARIO_SUBDIVISION_TYPE_LOOKUP","GENERAL_FINDER_SECURITY_TYPE_LOOKUP","GENERAL_FINDER_SETTLEMENT_DATE_LOOKUP","GENERAL_FINDER_SCENARIO_LOOKUP","GENERAL_FINDER_LENDERS_LOOKUP","GENERAL_FINDER_BROKERS_LOOKUP","GENERAL_FINDER_SUBURB_STATES_LOOKUP","GENERAL_FINDER_PRIORITY_LOOKUP","GENERAL_FINDER_RADIUS_LOOKUP","GENERAL_FINDER_TERM_LOWER_LOOKUP","GENERAL_FINDER_TERM_HIGHER_LOOKUP","GENERAL_FINDER_CREDIT_LOOKUP","GENERAL_FINDER_INTEREST_LOOKUP","GENERAL_FINDER_SCENARIO_SUBDIVISION_TYPE_LOOKUP","UPDATE_LENDER_FILE_NOTES_AS_SYSTEM_ADMIN_URL","UPDATE_BROKER_FILE_NOTES_AS_SYSTEM_ADMIN_URL","UPDATE_LAWFIRM_FILE_NOTES_AS_SYSTEM_ADMIN_URL","DELETE_LENDER_FILE_NOTES_AS_SYSTEM_ADMIN_URL","DELETE_BROKER_FILE_NOTES_AS_SYSTEM_ADMIN_URL","DELETE_LAWFIRM_FILE_NOTES_AS_SYSTEM_ADMIN_URL","UPDATE_LENDER_FILE_NOTES_AS_INDIVIDUAL_URL","UPDATE_BROKER_FILE_NOTES_AS_INDIVIDUAL_URL","UPDATE_LAWFIRM_FILE_NOTES_AS_INDIVIDUAL_URL","DELETE_LENDER_FILE_NOTES_AS_INDIVIDUAL_URL","DELETE_BROKER_FILE_NOTES_AS_INDIVIDUAL_URL","DELETE_LAWFIRM_FILE_NOTES_AS_INDIVIDUAL_URL","INDIVIDUALS_DETAIL_URL","BROKER_DETAIL_URL","BROKER_SELF_DETAIL_URL","BROKER_DETAIL_SYSTEM_USER_URL","BROKER_MATCHES_URL","BROKER_ADMIN_MATCHES_URL","BROKER_PROFESSIONAL_DETAIL_URL","BROKER_PERSONAL_DETAIL_URL","BROKER_PROFESSIONAL_DETAIL_SYSTEM_USER_URL","BROKER_PERSONAL_DETAIL_SYSTEM_USER_URL","BROKER_LOANS_DONE_WITH_YOU","LENDERS_DETAIL_URL","LENDERS_SELF_DETAIL_URL","LENDERS_DETAIL_SYSTEM_USER_URL","LENDERS_PROFESSIONAL_DETAIL_URL","LENDERS_PROFESSIONAL_DETAIL_SYSTEM_USER_URL","LENDERS_PERSONAL_DETAIL_URL","LENDERS_PERSONAL_DETAIL_SYSTEM_USER_URL","LENDERS_FILE_NOTES_URL","LENDERS_FILE_NOTES_DELETE_URL","LENDERS_FILE_NOTES_BY_SYSTEM_USER_URL","LENDERS_FILE_NOTES_BY_SYSTEM_USER_DELETE_URL","LENDERS_FIRST_RANKING_DETAIL_PROFILE_URL","LENDERS_ADMIN_FIRST_RANKING_DETAIL_PROFILE_URL","LENDERS_FIRST_RANKING_VERIFY_URL","LENDERS_ADMIN_FIRST_RANKING_VERIFY_URL","LENDERS_SECOND_RANKING_DETAIL_PROFILE_URL","LENDERS_ADMIN_SECOND_RANKING_DETAIL_PROFILE_URL","LENDERS_SECOND_RANKING_VERIFY_URL","LENDERS_ADMIN_SECOND_RANKING_VERIFY_URL","LENDERS_CONSTRUCTION_DETAIL_PROFILE_URL","LENDERS_ADMIN_CONSTRUCTION_DETAIL_PROFILE_URL","LENDERS_CONSTRUCTION_VERIFY_URL","LENDERS_ADMIN_CONSTRUCTION_VERIFY_URL","LENDERS_MEZZANINE_DETAIL_PROFILE_URL","LENDERS_ADMIN_MEZZANINE_DETAIL_PROFILE_URL","LENDERS_MEZZANINE_VERIFY_URL","LENDERS_ADMIN_MEZZANINE_VERIFY_URL","LENDERS_LANDBANK_DETAIL_PROFILE_URL","LENDERS_ADMIN_LANDBANK_DETAIL_PROFILE_URL","LENDERS_LANDBANK_VERIFY_URL","LENDERS_ADMIN_LANDBANK_VERIFY_URL","LENDERS_RURAL_DETAIL_PROFILE_URL","LENDERS_ADMIN_RURAL_DETAIL_PROFILE_URL","LENDERS_RURAL_VERIFY_URL","LENDERS_ADMIN_RURAL_VERIFY_URL","LENDERS_MATCHES_URL","LENDERS_ADMIN_MATCHES_URL","LENDERS_ADMIN_CLEAR_DETAILS_URL","LENDERS_CLEAR_DETAILS_URL","LENDERS_FIRST_RANKING_VERIFY_DRAFT_URL","LENDERS_ADMIN_FIRST_RANKING_VERIFY_DRAFT_URL","LENDERS_SECOND_RANKING_VERIFY_DRAFT_URL","LENDERS_ADMIN_SECOND_RANKING_VERIFY_DRAFT_URL","LENDERS_CONSTRUCTION_VERIFY_DRAFT_URL","LENDERS_ADMIN_CONSTRUCTION_VERIFY_DRAFT_URL","LENDERS_MEZZANINE_VERIFY_DRAFT_URL","LENDERS_ADMIN_MEZZANINE_VERIFY_DRAFT_URL","LENDERS_LANDBANK_VERIFY_DRAFT_URL","LENDERS_ADMIN_LANDBANK_VERIFY_DRAFT_URL","LENDERS_RURAL_VERIFY_DRAFT_URL","LENDERS_ADMIN_RURAL_VERIFY_DRAFT_URL","LENDERS_LOANS_DONE_WITH_YOU","SYSTEM_PERMISSIONS_URL","SYSTEM_PERMISSIONS_URL_ADMIN","POSITIONS_LOOKUP_URL","STATES_LOOKUP_URL","SEARCH_BOX_URL","SEARCH_BOX_FOR_SYSTEM_USER_URL","LENDERS_FIRST_RANKING_SECURITY_TYPE_LOOKUP_URL","LENDERS_SECOND_RANKING_SECURITY_TYPE_LOOKUP_URL","LENDERS_CONSTRUCTION_SECURITY_TYPE_LOOKUP_URL","LENDERS_MEZZANINE_SECURITY_TYPE_LOOKUP_URL","LENDERS_LAND_BANK_ZONING_LOOKUP_URL","LENDERS_LAND_BANK_AGRICULTURE_TYPE_LOOKUP_URL","LENDERS_STATES_SUBURBS_LOOKUP_URL","LENDERS_STATES_REGIONS_LOOKUP_URL","LENDERS_DISTANCES_LOOKUP_URL","LENDERS_SEARCH_LOOKUP_URL","LENDERS_SEARCH_LOOKUP_SYSTEM_USER_URL","BROKERS_SEARCH_LOOKUP_URL","BROKERS_SEARCH_LOOKUP_SYSTEM_USER_URL","LENDERS_MATCHES_STATUS_LOOKUP_URL","LENDERS_ADMIN_MATCHES_STATUS_LOOKUP_URL","UPDATE_MATCHES_STATUS_URL","UPDATE_MATCHES_STATUS_LENDER_URL","UPDATE_MATCHES_STATUS_BROKER_URL","LAW_FIRM_DETAIL_URL","LAW_FIRM_SELF_DETAIL_URL","LAW_FIRM_DETAIL_SYSTEM_USER_URL","LAW_FIRM_PAUSE_PROFILE_URL","LAW_FIRM_ACTIVATE_PROFILE_URL","LAW_FIRM_PROFESSIONAL_DETAIL_URL","LAW_FIRM_PROFESSIONAL_DETAIL_SYSTEM_USER_URL","LAW_FIRM_PERSONAL_DETAIL_URL","LAW_FIRM_PERSONAL_DETAIL_SYSTEM_USER_URL","LAW_FIRM_FILE_NOTES_URL","LAW_FIRM_FILE_NOTES_DELETE_URL","LAW_FIRM_FILE_NOTES_SYSTEM_USER_URL","LAW_FIRM_FILE_NOTES_DELETE_SYSTEM_USER_URL","MARKETING_LOOKUP_COMPANIES_URL","MARKETING_LOOKUP_USERS_URL","MARKETING_LOOKUP_STATE_URL","MARKETING_LOOKUP_USER_TYPE_URL","MARKETING_LOOKUP_VISIBLE_USER_URL","MARKETING_LOOKUP_CATEGORY_SUBSCRIBE_URL","MARKETING_LOOKUP_DAYS_SUBSCRIBE_URL","MARKETING_LOOKUP_SENDERS_URL","MARKETING_RECIPIENTS_LOOKUP_URL","BULK_EMAIL_LOOKUP_SENDERS_URL","BULK_EMAIL_RECIPIENTS_LOOKUP_URL","BULK_EMAIL_SEND_URL","BULK_EMAIL_TEST_URL","MARKETING_SEND_COMAPANY_URL","MARKETING_SEND_USER_URL","MARKETING_SEND_TEST_URL","MARKETING_SEND_EMAIL_URL","PUBLIC_BROKER_DETAILS_URL","PUBLIC_MATCHING_LOANS_FOR_BROKER_URL","PUBLIC_BROKER_DETAILS_CURRENT_LOANS_URL","PUBLIC_BROKER_DETAILS_DISCHARGED_LOANS_URL","PUBLIC_LOANS_DETAILS_URL","PUBLIC_LOANS_DETAILS_ATTRIBUTED_BROKERS_URL","PUBLIC_LOANS_CREDIT_LOOKUP","PUBLIC_LOANS_SUBDIVISION_TYPE_LOOKUP","LOANS_LOGS_URL","LOANS_LOGS_AS_SYSTEM_USER_URL","LOANS_LOGS_SNAPSHOT_URL","LOANS_LOGS_SNAPSHOT_AS_SYSTEM_USER_URL","EMAIL_PREFERENCES_URL","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","processPermission","_user$appUserPermis","processRoles","getLoggedInUserProfile","_user$permissions$rol","currentProfileSyncTimer","debouncedUpdateLastVisited","profileId","clearTimeout","updateActiveProfile","changeLoggedInUserPassword","changePasswordRequest","updateIndividualProfileV2","apiUrl","tempPortraits","portraits","portrait","tempPortrait","previewProfileImage","individualId","imageFileForDeletion","fileId","individualImageFileDto","hasAcceptedInvitation","firstname","lastname","mobileNumber","email","previewCompanyLogo","logoFileForDeletion","logoFile","clearCurrentProfilePicture","setProfileTabSettings","getIndividualDetails","_ref7$userType","userType","notClearProfileImage","getBrokerProfile","doNotResetCurrentTab","isUserViewingSelfProfile","_ref9$generalView","generalView","getLenderProfile","getLendersFirstRankingProfile","getLendersSecondRankingProfile","getLendersConstructionProfile","getLendersMezzanineProfile","getLendersLandBankProfile","getLendersRuralProfile","saveProfile","payLoad","_ref27","saveFirstRankingField","_ref28","_ref29","lastVerifiedDate","_ref30","saveFirstRankingFieldAsAdmin","_ref31","_ref32","_ref33","saveSecondRankingField","_ref34","_ref35","_ref36","saveSecondRankingFieldAsAdmin","_ref37","_ref38","_callee23","_context23","_ref39","_callee24","_context24","saveConstructionField","_ref40","_ref41","_callee25","_context25","_ref42","_callee26","_context26","saveConstructionFieldAsAdmin","_ref43","_ref44","_callee27","_context27","_ref45","_callee28","_context28","_x35","saveMezzanineField","_ref46","_ref47","_callee29","_context29","_x36","_x37","_ref48","_callee30","_context30","_x38","saveMezzanineFieldAsAdmin","_ref49","_ref50","_callee31","_context31","_x39","_x40","_ref51","_callee32","_context32","_x41","saveLandBankField","_ref52","_ref53","_callee33","_context33","_x42","_x43","_ref54","_callee34","_context34","_x44","saveLandBankFieldAsAdmin","_ref55","_ref56","_callee35","_context35","_x45","_x46","_ref57","_callee36","_context36","_x47","saveRuralField","_ref58","_ref59","_callee37","_context37","_x48","_x49","_ref60","_callee38","_context38","_x50","saveRuralFieldAsAdmin","_ref61","_ref62","_callee39","_context39","_x51","_x52","_ref63","_callee40","_context40","_x53","updateMatches","_ref67","_ref67$payLoad","_ref68","_callee43","_context43","_x57","_x58","_ref69","_callee44","_context44","_x59","updateMatchesLender","_ref70","_ref70$payLoad","_ref71","_callee45","_context45","_x60","_x61","_ref72","_callee46","_context46","_x62","updateMatchesBroker","_ref73","_ref73$payLoad","_ref74","_callee47","_context47","_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","toUpperCase","_x84","getPersonalDetails","_ref96","_ref96$profileType","_ref97","_callee64","_context64","_x85","getProfessionalDetails","_ref98","_ref98$profileType","_ref99","_callee65","_context65","_x86","masterSwitchTurnOff","_ref100","_ref101","_callee66","_context66","_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","_x94","profileStatusTurnOn","_ref110","_ref111","_callee72","_context72","_x95","toggleSubscriptions","_ref112","productType","_ref113","_callee73","_context73","_x96","verifyFirstRankingFields","_ref114","_ref115","_callee74","_context74","_x97","verifyFirstRankingFieldsAsAdmin","_ref116","_ref117","_callee75","_context75","_x98","clearDetailsFieldsAsAdmin","_ref118","categoryType","_ref119","_callee76","_context76","_x99","_x100","_ref120","_callee77","_context77","_x101","clearDetailsFields","_ref121","_ref122","_callee78","_context78","_x102","_x103","_ref123","_callee79","_context79","_x104","verifySecondRankingFields","_ref124","_ref125","_callee80","_context80","_x105","verifySecondRankingFieldsAsAdmin","_ref126","_ref127","_callee81","_context81","_x106","verifyConstructionFields","_ref128","_ref129","_callee82","_context82","_x107","verifyConstructionFieldsAsAdmin","_ref130","_ref131","_callee83","_context83","_x108","verifyMezzanineFields","_ref132","_ref133","_callee84","_context84","_x109","verifyMezzanineFieldsAsAdmin","_ref134","_ref135","_callee85","_context85","_x110","verifyLandBankFields","_ref136","_ref137","_callee86","_context86","_x111","verifyLandBankFieldsAsAdmin","_ref138","_ref139","_callee87","_context87","_x112","verifyRuralFields","_ref140","_ref141","_callee88","_context88","_x113","verifyRuralFieldsAsAdmin","_ref142","_ref143","_callee89","_context89","_x114","getBrokerPersonalDetails","_ref144","_ref145","_callee90","_context90","_x115","saveBrokerProfessionalDetailsField","_ref160","_ref161","_callee98","_context98","_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","_x142","updateLeadScore","_x146","_x147","_updateLeadScore","_callee117","_args117","_context117","leadScore","updateFollowUpDate","_x148","_x149","_updateFollowUpDate","_callee118","_args118","_context118","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","notesDropdownLookUpHandler","objectDestructuringEmpty","lendersLookUpHandler","_ref12$queryParams","action_match","queryOptions","brokersLookUpHandler","_ref15$queryParams","loansSecurityTypesLookups","loansStatesAndSuburbsLookups","_ref23$search","loansStatusLookups","loansInterestLookups","loansSubdivisionTypeLookups","loansBrokersLookups","_ref33$isSystemUser","loansLawFirmLookup","_ref39$search","_ref39$isSystemUser","loansLawFirmUsersLookup","_ref41$search","_ref41$isSystemUser","loansPiorityLookup","omicronBDMLookups","_ref45$search","marketingEmailSenderLookup","bulkEmailSenderLookup","loansCreditLookups","_ref65","_ref65$generalView","allLoansColumnsLookups","marketingEmailRecipientsLookup","bulkEmailRecipientsLookup","_ref70$search","includeUnsubscribed","allUsersColumnsLookups","_callee41","_context41","followupLookups","_callee42","_context42","leadScoreLookups","userTypeLookups","_ref77","userStateLookups","_ref79","currentLoansCount","_ref81","dischargedLoansCount","_ref83","currentLoansPrincipal","_ref85","dischargedLoansPrincipal","_ref87","_callee49","_context49","Visible","visible","ascyclicalProps","objectWithoutProperties","Children","child","isValidElement","cloneElement","AuthorizedViewImpl","policyPassed","authorize","policyBehavior","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","defineProperty","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","getAllUsersList","_ref16$userType","_ref16$payload","getAllUsersBdmLookup","_ref26$search","getAllUsersLawFirmLookup","_ref28$search","getAllUsersPartnerLookups","_ref30$search","saveAllUsersSearch","_ref33$name","filters","_ref33$selectedColumn","selectedColumns","_args19","saveAllUsersLastSearch","_ref34$name","_ref34$selectedColumn","_ref34$savedSearchId","savedSearchId","getSavedUserSearchesList","api","_args21","loadSavedSearch","loadLastSearch","exportUsersSearchToXLS","_args24","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","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","_x129","updateLenderFileNotes","_ref146","_ref147","_callee91","_context91","_x116","deleteLenderFileNotes","_ref150","_ref151","_callee93","_context93","_x118","createLenderFileNotes","_ref148","_ref149","_callee92","_context92","_x117","getBrokerFileNotes","_ref152","_ref153","_callee94","_context94","_x119","updateBrokerFileNotes","_ref154","_ref155","_callee95","_context95","_x120","deleteBrokerFileNotes","_ref158","_ref159","_callee97","_context97","_x122","createBrokerFileNotes","_ref156","_ref157","_callee96","_context96","_x121","getLawFirmFileNotes","_ref168","_ref169","_callee103","_context103","_x130","updateLawFirmFileNotes","_ref170","_ref171","_callee104","_context104","_x131","createLawFirmFileNotes","_ref172","_ref173","_callee105","_context105","_x132","deleteLawFirmFileNotes","_ref174","_ref175","_callee106","_context106","_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","getAttributedLenders","getAttributedBrokers","_ref15$generalView","loansCreate","_ref23$isLenderUser","isSystemAdmin","isLenderUser","_ref23$isLawFirmUser","loansEdit","_ref25$isLenderUser","_ref25$isLawFirmUser","getAllLoansAsSystemUser","_ref27$queryParams","getAllLoansAsIndividual","_ref29$queryParams","getAllLoansExpiryLookups","getLoanLogs","loanId","_ref37$isSystemUser","validateNewLoanNo","_ref41$loanNo","_ref41$loanLenders","validateLoanNo","_ref43$loanNo","_ref43$loanLenders","getSavedSearchesList","_args23","saveAllLoansSearch","_ref47$name","_ref47$selectedColumn","saveAllLoansLastSearch","_ref49$name","_ref49$selectedColumn","_ref49$savedSearchId","loadAllLoanLastSearch","exportLoansSearchToXLS","_args28","useLoansTableColumns","handleLoanNumberClick","handleProfileClick","formatDecimal2","formatDecimalToCurrency","formatDecimalWithDefaultValue","isUserLawfirm","brokerColumns","ellipsis","loanLendersBrokers","attributedLenderId","lawfirmColumns","lenderColumns","expandedRowLoanListColumns","loanLenderId","loanBrokerId","getMatchingLoans","_ref$generalView","getPresettledLoans","getCurrentLoans","_ref17$generalView","getDischargedLoans","_ref19$generalView","getDoneWithMeLoans","_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","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","currentLoanBook","dischargedLoanBook","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","_x54","_x55","_ref66","_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","getLowerTermUrl","getHigherTermUrl","finderTermLookups","finderScenarioLookups","_ref7$generalView","finderBrokersLookups","finderLendersLookups","_ref11$generalView","finderRadiusLookups","finderCreditLookups","finderInterestLookups","_ref21$generalView","finderSubdivisionTypeLookups","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","_x66","_x67","_ref78","_callee50","_context50","_x68","_ref82","_ref82$payLoad","_callee53","_context53","_x72","_x73","_ref84","_callee54","_context54","_x74","_ref79$payLoad","_ref80","_callee51","_context51","_x69","_x70","_callee52","_context52","_x71","_ref85$payLoad","_ref86","_callee55","_context55","_x75","_x76","_callee56","_context56","_x77","_ref178","_ref179","_callee108","_context108","_x135","_ref180","_ref181","_callee109","_context109","_x136","_ref182","_ref182$payLoad","_ref183","_callee110","_context110","_x137","_x138","_ref184","_callee111","_context111","_x139","_ref189","_ref189$payLoad","_ref190","_callee115","_context115","_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","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","getSystemUserNotes","getNonSystemUserNotes","updateFileNotesAsSystemUser","scoreQueryParams","updateFileNotesAsNonSystemUser","deleteFileNotesAsSystemUser","deleteFileNotesAsNonSystemUser","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","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","deleteLoan","updateLoanInView","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","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","loansPartnerAssociateLookup","associateId","partnerId","loanLender","_ref35$isSystemUser","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","finderSecurityTypesLookups","getPriorityList","_ref13$generalView","finderPiorityLookup","getSettlementList","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","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","updateEmailPreferences","MarketingEmails","useUserHasRoles","allowed","emailSubscriptionsView","redirectionUrl","setRedirectionUrl","individual","setIndividual","setVerifiedLenderCategories","canEditLenderSubscriptions","setCanEditLenderSubscriptions","canEditBrokerSubscriptions","setCanEditBrokerSubscriptions","setIsMasterSwitchOn","userHasRoles","_updateHeaderView","updateHeaderView","getUserEmailSubscriptions","_ref$userType","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","getAllLoansPartnerLookups","AllLoansOmicronBdmLookup","handleOmicronBdmChange","_ref33$search","getAllLoansBdmLookup","minPrincipal","maxPrincipal","localMinValue","setLocalMinValue","localMaxValue","setLocalMaxValue","useDebounceCallback","handlerRef","useRef","debouncedCallback","_len","args","_key","_ref$minField","minField","_ref$maxField","maxField","debouncedOnChangeMin","debouncedOnChangeMax","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","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","sendBulkEmail","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","SnapshotAttributedLenders","SnapshotAttributedBrokers","getLoanSnapshotDetails","loadSnapshotDetails","lastEditByCompany","lastEditDate","Logs_SnapshotAttributedLenders","associatedLenders","Logs_SnapshotAttributedBrokers","associatedBrokers","parseFloat","EmailSubscriptions_EmailSubscriptionsPublic","sendMarketingEmail","useGetSearchParams","results","RegExp","decodeURIComponent","_ref2$form","getSearchParam","_args4","MarketingEmail","AllUsersColumnsSelection","AllUsersFollowUpFilter","handleFollowupChange","AllUsersLeadScoreFilter","handleLeadScoreChange","AllUsersUserTypeFilter","handleUserTypeChange","AllUsersMasterSwitchFilter","AllUsersProfileStatusFilter","handleProfileStatusChange","AllUsersVisibilityFilter","handleVisibilityChange","State","AllUsersCurrentLoansCount","handleCurrentLoanCount","AllUsersDischargedLoansCount","handleDischargedLoanCount","AllUsersCurrentLoansTotalPrincipal","handleCurrentLoanTotalPrincipal","AllUsersDischargedLoansTotalPrincipal","handleDischargedLoanTotalPrincipal","AllUsersOmicronBdmLookup","LowAndHighParcelFilters","AllUsersLawfirmLookup","AllUsersPartnerLookup","AllUsersFilters","followup","followUpKey","AllFilters_leadScore","AllFilters_userType","masterSwitch","profileStatus","stateKeys","currentLoansNumbers","currentLoansCountKey","currentLoansTotalPrincipal","currentLoansValueKey","dischargedLoansNumbers","dischargedLoansCountKey","dischargedLoansTotalPrincipal","dischargedLoansValueKey","AllFilters_LowAndHighParcelFilters","minFirstMortgageParcelSize","maxFirstMortgageParcelSize","minSecondMortgageParcelSize","maxSecondMortgageParcelSize","minConstructionParcelSize","maxConstructionParcelSize","minMezzanineParcelSize","maxMezzanineParcelSize","minLandBankParcelSize","maxLandBankParcelSize","minRuralParcelSize","maxRuralParcelSize","AllFilters_omicronBdm","lawfirm","AllFilters_partner","AllUsersSaveSearch","AllUsersLoadSearch","_res$data2","_res$data2$filters","AllUsersList","_ref$page","_ref$total","_ref$data","displayAsLinkToProfile","route","displayBooleanYesNo","idReference","baseType","lastLawFirmId","lastBrokerId","lastLenderId","currentCriteria","original","ExportUserSearchToXls","MarketingEmailIcon","image","MarketingEmailButton","UsersView","totalItems","totalLoanCount","setPagination","getAllUsers","_total","_totalPrincipal","axiosError","input","handleColumnSelection","_ref2$id","Users_AllUsersList","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":"yFAAA,IAAAA,EAAAC,EAAA,GAAAA,EAAAC,EAAAC,EAAA,+CAAAH,EAAA,IAAAC,EAAAC,EAAAC,EAAA,iCAAAH,EAAA,IAAAC,EAAAC,EAAAC,EAAA,iCAAAH,EAAA,IAAAC,EAAAC,EAAAC,EAAA,mCAAAH,EAAA,IAAAC,EAAAC,EAAAC,EAAA,uCAAAH,EAAA,IAAAC,EAAAC,EAAAC,EAAA,sCAAAH,EAAA,IAAAC,EAAAC,EAAAC,EAAA,2CAAAH,EAAA,IAAAC,EAAAC,EAAAC,EAAA,gCAAAH,EAAA,IAAAC,EA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K,EAAA,QAAAysI,EAAEC,EAASvtI,OAAOwL,IAAIgiI,eAAtB,IAAAF,IAAiCG,8CAAYC,wBAA7C,IAAA7sI,IAAiE,yBACxE8M,aAAY,QAAA1K,EAAA,QAAA0qI,EAAEJ,EAASvtI,OAAOwL,IAAIoiI,qBAAtB,IAAAD,IAAuCF,8CAAYI,iCAAnD,IAAA5qI,IAAgF,sCAC5F4K,aAAY,QAAA1H,EAAA,QAAA2nI,EAAEP,EAASvtI,OAAOwL,IAAIuiI,wBAAtB,IAAAD,IAA0CL,8CAAYO,iCAAtD,IAAA7nI,IACZ,wCAGF,SAASonI,EAAS/hI,GAEhB,MAAI,WAAWmxE,KAAKnxE,GACX,KAGFA,EAGM8/C","file":"static/js/main.c27c6f1f.chunk.js","sourcesContent":["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","module.exports = __webpack_public_path__ + \"static/media/marketing.7f67b7ad.png\";","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\";","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","/* 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 if(Array.isArray(value) && value.length === 0){\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 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","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 GET_ALL_USERS_COLUMNS_LOOKUPS: \"/api/users/all/columns\",\n\n // All Users saved searches\n ALL_USERS_SAVED_SEARCHES_AS_SYSTEM_USER: \"/api/saved-searches/users/system-user\",\n ALL_USERS_SAVED_SEARCHES_AS_INDIVIDUAL: \"/api/saved-searches/users\",\n ALL_USERS_SAVED_SEARCH_ITEM_AS_SYSTEM_USER: \"/api/saved-searches/users/<%id%>/system-user\",\n ALL_USERS_SAVED_SEARCH_ITEM_AS_INDIVIDUAL: \"/api/saved-searches/users/<%id%>\",\n ALL_USERS_SAVED_SEARCH_ITEM_EXPORT_AS_SYSTEM_USER: \"/api/saved-searches/users/<%id%>/export/system-user\",\n ALL_USERS_SAVED_SEARCH_ITEM_EXPORT_AS_INDIVIDUAL: \"/api/saved-searches/users/<%id%>/export\",\n ALL_USERS_LAST_SEARCH: \"/api/accounts/me/preferences/users/last-search\",\n EXPORT_USER_SEARCH_TO_XLS_AS_SYSTEM_USER: \"/api/saved-searches/users/<%id%>/export/system-user\",\n EXPORT_USER_SEARCH_TO_XLS_INDIVIDUAL: \"/api/saved-searches/users/<%id%>/export\",\n\n // LOOKUPS\n USERS_FOLLOW_UP_LOOKUP: \"/api/users/all/follow-up/search-lookup\",\n USERS_LEAD_SCORE_LOOKUP: \"/api/users/all/lead-score/search-lookup\",\n USERS_USER_TYPE_LOOKUP: \"/api/users/all/user-type/search-lookup\",\n USERS_STATE_LOOKUP: \"/api/users/all/state/search-lookup\",\n USERS_CURRENT_LOANS_COUNT_LOOKUP: \"/api/users/all/current-loans-count/search-lookup\",\n USERS_DISCHARGED_LOANS_COUNT_LOOKUP: \"/api/users/all/discharged-loans-count/search-lookup\",\n USERS_CURRENT_LOANS_PRINCIPAL_LOOKUP: \"/api/users/all/current-loans/search-lookup\",\n USERS_DISCHARGED_LOANS_PRINCIPAL_LOOKUP: \"/api/users/all/discharged-loans/search-lookup\",\n GET_ALL_USERS_LAWFIRM_LOOKUP: \"/api/users/all/lawfirm/search-lookup\",\n GET_ALL_USERS_PARTNER_LOOKUP: \"/api/users/all/partners/<%id%>/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:\n \"/api/marketing-email/sender/search-lookup\",\n MARKETING_RECIPIENTS_LOOKUP_URL:\n \"/api/marketing-email/all-users/recipients/<%id%>\",\n\n // Bulk Email\n BULK_EMAIL_LOOKUP_SENDERS_URL: \"/api/bulk-email/sender/search-lookup\",\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 MARKETING_SEND_EMAIL_URL: \"/api/marketing-email/send/user\",\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 marketingEmailSenderLookup = ({ cancelToken, search}) => {\n return async () => {\n const apiUrl = APIHandler.constructEndpoint({\n endpoint: apiUrls.BULK_EMAIL_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, search:string}} param0 \n * @returns {Promise} \n */\nexport const bulkEmailSenderLookup = ({ cancelToken, search}) => {\n return async () => {\n\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.BULK_EMAIL_LOOKUP_SENDERS_URL\n });\n\n const response = await requestBuilder(null, url, {search});\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 * \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 {{id: number}} param0 \n * @returns {Promise}\n */\nexport const marketingEmailRecipientsLookup = ({ id }) => {\n return async () => {\n const apiUrl = APIHandler.constructEndpoint({\n endpoint: apiUrls.MARKETING_RECIPIENTS_LOOKUP_URL,\n options: {id: id}\n });\n const response = await http.get(apiUrl);\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, includeUnsubscribed: boolean}} param0 \n * @returns {Promise}\n */\n export const bulkEmailRecipientsLookup = ({ cancelToken, search = \"\", includeUnsubscribed }) => {\n return async () => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.BULK_EMAIL_RECIPIENTS_LOOKUP_URL\n });\n var queryParams = {\n search,\n includeUnsubscribed\n }\n const response = await requestBuilder(null, url, queryParams);\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 * @returns {Promise}\n */\nexport const allUsersColumnsLookups = () => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.GET_ALL_USERS_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\nexport const followupLookups = ({ cancelToken }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.USERS_FOLLOW_UP_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 leadScoreLookups = ({ cancelToken }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.USERS_LEAD_SCORE_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 userTypeLookups = ({ cancelToken }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.USERS_USER_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/**\n * \n * @param {{cancelToken: any}} params\n * @returns {Promise[]>} \n */\nexport const userStateLookups = ({ cancelToken }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.USERS_STATE_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 currentLoansCount = ({ cancelToken }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.USERS_CURRENT_LOANS_COUNT_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 dischargedLoansCount = ({ cancelToken }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.USERS_DISCHARGED_LOANS_COUNT_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 currentLoansPrincipal = ({ cancelToken }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.USERS_CURRENT_LOANS_PRINCIPAL_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 dischargedLoansPrincipal = ({ cancelToken }) => {\n return async() => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.USERS_DISCHARGED_LOANS_PRINCIPAL_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};","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\").IAllUsersFilters}} param0\n * @returns {Promise>}\n */\nexport const getAllUsersList = async ({\n cancelToken,\n userType = \"\",\n payload = {}\n}) => {\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\n const params = new URLSearchParams();\n Object.entries(payload).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 const response = await http.get(\n apiUrl + \"?\" + params.toString(),\n cancelToken\n );\n return response;\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 = ({ search = \"\" }) => {\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(\n processRequest(dispatch, response, \"GET_ALL_USERS_BDM_LOOKUP\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const getAllUsersLawFirmLookup = ({ search = \"\" }) => {\n return dispatch =>\n new Promise(async resolve => {\n const apiUrl = APIHandler.constructEndpoint({\n endpoint: apiUrls.GET_ALL_USERS_LAWFIRM_LOOKUP,\n options: {}\n });\n const url = search ? `${apiUrl}?search=${search}` : apiUrl;\n try {\n const response = await http.get(url);\n return resolve(\n processRequest(dispatch, response, \"GET_ALL_USERS_LAWFIRM_LOOKUP\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\nexport const getAllUsersPartnerLookups = ({ id, search = \"\" }) => {\n return dispatch =>\n new Promise(async resolve => {\n const apiUrl = APIHandler.constructEndpoint({\n endpoint: apiUrls.GET_ALL_USERS_PARTNER_LOOKUP,\n options: { id }\n });\n const url = search ? `${apiUrl}?search=${search}` : apiUrl;\n try {\n const response = await http.get(url);\n return resolve(\n processRequest(dispatch, response, \"GET_ALL_USERS_PARTNER_LOOKUP\")\n );\n } catch (err) {\n resolve(processRequest(dispatch, err));\n }\n });\n};\n\n/**\n * @param {boolean} isSystemUser\n * @param {{\n * name?: string\n * selectedColumns?: string[],\n * filters: import(\"../libs/types\").IAllUsersSaveSearchPayload\n * }} payload\n * @returns\n */\nexport const saveAllUsersSearch = async (\n isSystemUser = false,\n { name = \"\", filters, selectedColumns = [] }\n) => {\n const url = APIHandler.constructEndpoint({\n endpoint: isSystemUser\n ? apiUrls.ALL_USERS_SAVED_SEARCHES_AS_SYSTEM_USER\n : apiUrls.ALL_USERS_SAVED_SEARCHES_AS_INDIVIDUAL\n });\n const response = await http.post(url, {\n name,\n selectedColumns,\n filters\n });\n return response;\n};\n\n/**\n * @param {import(\"../libs/types\").IAllUsersSaveLastSearch} payload\n * @returns\n */\nexport const saveAllUsersLastSearch = async ({\n name = \"\",\n filters,\n selectedColumns = [],\n savedSearchId = null\n}) => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.ALL_USERS_LAST_SEARCH\n });\n const response = await http.put(url, {\n name,\n selectedColumns,\n filters,\n savedSearchId\n });\n return response;\n};\n\n\n/**\n * \n * @param {boolean} isSystemUser \n * @param {import(\"../libs/types\").IAllLoanSaveSearchTableQuery} params\n * @returns {Promise>}\n */\nexport const getSavedUserSearchesList = 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_USERS_SAVED_SEARCHES_AS_SYSTEM_USER\n : apiUrls.ALL_USERS_SAVED_SEARCHES_AS_INDIVIDUAL;\n const url = APIHandler.constructEndpoint({\n endpoint: api + \"?\" + queryParams.toString()\n });\n const response = await http.get(url);\n return response;\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_USERS_SAVED_SEARCH_ITEM_AS_SYSTEM_USER\n : apiUrls.ALL_USERS_SAVED_SEARCH_ITEM_AS_INDIVIDUAL,\n options: {\n id\n }\n });\n const response = await http.get(url);\n return response;\n}\n\n/**\n * @returns {Promise>}\n */\nexport const loadLastSearch = async () => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls.ALL_USERS_LAST_SEARCH\n });\n const response = await http.get(url);\n return response;\n}\n\n/**\n* @param {boolean} isSystemUser\n* @param {number} id \n* @returns \n*/\nexport const exportUsersSearchToXLS = async (isSystemUser = false, id) => {\n const url = APIHandler.constructEndpoint({\n endpoint: isSystemUser\n ? apiUrls.EXPORT_USER_SEARCH_TO_XLS_AS_SYSTEM_USER\n : apiUrls.EXPORT_USER_SEARCH_TO_XLS_INDIVIDUAL,\n options: {\n id\n }\n });\n const response = await http.put(url);\n return response;\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}) => {\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 { 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 React, { useEffect, useState } from \"react\";\nimport NumberInput from \"../../../Common/NumberInput\";\nimport useDebounceCallback from \"../../../Common/Hooks/useDebounceCallback\";\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 const debouncedOnChangeMin = useDebounceCallback(setLocalMinValue, 500)\n const debouncedOnChangeMax = useDebounceCallback(setLocalMaxValue, 500)\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 => debouncedOnChangeMin(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 => debouncedOnChangeMax(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 { 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 { bulkEmailSenderLookup } from \"../../actions/lookup\";\nimport { errorDisplay, mustBeArray } from \"../../libs\";\nimport _ from \"lodash\";\nimport {\n IBulkEmailRecipientLookupItem,\n IBulkEmailSendError,\n IBulkEmailSendPayload,\n IBulkEmailSenderLookupItem\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 bulkEmailSenderLookup({\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 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 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 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 { 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?.MARKETING_SEND_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\n export const sendMarketingEmail = ({\n payload\n }: {\n payload: FormData;\n }) => {\n return async () => {\n const url = APIHandler.constructEndpoint({\n endpoint: apiUrls?.MARKETING_SEND_EMAIL_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 * Gets the value of a specified search param in the given URL\n * \n * URL is current location href by default\n */\nfunction useGetSearchParams() {\n function getSearchParams(name: string, url = location.href) {\n name = name.replace(/[[\\]]/g, \"\\\\$&\");\n const regex = new RegExp(\"[?&]\" + name + \"(=([^&#]*)|&|#|$)\"),\n results = regex.exec(url);\n if (!results) return null;\n if (!results[2]) return \"\";\n return decodeURIComponent(results[2].replace(/\\+/g, \" \"));\n }\n\n return getSearchParams;\n}\n\nexport default useGetSearchParams;\n","import {\n Button,\n Col,\n Form,\n Icon,\n Input,\n Layout,\n message,\n Modal,\n Row,\n Select,\n Typography,\n Upload\n } from \"antd\";\nimport React, { useEffect, 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 { marketingEmailRecipientsLookup, marketingEmailSenderLookup } from \"../../actions/lookup\";\nimport { mustBeArray } from \"../../libs\";\nimport _ from \"lodash\";\nimport {\n IMarketingSenderLookupItem,\n IMarketingEmailRecipientLookupItem,\n IMarketingEmailPayload\n} from \"../../libs/types\";\nimport { sendEmailToTest, sendMarketingEmail } from \"../../actions/emailMarketing\";\nimport { UploadChangeParam } from \"antd/lib/upload\";\nimport RequiredSign from \"../../Common/RequiredSign\";\nimport useGetSearchParams from \"../../Common/Hooks/useGetSearchParams\";\n\ninterface CreateEmailProps extends FormComponentProps {}\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 const getSearchParam = useGetSearchParams();\n\n const id = Number.parseInt(getSearchParam('id') || \"\") || null;\n const [testEmail, setTestEmail] = useState(\"\");\n const [testEmailHasError, setTestEmailHasError] = useState(false);\n const [isSubmitLoading, setIsSubmitLoading] = useState(false);\n const [senderList, setSenderList] = useState(\n []\n );\n\n const [toSendList, setToSendList] = useState<\n IMarketingEmailRecipientLookupItem[]\n >([]);\n\n // Lookups\n const getSenders = _.debounce(async (search: string = \"\") => {\n const s = await dispatch(\n marketingEmailSenderLookup({\n search,\n cancelToken: signal.token\n })\n );\n setSenderList(mustBeArray(s));\n }, 500);\n\n const getRecipients = _.debounce(async (id: number) => {\n const response = await dispatch(\n marketingEmailRecipientsLookup({\n id: id\n })\n );\n setToSendList(mustBeArray(response));\n }, 300);\n\n function displayToast(response: any) {\n if (response.status) {\n message.success(\"Email sent successfully\");\n } else {\n console.log(response.data);\n }\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 }\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\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(sendEmailToTest({\n payload: formData\n }));\n displayToast(response);\n }\n else{\n setIsSubmitLoading(true);\n\n const payload: IMarketingEmailPayload = {\n emailBody: values.emailBody || \"\",\n emailSubject: values.emailSubject,\n senderEmail: values.senderEmail,\n savedSearchId: id || 0\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(sendMarketingEmail({\n payload: formData\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 if(!id){\n message.error(\"Saved user search is invalid\");\n history.goBack();\n return;\n }\n dispatch(\n updateHeader({\n header: {\n title: \"Marketing Email\",\n action: \"\",\n page: `marketing-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 getRecipients(id);\n }, []);\n \n return(\n \n {\n e.preventDefault();\n submit();\n }}\n >\n
\n \n \n

Marketing Email

\n \n \n
\n \n \n \n \n To:\n \n \n x.key)}\n >\n {toSendList.map(v => (\n \n {v.user}\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@omicron.net.au\"\n })(\n \n {senderList.map((v, i) => (\n \n {v.senderName}\n \n ))}\n \n )}\n \n \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 \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);","import { Button, Checkbox, Col, Modal } from \"antd\";\nimport React, { useMemo } from \"react\";\nimport { IAllUsersReportColumnListItem } from \"../../libs/types\";\nimport { Row } from \"antd/es/grid\";\n\ntype AllUsersColumnsSelectionProps = {\n isOpen: boolean;\n onClose: () => void;\n onChange: (selectedColumns: string[]) => void;\n columnsList: IAllUsersReportColumnListItem[];\n selectedColumns: string[];\n};\n\nexport default function AllUsersColumnsSelection({\n isOpen,\n onClose,\n onChange,\n columnsList,\n selectedColumns = []\n}: AllUsersColumnsSelectionProps) {\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 Save & 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 { 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 { followupLookups } from \"../../../actions/lookup\";\n\nconst AllUsersFollowUpFilter = ({ value, handleFollowupChange}) => {\n const [list, setList] = useState([]);\n const signal = axios.CancelToken.source();\n const dispatchAction = useDispatch();\n\n const handleOnLoad = async () => {\n dispatchAction(followupLookups({ cancelToken: signal.token })).then(\n resp => {\n setList(mustBeArray(resp));\n }\n );\n };\n\n useEffect(() => {\n handleOnLoad();\n }, []);\n\n return (\n \n
\n {list.map(option => (\n \n {option.name}\n \n ))}\n \n All\n \n
\n \n );\n};\n\nexport default AllUsersFollowUpFilter;","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 { leadScoreLookups } from \"../../../actions/lookup\";\n\nconst AllUsersLeadScoreFilter = ({ value, handleLeadScoreChange}) => {\n const [list, setList] = useState([]);\n const signal = axios.CancelToken.source();\n const dispatchAction = useDispatch();\n\n const handleOnLoad = async () => {\n dispatchAction(leadScoreLookups({ cancelToken: signal.token })).then(\n resp => {\n setList(mustBeArray(resp));\n }\n );\n };\n\n useEffect(() => {\n handleOnLoad();\n }, []);\n\n return (\n \n
\n {list.map(option => (\n \n {option.name}\n \n ))}\n \n All\n \n
\n \n );\n};\n\nexport default AllUsersLeadScoreFilter;","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 { userTypeLookups } from \"../../../actions/lookup\";\n\nconst AllUsersUserTypeFilter = ({ value, handleUserTypeChange}) => {\n const [list, setList] = useState([]);\n const signal = axios.CancelToken.source();\n const dispatchAction = useDispatch();\n\n const handleOnLoad = async () => {\n dispatchAction(userTypeLookups({ cancelToken: signal.token })).then(\n resp => {\n setList(mustBeArray(resp));\n }\n );\n };\n\n useEffect(() => {\n handleOnLoad();\n }, []);\n\n return (\n \n
\n {list.map(option => (\n \n {option.name}\n \n ))}\n \n All\n \n
\n \n );\n};\n\nexport default AllUsersUserTypeFilter;","import { Card, Radio } from \"antd\";\nimport axios from \"axios\";\nimport React, { useEffect, useState } from \"react\";\nimport { useDispatch, useSelector } from \"react-redux\";\n\nconst AllUsersMasterSwitchFilter = ({ value, handleMasterSwitchChange}) => {\n return (\n \n
\n \n Yes\n \n \n No\n \n \n All\n \n
\n \n );\n};\n\nexport default AllUsersMasterSwitchFilter;","import { Card, Radio } from \"antd\";\nimport axios from \"axios\";\nimport React, { useEffect, useState } from \"react\";\nimport { useDispatch, useSelector } from \"react-redux\";\n\nconst AllUsersProfileStatusFilter = ({ value, handleProfileStatusChange}) => {\n return (\n \n
\n \n Paused\n \n \n Active\n \n \n All\n \n
\n \n );\n};\n\nexport default AllUsersProfileStatusFilter;","import { Card, Radio } from \"antd\";\nimport axios from \"axios\";\nimport React, { useEffect, useState } from \"react\";\nimport { useDispatch, useSelector } from \"react-redux\";\n\nconst AllUsersVisibilityFilter = ({ value, handleVisibilityChange}) => {\n return (\n \n
\n \n Visible\n \n \n Invisible\n \n \n All\n \n
\n \n );\n};\n\nexport default AllUsersVisibilityFilter;","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 { userStateLookups } from \"../../../actions/lookup\";\n\ntype StateProps = {\n handleFieldChange: (\n params: FinderFilterFieldChangeHandlerParams\n ) => void;\n value: string[];\n};\n\ntype Option = {\n label: string;\n value: string;\n disabled?: boolean;\n};\n\nexport default function State ({\n value = [],\n handleFieldChange = () => {}\n} : StateProps) {\n const dispatch = useDispatch();\n const signal = Axios.CancelToken.source();\n\n const [list, setList] = useState([]);\n\n async function getLookupValues() {\n dispatch(\n userStateLookups({\n cancelToken: signal.token\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: \"stateKeys\", value })}\n >\n {list.map(x => {\n return (\n
\n {x.label}\n
\n );\n })}\n \n
\n );\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 { currentLoansCount } from \"../../../actions/lookup\";\n\nconst AllUsersCurrentLoansCount = ({ value, handleCurrentLoanCount}) => {\n const [list, setList] = useState([]);\n const signal = axios.CancelToken.source();\n const dispatchAction = useDispatch();\n\n const handleOnLoad = async () => {\n dispatchAction(currentLoansCount({ cancelToken: signal.token })).then(\n resp => {\n setList(mustBeArray(resp));\n }\n );\n };\n\n useEffect(() => {\n handleOnLoad();\n }, []);\n\n return (\n \n
\n {list.map(option => (\n \n {option.name}\n \n ))}\n \n All\n \n
\n \n );\n};\n\nexport default AllUsersCurrentLoansCount;","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 { dischargedLoansCount } from \"../../../actions/lookup\";\n\nconst AllUsersDischargedLoansCount = ({ value, handleDischargedLoanCount}) => {\n const [list, setList] = useState([]);\n const signal = axios.CancelToken.source();\n const dispatchAction = useDispatch();\n\n const handleOnLoad = async () => {\n dispatchAction(dischargedLoansCount({ cancelToken: signal.token })).then(\n resp => {\n setList(mustBeArray(resp));\n }\n );\n };\n\n useEffect(() => {\n handleOnLoad();\n }, []);\n\n return (\n \n
\n {list.map(option => (\n \n {option.name}\n \n ))}\n \n All\n \n
\n \n );\n};\n\nexport default AllUsersDischargedLoansCount;","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 { currentLoansPrincipal } from \"../../../actions/lookup\";\n\nconst AllUsersCurrentLoansTotalPrincipal = ({ value, handleCurrentLoanTotalPrincipal}) => {\n const [list, setList] = useState([]);\n const signal = axios.CancelToken.source();\n const dispatchAction = useDispatch();\n\n const handleOnLoad = async () => {\n dispatchAction(currentLoansPrincipal({ cancelToken: signal.token })).then(\n resp => {\n setList(mustBeArray(resp));\n }\n );\n };\n\n useEffect(() => {\n handleOnLoad();\n }, []);\n\n return (\n \n
\n {list.map(option => (\n \n {option.name}\n \n ))}\n \n All\n \n
\n \n );\n};\n\nexport default AllUsersCurrentLoansTotalPrincipal;","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 { dischargedLoansPrincipal } from \"../../../actions/lookup\";\n\nconst AllUsersDischargedLoansTotalPrincipal = ({ value, handleDischargedLoanTotalPrincipal}) => {\n const [list, setList] = useState([]);\n const signal = axios.CancelToken.source();\n const dispatchAction = useDispatch();\n\n const handleOnLoad = async () => {\n dispatchAction(dischargedLoansPrincipal({ cancelToken: signal.token })).then(\n resp => {\n setList(mustBeArray(resp));\n }\n );\n };\n\n useEffect(() => {\n handleOnLoad();\n }, []);\n\n return (\n \n
\n {list.map(option => (\n \n {option.name}\n \n ))}\n \n All\n \n
\n \n );\n};\n\nexport default AllUsersDischargedLoansTotalPrincipal;","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 { getAllUsersBdmLookup } from \"../../../actions/users\";\n\nconst AllUsersOmicronBdmLookup = ({ value, handleOmicronBdmChange, className = \"\" }) => {\n const [list, setList] = useState([]); \n const dispatchAction = useDispatch();\n useEffect(() => {\n dispatchAction(\n getAllUsersBdmLookup({ search: \"\" })\n ).then(resp => {\n setList(mustBeArray(resp?.data));\n });\n }, []);\n \n\n const handleSearch = e => {\n dispatchAction(\n getAllUsersBdmLookup({ search: e })\n ).then(resp => {\n setList(mustBeArray(resp?.data));\n });\n };\n const debouncedSearch = useCallback(debounce(handleSearch, 300));\n return (\n
\n handleOmicronBdmChange(e || null)}\n allowClear={false}\n onSearch={debouncedSearch}\n showSearch\n filterOption={false}\n >\n \n All\n \n {list.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n );\n};\n\nexport default AllUsersOmicronBdmLookup;\n","import React from \"react\";\nimport NumberInput from \"../../../Common/NumberInput\";\n\nconst LowAndHighParcelFilters = ({ minValue, maxValue, handleFieldChange, minField = \"\", maxField = \"\" }) => {\n return (\n
\n
\n
From:
\n `$ ${e}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")}\n parser={e => e.replace(/\\$\\s?|(,*)/g, \"\")}\n className=\" hideNumberPointers w-180\"\n value={minValue}\n onChange={e => handleFieldChange({ field: minField, value: e || null })}\n />\n
\n
\n
To:
\n `$ ${e}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")}\n parser={e => e.replace(/\\$\\s?|(,*)/g, \"\")}\n className=\"hideNumberPointers w-180\"\n value={maxValue}\n onChange={e => handleFieldChange({ field: maxField, value: e || null })}\n />\n
\n
\n );\n};\n\nexport default LowAndHighParcelFilters;\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 { getAllUsersLawFirmLookup } from \"../../../actions/users\";\n\nconst AllUsersLawfirmLookup = ({ value, handleLawFirmChange, className = \"\" }) => {\n const [list, setList] = useState([]); \n const dispatchAction = useDispatch();\n useEffect(() => {\n dispatchAction(\n getAllUsersLawFirmLookup({ search: \"\" })\n ).then(resp => {\n setList(mustBeArray(resp?.data));\n });\n }, []);\n \n\n const handleSearch = e => {\n dispatchAction(\n getAllUsersLawFirmLookup({ search: e })\n ).then(resp => {\n setList(mustBeArray(resp?.data));\n });\n };\n const debouncedSearch = useCallback(debounce(handleSearch, 300));\n return (\n
\n Lawfirm\n handleLawFirmChange(e || null)}\n allowClear={false}\n onSearch={debouncedSearch}\n showSearch\n filterOption={false}\n >\n \n All\n \n {list.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n );\n};\n\nexport default AllUsersLawfirmLookup;\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 { getAllUsersPartnerLookups } from \"../../../actions/users\";\n\nconst AllUsersPartnerLookup = ({ value, lawFirmId, handlePartnerChange, className = \"\", disabled = false }) => {\n const [list, setList] = useState([]); \n const dispatchAction = useDispatch();\n useEffect(() => {\n if(lawFirmId){\n dispatchAction(\n getAllUsersPartnerLookups({ id: lawFirmId, search: \"\" })\n ).then(resp => {\n setList(mustBeArray(resp?.data));\n });\n }\n }, [lawFirmId]);\n \n\n const handleSearch = e => {\n dispatchAction(\n getAllUsersPartnerLookups({ id: lawFirmId, search: e })\n ).then(resp => {\n setList(mustBeArray(resp?.data));\n });\n };\n const debouncedSearch = useCallback(debounce(handleSearch, 300));\n return (\n
\n Partner\n handlePartnerChange(e || null)}\n allowClear={false}\n onSearch={debouncedSearch}\n showSearch\n filterOption={false}\n >\n \n All\n \n {list.map(data => {\n return (\n \n {data.name}\n \n );\n })}\n \n
\n );\n};\n\nexport default AllUsersPartnerLookup;\n","import React, { useMemo } from \"react\";\nimport { Button, Col, Modal, Row, Tabs } from \"antd\";\nimport { IAllUsersFilters } from \"../../../libs/types\";\nimport AllUsersFollowUpFilter from \"./followup\";\nimport AllUsersLeadScoreFilter from \"./leadScore\";\nimport AllUsersUserTypeFilter from \"./userType\";\nimport AllUsersMasterSwitchFilter from \"./masterSwitch\";\nimport AllUsersProfileStatusFilter from \"./profileStatus\";\nimport AllUsersVisibilityFilter from \"./visibility\";\nimport State from \"./state\";\nimport AllUsersCurrentLoansCount from \"./currentLoansNumbers\";\nimport AllUsersDischargedLoansCount from \"./dischargedLoansNumbers\";\nimport AllUsersCurrentLoansTotalPrincipal from \"./currentLoansTotalPrincipal\";\nimport AllUsersDischargedLoansTotalPrincipal from \"./dischargedLoansTotalPrincipal\";\nimport AllUsersOmicronBdmLookup from \"./omicronBdm\";\nimport LowAndHighParcelFilters from \"./LowAndHighParcelFilters\";\nimport AllUsersLawfirmLookup from \"./lawfirm\";\nimport AllUsersPartnerLookup from \"./partner\";\n\ntype AllUsersFiltersProps = {\n isModalOpen: boolean;\n onFiltersChange: (field: string, value: any) => void;\n onCancel: () => void;\n onClearAll: () => void;\n filters: IAllUsersFilters;\n isSystemAdmin: boolean;\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 AllUsersFilters({\n isModalOpen,\n onCancel,\n filters,\n onClearAll,\n onFiltersChange,\n isSystemAdmin\n}: AllUsersFiltersProps) {\n const handleFieldChange = ({ field, value }: { field: string; value: any }) =>\n onFiltersChange(field, value);\n\n const filterNodes: FilterNode[] = useMemo(() => {\n return [\n {\n label: \"Follow up\",\n key: \"followUpKey\",\n node: (\n \n onFiltersChange(\"followUpKey\", e.target.value || null)\n }\n />\n )\n },\n {\n label: \"Lead Score\",\n key: \"leadScore\",\n node: (\n \n onFiltersChange(\"leadScore\", e.target.value || null)\n }\n />\n )\n },\n {\n label: \"Type\",\n key: \"type\",\n node: (\n \n onFiltersChange(\"typeKey\", e.target.value || null)\n }\n />\n )\n },\n {\n label: \"Master Switch\",\n key: \"masterSwitch\",\n visible: isSystemAdmin,\n node: (\n \n onFiltersChange(\"masterSwitch\", e.target.value)\n }\n />\n )\n },\n {\n label: \"Profile Status\",\n key: \"profileStatus\",\n visible: isSystemAdmin,\n node: (\n \n onFiltersChange(\"profileStatus\", e.target.value)\n }\n />\n )\n },\n {\n label: \"Visibility\",\n key: \"visibility\",\n visible: isSystemAdmin,\n node: (\n \n onFiltersChange(\"visibility\", e.target.value)\n }\n />\n )\n },\n {\n label: \"State\",\n key: \"state\",\n node: (\n \n )\n },\n {\n label: \"Current/Discharged Loans\",\n key: \"currentLoans\",\n node: (\n <>\n
\n Current Loan Numbers: \n \n onFiltersChange(\"currentLoansCountKey\", e.target.value || null)\n }\n />\n
\n
\n Current Loans Total Principal\n \n onFiltersChange(\"currentLoansValueKey\", e.target.value || null)\n }\n />\n
\n
\n Discharged Loans Numbers: \n \n onFiltersChange(\"dischargedLoansCountKey\", e.target.value || null)\n }\n />\n
\n
\n Discharged Loans Total Principal\n \n onFiltersChange(\"dischargedLoansValueKey\", e.target.value || null)\n }\n />\n
\n \n )\n },\n {\n label: \"1st Mortgage Parcel Size\",\n key: \"firstMortgageParcelSize\",\n node: (\n \n )\n },\n {\n label: \"2nd Mortgage Parcel Size\",\n key: \"secondMortgageParcelSize\",\n node: (\n \n )\n },\n {\n label: \"Construction Parcel Size\",\n key: \"constructionParcelSize\",\n node: (\n \n )\n },\n {\n label: \"Mezzanine Parcel Size\",\n key: \"mezzanineParcelSize\",\n node: (\n \n )\n },\n {\n label: \"Land Bank Parcel Size\",\n key: \"landBankParcelSize\",\n node: (\n \n )\n },\n {\n label: \"Rural Parcel Size\",\n key: \"ruralBankParcelSize\",\n node: (\n \n )\n },\n {\n label: \"BDM\",\n key: \"omicronBdm\",\n node: (\n \n onFiltersChange(\"omicronBdmId\", e || null)\n }\n />\n )\n },\n {\n label: \"Lawfirm / Partner\",\n key: \"lawfirm\",\n node: (\n <>\n onFiltersChange(\"lawFirmId\", e || null)}\n />\n {filters.lawFirmId && (\n \n onFiltersChange(\"partnerId\", e || null)\n }\n />\n )}\n \n )\n }\n ];\n }, [filters, isSystemAdmin]);\n\n return (\n <>\n \n Clear\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, Col, Input, message, Modal, Row, Typography } from \"antd\";\nimport React, { useEffect, useState } from \"react\";\nimport {\n IAllUsersSaveSearchPayload\n} from \"../../libs/types\";\nimport useCheckUserRoles from \"../../Common/Hooks/useCheckUserRoles\";\nimport { debounce } from \"lodash\";\nimport {\n saveAllUsersSearch,\n saveAllUsersLastSearch\n} from \"../../actions/users\";\nimport useDebounceCallback from \"../../Common/Hooks/useDebounceCallback\";\n\ntype AllUsersSaveSearchProps = {\n currentSelectedColumns: string[];\n currentFilters: IAllUsersSaveSearchPayload;\n isFiltersEdited: boolean;\n onSave: (nameOfLatestSave: string) => void;\n idOfLoadedSave?: number;\n};\n\nexport default function AllUsersSaveSearch({\n currentSelectedColumns,\n currentFilters,\n isFiltersEdited,\n onSave,\n idOfLoadedSave = 0\n}: AllUsersSaveSearchProps) {\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 async function saveSearch() {\n if (isFiltersEdited) {\n const isSystemUser = await checkIfUserIsSystemAdmin();\n setIsLoading(true);\n try {\n const res = await saveAllUsersSearch(isSystemUser, {\n name: saveSearchName,\n selectedColumns: currentSelectedColumns,\n filters: currentFilters\n });\n if (res.status === 200) {\n setIsSaved(true);\n onSave(saveSearchName);\n }\n } catch (error) {\n console.error(error);\n message.error(\"An error occured while saving your filters\");\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 try {\n await saveAllUsersLastSearch({\n name: \"Last Saved\",\n selectedColumns: currentSelectedColumns,\n filters: currentFilters,\n savedSearchId: idOfLoadedSave || null\n });\n } catch (error) {\n console.error(error);\n message.error(\"An error occured while saving the latest filters\");\n }\n setIsLoading(false);\n }\n\n function closeModal() {\n toggleModal();\n setSaveSearchName(\"\");\n setIsSaved(false);\n }\n\n // Reinstate once Save latest users search is available\n useEffect(() => {\n if(isFiltersEdited){\n saveLast();\n }\n }, [currentFilters, 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, { useEffect, useState } from \"react\";\nimport { IAllUsersFilters, IAllUsersTableControl } from \"../../libs/types\";\nimport useCheckUserRoles from \"../../Common/Hooks/useCheckUserRoles\";\nimport {\n getSavedUserSearchesList,\n loadLastSearch,\n loadSavedSearch\n} from \"../../actions/users\";\nimport { message, Select } from \"antd\";\nimport useDebounce from \"../../Common/Hooks/useDebounce\";\n\ntype AllUsersLoadSearchProps = {\n currentLoaded: number;\n onLoadSavedSearch: (\n result: {\n id: number;\n pagination?: IAllUsersTableControl;\n filters?: IAllUsersFilters;\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 AllUsersLoadSearch({\n currentLoaded = 0,\n onLoadSavedSearch,\n onLoadSavedList,\n shouldLoadSavedList,\n nameOfLatestSave = \"\",\n onClearSearch = () => {}\n}: AllUsersLoadSearchProps) {\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 async function loadSavedSearchList(search = \"\") {\n const isSystemUser = await checkIfUserIsSystemAdmin();\n setIsLoading(true);\n try {\n const res = await getSavedUserSearchesList(isSystemUser, {\n search: search\n });\n if (res && res.data.length > 0) {\n setSavedSearchList(res.data);\n onLoadSavedList();\n }\n } catch (error) {\n console.error(error);\n message.error(\"Could not retrieve chosen search\");\n }\n setIsLoading(false);\n }\n\n async function loadLastSaved() {\n setIsLoading(true);\n try {\n const res = await loadLastSearch();\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 {\n id: savedSearchId || 0,\n pagination,\n filters: filters,\n selectedColumns\n },\n false\n );\n }\n }\n } catch (error) {\n console.error(error);\n message.error(\"Could not retrieve latest search\");\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.data;\n const pagination = {\n page,\n pageSize,\n sort,\n orderBy,\n sortDirection\n };\n\n onLoadSavedSearch({\n id,\n pagination,\n 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 { Table } from \"antd\";\nimport { PaginationConfig } from \"antd/lib/pagination\";\nimport { ColumnProps, SorterResult } from \"antd/lib/table\";\nimport React, { useMemo } from \"react\";\nimport { IAllUsersListItem } from \"../../libs/types\";\nimport { asDefaultDisplayFormatDate } from \"../../libs\";\nimport history from \"../../routes/history\";\nimport {\n BROKER_USER,\n DUAL_USER,\n LAW_FIRM_USER,\n LENDER_USER\n} from \"../../constants/systemUsers\";\n\ntype AllUsersListProps = {\n loading: boolean;\n total: number;\n page: number;\n handleTableChange: (\n pagination: PaginationConfig,\n sorter: SorterResult\n ) => void;\n data: IAllUsersListItem[];\n selectedColumns?: string[];\n};\n\nfunction AllUsersList({\n loading,\n page = 1,\n total = 0,\n handleTableChange,\n data = [],\n selectedColumns = []\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 displayUserAsLinkToProfile(\n value: string | null,\n record: IAllUsersListItem\n ) {\n let idReference: \"brokerId\" | \"lenderId\" | \"lawFirmId\" = \"brokerId\";\n let userType = \"\";\n const baseType = record.type.toLowerCase();\n if (baseType === LENDER_USER) {\n idReference = `lenderId`;\n userType = LENDER_USER;\n } else if (baseType === BROKER_USER || baseType === DUAL_USER) {\n idReference = \"brokerId\";\n userType = BROKER_USER;\n } else if (baseType === LAW_FIRM_USER.toLowerCase()) {\n idReference = \"lawFirmId\";\n userType = LAW_FIRM_USER;\n } else {\n // Fallback value\n return value;\n }\n\n const id = record[idReference];\n if (id === null) {\n return value;\n }\n const route = `/users/${id}/${userType}`;\n return (\n history.push(route)}>\n {value}\n \n );\n }\n\n function displayAsLinkToProfile(value: string | null, id: number | null, userType: 'broker' | 'lender' | 'lawFirm'){\n if (id === null || !value) {\n return value;\n }\n const route = `/users/${id}/${userType}`;\n return (\n history.push(route)}>\n {value}\n \n );\n }\n\n function displayFundsAvailable(\n value: number | null,\n record: IAllUsersListItem\n ) {\n if (record.currentCriteria === \"N/A\") {\n return \"N/A\";\n }\n\n return formatDecimalToCurrency(value || 0);\n }\n\n function displayStringOrNA(value: string | null) {\n return value || \"N/A\";\n }\n\n function displayDateOrNA(value: any | null) {\n return asDefaultDisplayFormatDate(value) || \"N/A\";\n }\n\n function displayBooleanYesNo(value: string | null) {\n return value ? \"Yes\" : \"No\";\n }\n\n const colTemplate: ColumnProps[] = [\n {\n title: \"User\",\n dataIndex: \"user\",\n render: displayUserAsLinkToProfile\n },\n {\n title: \"State\",\n dataIndex: \"state\"\n },\n {\n title: \"Financier\",\n dataIndex: \"company\"\n },\n {\n title: \"Email\",\n dataIndex: \"email\"\n },\n {\n title: \"Type\",\n dataIndex: \"type\"\n },\n {\n title: \"Last Call With\",\n dataIndex: \"lastCall\",\n render: asDefaultDisplayFormatDate\n },\n {\n title: \"Last Loan\",\n dataIndex: \"lastLoan\",\n render: asDefaultDisplayFormatDate\n },\n {\n title: \"Current Criteria\",\n dataIndex: \"currentCriteria\",\n render: displayDateOrNA\n },\n {\n title: \"Co-Lender\",\n dataIndex: \"coLender\",\n render: displayBooleanYesNo\n },\n {\n title: \"Active Criteria\",\n dataIndex: \"activeCriteria\",\n render: displayStringOrNA\n },\n {\n title: \"Mobile\",\n dataIndex: \"mobile\"\n },\n {\n title: \"Last File Note\",\n dataIndex: \"lastFileNote\",\n render: asDefaultDisplayFormatDate\n },\n {\n title: \"Last Login\",\n dataIndex: \"lastLogin\",\n render: asDefaultDisplayFormatDate\n },\n {\n title: \"Last Suburb\",\n dataIndex: \"lastSuburb\"\n },\n {\n title: \"Website\",\n dataIndex: \"website\"\n },\n {\n title: \"Last Partner\",\n dataIndex: \"lastPartner\"\n },\n {\n title: \"Last Law Firm\",\n dataIndex: \"lastLawFirm\",\n render: (value, record) => displayAsLinkToProfile(value, record.lastLawFirmId, 'lawFirm')\n },\n {\n title: \"Last Broker\",\n dataIndex: \"lastBroker\",\n render: (value, record) => displayAsLinkToProfile(value, record.lastBrokerId, 'broker')\n },\n {\n title: \"Last Lender\",\n dataIndex: \"lastLender\",\n render: (value, record) => displayAsLinkToProfile(value, record.lastLenderId, 'lender')\n },\n {\n title: \"Last Principal\",\n dataIndex: \"lastPrincipal\",\n render: value => formatDecimalToCurrency(value)\n },\n {\n title: \"BDM\",\n dataIndex: \"bdm\"\n },\n {\n title: \"Funds Available\",\n dataIndex: \"fundsAvailable\",\n render: displayFundsAvailable\n },\n {\n title: \"Follow Up\",\n dataIndex: \"followUp\"\n },\n {\n title: \"Profile\",\n dataIndex: \"profileStatus\",\n render: displayBooleanYesNo\n },\n {\n title: \"Lead Score\",\n dataIndex: \"leadScore\"\n },\n {\n title: \"Master Switch\",\n dataIndex: \"masterSwitch\",\n render: displayBooleanYesNo\n }\n ];\n\n const columnsToShow = useMemo(() => {\n const updatedSelection = selectedColumns.map(x => {\n return x.charAt(0).toLowerCase() + x.slice(1);\n });\n const filteredMain = colTemplate\n .filter(col => updatedSelection.includes(col.dataIndex || \"\"))\n .map((x, index, original) => ({ ...x, width: 20 }));\n return filteredMain;\n }, [selectedColumns]);\n\n return (\n {\n handleTableChange(pagination, sorter);\n }}\n scroll={{\n y: 600,\n x: columnsToShow.length * 200,\n scrollToFirstRowOnChange: true\n }}\n />\n );\n}\n\nexport default AllUsersList;\n","import { Button, message } from \"antd\";\nimport React from \"react\";\nimport useCheckUserRoles from \"../../Common/Hooks/useCheckUserRoles\";\nimport { exportUsersSearchToXLS } from \"../../actions/users\";\nimport ExcelIcon from \"../../assets/icons/ExcelIcon\";\n\ntype ExportUserSearchToXlsProps = {\n id: number;\n visible?: boolean;\n};\n\nexport default function ExportUserSearchToXls({\n id,\n visible = false\n}: ExportUserSearchToXlsProps) {\n const { checkIfUserIsSystemAdmin } = useCheckUserRoles();\n\n async function exportXLS(id: number) {\n const isSystemUser = await checkIfUserIsSystemAdmin();\n try {\n const res = await exportUsersSearchToXLS(isSystemUser, id);\n if (res.status === 200) {\n message.success(\"Loaded search exported. Please check your e-mail\");\n }\n } catch (error) {\n console.error(error);\n message.error(`Cannot export at this time`);\n }\n }\n\n return (\n <>\n {visible && (\n exportXLS(id)}\n title=\"Export saved search to XLS\"\n >\n \n \n )}\n \n );\n}\n","import React from \"react\";\nimport image from \"../marketing.png\";\ntype MarketingEmailIconProps = {\n className?: string;\n width?: string;\n onClick?: () => void;\n};\n\nexport default function MarketingEmailIcon({\n className = \"\",\n width = \"20px\",\n onClick = () => {}\n}: MarketingEmailIconProps) {\n return (\n \n );\n}\n","import { Button } from \"antd\";\nimport React from \"react\";\nimport history from \"../../routes/history\";\nimport MarketingEmailIcon from \"../../assets/icons/MarketingEmailIcon\";\n\ntype MarketingEmailButtonProps = {\n id: number;\n visible?: boolean;\n};\n\nexport default function MarketingEmailButton({\n id,\n visible = false\n}: MarketingEmailButtonProps) {\n return (\n <>\n {visible && (\n {history.push(`/marketing-email?id=${id}`)}}\n title=\"Send marketing email to users\"\n >\n \n \n )}\n \n );\n}\n","import { useDispatch } from \"react-redux\";\nimport React, { useEffect, useMemo, useState } from \"react\";\nimport { Row, Col, Typography, Button, Icon, message } from \"antd\";\nimport { allUsersColumnsLookups } from \"../../actions/lookup\";\nimport { updateHeader } from \"../../actions/member\";\nimport useCheckUserRoles from \"../../Common/Hooks/useCheckUserRoles\";\nimport AllUsersColumnsSelection from \"../../components/Users/AllUsersColumnsSelection\";\nimport AllUsersFilters from \"../../components/Users/AllFilters/AllUsersFilters\";\nimport {\n IAllUsersFilters,\n IAllUsersListItem,\n IAllUsersReportColumnListItem,\n IAllUsersSaveSearchPayload,\n IAllUsersTableControl\n} from \"../../libs/types\";\nimport { ADMIN_USER } from \"../../constants/systemUsers\";\nimport { getAllUsersList } from \"../../actions/users\";\nimport Axios, { AxiosResponse } from \"axios\";\nimport _ from \"lodash\";\nimport { PaginationConfig } from \"antd/lib/pagination\";\nimport { SorterResult } from \"antd/lib/table\";\nimport AllUsersSaveSearch from \"../../components/Users/AllUsersSaveSearch\";\nimport AllUsersLoadSearch from \"../../components/Users/AllUsersLoadSearch\";\nimport AllUsersList from \"../../components/Users/AllUsersList\";\nimport ExportUserSearchToXls from \"../../components/Users/ExportUserSearchToXls\";\nimport MarketingEmailButton from \"../../components/Users/MarketingEmailButton\";\nimport useDebounceCallback from \"../../Common/Hooks/useDebounceCallback\";\n\nconst baseFilters: IAllUsersFilters = {\n followUpKey: null,\n leadScore: null,\n typeKey: null,\n masterSwitch: null,\n profileStatus: null,\n visibility: null,\n stateKeys: [],\n currentLoansCountKey: null,\n currentLoansValueKey: null,\n dischargedLoansCountKey: \"Ignore\",\n dischargedLoansValueKey: null,\n minFirstMortgageParcelSize: null,\n maxFirstMortgageParcelSize: null,\n minSecondMortgageParcelSize: null,\n maxSecondMortgageParcelSize: null,\n minConstructionParcelSize: null,\n maxConstructionParcelSize: null,\n minMezzanineParcelSize: null,\n maxMezzanineParcelSize: null,\n minLandBankParcelSize: null,\n maxLandBankParcelSize: null,\n minRuralParcelSize: null,\n maxRuralParcelSize: null,\n omicronBdmId: null,\n lawFirmId: null,\n partnerId: null\n};\n\nconst defaultLoadedSearch = {\n id: 0,\n canExport: false\n};\n\nconst UsersView = () => {\n const dispatchAction = useDispatch();\n const cancelToken = Axios.CancelToken.source();\n const [loading, setLoading] = useState(false);\n\n const [list, setList] = useState([]);\n const [total, setTotal] = useState({\n totalItems: 0,\n totalPrincipal: 0,\n totalLoanCount: 0\n });\n const [pagination, setPagination] = useState({\n page: 1,\n pageSize: 50, // Page size fixed to 50\n orderBy: \"\",\n sort: \"\"\n });\n\n const [isModalOpen, setIsModalOpen] = useState(false);\n const [isColumnsDrawerOpen, setIsColumnsDrawerOpen] = useState(false);\n const [filters, setFilters] = useState(baseFilters);\n const [columnsList, setColumnsList] = useState<\n IAllUsersReportColumnListItem[]\n >([]);\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 { isSystemAdmin, checkIfUserIsSystemAdmin } = useCheckUserRoles();\n\n function getParams() {\n const payload: IAllUsersSaveSearchPayload = {\n ...filters,\n ...pagination,\n sortDirection: null\n };\n return payload;\n }\n\n function forceCast(input: any) {\n return input;\n }\n\n const getAllUsers = useDebounceCallback(\n async (payload: IAllUsersSaveSearchPayload) => {\n const userType = (await checkIfUserIsSystemAdmin()) ? ADMIN_USER : \"\";\n\n const res = await getAllUsersList({\n cancelToken: cancelToken.token,\n userType,\n payload\n });\n if (res.data.rows) {\n const {\n total,\n totalLoanCount,\n totalPrincipal,\n rows\n } = res.data;\n setTotal({\n totalItems: total,\n totalLoanCount,\n totalPrincipal\n });\n setList(rows);\n\n setLoading(false);\n } else {\n const axiosError: {\n errors: { message: string }[];\n } = forceCast(res.data);\n if (axiosError.errors) {\n const errors: { message: string }[] = axiosError.errors;\n errors.forEach(error => {\n message.error(error.message);\n });\n } else {\n console.error(res.data);\n message.error(\"Could not retrieve results\");\n }\n }\n },\n 300\n );\n\n async function getTableColumns() {\n dispatchAction(allUsersColumnsLookups()).then(resp => {\n setColumnsList(resp);\n setSelectedColumns(resp.filter(x => x.isDefault).map(x => x.id));\n });\n }\n\n function handleColumnSelection(columns: string[]) {\n setSelectedColumns(columns);\n setloadedSearch(defaultLoadedSearch);\n }\n\n function clearAllFilters() {\n setFilters(baseFilters);\n setloadedSearch(defaultLoadedSearch);\n setPagination({\n page: 1,\n pageSize: 50,\n orderBy: \"\",\n sort: \"\"\n });\n }\n\n function resetColumnsToDefault() {\n handleColumnSelection(columnsList.filter(x => x.isDefault).map(x => x.id));\n }\n\n function clearAllColumnsAndFilters(){\n resetColumnsToDefault();\n clearAllFilters();\n }\n\n function handleFieldChange(field = \"\", value: any) {\n if (field) {\n setIsFiltersEdited(true);\n switch (field) {\n case \"lawFirmId\":\n setFilters(s => ({\n ...s,\n lawFirmId: value,\n partnerId: null\n }));\n break;\n default:\n if (field !== \"\") {\n setFilters(s => ({\n ...s,\n [field]: value\n }));\n }\n break;\n }\n setPagination(s => ({\n ...s,\n page: 1,\n }));\n }\n setloadedSearch(defaultLoadedSearch);\n }\n\n const handleLoadSavedSearch = (\n {\n id = 0,\n pagination,\n filters,\n selectedColumns\n }: {\n id: number;\n pagination?: IAllUsersTableControl;\n filters?: IAllUsersFilters;\n selectedColumns?: string[];\n },\n keepLastChange = false\n ) => {\n if (!keepLastChange) {\n if (pagination) {\n setPagination(s => ({\n ...s,\n page: pagination.page || 1,\n pageSize: pagination.pageSize || 50,\n orderBy: pagination.orderBy || \"\",\n sort: pagination.sort || \"\"\n }));\n }\n if (filters) {\n setFilters(filters);\n }\n if(selectedColumns){\n setSelectedColumns(selectedColumns)\n }\n }\n setloadedSearch({\n id,\n canExport: id !== 0\n });\n setIsFiltersEdited(id !== 0);\n };\n\n function handleTableChange(\n pagination: PaginationConfig,\n sorter: SorterResult\n ) {\n setPagination(s => ({\n ...s,\n page: pagination.current || 1,\n sort: sorter.field,\n orderBy: sorter.order\n }));\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 const saveSearchFilters: IAllUsersSaveSearchPayload = useMemo(() => {\n return {\n ...getParams(),\n pageSize: 50,\n sortDirection: null\n };\n }, [filters, pagination.page]);\n\n // Put useEffect hooks right before render\n\n useEffect(() => {\n dispatchAction(\n updateHeader({\n header: {\n title: \" \",\n action: \"\",\n page: \"users-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 setLoading(true);\n getAllUsers(saveSearchFilters);\n\n return () => {\n cancelToken.cancel();\n };\n }, [saveSearchFilters]);\n\n return (\n
\n
\n
\n \n \n \n \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.totalItems}\n \n \n \n All Users\n \n \n \n Total Principal\n {totalPrincipal}\n \n \n Total No. of Users\n {total.totalItems}\n \n
\n \n \n {\n setShouldLoadSavedList(false);\n }}\n nameOfLatestSave={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 setIsModalOpen(s => !s);\n }}\n onFiltersChange={handleFieldChange}\n onClearAll={clearAllFilters}\n filters={filters}\n isSystemAdmin={isSystemAdmin}\n />\n setIsColumnsDrawerOpen(s => !s)}\n columnsList={columnsList}\n selectedColumns={selectedColumns}\n onChange={handleColumnSelection}\n />\n
\n );\n};\n\nexport default UsersView;\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 LoansSnapshotView from \"../pages/Loans/LoansSnapshotView\";\nimport { LAW_FIRM_USER } from \"../constants/systemUsers\";\nimport EmailSubscriptionsPublic from \"../pages/EmailSubscriptions/EmailSubscriptionsPublic\";\nimport MarketingEmail from \"../pages/MarketingEmail/MarketingEmail\";\nimport UsersView from \"../pages/AllUsers/View\";\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: UsersView,\n path: \"/users/all\"\n },\n {\n id: id++,\n name: \"marketing-email\",\n index: \"users\",\n layout: TemplateNavbar,\n page: MarketingEmail,\n path: \"/marketing-email\",\n generalView: true\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":""}