{"version":3,"sources":["routes/api/ApiRoutes.ts","models/ApplicationStep.tsx","models/PaginatedModelList.ts","constants/stores.ts","models/Model.ts","stores/Store.ts","models/ModelItem.ts","routes/web/WebRoutes.ts","constants/constants.ts","models/entities/UserModel.ts","models/entities/ApplicationModel.ts","models/ModelList.ts","utils/secrets.ts","utils/helpers.ts","pages/insurance/assurant-flow/constants.ts","components/NotAuthorized/NotAuthorized.tsx","models/entities/UnitModel.ts","models/entities/BuildingModel.ts","enums/DocumentType.ts","models/entities/ApplicantModel.ts","models/entities/BankModel.ts","models/entities/ResidenceHistory.ts","shared/components/HeadingText/HeadingText.tsx","services/AuthService.ts","models/entities/CityModel.ts","models/entities/StateModel.ts","models/entities/GuestCardModel.ts","models/entities/DocumentModel.ts","models/entities/UnitImage.ts","models/entities/OrganizationModel.ts","models/entities/WaitingListApplicantModel.ts","utils/utils.ts","models/MatrixError.ts","services/ApiService.ts","guards/PublicRoute.tsx","guards/AdminProtectedRoute.tsx","guards/ManagerProtectedRoute.tsx","guards/RenterProtectedRoute.tsx","guards/AdminOrSupportProtectedRoute.tsx","guards/AdminOrManagerOrSupportProtectedRoute.tsx","guards/SupportProtectedRoute.tsx","guards/RenterOrSupportOrPHAOrInspectorProtectedRoute.tsx","guards/AdminOrPHAMemberProtectedRoute.tsx","assets/logo.png","models/entities/RentDeterninationChatModel.ts","models/entities/ApplicationInsuranceModel.ts","enums/UnitStatus.ts","pages/index.tsx","models/entities/QueuedDoc.ts","context/AuthContext.tsx","constants/ApplicationStepUrlMapping.ts","components/PageNotFound/PageNotFound.tsx","models/ModelContainer.ts","models/entities/PaymentModel.ts","models/entities/GuestCardChatModel.ts","models/entities/BuildingImage.ts","services/AnalyticsService.ts","enums/InviteType.ts","enums/ApplicationSource.enum.ts","pages/app/support/shared/Utils.ts","shared/components/MTButton/MTButton.tsx","assets/profiledummy.png","enums/TrackerEventType.enum.ts","components/Logo/Logo.tsx","shared/components/Loader/Loader.tsx","enums/ChatCategory.enum.ts","guards/AdminOrManagerProtectedRoute.tsx","services/StorageService.ts","enums/ApplicationInsuranceStatus.ts","stores/BuildingStore.ts","assets/onboardingpageImage.png","assets/loader-bg.png","assets/logo-white.svg","serviceWorker.ts","enums/MxConnectionStatus.ts","containers/index.tsx","components/Dashboard/renter/OnboardingPage/OnboardingPage.tsx","components/Auth/Logout/LogoutComponent.tsx","guards/ProtectedRoute.tsx","routes/web/ProtectedRoutes.tsx","routes/web/index.tsx","components/Scripts/Intercom.tsx","components/Scripts/Segment.tsx","components/SplashPage.tsx","stores/UserStore.ts","stores/AuthStore.ts","stores/CityStore.tsx","models/entities/ApplicationLogsModel.ts","stores/UnitStore.ts","stores/ApplicationStore.tsx","models/entities/OrganisationPropertyUrlModel.ts","stores/OrganizationStore.tsx","models/entities/InviteModel.ts","stores/InviteStore.ts","stores/StateStore.tsx","stores/StepStore.ts","stores/BankStore.tsx","stores/ResidenceHistoryStore.ts","models/entities/BankTransactionModel.ts","stores/DocumentStore.ts","stores/UnitImageStore.ts","stores/BuildingImageStore.ts","stores/PaymentStore.ts","stores/InsuranceStore.ts","models/entities/PayrollDetail.ts","models/entities/Payroll.ts","stores/PayrollStore.ts","stores/GuestCardStore.ts","stores/ApplicantStore.ts","models/entities/SystemLogsModel.ts","stores/ApplicationLogsStore.tsx","stores/GuestCardChatStore.tsx","models/entities/ReferralModel.ts","stores/ReferralStore.ts","stores/BankTransactionStore.ts","stores/PayrollDetails.ts","stores/ApplicationInsuranceStore.ts","stores/RentDeterminationChatStore.tsx","stores/systemLogsStore.ts","models/entities/IntegrationHealthStatusModel.ts","stores/IntegrationHeathStatusStore.ts","models/entities/PHAInviteAnalyticsModal.ts","models/entities/PHAProgrammesModel.ts","models/entities/PHAModel.ts","models/entities/WaitListInviteModel.ts","models/entities/PHAInvitationModel.ts","stores/PHAStore.ts","models/entities/WaitListInviteAnalyticsModel.ts","stores/WaitListInviteStore.ts","stores/WaitingListApplicantStore.ts","stores/index.tsx","App.tsx","index.tsx"],"names":["auth","me","login","register","changePassword","forgotPassword","resetPassword","uploadBankStatements","importAccountInformation","applicationByUnit","unitId","listDocuments","listMyDocuments","deleteDocument","deletePaystub","payrollId","completeApplication","id","banks","list","show","listPaymentSources","uploadPayStub","bankStatements","payrolls","chatToken","agentOrg","agentPHA","createPaymentSource","getPendingConnectApplicationsCount","updateMeta","moveInDate","admin","users","preSignedUrl","buildings","termsConditions","createQueuedProperty","organisationPropertyUrlId","transferProperty","building_id","buildingUnit","addImage","property_id","deleteImage","cities","states","applications","batchCreate","merge","generateReport","triggerMAIAReport","shareReport","processFee","processInternalInsuranceFee","generatePaymentIntent","generateSubscriptionPaymentIntent","getLeaseDocumentUrl","getSubscriptionStatus","getPreviousApplication","userId","externalInsuranceFeePayment","completeStep","submitComps","submitPHAComps","dataFinitiComps","getOrgConfigs","pha","voucherEnabled","deleteVoucher","getVoucher","updateStep","phaAgentFlow","status","rejectApplication","applicationSuggestions","suggestions","resubmit","dtcSuggestions","dtcSuggestionsStatus","guestCards","attach","create","queuedDocs","logs","getAllRequestedDocuments","paymentDetails","applicationId","rentBased","getMAIAScore","generateMAIAReport","getMAIAReport","acceptByUnitDataId","unitDataId","applyCoupon","deleteInspectionReport","rent_determination","chats","markAsRead","acceptProposal","chatId","updateApplicationUnit","applicationDocuments","complete","applicationDocumentId","signedUrlForExisting","signedUrlForNew","getRequestedDocuments","deleteRequestAndProcess","deleteRequest","applicationDocumentUploads","applicationDocumentUpload","applicationDocumentUploadId","confirmUpload","invites","resend","tenantMonitoring","waitlistInvite","analytics","invite_id","tenantId","fetchByUserId","remove","regenerate","updateEmployers","guestCardId","units","getImages","unit_id","fetchPropertyDataByAddress","contactLandlord","organizations","getBrandUrl","generateApiKey","organisationId","deleteApiKey","members","orgId","update","memberId","membersToShare","getPropertySignedUrl","appendPropertyUrl","getPendingPropertyFilesGroupedByOrg","getPropertyUrlsByOrgId","rejectOrganisationPropertyUrl","residenceHistories","mx","getInstitutions","getWidget","importMember","syncMember","teller","recordNewConnection","citadel","company","bridgeToken","companyMapping","payroll","zeroIncomePayroll","showById","importPayroll","deletePayroll","getPayrollsByStatus","getRejectedPayrolls","getGroupedApplications","getPendingPayrolls","manualUpload","moveDocument","documentId","deleteTextractPayroll","deletePayrollDetail","payrollDetailId","requestDocument","application","bank","getRejectedBankStatements","fetchBanks","deleteBankStatement","BankStatementId","bankAccounts","bankAccount","fetchTransactions","addTransaction","editTransaction","deleteTransaction","createDummyAccount","deleteDummyAccount","getRejectedBankStatementById","public","guestApplyUnit","phaInvite","inviteId","acceptInvite","optOut","atomic","accessToken","documentClassification","classifier","unAssignedApplication","assignToAgent","assignManagerOrAgent","unAssignedPhaAgentApplication","assignToPhaAgent","insurancedApplications","applicants","revertStep","skipCreditStep","dtc","regenrateConsumerReport","referrals","referralId","insurance","upload","details","request","uwQuestions","getQuote","getInsuranceDetail","playmentPlan","playmentDetails","getPolicy","getDiscloserMessage","type","coupons","validate","system","log","integrationHealth","check","integrationHealthStatusId","crs","authenticationIframeUrl","authenticationIframeUrlForRenter","user_id","checkShareStatus","checkIfReportExists","viewReportIframeUrl","checkRefreshStatus","phas","pha_id","bulkCreate","answerQuestionnaire","phaInvitedId","getTermsAndConditions","updateTermsAnditions","phaId","programmes","createAndList","updateAndRemove","programme_id","getProgramme","subProgrammes","getAllSubProgrammes","sub_programme_id","getSubProgramme","getById","w9Form","rentalTermsForm","waitlistApplicantDocument","waitlistApplicantId","renteDocumentsData","renterDocumentId","renterDocumentDataId","waitlistApplicantDocumentId","WaitlistApplicantDocumentId","user","profile","editProfile","extendedApp","tnc","additionalInformationExtended","applicant_id","ApplicationStep","getNextStep","currentStep","currentApplicant","organisation","unit","_map","LANDING","TERMS_AND_CONDITIONS","TERMS_AND_CONDITIONS_EXTENDED","CO_APPLICANTS_AND_GUARANTOR","GOVERNMENT_IDENTIFICATION","YOUR_INFORMATION","PHA_VOUCHER","PAYMENT_DETAILS","CREDIT_REPORTING_SERVICE","BANK_STATEMENTS","EMPLOYMENT_INFORMATION","TAX_DOCUMENTS","RESIDENCE_HISTORY","ADDITIONAL_INFROMATION","SUBMISSION","CONFIRM_DETAILS","INSURANCE_PLAN","LEASE_PENDING","DOCUSIGN_SENT","DOCUSIGN_COMPLETE_TENANT","DOCUSIGN_COMPLETE_LANDLORD","LEASE_COMPLETED","APPLICATION_COMPLETED","nextStep","role","InviteType","GUARANTOR","building","item","pha_voucher_enabled","payment_enabled","source","ApplicationSource","MATRIX_CONNECT_FROM_PHA_INVITE","credit_history_outside_usa","consumer_service","ConsumerService","EXPERIAN","tax_documents_required","is_extended_app","getPreviousStep","getIndexOfApplicationStep","step","Object","values","findIndex","value","PaginatedModelList","modelClass","search","debounce","searchQuery","a","searchKey","setIsLoading","loading","cancelRequest","url","params","page","dataKey","this","isLastPage","setIsLoadingNextPage","nextPage","config","dataTransformer","forceRefresh","response","_meta","meta","_links","links","data","items","models","map","fromJson","isLoadingNextPage","appendItems","setItems","setLoaded","setLoading","apiService","requestId","total","per_page","last_page","current_page","first","last","currentPage","lastPage","loaded","ModelList","observable","action","computed","APPLICANT_STORE","APPLICATION_STORE","APPLICATION_INSURANCE_STORE","APPLICATION_LOGS_STORE","AUTH_STORE","BANK_STORE","BUILDING_IMAGE_STORE","BUILDING_STORE","CITY_STORE","DOCUMENT_STORE","GUEST_CARD_STORE","GUEST_CARD_CHAT_STORE","INVITE_STORE","INSURANCE_STORE","INTEGRATION_HEALTH_STATUS","ORGANIZATION_STORE","PAYMENT_STORE","PHA_STORE","REFERRAL_STORE","RENT_DETERMINATION_CHAT_STORE","RESIDENCE_HISTORY_STORE","STATE_STORE","STEP_STORE","SYSTEM_LOGS_STORE","UNIT_STORE","UNIT_IMAGE_STORE","USER_STORE","PAYROLL_STORE","BANK_TRANSACTION_STORE","PAYROLL_DETAIL_STORE","WAITING_LIST_APPLICANT_STORE","WAITLIST_INVITE_STORE","Model","omittedKeys","deleted","selected","deleting","updating","setIsSelected","json","k","hasOwnProperty","indexOf","deserializer","getDeserializer","bind","deserialize","prop","store","_store","console","error","identifierKey","entity","getOrNew","updateFromJson","getStore","get","push","Store","ApiService","getInstance","entities","ObservableMap","set","delete","ModelItem","_item","model","setItem","setError","itemId","ModelContainer","invitationSignup","unitsPreview","guestApply","waitingListApply","OptOutPage","app","comingSoon","phasCalls","addPha","phaMembers","phaInvitations","phaProgrammes","organizationMembers","insuranedApplications","waitListApplications","createApplication","guestCard","support","pendingPayrolls","pendingProperties","rejectedBankStatements","bankEntry","settings","newApplications","uploader","configuration","onboarding","terms","termsExtended","yourInformation","phaVoucher","govtId","coapplicants","employmentInformation","taxReturns","residenceHistory","submission","waitingList","apply","landing","termsAndCondition","additionalDocuments","waitlist","invitesList","viewSuggestion","systemLogs","getInsurence","view","edit","phaUserInvitation","documents","confirmDetails","signLease","APPLICATION_STATUS","TAX_RETURN_DOCS","DocumentType","TAX_RETURN_W2","TAX_RETURN_W4","TAX_RETURN_1040","TAX_RETURN_1099","TAX_RETURN_OTHER","socialSecurityNumberRegex","nameRegex","nameWithNumbersRegex","USA_BOUNDS","west","south","east","north","ENVIRONMENT","ApplicationStatusType","SupportTabType","MappingForApplicationFilters","OTHER","HOUSE_TYPE_DROPDOWN","key","SUBSIDY_TYPE_DROPDOWN","PATRIOT_ORG","ATLAS_ORG","ENV_ATLAS_ORG_ID","HALO_ORG","ENV_HALO_ORG_ID","HPA_ORG","ENV_HPA_ORG_ID","MATRIX_ORG","ENV_MATRIX_ORG_ID","MCENEARNEY_ORG","ENV_MCENEARNEY_ORG_ID","MORGAN_ORG","ENV_MORGAN_ORG_ID","NOVA_PUBLIC_ID","ENV_INSPECTIFY_EXPERIENCE_URL","ENV_NOVA_PUBLIC_ID","NOVA_PRODUCT_ID","ENV_NOVA_PRODUCT_ID","UNIT_STATUS","ENV_BANK_PAYROLL_SKIP_ORG_ID","UnitStatus","AVAILABLE","toLowerCase","UNAVAILABLE","PROPERTY_VIEW_TYPE","HaloLogo","HaloLandingBgImage","HPALogo","MCENEARNEYLogo","MorganLogo","MATRIX_CONNECT_UNIT_IMAGE","AppLogo","MatrixLogo","PayCycleType","PROPERTY_TYPES","BUILDING","UNIT","LOCAL_STORAGE_CONSTANTS","CRS_FETCHED","PHASteps","MAX_FILE_SIZE_FOR_UPLOAD","MAX_FILE_SIZE_FOR_UPLOAD_IN_STRING","IMAGE_PLACEHOLDER","CreditStateEnum","NOVA_SCRIPT_URL","TELLER_SCRIPT_URL","HEADER_TITLE","CO_APPS_AND_GUARANTOR","onlyCoApps","CREDIT","BANK_STATEMENT","ADDITIONAL_DOCUMENTS","HEADER_DESCRIPTION","SystemPageTabs","creditScoreRangeArray","high","score","POOR","low","FAIR","GOOD","VERY_GOOD","EXCEPTIONAL","GENERIC_UNIT_IDS","ENV_MCENEARNEY_GENERIC_UNIT_ID","PHATabs","OrgnizationTabs","WaitlistTabs","SHORT_MESSAGE","SIGNUP_DOCUMENTS","MSA","EXPERIAN_PRIVACY_POLICY","UserRole","User","first_name","middle_name","last_name","filter","v","join","role_id","ADMIN","MANAGER","AGENT","isManager","isAgent","isAssociateAgent","RENTER","PHA_OWNER","PHA_ADMIN","PHA_MANAGER","PHA_AGENT","isPHAOwner","isPHAAdmin","isPHAManager","isPHAagent","isPHAMember","belongsToAnOrganisation","ASSOCIATE_AGENT","includes","SUPPORT","CASE_MANAGER","INSPECTOR","applicationByUnitItem","Application","b","agree_to_terms_and_conditions","loggedInUser","loggedInApplicant","information_confirmed","active_subscription","signed_document_url","length","find","applicantsLength","primaryApplicant","primaryApplicants","is_primary","fullname","UnitImage","Payment","Applicant","RentDeterminationChat","ApplicationInsurance","_items","clear","REACT_APP_BASE_URL","process","REACT_APP_SEGMENT_KEY","REACT_APP_ENV","ENV_MATRIX_CONNECT_UNIT_ID","ENV_TEAM_MATRIX_ORG_ID","ENV_MATRIX_TEAM_ORG_ID","REACT_APP_BANK_PAYROLL_SKIP_ORG_ID","ENV_ZENDESK_API_KEY","ENV_GREENWICH_CLOSE_ORG_ID","GOOGLE_MAPS_API_KEY","ENV_TELLER_APPLICATION_ID","ENV_EXTENDED_APP_ORG_ID","preventDefault","fn","e","titleCase","str","replace","s","toUpperCase","addIncludesToParams","include","_params","getFullAddress","address_line_1","address_line_2","city","state","zip_code","country","fullAddress","result","getBase64","file","Promise","resolve","reject","reader","FileReader","readAsDataURL","onload","onerror","removeObjectEmptyValues","obj","keys","reduce","validateInternalEmail","email","test","getArrayFilter","rawValue","split","canAccessStep","desiredStep","getRentalApplicationStepUrl","WebRoutes","getRenterStepFromStepUrlEndPoint","urlEndPoint","pop","checkForImageExtentions","some","extention","checkForImage","title","isOrgHalo","organisation_id","isMatrixOrg","isOrgHPA","isOrgMatrix","isOrgMcEnearney","isOrgMorgan","isOrgHaloType","isValidPhoneNo","PhoneNumberUtil","phoneNo","parsePhoneNumber","isProdEnvironment","PRODUCTION","getAllowedFiles","fileList","allowedExtensions","allowedFiles","isValidFormat","name","isFileSizePermissible","getRoleNameByRoleId","isMCEOrg","capitalize","getFormattedDate","date","moment","utc","local","format","getFormattedDateWithoutTime","getTimeStampOfDate","unix","getCleanString","newStr","trim","formatPhoneNumber","numberWithoutCountryCode","slice","_countryCode","_str","formatPhoneNumberUsingLib","phoneNumber","_phone","getUnitFullAddress","city_name","state_code","getCapitalizeString","maxSize","size","isFileHasContent","showFileSizeError","message","isFileEncrypted","originFileObj","readAsArrayBuffer","Blob","text","then","x","encrypted","substring","lastIndexOf","isValidFile","allowedFileExtensions","skipMessages","fileSizePermissible","fileHasContent","_ext","getUnitBedroomBathroom","bedBathCount","bedrooms","bathrooms","getPropertyBedroomBathroom","property","num_of_bedrooms","num_of_bathrooms","getUnitFirstImageUrl","unit_images","building_images","getUnitAllImageUrls","urls","forEach","unitImage","buildingImage","getDatafinitPropertyAllImageUrls","images","image","getMaskedSSN","val","getMaskedEIN","getPrimaryApplicant","applicant","getCreditScoreRemark","range","getStartDate","storedDate","isBefore","add","toString","concatenateStringsWithSeparator","separator","getPlainTextFromHTML","htmlString","DOMParser","parseFromString","body","innerText","INSURANCE_STEPS","QW_QUESTIONS","dwellingType","question","options","manufacturedMobileHome","defaultAnswer","mandatoryInsuranceRequirement","losses","numberOfLosses","lossDate","animalInjury","coverageMasonry","Arson","stepperSteps","QUESTION_KEY_MAPPING","QUESTION_KEY_MAPPING_REVERSE","setNextStep","QUESTIONS","QUOTE","PAYMENT_PLANS","CHECK_OUT","PREVIEW","PURCHASED","setPreviousStep","isStepValid","LIABILTY_DETAILS","heading","description","BELONGINGS_DETAILS","DEDUCTIBLE_DETAILS","coverageDefaultValues","DiscloserTypes","PANELS","isEditable","ADDITIONAL_PARTIES_PANELS","linkText","NotAuthorized","className","src","Logo","alt","Unit","last_app_accepted_at","accepted_app_id","_last_app_accepted_at","startOf","_30DaysBefore","clone","subtract","Building","BuildingType","BuildingImage","State","City","DocumentTypeUtils","getDocumentType","GOVT_ID","PAY_STUB","CREDIT_REPORT","EVICTION_REPORT","CRIMINAL_REPORT","UNIT_IMAGE","BUILDING_IMAGE","INSPECTION_REPORT","ADDITIONAL_DOCUMENT","DocumentModel","Bank","ResidenceHistory","GuestCard","HeadingText","color","props","cx","children","authService","setAuthToken","token","localStorage","removeItem","getItem","authToken","AuthService","GuestCardChat","document_type_id","updated_at","updatedAt","document","InsuranceType","Organization","terms_accepted_at","WaitingListStatus","WaitingListApplicant","Utils","getRandomString","times","random","getSanitizedFileName","newName","makeFirstLetterCapital","charAt","substr","removeUnderscore","objectToGetParams","object","entries","undefined","encodeURIComponent","String","getPinterestShareUrl","media","getFacebookShareUrl","quote","u","getTwitterShareUrl","imageUrl","via","getGoogleMapUrl","lat","long","ErrorCode","UploadErrorCode","MatrixError","code","UNIDENTIFIED","errors","errorsByKey","axiosError","UNPROCESSABLE_ENTITY","requestMap","Map","unreportedErrors","UNAUTHORIZED","NOT_FOUND","generateHeaders","additionalHeaders","useAuthHeaders","deviceType","headers","Authorization","rdd","method","useBaseUrl","onUploadProgress","cancelToken","addToRequestMap","Axios","baseURL","removeFromRequestMap","errorStatus","errorCode","window","location","href","URI","query","redirect_to","pathname","PHA_INVITE_ALREADY_ACCEPTED","notification","setTimeout","shouldReportToSentry","from","CancelToken","cancel","instance","PublicRoute","Component","component","rest","hasAuthToken","render","to","inject","observer","authStore","isAdmin","inverse","isRenter","isLoadingLoggedInUser","isAdminOrSupport","isAdminOrManagerOrSupport","loggedInUserOrg","isLoadingLoggedInUserOrg","support_tab_enabled","isSupport","isRenterOrSupportOrPHAOrInspector","module","exports","LazyLoadedLoginPage","React","lazy","LazyLoadedSignupPage","LazyLoadedForgotPasswordPage","LazyLoadedResetPasswordPage","LazyLoadedInvitationSignupPage","LazyLoadedOptOutPage","LazyLoadedApplicationsPage","LazyLoadedBuildingsPage","LazyLoadedOrganizationsDataPage","LazyLoadedPHADataPage","LazyLoadedPHADetailPage","LazyLoadedEditPHADetailPage","LazyLoadedPHACallDetailsPage","LazyLoadedViewOrganizationPage","LazyLoadedAddOrganizationPage","LazyLoadedSettingPage","LazyLoadedSuggestionsPage","LazyLoadedViewSuggestionsPage","LazyLoadedNewApplicationsPage","LazyLoadedOsmosUploaderPage","LazyLoadedUnitsPage","LazyLoadedguestCard","LazyLoadedReferralsPage","LazyLoadedSupportPage","LazyLoadedPropertyPreview","LazyLoadedGuestApply","LazyLoadedInsuredApplications","LazyLoadedConfigurationPage","LazyLoadedSystemLogsPage","LazyLoadedUploadPhaVoucherPage","LazyLoadedUploadGovtIdPage","LazyLoadedUploadCoApplicantsPage","LazyLoadedPaymentDetailsPage","LazyLoadedUploadCRSPageNew","LazyLoadedUploadBankStatementPage","LazyLoadedUploadPayStubPage","LazyLoadedUploadTaxReturnPage","LazyLoadedUploadResidenceHistoryPage","LazyLoadedTermAndConditionPage","LazyLoadedExtendedAppTermAndConditionPage","LazyLoadedExtendedAppAdditionalInformationPage","LazyLoadedSubmissionPage","LazyLoadedYourInformationPage","LazyLoadedConfirmDetailsPage","LazyLoadedInsurancePage","LazyLoadedSignLeasePage","LazyLoadedPendingPayrollsPage","LazyLoadedPendingBankStatementsPage","LazyLoadedPendingPropertiesPage","LazyLoadedProfilePage","LazyLoadedProfileEditPage","LazyLoadedGetInsurencePage","LazyLoadedTenantMonitoringPage","LazyLoadedWaitingListApplyPreview","LazyLoadedWaitingListPersonalInformationPage","LazyLoadedWaitingListGovtIdentificationPage","LazyLoadedWaitingListBankStatementPage","LazyLoadedWaitingListPaystubPage","LazyLoadedTermsAndConditionPage","LazyLoadedUploadAdditionalDocumentsPage","LazyLoadedWaitListApplicantsPage","LazyLoadedWaitlistApplicantInvitesListPage","LazyLoadedWaitlistDataPage","QueuedDocumentUploadStatus","AuthContext","createContext","onLogout","ApplicationStepUrlMapping","getNextApplicationStepUrl","ACCEPTED","ApiRoutes","getApplicationStepByPath","path","PageNotFound","isSameUrl","areSameParams","isEqual","isSameRequest","generateRequsetId","onSuccess","onError","analyticsService","identify","eventName","track","event_timestamp","AnalyticsService","getCurrentDate","epoch","getTimeStamp","getFilteredDetails","detail","newDetail","employee","employee_first_name","employee_last_name","employer","employer_name","address","employer_address_city","employer_address_state_code","postal_code","employer_address_postal_code","line_1","employer_address_line_1","line_2","employer_address_line_2","job","job_title","start_date","job_start_date","end_date","job_end_date","pay","net","net_pay","pay_date","tax","state_tax","medicare","medicare_tax","local_tax","social_security","social_security_tax","federal","federal_tax","gross","ytd_gross","benefit_insurance","transformPayrollsData","doc","MTButton","variant","uppercaseText","ignoreTooltip","tooltipText","uppercase","placement","TrackerEventType","memo","orgnaisationId","useState","logo","setLogo","isHaloOrg","useMemo","isHPAOrg","isMcEnearneyOrg","isMorganOrg","useEffect","Loader","Image","ChatCategory","isAdminOrManager","storageService","setFirstTimeVisited","StorageService","ApplicationInsuranceStatus","BuildingStoreIncludes","BuildingStore","load","buildingPaginatedList","appendIntoStore","promise","buildingItem","appendItem","buildingsDropdownList","formData","FormData","append","patch","MULTI_UNIT","unit_full_address","status_id","monthly_rent","security_deposit","cats_allowed","dogs_allowed","number_of_bedrooms","number_of_bathrooms","post","setUpdating","buildingId","addresses","buildingUnitsPaginatedList","tanentMonitoringBuildingsPaginatedList","Boolean","hostname","match","MxConnectionStatus","LazyLoadedAuthContainer","LazyLoadedAppContainer","LazyLoadedRenterContainer","LazyLoadedInsuranceContainer","LazyLoadedUserContainer","LazyLoadedWaitingListContainer","LazyLoadedPhaApplyContainer","OnboardingPage","welcome","width","height","viewBox","fill","xmlns","d","letsBeginHandler","history","setState","beginClicked","application_id","setCurrentApplicant","LETS_BEGIN_BUTTON_CLICKED","updateApplicationStep","stepStore","setCurrentStep","duration","unitStore","fetchUnitFromId","profiledummyImage","disabled","onClick","onboadingPageImage","LogoutComponent","context","useContext","ProtectedRoute","webRoutes","exact","useIntercom","shutdown","boot","userName","useCallback","userEmail","useHistory","prevPath","listen","splitBy","Helmet","applicantStore","applicationStore","applicationLogsStore","bankStore","buildingImageStore","buildingStore","cityStore","documentStore","guestCardStore","insuranceStore","inviteStore","organizationStore","paymentStore","residenceStore","stateStore","unitImageStore","userStore","phaStore","clearStore","ZENDESH_ENVS","DEMO","Provider","setRedirect","fallback","zendeskKey","UserStoreIncludes","AuthStore","fetchPayrolls","isLoadingLoggedInUserPHA","isCaseManager","getLoggedInUserOrg","getLoggedInUserPHA","password","referralCode","waitlistInviteId","apply_for_unit","referral_code","waitlist_invite_id","JSON","stringify","setLoggedInUser","setIsLoadingLoggedInUser","clearAuthToken","password_confirmation","ref","phaInviteId","pha_invite_id","is_first_login","setDeleting","social_security_number","put","docType","loadingSignedUrl","file_name","doc_type","content_type","newFileName","newFile","File","isImageUploading","getSignedUrl","document_key","updatedDocs","waitingListApplicant","doNotUpdateApplicationStep","byPassChecks","appId","bypass_checks","desired_step_to_complete","memberGuid","mx_member_id","connection_status","CONNECTED","connection_token","institution","enrollment_id","_bank","companyId","companyName","taskId","company_id","company_name","task_id","payload","employers","payrollsLoaded","payroll_id","_payroll","_doc","success","_","setIsLoadingLoggedInUserOrg","source_id","answered_questionnaire","crs_token_exists","crs_token_expired","loggedInUserPHA","setIsLoadingLoggedInUserPHA","CityStore","cityPaginatedList","cityId","cityItem","ApplicationLogType","UserStore","userLoading","userPaginatedList","setLoadingUser","UnitStore","unitList","unitItem","unit_image","preferredTourDates","formatedDates","_d","ApplicationStore","applicationItem","applicationPaginatedList","isAgentFilterApplied","updatedApplication","fee_processed","payment_intent_id","subscription_id","frequency","toggleFetchApplicationDocument","uploadCount","upload_count","fetchApplicationDocuments","fetchRentBasedMAIAReports","showGenerateMAIAScoreOption","docId","fileUploadId","desc","docName","request_description","upload_against","request_message","tc_url","isDTCSuggestedUnit","guest_card_id","unassignedApplicationPaginatedList","insurancedApplicationPaginatedList","pha_agent_id","agent_id","manager_id","res","suggestedUnitStatus","toggleFetchRentBasedMAIAReports","toggleShowGenerateMAIAScoreOption","report_url","matrix_score","mini_report_url","showAllCards","org_id","show_all","showingInsurancedApplication","ACTIVE","updateApplicationValue","inspection_report_url","toDate","loadNext","message_body","category","challenged_against","RENT_PROPOSAL","can_create_new_proposal","_chat","lte","unread_count","markChatInStoreAsRead","read","reload","coupon_code","application_id_x","application_id_y","primary_applicant_id","co_applicant_ids","delete_pending_invites","requestMessage","suggestedUnitList","OrganisationPropertyUrl","OrganizationStore","loadingMembers","selectedOrgIdForMemberFilter","organizationPaginatedList","organization","org","organizationItem","organizationId","organitionId","brandLogo","setLoadingMembers","organizationMembersPaginatedList","member","isOwner","newOrgs","_org","setSelectedOrgId","newItems","api_key","report_exists","shared","refreshing_report","propertyFileDetailsGroupedByOrg","propertyUrls","organisationPropertyUrls","organizationManagersPaginatedList","organizationAgentsPaginatedList","Invite","InviteStore","invitePaginatedList","renterEmail","inviteType","note","renter_name","renter_email","invite_type","invite","guestCardUrl","guest_card_url","can_resend_invite","last_attempt_at","Date","StateStore","statesPaginatedList","stateId","stateItem","StepStore","metaData","setImportingBankingInfo","_currentStep","importingBankingInfo","stepError","BankStore","searchedBank","institution_name","fetchingLimit","bankId","institutionCode","ResidenceHistoryStore","residenceHistoryItem","residenceHistoryPaginatedList","BankTransaction","DocumentStore","nameOfApplicantWhoseDocumentIsBeingProcessed","banksPaginatedList","requestedApplications","requested_against","bankTransactionsPaginatedList","isWaitlistApp","isComplete","submittedDoc","statement","bank_statement_id","rejectedBankStatementsPaginatedModelList","getBankStatementsByApplicationId","transactions","tnx","transactionId","documentType","desiredDocumentType","taxReturnType","move_reason","default_template","waitingListApplicantId","REQUESTED","bankStatement","rejection_reason","groupedApplications","index","UnitImageStore","existingUrls","newImages","BuildingImageStore","PaymentStore","InsuranceStore","answers","uwAnswers","next","previous","updatedStep","_completedStep","applicationInsurance","responseMessage","questions","messageText","loadedQuestions","transactionDetails","workItemId","setCompletedStep","payment_token","tokenizePayment","responses","cardDetails","hasInterestedParty","policyId","policy","discloserLoading","FRAUD","fraudDiscloser","ELECTRONIC_BUSSINESS_CONSENT","ebcDiscloser","PAY_AUTHORIZATION","payDiscloser","CANCELATION_NOTICE","cancellationNotice","coverageDetails","parameters","param","PayrollDetail","Payroll","distribution_deposits","PayrollStore","docStatus","payrollsPaginatedModelList","requestedDocuments","PROCESSED","GuestCardStore","guestCardList","uniqueGuestCards","guestCardItem","markChatsInStoreAsRead","ApplicantStore","applicantId","applicantPaginatedList","mxMonitoringTenantsPaginatedList","SystemLogType","ApplicationLogs","ApplicationLogsStore","loadingMore","force","applicationLogsPaginatedList","setLoadingMore","fetchData","logBody","GuestCardChatStore","Referral","ReferralStore","referralPaginatedList","referralBody","BankTransactionStore","PayrollDetailStore","ApplicationInsuranceStore","applicationInsuranceItem","RentDeterminationChatStore","SystemLogs","SystemLogsStore","systemLogsPaginatedList","IntegrationHealthStatus","IntegrationHealthStatusStore","IntegrationHealthStatusPaginatedList","PHAInviteAnalytics","PHAProgramme","WaitListInviteStatus","PHA","PHAInvitation","PHAStore","selectedPhaIdForMemberFilter","phaPaginatedList","appendToPaginatedList","phaItem","phaMembersPaginatedList","_pha","newPhas","setSelectedPhaId","phaInvitationsPaginatedList","invite_data","unshift","inviteData","phaInvitationItem","phaInviteAnalytics","programme_data","phaProgrammesPaginatedList","programme","subProgramme_data","phaSubProgrammesPaginatedList","subProgramme","phaAllSubProgrammesPaginatedList","newProgrammesList","_programme","sub_programme_data","newSubProgrammesList","_subProgramme","newProgrammes","newSubProgrammes","programme_code","sub_programme_code","signatorName","WaitListInvite","WaitListInviteAnalytics","WaitListInviteStore","inviteItem","waitListInviteAnalytics","reponse","WaitingListApplicantStore","waitingListApplicantsPaginatedList","tenant","waitlist_applicant_id","waitlistApplciantId","stores","createStores","createStoresInstance","App","autoBoot","ReactDOM","StrictMode","getElementById","navigator","serviceWorker","ready","registration","unregister","catch"],"mappings":"qGAEe,KACbA,KAAM,CACJC,GAAI,MACJC,MAAO,cACPC,SAAU,iBACVC,eAAgB,wBAChBC,eAAgB,wBAChBC,cAAe,wBAEjBL,GAAI,CACFM,qBAAsB,6BACtBC,yBAA0B,uBAC1BC,kBAAmB,SAACC,GAAD,0BAAiCA,EAAjC,iBACnBC,cAAe,gBACfC,gBAAiB,mBACjBC,eAAgB,sBAChBC,cAAe,SAACC,GAAD,4BAAsCA,IACrDC,oBAAqB,SAACC,GAAD,iCACCA,EADD,sBAErBC,MAAO,CACLC,KAAM,YACNC,KAAM,SAACH,GAAD,0BAA6BA,KAErCI,mBAAoB,6BACpBC,cAAe,sBACfC,eAAgB,SAACN,GAAD,oBAA+BA,EAA/B,qBAChBO,SAAU,SAACP,GAAD,oBAA+BA,EAA/B,cACVQ,UAAW,iBACXC,SAAU,oBACVC,SAAU,oBACVC,oBAAqB,4BACrBC,mCACE,4CACFC,WAAY,UACZC,WAAY,+BAEdC,MAAO,CACLC,MAAO,CACLd,KAAM,eACNC,KAAM,SAACH,GAAD,4BAA+BA,MAGzCiB,aAAc,4BACdC,UAAW,CACThB,KAAM,aACNC,KAAM,SAACH,GAAD,2BAA8BA,IACpCmB,gBAAiB,SAACnB,GAAD,2BACDA,EADC,0BAEjBoB,qBAAsB,SAACC,GAAD,kDACiBA,IACvCC,iBAAkB,SAACC,GAAD,6CACgBA,KAEpCC,aA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","file":"static/js/main.24872745.chunk.js","sourcesContent":["import RentalTermsForm from 'pages/app/application/RentalTermsForm';\n\nexport default {\n auth: {\n me: '/me',\n login: '/auth/login',\n register: '/auth/register',\n changePassword: '/auth/change-password',\n forgotPassword: '/auth/forgot-password',\n resetPassword: '/auth/reset-password',\n },\n me: {\n uploadBankStatements: '/me/upload/bank-statements',\n importAccountInformation: '/me/import-bank-data',\n applicationByUnit: (unitId: number) => `/me/units/${unitId}/application`,\n listDocuments: '/me/documents',\n listMyDocuments: '/me/my-documents',\n deleteDocument: '/me/delete-document',\n deletePaystub: (payrollId: number) => `/me/payroll/${payrollId}`,\n completeApplication: (id: number) =>\n `/me/applications/${id}/mark-as-complete`,\n banks: {\n list: '/me/banks',\n show: (id: number) => `/me/banks/${id}`,\n },\n listPaymentSources: '/me/stripe/payment-sources',\n uploadPayStub: '/me/upload/paystub/',\n bankStatements: (id: number): string => `/me/${id}/bank-statements`,\n payrolls: (id: number): string => `/me/${id}/payrolls`,\n chatToken: '/me/chat-token',\n agentOrg: '/me/get-agent-org',\n agentPHA: '/me/get-agent-pha',\n createPaymentSource: '/me/create-payment-source',\n getPendingConnectApplicationsCount:\n '/me/unresolved-connect-applications/count',\n updateMeta: 'me/meta',\n moveInDate: 'me/application/move-in-date',\n },\n admin: {\n users: {\n list: '/admin/users',\n show: (id: number) => `admin/users/${id}`,\n },\n },\n preSignedUrl: '/s3/pre-signed-upload-url',\n buildings: {\n list: '/buildings',\n show: (id: number) => `/buildings/${id}`,\n termsConditions: (id: number): string =>\n `/buildings/${id}/terms-and-conditions`,\n createQueuedProperty: (organisationPropertyUrlId: number): string =>\n `/buildings/create-queued-property/${organisationPropertyUrlId}`,\n transferProperty: (building_id: number): string =>\n `/buildings/transfer-property/${building_id}`,\n },\n buildingUnit: {\n addImage: (property_id: number) =>\n `/building-unit/image-upload/${property_id}`,\n deleteImage: (property_id: number) =>\n `/building-unit/image-delete/${property_id}`,\n },\n cities: {\n list: '/cities',\n show: (id: number) => `/cities/${id}`,\n },\n states: {\n list: '/states',\n show: (id: number) => `/states/${id}`,\n },\n applications: {\n batchCreate: '/applications/batch/create',\n list: '/applications',\n merge: '/applications/merge',\n show: (id: number) => `/applications/${id}`,\n generateReport: (id: number) => `/applications/${id}/generate-report`,\n triggerMAIAReport: (id: number) =>\n `/applications/${id}/trigger-maia-report`,\n shareReport: (id: number) => `/applications/${id}/share`,\n processFee: (id: number) => `/applications/${id}/process-fee`,\n processInternalInsuranceFee: (id: number) =>\n `/applications/${id}/process-internal-insurance-fee`,\n generatePaymentIntent: (id: number) =>\n `/applications/${id}/generate-payment-intent`,\n generateSubscriptionPaymentIntent: (id: number) =>\n `/applications/${id}/generate-subscription`,\n // generateInsurancePaymentIntent: (id: number) =>\n // `/applications/${id}/generate-insurance-payment-intent`,\n getLeaseDocumentUrl: (id: number) =>\n `/applications/${id}/lease-document-url`,\n getSubscriptionStatus: (id: number) =>\n `/applications/${id}/subscription-status`,\n getPreviousApplication: (userId: number) =>\n `/applications/${userId}/previous-application`,\n // makeApplicationFeePayment: (id: number) =>\n // `/applications/${id}/make-application-fee-payment`,\n // internalInsuranceFeePayment: (id: number) =>\n // `/applications/${id}/insurance/subscribe-internal`,\n externalInsuranceFeePayment: (id: number) =>\n `/applications/${id}/insurance/subscribe-external`,\n completeStep: (id: number) => `/applications/${id}/complete-step`,\n submitComps: (id: number): string =>\n `/applications/${id}/pha-voucher/submit-comps`,\n submitPHAComps: (id: number): string =>\n `/applications/${id}/pha-voucher/submit-pha-comps`,\n dataFinitiComps: (id: number): string => `/applications/${id}/comps`,\n getOrgConfigs: (id: number): string =>\n `/applications/${id}/get-org-configs`,\n pha: {\n voucherEnabled: (id: number): string =>\n `/applications/${id}/pha-voucher-status`,\n deleteVoucher: (id: number): string =>\n `/applications/${id}/pha-voucher/delete`,\n getVoucher: (id: number): string => `/applications/${id}/pha-voucher`,\n updateStep: (id: number): string =>\n `/applications/${id}/pha-voucher/update-step`,\n },\n phaAgentFlow: {\n status: (id: number): string =>\n `/applications/${id}/inspector-flow-status`,\n },\n rejectApplication: (id: number): string => `/applications/${id}/reject`,\n applicationSuggestions: {\n suggestions: (id: number): string => `/applications/${id}/unit-suggested`,\n resubmit: (id: number): string => `/applications/${id}/re-submit`,\n dtcSuggestions: (id: number) => `/applications/${id}/dtc-suggestions`,\n dtcSuggestionsStatus: (id: number) =>\n `applications/${id}/dtc-suggestions/status`,\n },\n guestCards: {\n attach: (id: number): string => `/applications/${id}/attach-guest-card`,\n create: (id: number): string => `/applications/${id}/create-guest-card`,\n },\n queuedDocs: (id: number): string => `/applications/${id}/queued-docs`,\n logs: {\n list: (id: number): string => `/applications/${id}/logs`,\n create: (id: number): string => `/applications/${id}/logs/create`,\n },\n getAllRequestedDocuments: `/applications/requested-doc`,\n paymentDetails: (applicationId: number) =>\n `/applications/${applicationId}/payment-details`,\n rentBased: {\n getMAIAScore: (applicationId: number): string =>\n `/applications/${applicationId}/get-maia-score`,\n generateMAIAReport: (applicationId: number): string =>\n `/applications/${applicationId}/generate-maia-report`,\n getMAIAReport: (applicationId: number): string =>\n `/applications/${applicationId}/get-maia-report`,\n acceptByUnitDataId: (applicationId: number, unitDataId: number): string =>\n `applications/${applicationId}/accept/unit-data/${unitDataId}`,\n },\n applyCoupon: (id: number): string => `/applications/${id}/apply-coupon`,\n deleteInspectionReport: (applicationId: number): string =>\n `/applications/${applicationId}/inspection-report/delete`,\n rent_determination: {\n chats: (applicationId: number) => ({\n list: `applications/${applicationId}/rent-determination/chats`,\n create: `applications/${applicationId}/rent-determination/chats`,\n markAsRead: `applications/${applicationId}/rent-determination/chats/mark-as-read`,\n acceptProposal: (chatId: number): string =>\n `applications/${applicationId}/rent-determination/chats/${chatId}/accept-proposal`,\n }),\n },\n updateApplicationUnit: (applicationId: number): string =>\n `applications/${applicationId}/update-unit`,\n },\n applicationDocuments: {\n list: (applicationId: number): string =>\n `/applications/${applicationId}/documents`,\n complete: (applicationId: number, applicationDocumentId: number): string =>\n `/applications/${applicationId}/documents/${applicationDocumentId}/complete`,\n signedUrlForExisting: (\n applicationId: number,\n applicationDocumentId: number,\n ): string =>\n `/applications/${applicationId}/documents/${applicationDocumentId}/get-signed-url`,\n signedUrlForNew: (applicationId: number): string =>\n `/applications/${applicationId}/documents/get-signed-url`,\n getRequestedDocuments: `/me/requested-documents`,\n deleteRequestAndProcess: (applicationId: number): string =>\n `/applications/${applicationId}/documents/process`,\n deleteRequest: (applicationId: number): string =>\n `/applications/${applicationId}/documents/delete`,\n },\n applicationDocumentUploads: {\n list: (applicationId: number, applicationDocumentId: number): string =>\n `/applications/${applicationId}/documents/${applicationDocumentId}`,\n applicationDocumentUpload: (\n applicationId: number,\n applicationDocumentId: number,\n applicationDocumentUploadId: number,\n ): string =>\n `/applications/${applicationId}/documents/${applicationDocumentId}/uploads/${applicationDocumentUploadId}`,\n confirmUpload: (\n applicationId: number,\n applicationDocumentId: number,\n applicationDocumentUploadId: number,\n ): string =>\n `/applications/${applicationId}/documents/${applicationDocumentId}/uploads/${applicationDocumentUploadId}/confirm-upload`,\n },\n invites: {\n list: '/invites',\n show: (id: number): string => `/invites/${id}`,\n resend: (id: number): string => `/invites/${id}/resend`,\n },\n tenantMonitoring: {\n waitlistInvite: {\n create: `tenant-monitoring/waitlist-invite`,\n show: (id: number): string => `tenant-monitoring/waitlist-invite/${id}`,\n list: 'tenant-monitoring/waitlist-invite/list',\n analytics: (invite_id: number) =>\n `tenant-monitoring/waitlist-invite/${invite_id}/analytics`,\n },\n completeStep: (tenantId: number): string =>\n `tenant-monitoring/${tenantId}/complete`,\n show: (tenantId: number): string => `tenant-monitoring/${tenantId}`,\n fetchByUserId: (userId: number): string =>\n `tenant-monitoring/users/${userId}`,\n list: 'tenant-monitoring',\n remove: (tenantId: number): string =>\n `tenant-monitoring/${tenantId}/remove`,\n regenerate: (tenantId: number): string =>\n `tenant-monitoring/${tenantId}/re-generate-report`,\n updateEmployers: (tenantId: number): string =>\n `tenant-monitoring/${tenantId}/update-employers`,\n },\n guestCards: {\n list: '/guestcard',\n show: (id: number) => `/guestcard/${id}`,\n chats: (guestCardId: number) => ({\n list: `/guestcard/${guestCardId}/chats`,\n create: `/guestcard/${guestCardId}/chats/send-message`,\n markAsRead: `/guestcard/${guestCardId}/chats/mark-as-read`,\n }),\n },\n units: {\n list: '/units',\n show: (id: number): string => `/units/${id}`,\n termsConditions: (id: number): string =>\n `/units/${id}/terms-and-conditions`,\n getImages: (unit_id: number) => `/units/${unit_id}/images`,\n fetchPropertyDataByAddress: `/units/fetch-df-data`,\n contactLandlord: (unit_id: number) => `/units/${unit_id}/contact-landlord`,\n },\n organizations: {\n list: `/organisations`,\n show: (id: number): string => `/organisations/${id}`,\n getBrandUrl: (id: number): string => `/organisations/${id}/brandLogo`,\n generateApiKey: (organisationId: number): string =>\n `/organisations/${organisationId}/api-key`,\n deleteApiKey: (organisationId: number): string =>\n `/organisations/${organisationId}/api-key`,\n members: {\n list: (orgId: number): string => `/organisations/${orgId}/members`,\n update: (orgId: number, memberId: number): string =>\n `/organisations/${orgId}/members/${memberId}`,\n membersToShare: (orgId: number): string =>\n `/organisations/${orgId}/members-to-share`,\n },\n getPropertySignedUrl: '/organisations/signed-property-url',\n appendPropertyUrl: '/organisations/property-url',\n getPendingPropertyFilesGroupedByOrg: '/support/pending-property-files',\n getPropertyUrlsByOrgId: (organisationId: number): string =>\n `/support/organisation-pending-properties/${organisationId}`,\n rejectOrganisationPropertyUrl: (\n organisationPropertyUrlId: number,\n ): string =>\n `/support/organisation-pending-properties/${organisationPropertyUrlId}/reject`,\n },\n residenceHistories: {\n list: '/residence-histories',\n show: (id: number): string => `/residence-histories/${id}`,\n },\n mx: {\n getInstitutions: '/mx/institutions',\n getWidget: '/mx/institutions/:institutionCode/connect',\n importMember: '/mx/members/import',\n syncMember: '/mx/members/sync',\n },\n teller: {\n recordNewConnection: 'teller/record-connection',\n },\n citadel: {\n company: '/citadel/companies',\n bridgeToken: (companyMapping: string): string =>\n `citadel/companies/${companyMapping}/get-bridge-token`,\n },\n payroll: {\n show: '/payrolls',\n zeroIncomePayroll: '/payrolls/zero-income',\n showById: (payrollId: number) => `/payrolls/${payrollId}`,\n importPayroll: '/atomic/import',\n deletePayroll: (payrollId: number): string => `/atomic/${payrollId}`,\n getPayrollsByStatus: 'support/payrolls',\n getRejectedPayrolls: 'support/payrolls',\n getGroupedApplications: 'support/application-payrolls',\n getPendingPayrolls: (applicationId: number) =>\n `support/application-payrolls/${applicationId}`,\n manualUpload: 'support/payrolls/manual_upload',\n moveDocument: (documentId: number) => `support/move-document/${documentId}`,\n deleteTextractPayroll: (payrollId: number) =>\n `support/payrolls/${payrollId}`,\n deletePayrollDetail: (payrollDetailId: number) =>\n `support/payroll-detail/${payrollDetailId}`,\n requestDocument: (application: number) =>\n `support/${application}/documents`,\n },\n bank: {\n getRejectedBankStatements: 'support/rejected-bank-statements',\n fetchBanks: 'support/banks',\n deleteBankStatement: (BankStatementId: number) =>\n `support/bank-statement/${BankStatementId}`,\n bankAccounts: 'support/bank-accounts',\n bankAccount: 'support/bank-account',\n fetchTransactions: (documentId: number) =>\n `support/${documentId}/bank-transactions`,\n addTransaction: 'support/bank-transactions',\n editTransaction: 'support/bank-transactions',\n deleteTransaction: 'support/bank-transactions',\n createDummyAccount: '/bank-account/no-account',\n deleteDummyAccount: '/bank-account',\n getGroupedApplications: 'support/application-bank-statements',\n getRejectedBankStatementById: (applicationId: number) =>\n `support/application-bank-statement/${applicationId}`,\n },\n public: {\n units: {\n show: (id: number): string => `public/invitations/${id}`,\n guestApplyUnit: (id: number): string => `/public/guest-apply-units/${id}`,\n },\n phaInvite: {\n show: (inviteId: string): string => `/public/pha-invite/${inviteId}`,\n acceptInvite: (inviteId: string) =>\n `/public/pha-invite/${inviteId}/accept`,\n },\n waitlistInvite: {\n show: (id: number) => `public/waitlist-invite/${id}`,\n },\n optOut: `public/opt-out`,\n },\n atomic: {\n accessToken: '/atomic/access-token',\n company: '/atomic/companies',\n },\n documentClassification: {\n classifier: '/document-classification',\n },\n unAssignedApplication: {\n list: '/applications/unassigned',\n assignToAgent: (applicationId: number): string =>\n `/applications/${applicationId}/assign-to-agent`,\n assignManagerOrAgent: (applicationId: number): string =>\n `/applications/${applicationId}/assign`,\n },\n unAssignedPhaAgentApplication: {\n assignToPhaAgent: (applicationId: number) =>\n `applications/${applicationId}/assignPhaAgent`,\n },\n\n insurancedApplications: {\n list: '/applications/insuranced',\n },\n applicants: {\n show: (id: number) => `/applicants/${id}`,\n revertStep: (id: number): string => `/applicants/${id}/revert-step`,\n skipCreditStep: (id: number): string =>\n `/applicants/${id}/skip-credit-step`,\n dtc: (id: number): string => `/applicants/${id}/dtc`,\n regenrateConsumerReport: (id: number): string =>\n `applicants/${id}/regenrate-consumer-report`,\n },\n referrals: {\n list: '/referrals',\n create: '/referrals/create',\n resend: (referralId: number) => `/referrals/${referralId}/resend-invite`,\n },\n insurance: {\n upload: (applicationId: number): string =>\n `/applications/${applicationId}/upload-insurance`,\n details: (applicationId: number): string =>\n `/applications/${applicationId}/insurance/details`,\n request: (applicationId: number): string =>\n `/applications/${applicationId}/request-insurance`,\n update: (applicationId: number): string =>\n `/applications/${applicationId}/insurance-status`,\n uwQuestions: (applicationId: number): string =>\n `/insurance/${applicationId}/uw-questions`,\n getQuote: (applicationId: number): string =>\n `/insurance/${applicationId}/quote`,\n getInsuranceDetail: (applicationId: number): string =>\n `/insurance/${applicationId}`,\n playmentPlan: (applicationId: number): string =>\n `/insurance/${applicationId}/payment-plan`,\n playmentDetails: (applicationId: number): string =>\n `/insurance/${applicationId}/payment-details`,\n getPolicy: (applicationId: number): string =>\n `/insurance/${applicationId}/policy`,\n getDiscloserMessage: (applicationId: number, type: string): string =>\n `/insurance/${applicationId}/${type}`,\n },\n coupons: {\n validate: `/coupons/validate`,\n },\n system: {\n log: {\n logs: '/systemLogs/logs',\n },\n integrationHealth: {\n list: '/health-check/list',\n check: (integrationHealthStatusId: number): string =>\n `/health-check/${integrationHealthStatusId}`,\n },\n },\n crs: {\n authenticationIframeUrl: (organisationId: number) =>\n `/crs/${organisationId}/iframe/url`,\n authenticationIframeUrlForRenter: (\n organisationId: number,\n user_id: number,\n ) => `/crs/${organisationId}/iframe/url/renter/${user_id}`,\n checkShareStatus: (organisationId: number, unitId: number) =>\n `/crs/${organisationId}/check-share-status/${unitId}`,\n checkIfReportExists: (\n organisationId: number,\n unitId: number,\n userId: number,\n ) => `/crs/${organisationId}/check-for-report/${unitId}/user/${userId}`,\n viewReportIframeUrl: (\n organisationId: number,\n unitId: number,\n userId: number,\n ) => `/crs/${organisationId}/report/${unitId}/user/${userId}/iframe/url`,\n checkRefreshStatus: '/crs/check-refresh-status',\n },\n phas: {\n list: '/phas',\n show: (id: number): string => `/phas/${id}`,\n invites: {\n list: '/phas/invites/list',\n create: (pha_id: number) => `/phas/${pha_id}/invite`,\n bulkCreate: (pha_id: number) => `/phas/${pha_id}/invites`,\n answerQuestionnaire: (phaInvitedId: string) =>\n `phas/invites/${phaInvitedId}/additional-information`,\n getTermsAndConditions: (organisationId: number) =>\n `phas/${organisationId}/terms-and-conditions`,\n updateTermsAnditions: (organisationId: number) =>\n `phas/${organisationId}/tnc-update`,\n },\n members: {\n list: (phaId: number): string => `/phas/${phaId}/members`,\n create: (phaId: number): string => `/phas/${phaId}/member`,\n update: (phaId: number, memberId: number): string =>\n `/phas/${phaId}/member/${memberId}`,\n },\n programmes: {\n createAndList: (pha_id) => `/phas/${pha_id}/programmes`,\n updateAndRemove: (pha_id: number, programme_id: number) =>\n `/phas/${pha_id}/programmes/${programme_id}`,\n getProgramme: (pha_id: number) => `/phas/${pha_id}/programme`,\n },\n subProgrammes: {\n getAllSubProgrammes: '/phas/all/sub-programmes',\n createAndList: (pha_id: number) => `/phas/${pha_id}/sub-programmes`,\n updateAndRemove: (pha_id: number, sub_programme_id: number) =>\n `/phas/${pha_id}/sub-programmes/${sub_programme_id}`,\n getSubProgramme: (pha_id: number) => `/phas/${pha_id}/sub-programme`,\n getById: (id: number) => `/phas/${id}/sub-program`,\n },\n analytics: (invite_id: number) => `phas/invites/${invite_id}/analytics`,\n w9Form: (applicationId: number): string => `phas/${applicationId}/w9-form`,\n rentalTermsForm: (applicationId: number): string =>\n `phas/${applicationId}/rental-form`,\n },\n\n waitlistApplicantDocument: {\n list: (waitlistApplicantId: number): string =>\n `/tenant-monitoring/${waitlistApplicantId}/documents`,\n requestDocument: (waitlistApplicantId: number): string =>\n `/tenant-monitoring/${waitlistApplicantId}/support-documents`,\n renteDocumentsData: (\n userId: number,\n renterDocumentId: number,\n renterDocumentDataId: number,\n ): string =>\n `/tenant-monitoring/${userId}/documents/${renterDocumentId}/uploads/${renterDocumentDataId}`,\n signedUrlForExisting: (\n waitlistApplicantId: number,\n waitlistApplicantDocumentId: number,\n ): string =>\n `/tenant-monitoring/${waitlistApplicantId}/documents/${waitlistApplicantDocumentId}/get-signed-url`,\n signedUrlForNew: (waitlistApplicantId: number): string =>\n `/tenant-monitoring/${waitlistApplicantId}/documents/get-signed-url`,\n confirmUpload: (\n waitlistApplicantId: number,\n renterDocumentDataId: number,\n renterDocumentId: number,\n ): string =>\n `/tenant-monitoring/${waitlistApplicantId}/documents/${renterDocumentDataId}/uploads/${renterDocumentId}/confirm-upload`,\n complete: (\n waitlistApplicantId: number,\n WaitlistApplicantDocumentId: number,\n ): string =>\n `/tenant-monitoring/${waitlistApplicantId}/documents/${WaitlistApplicantDocumentId}/complete`,\n deleteRequestAndProcess: (waitlistApplicantId: number): string =>\n `/tenant-monitoring/${waitlistApplicantId}/documents/process`,\n deleteRequest: (waitlistApplicantId: number): string =>\n `/tenant-monitoring/${waitlistApplicantId}/documents/delete`,\n },\n user: {\n profile: (user_id: number) => `/me/${user_id}`,\n editProfile: (user_id: number) => `admin/users/${user_id}`,\n },\n extendedApp: {\n tnc: (orgId: number) => `/extended-app/tnc/${orgId}`,\n additionalInformationExtended: (applicant_id: number) =>\n `/extended-app/${applicant_id}/additional-information`,\n },\n};\n","import { InviteType } from 'enums/InviteType';\nimport { Applicant } from './entities/ApplicantModel';\nimport { Application } from './entities/ApplicationModel';\nimport { Organization } from './entities/OrganizationModel';\nimport { User } from './entities/UserModel';\nimport { ConsumerService } from '../constants/constants';\nimport { Unit } from './entities/UnitModel';\nimport { ApplicationSource } from 'enums/ApplicationSource.enum';\n\nexport enum ApplicationStep {\n LANDING = 'landing',\n TERMS_AND_CONDITIONS = 'terms_and_conditions',\n TERMS_AND_CONDITIONS_EXTENDED = 'terms_and_conditions_extended',\n CO_APPLICANTS_AND_GUARANTOR = 'co_applicants_and_guarantor',\n GOVERNMENT_IDENTIFICATION = 'government_identification',\n YOUR_INFORMATION = 'your_information',\n PHA_VOUCHER = 'pha_voucher',\n PAYMENT_DETAILS = 'payment_details',\n CREDIT_REPORTING_SERVICE = 'credit_reporting_service',\n BANK_STATEMENTS = 'bank_statements',\n EMPLOYMENT_INFORMATION = 'employment_information',\n TAX_DOCUMENTS = 'tax_documents',\n RESIDENCE_HISTORY = 'residence_history',\n ADDITIONAL_INFROMATION = 'additional_information',\n SUBMISSION = 'submission',\n CONFIRM_DETAILS = 'confirm_details',\n INSURANCE_PLAN = 'insurance_plan',\n LEASE_PENDING = 'lease_pending',\n DOCUSIGN_SENT = 'docusign_sent',\n DOCUSIGN_COMPLETE_TENANT = 'docusign_complete_tenant',\n DOCUSIGN_COMPLETE_LANDLORD = 'docusign_complete_landlord',\n LEASE_COMPLETED = 'lease_completed',\n APPLICATION_COMPLETED = 'application_completed',\n}\n\nexport const getNextStep = (\n currentStep: ApplicationStep,\n application: Application,\n currentApplicant?: Applicant,\n organisation?: Organization,\n user?: User,\n unit?: Unit,\n): ApplicationStep => {\n const _map: { [currentStep: string]: ApplicationStep } = {\n [ApplicationStep.LANDING]: ApplicationStep.TERMS_AND_CONDITIONS,\n [ApplicationStep.TERMS_AND_CONDITIONS]:\n ApplicationStep.TERMS_AND_CONDITIONS_EXTENDED,\n [ApplicationStep.TERMS_AND_CONDITIONS_EXTENDED]:\n ApplicationStep.CO_APPLICANTS_AND_GUARANTOR,\n [ApplicationStep.CO_APPLICANTS_AND_GUARANTOR]:\n ApplicationStep.GOVERNMENT_IDENTIFICATION,\n [ApplicationStep.GOVERNMENT_IDENTIFICATION]:\n ApplicationStep.YOUR_INFORMATION,\n [ApplicationStep.YOUR_INFORMATION]: ApplicationStep.PHA_VOUCHER,\n [ApplicationStep.PHA_VOUCHER]: ApplicationStep.PAYMENT_DETAILS,\n [ApplicationStep.PAYMENT_DETAILS]: ApplicationStep.CREDIT_REPORTING_SERVICE,\n [ApplicationStep.CREDIT_REPORTING_SERVICE]: ApplicationStep.BANK_STATEMENTS,\n [ApplicationStep.BANK_STATEMENTS]: ApplicationStep.EMPLOYMENT_INFORMATION,\n [ApplicationStep.EMPLOYMENT_INFORMATION]: ApplicationStep.TAX_DOCUMENTS,\n [ApplicationStep.TAX_DOCUMENTS]: ApplicationStep.RESIDENCE_HISTORY,\n [ApplicationStep.RESIDENCE_HISTORY]: ApplicationStep.ADDITIONAL_INFROMATION,\n [ApplicationStep.ADDITIONAL_INFROMATION]: ApplicationStep.SUBMISSION,\n [ApplicationStep.SUBMISSION]: ApplicationStep.CONFIRM_DETAILS,\n [ApplicationStep.CONFIRM_DETAILS]: ApplicationStep.INSURANCE_PLAN,\n [ApplicationStep.INSURANCE_PLAN]: ApplicationStep.LEASE_PENDING,\n [ApplicationStep.LEASE_PENDING]: ApplicationStep.DOCUSIGN_SENT,\n [ApplicationStep.DOCUSIGN_SENT]: ApplicationStep.DOCUSIGN_COMPLETE_TENANT,\n [ApplicationStep.DOCUSIGN_COMPLETE_TENANT]:\n ApplicationStep.DOCUSIGN_COMPLETE_LANDLORD,\n [ApplicationStep.DOCUSIGN_COMPLETE_LANDLORD]:\n ApplicationStep.LEASE_COMPLETED,\n [ApplicationStep.LEASE_COMPLETED]: ApplicationStep.APPLICATION_COMPLETED,\n };\n\n let nextStep = _map[currentStep];\n\n if (\n nextStep === ApplicationStep.CO_APPLICANTS_AND_GUARANTOR &&\n currentApplicant.role === InviteType.GUARANTOR\n ) {\n nextStep = _map[nextStep];\n }\n\n if (\n !(\n unit.building?.item?.pha_voucher_enabled ||\n organisation?.pha_voucher_enabled\n ) &&\n nextStep === ApplicationStep.PHA_VOUCHER\n ) {\n nextStep = _map[nextStep];\n }\n\n if (\n (!organisation?.payment_enabled ||\n application.source ===\n ApplicationSource.MATRIX_CONNECT_FROM_PHA_INVITE) &&\n nextStep === ApplicationStep.PAYMENT_DETAILS\n ) {\n nextStep = _map[nextStep];\n }\n\n if (\n nextStep === ApplicationStep.CREDIT_REPORTING_SERVICE &&\n !(\n user?.credit_history_outside_usa ||\n organisation?.consumer_service === ConsumerService.EXPERIAN\n )\n ) {\n nextStep = _map[nextStep];\n }\n\n if (\n nextStep === ApplicationStep.TAX_DOCUMENTS &&\n !organisation.tax_documents_required\n ) {\n nextStep = _map[nextStep];\n }\n\n if (\n (nextStep === ApplicationStep.TERMS_AND_CONDITIONS_EXTENDED ||\n nextStep === ApplicationStep.ADDITIONAL_INFROMATION) &&\n !organisation?.is_extended_app\n ) {\n nextStep = _map[nextStep];\n }\n\n return nextStep;\n};\n\nexport const getPreviousStep = (\n currentStep: ApplicationStep,\n application: Application,\n currentApplicant?: Applicant,\n organisation?: Organization,\n user?: User,\n unit?: Unit,\n): ApplicationStep => {\n const _map: { [currentStep: string]: ApplicationStep } = {\n [ApplicationStep.TERMS_AND_CONDITIONS]: ApplicationStep.LANDING,\n [ApplicationStep.TERMS_AND_CONDITIONS_EXTENDED]:\n ApplicationStep.TERMS_AND_CONDITIONS,\n [ApplicationStep.CO_APPLICANTS_AND_GUARANTOR]:\n ApplicationStep.TERMS_AND_CONDITIONS_EXTENDED,\n [ApplicationStep.GOVERNMENT_IDENTIFICATION]:\n ApplicationStep.CO_APPLICANTS_AND_GUARANTOR,\n [ApplicationStep.YOUR_INFORMATION]:\n ApplicationStep.GOVERNMENT_IDENTIFICATION,\n [ApplicationStep.PHA_VOUCHER]: ApplicationStep.YOUR_INFORMATION,\n [ApplicationStep.PAYMENT_DETAILS]: ApplicationStep.PHA_VOUCHER,\n [ApplicationStep.CREDIT_REPORTING_SERVICE]: ApplicationStep.PAYMENT_DETAILS,\n [ApplicationStep.BANK_STATEMENTS]: ApplicationStep.CREDIT_REPORTING_SERVICE,\n [ApplicationStep.EMPLOYMENT_INFORMATION]: ApplicationStep.BANK_STATEMENTS,\n [ApplicationStep.TAX_DOCUMENTS]: ApplicationStep.EMPLOYMENT_INFORMATION,\n [ApplicationStep.RESIDENCE_HISTORY]: ApplicationStep.TAX_DOCUMENTS,\n [ApplicationStep.ADDITIONAL_INFROMATION]: ApplicationStep.RESIDENCE_HISTORY,\n [ApplicationStep.SUBMISSION]: ApplicationStep.ADDITIONAL_INFROMATION,\n [ApplicationStep.CONFIRM_DETAILS]: ApplicationStep.SUBMISSION,\n [ApplicationStep.INSURANCE_PLAN]: ApplicationStep.CONFIRM_DETAILS,\n [ApplicationStep.LEASE_PENDING]: ApplicationStep.INSURANCE_PLAN,\n [ApplicationStep.DOCUSIGN_SENT]: ApplicationStep.LEASE_PENDING,\n [ApplicationStep.DOCUSIGN_COMPLETE_TENANT]: ApplicationStep.DOCUSIGN_SENT,\n [ApplicationStep.DOCUSIGN_COMPLETE_LANDLORD]:\n ApplicationStep.DOCUSIGN_COMPLETE_TENANT,\n [ApplicationStep.LEASE_COMPLETED]:\n ApplicationStep.DOCUSIGN_COMPLETE_LANDLORD,\n [ApplicationStep.APPLICATION_COMPLETED]: ApplicationStep.LEASE_COMPLETED,\n };\n\n let nextStep = _map[currentStep];\n\n if (\n nextStep === ApplicationStep.CREDIT_REPORTING_SERVICE &&\n !(\n user?.credit_history_outside_usa ||\n organisation?.consumer_service === ConsumerService.EXPERIAN\n )\n ) {\n nextStep = _map[nextStep];\n }\n if (\n (!organisation?.payment_enabled ||\n application.source ===\n ApplicationSource.MATRIX_CONNECT_FROM_PHA_INVITE) &&\n nextStep === ApplicationStep.PAYMENT_DETAILS\n ) {\n nextStep = _map[nextStep];\n }\n\n if (\n !(\n unit?.building?.item?.pha_voucher_enabled ||\n organisation?.pha_voucher_enabled\n ) &&\n nextStep === ApplicationStep.PHA_VOUCHER\n ) {\n nextStep = _map[nextStep];\n }\n\n if (\n nextStep === ApplicationStep.CO_APPLICANTS_AND_GUARANTOR &&\n currentApplicant.role === InviteType.GUARANTOR\n ) {\n nextStep = _map[nextStep];\n }\n\n if (\n nextStep === ApplicationStep.TAX_DOCUMENTS &&\n !organisation.tax_documents_required\n ) {\n nextStep = _map[nextStep];\n }\n\n if (\n (nextStep === ApplicationStep.TERMS_AND_CONDITIONS_EXTENDED ||\n nextStep === ApplicationStep.ADDITIONAL_INFROMATION) &&\n !organisation?.is_extended_app\n ) {\n nextStep = _map[nextStep];\n }\n\n return nextStep;\n};\n\nexport const getIndexOfApplicationStep = (step: ApplicationStep): number => {\n return Object.values(ApplicationStep).findIndex((value) => value === step);\n};\n","import { action, computed, observable } from 'mobx';\nimport { debounce } from 'lodash';\n\nimport Model from './Model';\nimport { ModelList } from './ModelList';\n\nexport interface LinksProps {\n first?: string;\n last?: string;\n prev?: string;\n next?: string;\n}\n\nexport interface MetaProps {\n current_page: number;\n from: number;\n last_page: number;\n path: string;\n per_page: number;\n to: number;\n total: number;\n search?: string;\n}\n\nexport class PaginatedModelList extends ModelList<\n T,\n F\n> {\n @observable isLoadingNextPage: boolean;\n @action setIsLoadingNextPage = (loading) =>\n (this.isLoadingNextPage = loading);\n\n @observable private _links?: LinksProps;\n\n @observable private _meta?: MetaProps;\n\n constructor(protected modelClass: typeof Model) {\n super(modelClass);\n }\n\n @computed\n get totalPages() {\n return this._meta?.total || 1;\n }\n\n @computed\n get perPage() {\n return this._meta?.per_page || 10;\n }\n\n @computed\n get lastPage() {\n return this._meta?.last_page || 1;\n }\n\n @computed\n get currentPage() {\n return this._meta?.current_page || 1;\n }\n\n @computed\n get firstPageUrl() {\n return this._links?.first || '';\n }\n\n @computed\n get lastPageUrl() {\n return this._links?.last || '';\n }\n\n @computed\n get isFirstPage() {\n return this.currentPage === 1;\n }\n\n @computed\n get isLastPage() {\n return this.lastPage === this.currentPage;\n }\n\n @computed\n get isLoadedAll() {\n return this.lastPage && this.loaded;\n }\n\n @computed\n get nextPage() {\n return this.currentPage + 1;\n }\n\n @computed\n get prevPage() {\n return this.currentPage - 1;\n }\n\n async loadNext() {\n if (this.isLastPage) {\n return;\n }\n this.setIsLoadingNextPage(true);\n await super.load(\n this.url,\n { ...this.params, page: this.nextPage },\n { dataKey: null },\n );\n }\n\n async load(\n url: string,\n params?: { [key: string]: any; page?: number },\n config?: { dataKey?: string; forceRefresh?: boolean },\n dataTransformer?: (data: any) => {},\n ) {\n await super.load(\n url,\n params,\n {\n dataKey: config?.dataKey || null,\n forceRefresh: config?.forceRefresh,\n },\n dataTransformer,\n );\n }\n\n search = debounce(\n async (\n searchQuery,\n searchKey = 'search_query',\n setIsLoading?: (value) => void,\n ) => {\n this.loading && this.cancelRequest();\n !!setIsLoading && setIsLoading(true);\n await super.load(\n this.url,\n { ...this.params, page: 1, [searchKey]: searchQuery },\n { dataKey: null },\n );\n !!setIsLoading && setIsLoading(false);\n },\n 500,\n );\n\n @action\n protected onSuccess(response) {\n this._meta = response.meta;\n this._links = response.links;\n super.onSuccess(response.data);\n }\n\n @action\n deserialize(items: any[]) {\n if (!items) {\n this.setLoaded(true);\n return;\n }\n const models = items.map((item) => this.modelClass.fromJson(item) as T);\n if (this.isLoadingNextPage) {\n this.appendItems(models);\n this.setIsLoadingNextPage(false);\n } else {\n this.setItems(models);\n }\n this.setLoaded(true);\n }\n\n @action\n cancelRequest() {\n this.setLoading(false);\n this.setIsLoadingNextPage(false);\n this.apiService.cancelRequest(this.requestId);\n }\n}\n","export const APPLICANT_STORE = 'applicantStore';\nexport const APPLICATION_STORE = 'applicationStore';\nexport const APPLICATION_INSURANCE_STORE = 'applicationInsuranceStore';\nexport const APPLICATION_LOGS_STORE = 'applicationLogsStore';\nexport const AUTH_STORE = 'authStore';\nexport const BANK_STORE = 'bankStore';\nexport const BUILDING_IMAGE_STORE = 'buildingImageStore';\nexport const BUILDING_STORE = 'buildingStore';\nexport const CITY_STORE = 'cityStore';\nexport const DOCUMENT_STORE = 'documentStore';\nexport const GUEST_CARD_STORE = 'guestCardStore';\nexport const GUEST_CARD_CHAT_STORE = 'guestCardChatStore';\nexport const INVITE_STORE = 'inviteStore';\nexport const INSURANCE_STORE = 'insuranceStore';\nexport const INTEGRATION_HEALTH_STATUS = 'integrationHealthStatusStore';\nexport const LANDLORD_STORE = 'landlordStore';\nexport const ORGANIZATION_STORE = 'organizationStore';\nexport const PAYMENT_STORE = 'paymentStore';\nexport const PHA_STORE = 'phaStore';\nexport const REFERRAL_STORE = 'referralStore';\nexport const RENT_DETERMINATION_CHAT_STORE = 'rentDeterminationChatStore';\nexport const RESIDENCE_HISTORY_STORE = 'residenceStore';\nexport const STATE_STORE = 'stateStore';\nexport const STEP_STORE = 'stepStore';\nexport const SYSTEM_LOGS_STORE = 'systemLogsStore';\nexport const UNIT_STORE = 'unitStore';\nexport const UNIT_IMAGE_STORE = 'unitImageStore';\nexport const USER_STORE = 'userStore';\nexport const PAYROLL_STORE = 'payrollStore';\nexport const BANK_TRANSACTION_STORE = 'bankTransactionStore';\nexport const PAYROLL_DETAIL_STORE = 'payrollDetailStore';\nexport const WAITING_LIST_APPLICANT_STORE = 'waitingListApplicantStore';\nexport const WAITLIST_INVITE_STORE = 'waitListInviteStore';\n\n// Follow alphabetical order\n","import { action, observable } from 'mobx';\nimport Store, { EntityIdentifier } from 'stores/Store';\n\nexport interface ModelJson {\n id: number;\n\n [key: string]: any;\n}\n\nexport abstract class Model {\n protected omittedKeys: string[] = [];\n\n @observable deleting = false;\n\n @observable deleted = false;\n\n @observable updating = false;\n\n @observable updated = false;\n\n @observable selected = false;\n\n @observable created_at: string;\n\n @observable updated_at: string;\n\n @action delete() {\n this.deleted = true;\n }\n\n @action setIsSelected(selected) {\n this.selected = selected;\n }\n\n @action\n setDeleting(value) {\n this.deleting = value;\n }\n\n @action\n setUpdating(value) {\n this.updating = value;\n }\n\n toggleSelected() {\n this.setIsSelected(!this.selected);\n }\n\n constructor(readonly id: EntityIdentifier) {}\n\n static getStore(): Store {\n const store = (this as any)._store;\n if (!store) {\n console.error(`_store not defined in ${this}\n Please define _store and assign 'this' to it in parent store's constructor`);\n }\n return store;\n }\n\n static fromJson(json: ModelJson, identifierKey = 'id'): Model | null {\n if (!json) {\n return null;\n }\n const id = json[identifierKey] as EntityIdentifier;\n const entity = this.getOrNew(id);\n entity.updateFromJson(json);\n return entity;\n }\n\n static getOrNew(id: EntityIdentifier): Model {\n let entity = this.getStore().get(id);\n\n if (!entity) {\n entity = new (this as any)(id);\n this.getStore().push(entity!);\n }\n\n return entity!;\n }\n\n static get(id: EntityIdentifier) {\n return this.getStore().get(id);\n }\n\n @action\n updateFromJson(json: ModelJson) {\n for (const k in json) {\n if (!json.hasOwnProperty(k)) {\n continue;\n }\n if (this.omittedKeys && this.omittedKeys.indexOf(k) !== -1) {\n continue;\n }\n const deserializer = this.getDeserializer(k);\n if (deserializer) {\n json[k] && deserializer.bind(this)(json[k]);\n } else if (this[k] && this[k].deserialize) {\n this[k].deserialize(\n json[k]?.hasOwnProperty('data')\n ? json[k].data\n : json[k]?.items\n ? json[k].items\n : json[k],\n );\n } else {\n this[k] = json[k];\n }\n }\n }\n\n private getDeserializer(prop: string) {\n const _methodName = `deserialize_${prop}`;\n return this[_methodName];\n }\n}\n\nexport default Model;\n","import { action, observable, ObservableMap } from 'mobx';\nimport { ApiService } from '../services/ApiService';\nimport Model from '../models/Model';\n\nexport type EntityIdentifier = string | number;\n\nexport abstract class Store {\n protected apiService = ApiService.getInstance();\n\n entities = new ObservableMap();\n\n @observable searchFilterParam: { [key: string]: any } = {};\n\n get(id: EntityIdentifier): M {\n return this.entities.get(id);\n }\n\n @action\n push(entity: M) {\n this.entities.set(entity.id, entity);\n }\n\n @action\n remove(id: EntityIdentifier): void {\n this.entities.delete(id);\n }\n}\n\nexport default Store;\n","/* eslint-disable @typescript-eslint/ban-types */\nimport { action, computed, observable } from 'mobx';\nimport { ModelContainer } from './ModelContainer';\nimport { Model } from './Model';\nimport type { ModelJson } from './Model';\n\nexport class ModelItem extends ModelContainer {\n @observable private _item: T;\n\n @computed\n get item(): T {\n return this._item;\n }\n\n @action\n setItem(item: T): void {\n this._item = item;\n }\n\n @action\n deserialize(item: ModelJson): void {\n const model = this.modelClass.fromJson(item) as T;\n this.setItem(model);\n this.setLoaded(true);\n this.setError(null);\n }\n\n @action\n async load(\n url: string,\n params?: { [p: string]: any },\n config?: {\n dataKey?: string;\n forceRefresh?: boolean;\n itemId?: number | string;\n },\n ) {\n const forceRefresh = config && config.forceRefresh;\n const itemId = config && config.itemId;\n\n const item = this.modelClass.get(itemId) as T;\n\n if (item && !forceRefresh) {\n this.setItem(item);\n this.setLoaded(true);\n return;\n }\n return super.load(url, params, config);\n }\n}\n","export default {\n auth: {\n login: '/auth/login',\n register: '/auth/register',\n forgotPassword: '/auth/password-forgot',\n resetPassword: '/auth/password-reset/:token',\n invitationSignup: '/auth/invitations/signup',\n },\n public: {\n unitsPreview: '/rental-application/invitations/:inviteId',\n guestApply: '/units/:unitId/apply',\n waitingListApply: '/waiting-list/apply/:inviteId',\n OptOutPage: '/opt-out',\n },\n app: {\n comingSoon: '/app/coming-soon',\n organizations: '/app/organizations',\n phas: '/app/phas',\n phasCalls: '/app/pha/calls',\n addPha: '/app/pha/add',\n phaMembers: '/app/pha-members',\n phaInvitations: '/app/invitations',\n phaProgrammes: '/app/programmes',\n organizationMembers: '/app/organization-members',\n insuranedApplications: '/app/insuranced-applications',\n buildings: '/app/properties',\n applications: '/app/applications',\n waitListApplications: '/app/waitlist-application',\n createApplication: '/app/applications/create',\n application: (applicationId: number) =>\n `/app/applications/${applicationId}`,\n units: '/app/units',\n guestCard: '/app/guestCard',\n support: '/app/support',\n pendingPayrolls: '/app/support/pending-payrolls/:applicationId',\n pendingProperties: '/app/support/pending-properties/:organisationId',\n rejectedBankStatements:\n '/app/support/rejected_bank_statement/:applicationId',\n bankEntry: '/app/support/bank-entry',\n referrals: '/app/referrals',\n settings: '/app/settings',\n newApplications: '/app/new-applications',\n uploader: '/app/uploader',\n configuration: '/app/configuration',\n upload: {\n onboarding: '/overview/rental-application/units/:unitId',\n terms: '/rental-application/units/:unitId/terms-conditions',\n termsExtended:\n '/rental-application/units/:unitId/terms-conditions-extended',\n yourInformation: '/rental-application/units/:unitId/your-information',\n phaVoucher: '/rental-application/units/:unitId/pha-voucher',\n govtId: '/rental-application/units/:unitId/govtId',\n coapplicants:\n '/rental-application/units/:unitId/coapplications-guarantor',\n paymentDetails: '/rental-application/units/:unitId/payment-details',\n crs: '/rental-application/units/:unitId/credit-report',\n bankStatements: '/rental-application/units/:unitId/bank-statements',\n employmentInformation:\n '/rental-application/units/:unitId/employment-information',\n taxReturns: '/rental-application/units/:unitId/tax-returns',\n residenceHistory: '/rental-application/units/:unitId/residence-history',\n additionalInformationExtended:\n '/rental-application/units/:unitId/additional-information',\n submission: '/rental-application/units/:unitId/submission',\n },\n waitingList: {\n create: '/app/waiting-list/create',\n apply: {\n landing: '/waiting-list/apply/',\n termsAndCondition: '/waiting-list/apply/:inviteId/terms-and-condition',\n yourInformation: '/waiting-list/apply/:inviteId/your-information',\n govtId: '/waiting-list/apply/:inviteId/govt-id',\n bankStatements: '/waiting-list/apply/:inviteId/bank-statements',\n employmentInformation:\n '/waiting-list/apply/:inviteId/employment-information',\n additionalDocuments:\n '/waiting-list/apply/:inviteId/additional-documents',\n },\n waitlist: '/app/waitlist',\n list: '/app/waitlist-applications',\n show: (id: number): string => `/app/waitlist-applications/${id}`,\n invitesList: '/app/waitlist/invites',\n },\n suggestions: '/app/property-suggestions',\n viewSuggestion: '/app/property-suggestions/:applicationId/unit/:unitId',\n systemLogs: '/app/systemLogs',\n tenantMonitoring: '/app/waiting-list',\n getInsurence: '/app/insurence',\n },\n user: {\n profile: {\n view: '/user/:user_id',\n edit: '/user/:user_id/edit',\n },\n phaUserInvitation: '/users/invitations/:phaInviteId',\n },\n documents: {\n confirmDetails: '/documents/:appId/confirm-details',\n insurance: '/documents/:appId/insurance-subscription',\n signLease: '/documents/:appId/sign-lease',\n },\n};\n","import MatrixLogo from 'assets/logo.png';\nimport { DocumentType } from '../enums/DocumentType';\nimport { UnitStatus } from '../enums/UnitStatus';\nimport {\n ENV_ATLAS_ORG_ID,\n ENV_BANK_PAYROLL_SKIP_ORG_ID,\n ENV_HALO_ORG_ID,\n ENV_HPA_ORG_ID,\n ENV_INSPECTIFY_EXPERIENCE_URL,\n ENV_MATRIX_ORG_ID,\n ENV_MCENEARNEY_GENERIC_UNIT_ID,\n ENV_MCENEARNEY_ORG_ID,\n ENV_MORGAN_ORG_ID,\n ENV_NOVA_PRODUCT_ID,\n ENV_NOVA_PUBLIC_ID,\n} from '../utils/secrets';\n\nexport const TAX_RETURN_DOCS = [\n DocumentType.TAX_RETURN_W2,\n DocumentType.TAX_RETURN_W4,\n DocumentType.TAX_RETURN_1040,\n DocumentType.TAX_RETURN_1099,\n DocumentType.TAX_RETURN_OTHER,\n];\n\nexport const phoneRegex = /^((\\\\+[1-9]{1,4}[ \\\\-]*)|(\\\\([0-9]{2,3}\\\\)[ \\\\-]*)|([0-9]{2,4})[ \\\\-]*)*?[0-9]{3,4}?[ \\\\-]*[0-9]{3,4}?$/;\n\nexport const socialSecurityNumberRegex = /^(?!000|666)[0-8][0-9]{2}-(?!00)[0-9]{2}-(?!0000)[0-9]{4}$/;\n\nexport const nameRegex = /^[aA-zZ\\.\\s]+$/;\nexport const nameWithNumbersRegex = /^[a-zA-Z0-9.\\s]+$/;\n\nexport const USA_BOUNDS = {\n west: -171.791110603,\n south: 18.91619,\n east: -66.96466,\n north: 71.3577635769,\n};\n\nexport enum APPLICATION_STATUS {\n PENDING = 1,\n ACCEPTED = 2,\n REJECTED = 3,\n INCOMPLETE = 4,\n ANALYSING = 5,\n}\n\nexport const OTHER = 'Other';\n\nexport const HOUSE_TYPE_DROPDOWN = [\n { key: 'Single Family Detached', value: 'Single Family Detached' },\n {\n key: 'Semi Detached/Row House',\n value: 'Semi Detached/Row House',\n },\n { key: 'Manufactured Home', value: 'Manufactured Home' },\n { key: 'Garden/Walkup', value: 'Garden/Walkup' },\n { key: 'Elevator/High Rise', value: 'Elevator/High Rise' },\n];\n\nexport const SUBSIDY_TYPE_DROPDOWN = [\n { key: 'Section 202', value: 'Section 202' },\n { key: 'Section 221(d)(3)(BMIR)', value: 'Section 221(d)(3)(BMIR)' },\n {\n key: 'Section 236(Insured or NonInsured)',\n value: 'Section 236(Insured or NonInsured)',\n },\n {\n key: 'Section 515 (Rural development)',\n value: 'Section 515 (Rural development)',\n },\n { key: 'Home', value: 'Home' },\n { key: 'Tax Credit', value: 'Tax Credit' },\n { key: OTHER, value: OTHER },\n];\n\nexport const PATRIOT_ORG = 6;\nexport const ATLAS_ORG = +ENV_ATLAS_ORG_ID;\nexport const HALO_ORG = +ENV_HALO_ORG_ID;\nexport const HPA_ORG = +ENV_HPA_ORG_ID;\nexport const MATRIX_ORG = +ENV_MATRIX_ORG_ID;\nexport const MCENEARNEY_ORG = +ENV_MCENEARNEY_ORG_ID;\nexport const MORGAN_ORG = +ENV_MORGAN_ORG_ID;\nexport const INSPECTIFY_SCHEDULER_URL = ENV_INSPECTIFY_EXPERIENCE_URL;\nexport const NOVA_PUBLIC_ID = ENV_NOVA_PUBLIC_ID;\nexport const NOVA_PRODUCT_ID = ENV_NOVA_PRODUCT_ID;\nexport const BANK_PAYROLL_SKIP_ORG_ID = +ENV_BANK_PAYROLL_SKIP_ORG_ID;\n\nexport const UNIT_STATUS_AVAILABLE = 'Available';\n\nexport const UNIT_STATUS = [\n { key: UnitStatus.AVAILABLE.toLowerCase(), value: UnitStatus.AVAILABLE },\n { key: UnitStatus.UNAVAILABLE.toLowerCase(), value: UnitStatus.UNAVAILABLE },\n];\n\nexport const PROPERTY_VIEW_TYPE = [\n { key: 'all', value: 'All Listings' },\n { key: 'my', value: 'My Listings' },\n];\n\nexport const HaloLogo =\n 'https://matrix-doc-staging.s3.amazonaws.com/testing_content/halo-logo.png';\n\nexport const HaloLandingBgImage =\n 'https://assets.mymatrixrent.com/halo-landing.jpeg';\n\nexport const HPALogo =\n 'https://matrix-doc-staging.s3.amazonaws.com/testing_content/HPA_logo.png';\n\nexport const MCENEARNEYLogo =\n 'https://mymatrix-assets.s3.amazonaws.com/logo/mcenearney.png';\n\nexport const MorganLogo =\n 'https://mymatrix-assets.s3.amazonaws.com/logo/morgan.png';\n\nexport const MATRIX_CONNECT_UNIT_IMAGE =\n 'https://matrix-doc-demo.s3.us-east-1.amazonaws.com/units/images/4645/IMG_6917.jpg';\n\nexport const AppLogo = MatrixLogo;\n\nexport enum ENVIRONMENT {\n DEMO = 'demo',\n DEVELOP = 'develop',\n LOCAL = 'local',\n PRODUCTION = 'production',\n STAGING = 'staging',\n}\n\nexport enum ApplicationStatusType {\n INCOMPLETE = 'incomplete',\n PENDING = 'pending',\n READY = 'ready',\n MAIA_GENERATED = 'maia-generated',\n ACCEPTED = 'accepted',\n REJECTED = 'rejected',\n INSPECTING = 'inspecting',\n WAITING_OTHER = 'waiting_other',\n ANALYSING = 'analysing',\n LANDLORD_NOT_RESPONSIVE = 'landlord_not_responsive',\n}\n\nexport enum SupportTabType {\n PENDING_PAYROLLS = 'pending_income_documents',\n BANK_STATEMENT = 'rejected_bank_statement',\n PENDING_PROPERTY = 'pending_property',\n}\n\nexport enum MappingForApplicationFilters {\n incomplete = 'INCOMPLETE',\n ready = 'PENDING', // we do not want to show the Ready state to FE\n pending = 'PENDING',\n waiting_other = 'PENDING',\n accepted = 'ACCEPTED',\n rejected = 'REJECTED',\n analysing = 'ANALYSING',\n}\n\nexport const PROPERTY_TYPES = {\n BUILDING: 'building',\n UNIT: 'unit',\n};\n\nexport const LOCAL_STORAGE_CONSTANTS = {\n CRS_FETCHED: 'crs_fetched',\n};\n\nexport enum PayCycleType {\n MONTHLY = 'monthly',\n SEMI_MONTHLY = 'semimonthly',\n BI_WEEKLY = 'biweekly',\n WEEKLY = 'weekly',\n}\n\n// MAX_FILE_SIZE_FOR_UPLOAD => 10 * 1000 * 1000 bytes = 10MB\nexport const MAX_FILE_SIZE_FOR_UPLOAD = 10 * 1000 * 1000;\nexport const MAX_FILE_SIZE_FOR_UPLOAD_IN_STRING = '10MB';\n\nexport const IMAGE_PLACEHOLDER =\n 'https://mymatrix-assets.s3.amazonaws.com/matrix-logo-large.png';\n\nexport enum ConsumerService {\n MCL = 'mcl',\n CIC = 'cic',\n EXPERIAN = 'experian',\n}\n\nexport enum PHASteps {\n NOOP = 'noop',\n REQUEST_FOR_TENANCY_APPROVAL = 'request_for_tenancy_approval',\n COMPS_SELECTION = 'comps_selection',\n RENT_DETERMINATION = 'rent_determination',\n SCHEDULING_INSPECTION = 'scheduling_inspection',\n CONDUCTING_INSPECTION = 'conducting_inspection',\n CONTRACT_IN_REVIEW = 'contract_in_review',\n CONTRACT_EXECUTION = 'contract_execution',\n}\n\nexport const NOVA_SCRIPT_URL =\n 'https://static.novacredit.com/connect/v2/init.js';\n\nexport const TELLER_SCRIPT_URL = 'https://cdn.teller.io/connect/connect.js';\n\nexport const HEADER_TITLE = {\n CO_APPS_AND_GUARANTOR: (onlyCoApps: boolean) =>\n onlyCoApps ? 'Co-applicants' : 'Co-applicants & Guarantor',\n GOVERNMENT_IDENTIFICATION: 'Upload a Government ID',\n PAYMENT_DETAILS: 'Payment Details',\n YOUR_INFORMATION: 'Housing Voucher',\n CREDIT: 'Credit Report Services',\n BANK_STATEMENT: 'Connect your Bank Account',\n EMPLOYMENT_INFORMATION: 'Confirm Your Income & Employment',\n RESIDENCE_HISTORY: 'Residence History',\n SUBMISSION: 'Submission',\n ADDITIONAL_DOCUMENTS: 'Additional Documents',\n};\n\nexport const HEADER_DESCRIPTION = {\n CO_APPS_AND_GUARANTOR: (onlyCoApps: boolean) =>\n onlyCoApps\n ? 'Add Co-applicants, if any'\n : 'Add Co-applicants and Guarantor, if any',\n GOVERNMENT_IDENTIFICATION:\n 'Accepted forms of Government ID include: Drivers License, State ID, Passport.',\n YOUR_INFORMATION:\n 'This housing voucher is provided for the sole purpose of verifying eligibility for housing assistance when applicable and is independent of any credit or background check determinations.',\n CREDIT: 'Connect your Credit Report in order to see your Credit Score',\n BANK_STATEMENT:\n 'Use Bank Connections to connect to over 16,000 Banks, Credit Unions & Financial Institutions. No Login Information or Passwords are stored during this process',\n EMPLOYMENT_INFORMATION:\n 'Use Instant Payroll Connections to connect to your employer(s). No Login Information or Passwords are stored during this process. You can also upload your (3) most recent paystubs or you can also upload your offer letter.',\n RESIDENCE_HISTORY:\n 'Please tell us where you have lived for the last 2 years, starting with your current residence.',\n SUBMISSION: 'Submit the application',\n ADDITIONAL_DOCUMENTS: 'Do you have any other documents?',\n};\n\nexport enum CreditStateEnum {\n POOR = 'poor',\n FAIR = 'fair',\n GOOD = 'good',\n VERY_GOOD = 'very good',\n EXCEPTIONAL = 'exceptional',\n}\n\nexport const creditScoreRangeArray = [\n {\n high: 579,\n score: CreditStateEnum.POOR,\n },\n {\n high: 669,\n low: 580,\n score: CreditStateEnum.FAIR,\n },\n {\n high: 739,\n low: 670,\n score: CreditStateEnum.GOOD,\n },\n {\n high: 799,\n low: 740,\n score: CreditStateEnum.VERY_GOOD,\n },\n {\n low: 800,\n score: CreditStateEnum.EXCEPTIONAL,\n },\n];\n\nexport const GENERIC_UNIT_IDS = [+ENV_MCENEARNEY_GENERIC_UNIT_ID];\n\nexport enum SystemPageTabs {\n LOGS = 'logs',\n HEALTH_CHECK = 'health_check',\n}\n\nexport const SHORT_MESSAGE = `I would like to receive informational texts from Assurant regarding my policy at the cell phone number I provide below. Informational texts may include, but are not limited to: any information regarding my policy, notices, cancellation, non-renewal, claims, billing and general customer service. The frequency and type of informational texts will be determined by Assurant. I must inform Assurant if my cell phone number changes. I may choose to stop receiving informational texts anytime by replying STOP. Standard message and data rates apply.`;\n\nexport enum PHATabs {\n PHAS = 'PHAs',\n PHA_MEMBERS = 'PHA_Members',\n PHA_INVITATIONS = 'PHA_Invitations',\n PHA_PROGRAMS = 'PHA_Programs',\n PHA_SUB_PROGRAMS = 'PHA_Sub_Programs',\n}\n\nexport enum OrgnizationTabs {\n ORGANIZATIONS = 'Organizations',\n ORGANIZATIONS_MEMBERS = 'Organizations_members',\n}\n\nexport enum WaitlistTabs {\n WAITLIST_APPLICANTS = 'Waitlist_Applicants',\n WAITLIST_INVITES = 'Waitlist_Invites',\n}\n\nexport const SIGNUP_DOCUMENTS = {\n MSA: 'https://assets.mymatrixrent.com/documents/pha/landlord_tnc.pdf',\n EXPERIAN_PRIVACY_POLICY:\n 'https://assets.mymatrixrent.com/documents/experian/privacy_policy.pdf',\n};\n","import { observable } from 'mobx';\nimport Model from '../Model';\n\nimport { UserStore } from '../../stores/UserStore';\nimport { ModelItem } from '../ModelItem';\nimport { Application } from './ApplicationModel';\nimport { City } from './CityModel';\nimport { Payroll } from './Payroll';\nimport { State } from './StateModel';\nimport { CreditStatus } from '../../enums/CreditStatus.enum';\n\nexport enum UserRole {\n ADMIN = 1,\n MANAGER,\n AGENT,\n RENTER,\n INSPECTOR,\n SUPPORT,\n PHA_AGENT,\n ASSOCIATE_AGENT,\n SUPER_ADMIN,\n OWNER,\n PHA_OWNER,\n PHA_ADMIN,\n PHA_MANAGER,\n CASE_MANAGER,\n}\n\nexport class User extends Model {\n static _store: UserStore;\n\n @observable id: number;\n\n @observable role_id: number;\n\n @observable image_url: string;\n\n @observable first_name: string;\n\n @observable middle_name: string;\n\n @observable no_middle_name: string;\n\n @observable last_name: string;\n\n @observable role: string;\n\n @observable email: string;\n\n @observable date_of_birth: string;\n\n @observable address_line_1: string;\n\n @observable street_name: string;\n\n @observable house_number: string;\n\n @observable state_code: string;\n\n @observable address_line_2: string;\n\n @observable state: string;\n\n @observable city_name: string;\n\n @observable belonging_state: State;\n\n @observable belonging_city: City;\n\n @observable zip_code: string;\n\n @observable country_code: string;\n\n @observable latitude: number;\n\n @observable longitude: number;\n\n @observable phone_number: string;\n\n @observable social_security_number: string;\n\n @observable annual_income: string;\n\n @observable employer: string;\n\n @observable employer_address: string;\n\n @observable occupation: string;\n\n @observable supervisor: string;\n\n @observable supervisor_phone_number: string;\n\n @observable length_of_employment: string;\n\n @observable other_income: string;\n\n @observable stripe_publishable_key: string;\n\n @observable stripe_product_key_annual: string;\n\n @observable stripe_product_key_monthly: string;\n\n @observable stripe_customer_id: string;\n\n @observable is_complete: boolean;\n\n @observable applicationByUnitItem = new ModelItem(Application);\n\n @observable is_default_password: boolean;\n\n @observable created_at: string;\n\n @observable updated_at: string;\n\n @observable payrolls: Payroll[];\n\n @observable applicantOrganisations: number[];\n\n @observable referral_id: string;\n\n @observable editable: boolean;\n\n @observable credit_history_outside_usa: boolean;\n\n @observable disabled: boolean;\n\n @observable credit_status: CreditStatus;\n\n @observable total_annual_income: number;\n\n @observable crs_token_exists: boolean;\n\n @observable crs_token_expired: boolean;\n\n @observable allow_mx_monitoring: boolean;\n\n @observable crs_report_expired: boolean;\n\n @observable invited_by_pha: boolean;\n\n @observable pha_invite_id: string;\n\n @observable answered_questionnaire: boolean;\n\n @observable crs_token_age: number;\n\n get fullname(): string {\n const name = [this.first_name, this.middle_name, this.last_name];\n return name.filter((v) => !!v).join(' ');\n }\n\n get isAdmin(): boolean {\n return this.role_id === UserRole.ADMIN;\n }\n\n get isManager(): boolean {\n return this.role_id === UserRole.MANAGER;\n }\n\n get isAgent(): boolean {\n return this.role_id === UserRole.AGENT;\n }\n\n get belongsToAnOrganisation(): boolean {\n return this.isManager || this.isAgent || this.isAssociateAgent;\n }\n\n get isRenter(): boolean {\n return this.role_id === UserRole.RENTER;\n }\n\n get isPHAOwner(): boolean {\n return this.role_id === UserRole.PHA_OWNER;\n }\n\n get isPHAAdmin(): boolean {\n return this.role_id === UserRole.PHA_ADMIN;\n }\n\n get isPHAManager(): boolean {\n return this.role_id === UserRole.PHA_MANAGER;\n }\n\n get isPHAagent(): boolean {\n return this.role_id === UserRole.PHA_AGENT;\n }\n\n get isPHAMember(): boolean {\n return (\n this.isPHAOwner || this.isPHAAdmin || this.isPHAManager || this.isPHAagent\n );\n }\n\n get isLandLordOrPHAMember(): boolean {\n return this.isPHAMember || this.belongsToAnOrganisation;\n }\n\n get isLandLordOrPHAAgent(): boolean {\n return this.belongsToAnOrganisation || this.isPHAagent;\n }\n\n get isAssociateAgent(): boolean {\n return this.role_id === UserRole.ASSOCIATE_AGENT;\n }\n\n get isManagerOrAgent(): boolean {\n return [UserRole.MANAGER, UserRole.AGENT].includes(this.role_id);\n }\n\n get isManagerOrAgentOrSupport(): boolean {\n return [UserRole.MANAGER, UserRole.AGENT, UserRole.SUPPORT].includes(\n this.role_id,\n );\n }\n\n get isAdminOrManager(): boolean {\n return [UserRole.ADMIN, UserRole.MANAGER].includes(this.role_id);\n }\n\n get isAdminOrManagerorAgent(): boolean {\n return [UserRole.ADMIN, UserRole.MANAGER, UserRole.AGENT].includes(\n this.role_id,\n );\n }\n\n get isSupport(): boolean {\n return this.role_id === UserRole.SUPPORT;\n }\n\n get isCaseManager(): boolean {\n return this.role_id === UserRole.CASE_MANAGER;\n }\n\n get isAdminOrSupport(): boolean {\n return [UserRole.ADMIN, UserRole.SUPPORT].includes(this.role_id);\n }\n\n get isAdminOrManagerOrSupport(): boolean {\n return [UserRole.ADMIN, UserRole.MANAGER, UserRole.SUPPORT].includes(\n this.role_id,\n );\n }\n\n get isRenterOrSupportOrPHAOrInspector(): boolean {\n return [\n UserRole.RENTER,\n UserRole.SUPPORT,\n UserRole.PHA_AGENT,\n UserRole.PHA_MANAGER,\n UserRole.PHA_ADMIN,\n UserRole.PHA_OWNER,\n UserRole.INSPECTOR,\n ].includes(this.role_id);\n }\n\n get applicationByUnit(): Application {\n return this.applicationByUnitItem.item;\n }\n}\n","import { observable, action } from 'mobx';\nimport { ApplicationStatusType } from 'constants/constants';\nimport Model from '../Model';\nimport { ApplicationStore } from '../../stores/ApplicationStore';\nimport { ModelList } from '../ModelList';\nimport { ModelItem } from '../ModelItem';\nimport { User } from './UserModel';\nimport { UnitImage } from './UnitImage';\nimport { Payment } from './PaymentModel';\nimport { Applicant } from './ApplicantModel';\nimport * as ApplicationMeta from './ApplicationMeta';\nimport { ApplicationInsurance } from './ApplicationInsuranceModel';\nimport { PaginatedModelList } from '../PaginatedModelList';\nimport { RentDeterminationChat } from './RentDeterninationChatModel';\nimport * as ApplicationPhaModel from './ApplicationPhaModel';\nimport { ApplicationSource } from '../../enums/ApplicationSource.enum';\nimport { PHAProgramme } from './PHAProgrammesModel';\nimport type { PHAStepConfiguration } from 'interfaces/PHAStepConfiguration.interface';\n\nexport class Application extends Model {\n static _store: ApplicationStore;\n\n @observable id: number;\n\n @observable organisation_id: number;\n\n @observable unit_id: number;\n\n @observable pha_id: number;\n\n @observable pha_agent_id: number;\n\n @observable pha_programmes: PHAProgramme[];\n\n @observable programme_offered_for_months: number;\n\n @observable unit_name: string;\n\n @observable unit_full_address: string;\n\n @observable status: ApplicationStatusType;\n\n @observable true_status: ApplicationStatusType;\n\n @observable report_status: string;\n\n @observable agree_to_terms_and_conditions: boolean;\n\n @observable address_applied_for: string;\n\n @observable monthly_rent: number;\n\n @observable fee_processed: boolean;\n\n @observable application_fee: number;\n\n @observable move_in_date: string;\n\n @observable report_url: string;\n\n @observable mini_report_url: string;\n\n @observable test_report_url: string;\n\n @observable unit_images = new ModelList(UnitImage);\n\n @observable additional_information: any;\n\n @observable sentilink_scores: any;\n\n @observable recommendation: any;\n\n @observable matrix_score: number;\n\n @observable payments = new ModelList(Payment);\n\n @observable applicants = new ModelList(Applicant);\n\n @observable completed_at: string;\n\n @observable comp_report: string;\n\n @observable pha_comp_report: string;\n\n @observable reapplied: boolean;\n\n @observable agent_id: number;\n\n @observable invited_by: number;\n\n @observable meta: ApplicationMeta.ApplicationMeta;\n\n @observable active_subscription: boolean;\n\n @observable uploaded_insurance_url: string;\n\n @observable source: ApplicationSource;\n\n @observable unread_count: number;\n\n @observable can_create_new_proposal: boolean;\n\n @observable application_pha: ApplicationPhaModel.ApplicationPha;\n\n @observable pha_step_configuration: PHAStepConfiguration;\n\n @observable chats = new PaginatedModelList(\n RentDeterminationChat,\n );\n\n @observable insurance = new ModelItem(\n ApplicationInsurance,\n );\n\n @observable detailed_status: any;\n\n @observable agent_of_record = new ModelItem(User);\n\n @observable cloned_from: number;\n\n @action\n setAgreeToTerms(b: boolean) {\n this.agree_to_terms_and_conditions = b;\n }\n\n hasConfirmedInformation(loggedInUser: User) {\n const loggedInApplicant = this.loggedInApplicant(loggedInUser);\n return loggedInApplicant && loggedInApplicant.information_confirmed;\n }\n\n hasActiveSubscription() {\n return this.active_subscription;\n }\n\n hasSignedLease(loggedInUser: User) {\n const loggedInApplicant = this.loggedInApplicant(loggedInUser);\n return loggedInApplicant && !!loggedInApplicant.signed_document_url;\n }\n\n loggedInApplicant(loggedInUser: User) {\n const applicantsLength = this.applicants.items.length;\n if (!applicantsLength) {\n return null;\n }\n return this.applicants.items.find((a) => a.user_id === loggedInUser.id);\n }\n\n get applicantNames() {\n const applicantsLength = this.applicants.items.length;\n if (!applicantsLength) {\n return null;\n }\n let primaryApplicant = this.applicants.items[0];\n const primaryApplicants = this.applicants.items.filter((a) => a.is_primary);\n if (primaryApplicants.length > 0) {\n primaryApplicant = primaryApplicants[0];\n }\n if (applicantsLength === 1) {\n return primaryApplicant.fullname;\n }\n return `${primaryApplicant.fullname} and ${\n this.applicants.items.length - 1\n } other`;\n }\n}\n","import { action, computed, IObservableArray, observable } from 'mobx';\nimport { ModelContainer } from './ModelContainer';\nimport Model from './Model';\n\nexport class ModelList extends ModelContainer {\n @observable protected _items: IObservableArray;\n\n constructor(protected modelClass: typeof Model) {\n super(modelClass);\n this._items = observable([]);\n }\n\n @computed\n get hasError() {\n return !!this.error;\n }\n\n @computed\n get items() {\n return this._items.filter((item) => !!item && !item.deleted);\n }\n\n @action\n setItems(items: T[]) {\n this._items.clear();\n this.appendItems(items);\n }\n\n @action\n appendItems(items: T[]) {\n this._items.push(...items);\n }\n\n @action\n appendItem(item: T) {\n this._items.push(item);\n }\n\n @action\n removeItem(item: T) {\n this._items.remove(item);\n }\n\n @action\n deserialize(items: any[]) {\n if (!items) {\n this.loaded = true;\n return;\n }\n const models = items.map((item) => this.modelClass.fromJson(item) as T);\n this.setItems(models);\n this.loaded = true;\n }\n}\n","export const { REACT_APP_BASE_URL } = process.env;\nexport const { REACT_APP_BACKEND_URL } = process.env;\n\nexport const { REACT_APP_SEGMENT_KEY } = process.env;\n\nexport const { REACT_APP_ENV } = process.env;\n\n// ATLAS Org Id\nexport const ENV_ATLAS_ORG_ID = process.env.REACT_APP_ATLAS_ORG_ID;\n\n// HALO Org Id\nexport const ENV_HALO_ORG_ID = process.env.REACT_APP_HALO_ORG_ID;\n\n// HPA Org Id\nexport const ENV_HPA_ORG_ID = process.env.REACT_APP_HPA_ORG_ID;\n\n// Matrix Org Id\nexport const ENV_MATRIX_ORG_ID = process.env.REACT_APP_MATRIX_ORG_ID;\n// Matrix DTC Unit Id\nexport const ENV_MATRIX_CONNECT_UNIT_ID =\n process.env.REACT_APP_MATRIX_CONNECT_UNIT_ID;\n\n// Morgan Org Id\nexport const ENV_MORGAN_ORG_ID = process.env.REACT_APP_MORGAN_ORG_ID;\n\n// Team Matrix Org Id ( for Support and internal user)\nexport const ENV_TEAM_MATRIX_ORG_ID = process.env.REACT_APP_TEAM_MATRIX_ORG_ID;\n\n// McEnearney Org Id\nexport const ENV_MCENEARNEY_ORG_ID = process.env.REACT_APP_MCENEARNEY_ORG_ID;\n\nexport const ENV_MATRIX_GENERIC_ORG_ID =\n process.env.REACT_APP_MATRIX_GENERIC_ORG_ID;\n\nexport const ENV_MATRIX_TEAM_ORG_ID = process.env.REACT_APP_MATRIX_TEAM_ORG_ID;\n// McEnearney Generic Unit Id (for unavailable units)\nexport const ENV_MCENEARNEY_GENERIC_UNIT_ID =\n process.env.REACT_APP_MCENEARNEY_GENERIC_UNIT_ID;\n\nexport const ENV_INSPECTIFY_EXPERIENCE_URL =\n process.env.REACT_APP_INSPECTIFY_EXPERIENCE_URL;\n\nexport const ENV_NOVA_PUBLIC_ID = process.env.REACT_APP_NOVA_PUBLIC_ID;\n\nexport const ENV_NOVA_PRODUCT_ID = process.env.REACT_APP_NOVA_PRODUCT_ID;\n\nexport const ENV_BANK_PAYROLL_SKIP_ORG_ID =\n process.env.REACT_APP_BANK_PAYROLL_SKIP_ORG_ID;\n\nexport const ENV_ZENDESK_API_KEY = process.env.REACT_APP_ZENDESK_API_KEY;\n\nexport const ENV_GOOGLE_MAPS_API_KEY = process.env.GOOGLE_MAPS_API_KEY;\n\n// Greenwich close\nexport const ENV_GREENWICH_CLOSE_ORG_ID =\n process.env.REACT_APP_GREENWICH_CLOSE_ORG_ID;\nexport const ENV_GREENWICH_CLOSE_MONITORING_APP_UNIT_ID =\n process.env.REACT_APP_GREENWIC_CLOSE_MONITORING_APP_UNIT_ID;\n\nexport const ENV_TELLER_APPLICATION_ID =\n process.env.REACT_APP_TELLER_APPLICATION_ID;\n\nexport const ENV_EXTENDED_APP_ORG_ID =\n process.env.REACT_APP_EXTENDED_APP_ORG_ID;\n","import { message } from 'antd';\nimport { UploadFile } from 'antd/lib/upload/interface';\nimport {\n BANK_PAYROLL_SKIP_ORG_ID,\n creditScoreRangeArray,\n ENVIRONMENT,\n HALO_ORG,\n HPA_ORG,\n IMAGE_PLACEHOLDER,\n MATRIX_ORG,\n MAX_FILE_SIZE_FOR_UPLOAD,\n MAX_FILE_SIZE_FOR_UPLOAD_IN_STRING,\n MCENEARNEY_ORG,\n MORGAN_ORG,\n} from 'constants/constants';\nimport { PhoneNumberUtil } from 'google-libphonenumber';\nimport { parsePhoneNumber } from 'react-phone-number-input';\nimport { capitalize } from 'lodash';\nimport { ApplicationStep } from 'models/ApplicationStep';\nimport { Unit } from 'models/entities/UnitModel';\nimport { UserRole } from 'models/entities/UserModel';\nimport moment from 'moment';\nimport { RcFile } from 'rc-upload/lib/interface';\nimport WebRoutes from 'routes/web/WebRoutes';\nimport { Application } from 'models/entities/ApplicationModel';\nimport { Applicant } from 'models/entities/ApplicantModel';\nimport { REACT_APP_ENV } from './secrets';\nimport { DataFinitiPropertyDetail } from 'interfaces/DataFinitiPropertyDetail.interface';\n\nexport const preventDefault = (fn: Function) => {\n return (e: any) => {\n e?.preventDefault?.();\n fn?.(e);\n };\n};\n\nexport const stopPropagation = (fn: Function) => {\n return (e: any): void => {\n e?.stopPropagation?.();\n fn?.(e);\n };\n};\n\nexport const titleCase = (str: string): string => {\n return str.toLowerCase().replace(/\\b(\\w)/g, (s) => s.toUpperCase());\n};\n\nexport const addIncludesToParams = (\n params: { [key: string]: any },\n include: any[],\n): { [key: string]: any } => {\n let _params = params;\n if (include && include.length > 0) {\n _params = {\n ..._params,\n include: include.join(','),\n };\n }\n return _params;\n};\n\nexport const getFullAddress = (\n address_line_1: string,\n address_line_2: string,\n city: string,\n state: string,\n zip_code: string | number,\n country?: string,\n // phone_number?: string,\n): string => {\n const fullAddress = [];\n\n if (address_line_1) {\n fullAddress.push(address_line_1);\n }\n\n if (address_line_2) {\n fullAddress.push(address_line_2);\n }\n\n if (city) {\n fullAddress.push(city);\n }\n\n if (state) {\n fullAddress.push(state);\n }\n\n if (zip_code) {\n fullAddress.push(zip_code);\n }\n\n if (country) {\n fullAddress.push(country);\n }\n\n // if (phone_number) {\n // fullAddress.push(phone_number);\n // }\n\n const result = fullAddress.join(', ');\n if (result === 'null') {\n return '';\n }\n return result;\n};\n\nexport const getBase64 = (file: any): Promise => {\n return new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.readAsDataURL(file);\n reader.onload = () => resolve(reader.result);\n reader.onerror = (error) => reject(error);\n });\n};\n\nexport const removeObjectEmptyValues = (obj: {\n [key: string]: any;\n}): { [key: string]: any } => {\n return Object.keys(obj)\n .filter((k) => obj[k] != null && obj[k] !== '')\n .reduce((a, k) => ({ ...a, [k]: obj[k] }), {});\n};\n\nexport const validateEmail = (email: string): boolean => {\n const emailRE = /\\b[\\w\\.\\-\\_]+@[\\w\\.\\-]+\\.\\w{2,4}\\b/gy;\n return emailRE.test(email);\n};\n\nexport const validateInternalEmail = (email: string): boolean => {\n const emailRE = /\\b[\\w\\.\\+\\-\\_]+@[\\w\\.\\-]+\\.\\w{2,4}\\b/gy;\n return emailRE.test(email);\n};\n\nexport const getArrayFilter = (\n params: URLSearchParams,\n filter: string,\n): string[] => {\n const rawValue = params.get(filter) || '';\n\n if (!rawValue) {\n return [];\n }\n\n return rawValue.split(',') as any[];\n};\n\nexport const canAccessStep = (\n currentStep: ApplicationStep,\n desiredStep: ApplicationStep,\n): boolean => {\n const _map: { [currentStep: string]: ApplicationStep[] } = {\n [ApplicationStep.LANDING]: [],\n [ApplicationStep.TERMS_AND_CONDITIONS]: [ApplicationStep.LANDING],\n [ApplicationStep.TERMS_AND_CONDITIONS_EXTENDED]: [\n ApplicationStep.LANDING,\n ApplicationStep.TERMS_AND_CONDITIONS,\n ],\n [ApplicationStep.CO_APPLICANTS_AND_GUARANTOR]: [\n ApplicationStep.LANDING,\n ApplicationStep.TERMS_AND_CONDITIONS,\n ApplicationStep.TERMS_AND_CONDITIONS_EXTENDED,\n ],\n [ApplicationStep.GOVERNMENT_IDENTIFICATION]: [\n ApplicationStep.LANDING,\n ApplicationStep.TERMS_AND_CONDITIONS,\n ApplicationStep.TERMS_AND_CONDITIONS_EXTENDED,\n ApplicationStep.CO_APPLICANTS_AND_GUARANTOR,\n ],\n [ApplicationStep.YOUR_INFORMATION]: [\n ApplicationStep.LANDING,\n ApplicationStep.TERMS_AND_CONDITIONS,\n ApplicationStep.TERMS_AND_CONDITIONS_EXTENDED,\n ApplicationStep.CO_APPLICANTS_AND_GUARANTOR,\n ApplicationStep.GOVERNMENT_IDENTIFICATION,\n ],\n [ApplicationStep.PHA_VOUCHER]: [\n ApplicationStep.LANDING,\n ApplicationStep.TERMS_AND_CONDITIONS,\n ApplicationStep.TERMS_AND_CONDITIONS_EXTENDED,\n ApplicationStep.CO_APPLICANTS_AND_GUARANTOR,\n ApplicationStep.GOVERNMENT_IDENTIFICATION,\n ApplicationStep.YOUR_INFORMATION,\n ],\n [ApplicationStep.PAYMENT_DETAILS]: [\n ApplicationStep.LANDING,\n ApplicationStep.TERMS_AND_CONDITIONS,\n ApplicationStep.TERMS_AND_CONDITIONS_EXTENDED,\n ApplicationStep.CO_APPLICANTS_AND_GUARANTOR,\n ApplicationStep.GOVERNMENT_IDENTIFICATION,\n ApplicationStep.YOUR_INFORMATION,\n ApplicationStep.PHA_VOUCHER,\n ],\n [ApplicationStep.CREDIT_REPORTING_SERVICE]: [\n ApplicationStep.LANDING,\n ApplicationStep.TERMS_AND_CONDITIONS,\n ApplicationStep.TERMS_AND_CONDITIONS_EXTENDED,\n ApplicationStep.CO_APPLICANTS_AND_GUARANTOR,\n ApplicationStep.GOVERNMENT_IDENTIFICATION,\n ApplicationStep.YOUR_INFORMATION,\n ApplicationStep.PHA_VOUCHER,\n ApplicationStep.PAYMENT_DETAILS,\n ],\n [ApplicationStep.BANK_STATEMENTS]: [\n ApplicationStep.LANDING,\n ApplicationStep.TERMS_AND_CONDITIONS,\n ApplicationStep.TERMS_AND_CONDITIONS_EXTENDED,\n ApplicationStep.CO_APPLICANTS_AND_GUARANTOR,\n ApplicationStep.GOVERNMENT_IDENTIFICATION,\n ApplicationStep.YOUR_INFORMATION,\n ApplicationStep.PHA_VOUCHER,\n ApplicationStep.PAYMENT_DETAILS,\n ApplicationStep.CREDIT_REPORTING_SERVICE,\n ],\n [ApplicationStep.EMPLOYMENT_INFORMATION]: [\n ApplicationStep.LANDING,\n ApplicationStep.TERMS_AND_CONDITIONS,\n ApplicationStep.TERMS_AND_CONDITIONS_EXTENDED,\n ApplicationStep.CO_APPLICANTS_AND_GUARANTOR,\n ApplicationStep.GOVERNMENT_IDENTIFICATION,\n ApplicationStep.YOUR_INFORMATION,\n ApplicationStep.PHA_VOUCHER,\n ApplicationStep.PAYMENT_DETAILS,\n ApplicationStep.CREDIT_REPORTING_SERVICE,\n ApplicationStep.BANK_STATEMENTS,\n ],\n [ApplicationStep.TAX_DOCUMENTS]: [\n ApplicationStep.LANDING,\n ApplicationStep.TERMS_AND_CONDITIONS,\n ApplicationStep.TERMS_AND_CONDITIONS_EXTENDED,\n ApplicationStep.CO_APPLICANTS_AND_GUARANTOR,\n ApplicationStep.GOVERNMENT_IDENTIFICATION,\n ApplicationStep.YOUR_INFORMATION,\n ApplicationStep.PHA_VOUCHER,\n ApplicationStep.PAYMENT_DETAILS,\n ApplicationStep.CREDIT_REPORTING_SERVICE,\n ApplicationStep.BANK_STATEMENTS,\n ApplicationStep.EMPLOYMENT_INFORMATION,\n ],\n [ApplicationStep.RESIDENCE_HISTORY]: [\n ApplicationStep.LANDING,\n ApplicationStep.TERMS_AND_CONDITIONS,\n ApplicationStep.TERMS_AND_CONDITIONS_EXTENDED,\n ApplicationStep.PHA_VOUCHER,\n ApplicationStep.CO_APPLICANTS_AND_GUARANTOR,\n ApplicationStep.GOVERNMENT_IDENTIFICATION,\n ApplicationStep.YOUR_INFORMATION,\n ApplicationStep.PAYMENT_DETAILS,\n ApplicationStep.CREDIT_REPORTING_SERVICE,\n ApplicationStep.BANK_STATEMENTS,\n ApplicationStep.EMPLOYMENT_INFORMATION,\n ApplicationStep.TAX_DOCUMENTS,\n ],\n [ApplicationStep.ADDITIONAL_INFROMATION]: [\n ApplicationStep.LANDING,\n ApplicationStep.TERMS_AND_CONDITIONS,\n ApplicationStep.TERMS_AND_CONDITIONS_EXTENDED,\n ApplicationStep.PHA_VOUCHER,\n ApplicationStep.CO_APPLICANTS_AND_GUARANTOR,\n ApplicationStep.GOVERNMENT_IDENTIFICATION,\n ApplicationStep.YOUR_INFORMATION,\n ApplicationStep.PAYMENT_DETAILS,\n ApplicationStep.CREDIT_REPORTING_SERVICE,\n ApplicationStep.BANK_STATEMENTS,\n ApplicationStep.EMPLOYMENT_INFORMATION,\n ApplicationStep.TAX_DOCUMENTS,\n ApplicationStep.RESIDENCE_HISTORY,\n ],\n [ApplicationStep.SUBMISSION]: [\n ApplicationStep.LANDING,\n ApplicationStep.TERMS_AND_CONDITIONS,\n ApplicationStep.TERMS_AND_CONDITIONS_EXTENDED,\n ApplicationStep.PHA_VOUCHER,\n ApplicationStep.CO_APPLICANTS_AND_GUARANTOR,\n ApplicationStep.GOVERNMENT_IDENTIFICATION,\n ApplicationStep.YOUR_INFORMATION,\n ApplicationStep.PAYMENT_DETAILS,\n ApplicationStep.CREDIT_REPORTING_SERVICE,\n ApplicationStep.BANK_STATEMENTS,\n ApplicationStep.EMPLOYMENT_INFORMATION,\n ApplicationStep.TAX_DOCUMENTS,\n ApplicationStep.RESIDENCE_HISTORY,\n ApplicationStep.ADDITIONAL_INFROMATION,\n ],\n [ApplicationStep.CONFIRM_DETAILS]: [],\n };\n\n if (currentStep === desiredStep) {\n return true;\n }\n\n const allowedSteps = _map[currentStep];\n\n if (allowedSteps.includes(desiredStep)) {\n return true;\n }\n\n return false;\n};\n\nexport const getRentalApplicationStepUrl = (\n step: ApplicationStep | string,\n): string => {\n const _map: { [currentStep: string]: string } = {\n [ApplicationStep.LANDING]: WebRoutes.app.upload.onboarding,\n [ApplicationStep.TERMS_AND_CONDITIONS]: WebRoutes.app.upload.terms,\n [ApplicationStep.TERMS_AND_CONDITIONS_EXTENDED]:\n WebRoutes.app.upload.termsExtended,\n [ApplicationStep.GOVERNMENT_IDENTIFICATION]: WebRoutes.app.upload.govtId,\n [ApplicationStep.YOUR_INFORMATION]: WebRoutes.app.upload.yourInformation,\n [ApplicationStep.PHA_VOUCHER]: WebRoutes.app.upload.phaVoucher,\n [ApplicationStep.CO_APPLICANTS_AND_GUARANTOR]:\n WebRoutes.app.upload.coapplicants,\n [ApplicationStep.PAYMENT_DETAILS]: WebRoutes.app.upload.paymentDetails,\n [ApplicationStep.CREDIT_REPORTING_SERVICE]: WebRoutes.app.upload.crs,\n [ApplicationStep.BANK_STATEMENTS]: WebRoutes.app.upload.bankStatements,\n [ApplicationStep.EMPLOYMENT_INFORMATION]:\n WebRoutes.app.upload.employmentInformation,\n [ApplicationStep.TAX_DOCUMENTS]: WebRoutes.app.upload.taxReturns,\n [ApplicationStep.RESIDENCE_HISTORY]: WebRoutes.app.upload.residenceHistory,\n [ApplicationStep.ADDITIONAL_INFROMATION]:\n WebRoutes.app.upload.additionalInformationExtended,\n [ApplicationStep.SUBMISSION]: WebRoutes.app.upload.submission,\n };\n\n return _map[step];\n};\n\nexport const getRenterStepFromStepUrlEndPoint = (\n urlEndPoint: string,\n): ApplicationStep => {\n const _map = {\n [WebRoutes.app.upload.onboarding.split('/').pop()]: ApplicationStep.LANDING,\n [WebRoutes.app.upload.terms\n .split('/')\n .pop()]: ApplicationStep.TERMS_AND_CONDITIONS,\n [WebRoutes.app.upload.termsExtended\n .split('/')\n .pop()]: ApplicationStep.TERMS_AND_CONDITIONS_EXTENDED,\n [WebRoutes.app.upload.govtId\n .split('/')\n .pop()]: ApplicationStep.GOVERNMENT_IDENTIFICATION,\n [WebRoutes.app.upload.yourInformation\n .split('/')\n .pop()]: ApplicationStep.YOUR_INFORMATION,\n [WebRoutes.app.upload.phaVoucher\n .split('/')\n .pop()]: ApplicationStep.PHA_VOUCHER,\n [WebRoutes.app.upload.coapplicants\n .split('/')\n .pop()]: ApplicationStep.CO_APPLICANTS_AND_GUARANTOR,\n [WebRoutes.app.upload.paymentDetails\n .split('/')\n .pop()]: ApplicationStep.PAYMENT_DETAILS,\n [WebRoutes.app.upload.crs\n .split('/')\n .pop()]: ApplicationStep.CREDIT_REPORTING_SERVICE,\n [WebRoutes.app.upload.bankStatements\n .split('/')\n .pop()]: ApplicationStep.BANK_STATEMENTS,\n [WebRoutes.app.upload.employmentInformation\n .split('/')\n .pop()]: ApplicationStep.EMPLOYMENT_INFORMATION,\n [WebRoutes.app.upload.taxReturns\n .split('/')\n .pop()]: ApplicationStep.TAX_DOCUMENTS,\n [WebRoutes.app.upload.residenceHistory\n .split('/')\n .pop()]: ApplicationStep.RESIDENCE_HISTORY,\n [WebRoutes.app.upload.additionalInformationExtended\n .split('/')\n .pop()]: ApplicationStep.ADDITIONAL_INFROMATION,\n [WebRoutes.app.upload.submission\n .split('/')\n .pop()]: ApplicationStep.SUBMISSION,\n };\n\n return _map[urlEndPoint];\n};\n\nconst checkForImageExtentions = (data: string) => {\n if (!data) {\n return false;\n }\n\n const extentions: string[] = [\n '.jpg',\n '.jpeg',\n '.png',\n '.svg',\n '.jfif',\n '.pjpeg',\n '.pjp',\n '.webp',\n '.apng',\n '.avif',\n '.gif',\n ];\n return extentions.some((extention) => data.toLowerCase().includes(extention));\n};\n\nexport const checkForImage = (url: string, title?: string): boolean => {\n if (url && checkForImageExtentions(url)) {\n return true;\n }\n if (title && checkForImageExtentions(title)) {\n return true;\n }\n return false;\n};\n\nexport const getGoogleViewUrl = (url: string, title?: string): string => {\n return checkForImage(url, title)\n ? url\n : `https://drive.google.com/viewerng/viewer?embedded=true&url=${url}`;\n};\n\nexport const isOrgHalo = (unit?: Unit, organisationId?: number): boolean => {\n if (unit?.organisation_id === HALO_ORG || organisationId === HALO_ORG) {\n return true;\n }\n return false;\n};\n\nexport const isMatrixOrg = (unit: Unit): boolean => {\n return unit?.organisation_id === MATRIX_ORG;\n};\n\nexport const isOrgHPA = (unit?: Unit, organisationId?: number): boolean => {\n if (unit?.organisation_id === HPA_ORG || organisationId === HPA_ORG) {\n return true;\n }\n return false;\n};\n\nexport const isOrgMatrix = (unit?: Unit, organisationId?: number): boolean =>\n unit?.organisation_id === MATRIX_ORG || organisationId === MATRIX_ORG;\n\nexport const isOrgMcEnearney = (\n unit?: Unit,\n organisationId?: number,\n): boolean => {\n return (\n unit?.organisation_id === MCENEARNEY_ORG ||\n organisationId === MCENEARNEY_ORG\n );\n};\n\nexport const isOrgMorgan = (unit?: Unit, organisationId?: number): boolean => {\n return unit?.organisation_id === MORGAN_ORG || organisationId === MORGAN_ORG;\n};\n\nexport const isOrgHaloType = (\n unit?: Unit,\n organisationId?: number,\n): boolean => {\n const orgId = unit?.organisation_id || organisationId;\n if ([HPA_ORG, HALO_ORG].includes(orgId)) {\n return true;\n }\n return false;\n};\n\nconst phoneUtil = PhoneNumberUtil.getInstance();\n\nexport const isValidUsPhoneNo = (phoneNo: string): boolean => {\n if (!phoneNo || phoneNo?.length < 10) {\n return false;\n }\n\n try {\n return phoneUtil.isValidNumberForRegion(\n phoneUtil.parse(phoneNo, 'US'),\n 'US',\n );\n } catch (e) {\n console.error(e);\n return false;\n }\n};\n\n// This function expect number with region code\nexport const isValidPhoneNo = (phoneNo: string): boolean => {\n if (!phoneNo || phoneNo?.length < 12) {\n return false;\n }\n\n return !!parsePhoneNumber(phoneNo)?.country;\n};\n\nexport const getPhoneCodeAndNumber = (\n phoneNo: string,\n): { phone_number: string; code: string } => {\n const phone = parsePhoneNumber(phoneNo);\n\n return { phone_number: phone.nationalNumber, code: phone.countryCallingCode };\n};\n\nexport const isProdEnvironment = REACT_APP_ENV === ENVIRONMENT.PRODUCTION;\n\nexport const allowedFileTypes = [\n 'image/jpeg',\n 'image/png',\n 'image/jpg',\n 'application/pdf',\n];\n\nexport const getAllowedFiles = (\n fileList: UploadFile[],\n allowedExtensions = ['jpeg', 'jpg', 'png', 'pdf'],\n): UploadFile[] => {\n const allowedFiles: UploadFile[] = [];\n for (const file of fileList) {\n const isValidFormat =\n allowedExtensions.includes(file.name.split('.').pop()?.toLowerCase()) &&\n isFileSizePermissible(file);\n if (isValidFormat || file.url) {\n allowedFiles.push(file);\n }\n }\n\n return allowedFiles;\n};\n\nexport const getRoleNameByRoleId = (\n role_id: UserRole,\n isMCEOrg = false,\n): string => {\n if (isMCEOrg) {\n if (role_id === UserRole.MANAGER) return 'Admin';\n if (role_id === UserRole.AGENT) return 'Manager';\n if (role_id === UserRole.ASSOCIATE_AGENT) return 'Agent';\n }\n return capitalize(\n Object.keys(UserRole).find((key) => UserRole[key] === role_id),\n );\n};\n\nexport const getFormattedDate = (date: string): string =>\n moment.utc(date).local().format('MM/DD/YYYY hh:mm:ss A');\n\nexport const getFormattedDateWithoutTime = (date: string): string =>\n moment.utc(date).local().format('MM/DD/YYYY');\n\nexport const getTimeStampOfDate = (date: string): number =>\n moment(getFormattedDateWithoutTime(date)).unix();\n\n// removing extra spaces throughout\nexport const getCleanString = (str: string): string => {\n const newStr = str.trim();\n if (!newStr.includes(' ')) {\n return newStr;\n }\n return getCleanString(newStr.replace(' ', ' '));\n};\n\nexport const formatPhoneNumber = (str = '', countryCode = '+1'): string => {\n if (str === '' || !str) {\n return '---';\n }\n\n const numberWithoutCountryCode = str.slice(-10);\n const _countryCode = str.slice(0, -10);\n\n const _str = `${numberWithoutCountryCode.slice(\n 0,\n 3,\n )}-${numberWithoutCountryCode.slice(3, 6)}-${numberWithoutCountryCode.slice(\n 6,\n )}`;\n return `${_countryCode}-${_str}`;\n};\n\nexport const formatPhoneNumberUsingLib = (phoneNumber = ''): string => {\n if (phoneNumber === '' || !phoneNumber) return '---';\n\n try {\n const _phone = parsePhoneNumber(phoneNumber);\n return _phone.format('NATIONAL');\n } catch (e) {\n return '---';\n }\n};\n\nexport const getCleanInteger = (str: string): number => {\n let numberString = '0';\n if (!str) {\n return Number(numberString);\n }\n // remove all spaces and split characters\n const characterTokens = str?.trim().replace(' ', '').split('');\n characterTokens.forEach((char) => {\n if (!Number.isNaN(+char) || char === '.') {\n numberString += char;\n }\n });\n\n return Number(numberString);\n};\n\nexport const getUnitFullAddress = (unit, building): string => {\n const address = [\n unit.name,\n building.address_line_1,\n building.address_line_2,\n building.city_name,\n building.state_code,\n building.zip_code,\n ];\n return address.filter((a) => !!a).join(', ');\n};\n\nexport const getCapitalizeString = (str: string): string => {\n return str ? str[0].toUpperCase() + str.slice(1) : str;\n};\n\nexport const isFileSizePermissible = (\n file: RcFile | File | UploadFile,\n maxSize = MAX_FILE_SIZE_FOR_UPLOAD,\n): boolean => {\n if (!file) {\n return false;\n }\n return file?.size < maxSize;\n};\n\nexport const isFileHasContent = (file: RcFile | File | UploadFile): boolean => {\n if (!file) {\n return false;\n }\n return file?.size > 0;\n};\n\nexport const showFileSizeError = (\n maxSize = MAX_FILE_SIZE_FOR_UPLOAD_IN_STRING,\n): void => {\n message.error(`File size should not exceed ${maxSize}`);\n};\nconst isFileEncrypted = async (file: any): Promise => {\n return new Promise((resolve, reject) => {\n const reader = new FileReader();\n if (file.originFileObj) {\n reader.readAsArrayBuffer(file.originFileObj as RcFile);\n } else {\n reader.readAsArrayBuffer(file as RcFile);\n }\n reader.onload = () => {\n const files = new Blob([reader.result], { type: 'application/pdf' });\n files.text().then((x) => {\n const encrypted =\n x.includes('Encrypt') &&\n x\n .substring(x.lastIndexOf('<<'), x.lastIndexOf('>>'))\n .includes('/Encrypt');\n resolve(encrypted);\n });\n };\n });\n};\n\nexport const isValidFile = async (\n file: any,\n allowedFileExtensions: string[],\n skipMessages = false,\n): Promise => {\n if (!file.type) {\n return true;\n }\n const isValidFormat = allowedFileExtensions.includes(\n file?.type?.split('/')[1],\n );\n const fileSizePermissible = isFileSizePermissible(file);\n if (!fileSizePermissible && !skipMessages) {\n showFileSizeError();\n }\n const encrypted = await isFileEncrypted(file);\n const fileHasContent = isFileHasContent(file);\n\n if (!fileHasContent && !skipMessages && !file?.originFileObj) {\n message.error(\n `Invalid file ${file.name}. Please try uploading another file.`,\n );\n }\n\n if (!isValidFormat && !skipMessages) {\n message.error(\n `Supported file formats are ${allowedFileExtensions\n .map((_ext) => `.${_ext}`)\n .join(', ')}`,\n );\n }\n if (encrypted && !file?.originFileObj) {\n message.error('Cannot upload a password protected file');\n }\n return isValidFormat && fileSizePermissible && !encrypted && fileHasContent;\n};\n\nexport const getUnitBedroomBathroom = (unit: Unit): string => {\n let bedBathCount = '- / -';\n if (unit?.bedrooms === 0) {\n bedBathCount = 'Studio';\n } else if (unit?.bedrooms > 0) {\n bedBathCount = `${unit.bedrooms} bd`;\n }\n\n if (unit?.bathrooms) {\n bedBathCount = `${bedBathCount} / ${unit.bathrooms} ba`;\n }\n\n return bedBathCount;\n};\n\nexport const getPropertyBedroomBathroom = (\n property: DataFinitiPropertyDetail,\n) => {\n let bedBathCount = '- / -';\n if (\n property?.num_of_bedrooms !== null &&\n property?.num_of_bathrooms !== null\n ) {\n bedBathCount = `${property.num_of_bedrooms} bd / ${property.num_of_bathrooms} ba`;\n } else if (\n property?.num_of_bathrooms === null &&\n property?.num_of_bedrooms !== null\n ) {\n bedBathCount = `${property.num_of_bedrooms} bd / - `;\n } else if (\n property?.num_of_bedrooms === null &&\n property?.num_of_bathrooms !== null\n ) {\n bedBathCount = ` - / ${property.num_of_bathrooms} ba`;\n }\n\n return bedBathCount;\n};\n\nexport const getUnitFirstImageUrl = (unit: Unit): string => {\n if (unit?.unit_images?.items?.length > 0) {\n return unit?.unit_images?.items[0]?.url;\n }\n if (unit?.building?.item?.building_images?.items?.length > 0) {\n return unit?.building?.item?.building_images?.items[0]?.url;\n }\n\n return IMAGE_PLACEHOLDER;\n};\n\nexport const getUnitAllImageUrls = (unit: Unit): string[] => {\n const urls: string[] = [];\n unit?.unit_images?.items?.forEach((unitImage) => urls.push(unitImage?.url));\n unit?.building?.item?.building_images?.items?.forEach((buildingImage) =>\n urls.push(buildingImage?.url),\n );\n\n if (urls.length === 0) {\n urls.push(IMAGE_PLACEHOLDER);\n }\n\n return urls;\n};\n\nexport const getDatafinitPropertyAllImageUrls = (\n property: DataFinitiPropertyDetail,\n) => {\n const urls = [];\n if (property.images) {\n property.images.forEach((image) => urls.push(image.url));\n }\n\n if (urls.length === 0) {\n urls.push(IMAGE_PLACEHOLDER);\n }\n return urls;\n};\n\nexport const getMaskedPhoneNumber = (val: string): string =>\n val.replace(/\\D+/g, '').replace(/^(\\d{3})(\\d{3})(\\d{4}).*/, '$1-$2-$3');\n\nexport const getMaskedSSN = (val: string): string =>\n val.replace(/\\D+/g, '').replace(/^(\\d{3})(\\d{2})(\\d{4}).*/, '$1-$2-$3');\n\nexport const getMaskedEIN = (val: string): string =>\n val.replace(/\\D+/g, '').replace(/^(\\d{2})(\\d{7}).*/, '$1-$2');\n\nexport const getPrimaryApplicant = (application: Application): Applicant => {\n let primaryApplicant = application.applicants.items.find(\n (applicant) => applicant.is_primary,\n );\n const { applicants } = application;\n if (!primaryApplicant) {\n const { items } = applicants;\n // eslint-disable-next-line prefer-destructuring\n primaryApplicant = items[0];\n }\n return primaryApplicant;\n};\n\nexport const getCreditScoreRemark = (score: number): string =>\n capitalize(\n creditScoreRangeArray.find(\n (range) => (range?.high || 900) > score && (range?.low || 0) < score,\n )?.score,\n );\n\nexport const getStartDate = (storedDate: string | Date): string => {\n if (moment(storedDate).isBefore(moment().add(1, 'day'))) {\n return moment().add(1, 'days').format('YYYY-MM-DD').toString();\n }\n return (\n moment(storedDate).format('YYYY-MM-DD').toString() ||\n moment().add(1, 'days').format('YYYY-MM-DD').toString()\n );\n};\n\nexport const concatenateStringsWithSeparator = (\n separator: string,\n ...str: string[]\n): string => str.filter((v) => !!v).join(separator);\n\nexport const getPlainTextFromHTML = (htmlString: string): string => {\n const document = new DOMParser().parseFromString(htmlString, 'text/html');\n return document.body.innerText;\n};\n","export const QW_QUESTIONS = {\n dwellingType: {\n question: 'What type of property are you renting?',\n options: [\n { key: 'A', value: 'Apartment/Condo' },\n { key: 'S', value: 'Single Family Home' },\n { key: 'T', value: 'Townhome' },\n { key: 'D', value: 'Dormitory/Student Housing' },\n ],\n },\n manufacturedMobileHome: {\n question: 'Is this a Manufactured/Mobilehome?',\n options: [\n { key: 'Y', value: 'YES' }, // not qualify\n { key: 'N', value: 'NO' },\n ],\n defaultAnswer: 'N',\n },\n mandatoryInsuranceRequirement: {\n question: 'Are you required to have renters insurance?',\n options: [\n { key: 'Y', value: 'YES' },\n { key: 'N', value: 'NO' },\n ],\n },\n losses: {\n question:\n 'Excluding storms, floods and other natural causes, have you had any losses in the past three years?',\n options: [\n { key: 'Y', value: 'YES' },\n { key: 'N', value: 'NO' },\n ],\n },\n numberOfLosses: {\n question: 'How many claims?',\n options: [\n { key: '1', value: '1' },\n { key: '2', value: '2 or more' }, // not qualify\n ],\n defaultAnswer: '0',\n },\n lossDate: {\n question: 'What was the Date of Loss?',\n options: [],\n type: 'date',\n defaultAnswer: '',\n },\n animalInjury: {\n question: 'Do You Own or Care For An Animal That Has Harmed Someone?',\n options: [\n { key: 'Y', value: 'YES' }, // not qualify\n { key: 'N', value: 'NO' },\n ],\n },\n coverageMasonry: {\n question: 'Please select the construction type of dwelling',\n options: [\n { key: 'N', value: 'Wood frame' },\n { key: 'Y', value: 'Masonry' },\n ],\n },\n Arson: {\n question:\n 'During the last 10 years, has any applicant been formally charged or convicted of any degree of crime or fraud, bribery or arson in connection with this or any other property?',\n options: [\n { key: 'Y', value: 'YES' },\n { key: 'N', value: 'NO' },\n ],\n },\n};\n\nexport const stepperSteps = [\n 'confirm_details',\n 'questions',\n 'quote',\n 'payment_plans',\n 'checkout',\n 'preview',\n 'purchased',\n];\n\nexport enum INSURANCE_STEPS {\n CONFIRM_DETAILS = 'confirm_details',\n QUESTIONS = 'questions',\n QUOTE = 'quote',\n PAYMENT_PLANS = 'payment_plans',\n CHECK_OUT = 'checkout',\n PREVIEW = 'preview',\n PURCHASED = 'purchased',\n}\n\nexport const setNextStep = (step: INSURANCE_STEPS): INSURANCE_STEPS => {\n switch (step) {\n case INSURANCE_STEPS.CONFIRM_DETAILS:\n return INSURANCE_STEPS.QUESTIONS;\n case INSURANCE_STEPS.QUESTIONS:\n return INSURANCE_STEPS.QUOTE;\n case INSURANCE_STEPS.QUOTE:\n return INSURANCE_STEPS.PAYMENT_PLANS;\n case INSURANCE_STEPS.PAYMENT_PLANS:\n return INSURANCE_STEPS.CHECK_OUT;\n case INSURANCE_STEPS.CHECK_OUT:\n return INSURANCE_STEPS.PREVIEW;\n case INSURANCE_STEPS.PREVIEW:\n return INSURANCE_STEPS.PURCHASED;\n case INSURANCE_STEPS.PURCHASED:\n return INSURANCE_STEPS.PURCHASED;\n default:\n return INSURANCE_STEPS.QUESTIONS;\n }\n};\n\nexport const setPreviousStep = (step: INSURANCE_STEPS): INSURANCE_STEPS => {\n switch (step) {\n case INSURANCE_STEPS.QUOTE:\n return INSURANCE_STEPS.QUESTIONS;\n case INSURANCE_STEPS.PAYMENT_PLANS:\n return INSURANCE_STEPS.QUOTE;\n case INSURANCE_STEPS.CHECK_OUT:\n return INSURANCE_STEPS.PAYMENT_PLANS;\n case INSURANCE_STEPS.PREVIEW:\n return INSURANCE_STEPS.CHECK_OUT;\n default:\n return INSURANCE_STEPS.CONFIRM_DETAILS;\n }\n};\n\nexport const isStepValid = (step: INSURANCE_STEPS): INSURANCE_STEPS[] => {\n switch (step) {\n case INSURANCE_STEPS.QUESTIONS:\n return [INSURANCE_STEPS.QUESTIONS];\n case INSURANCE_STEPS.QUOTE:\n return [INSURANCE_STEPS.QUOTE, INSURANCE_STEPS.QUESTIONS];\n case INSURANCE_STEPS.PAYMENT_PLANS:\n return [\n INSURANCE_STEPS.PAYMENT_PLANS,\n INSURANCE_STEPS.QUESTIONS,\n INSURANCE_STEPS.QUOTE,\n ];\n case INSURANCE_STEPS.CHECK_OUT:\n return [\n INSURANCE_STEPS.QUESTIONS,\n INSURANCE_STEPS.QUOTE,\n INSURANCE_STEPS.PAYMENT_PLANS,\n INSURANCE_STEPS.CHECK_OUT,\n ];\n case INSURANCE_STEPS.PREVIEW:\n return [\n INSURANCE_STEPS.QUESTIONS,\n INSURANCE_STEPS.QUOTE,\n INSURANCE_STEPS.PAYMENT_PLANS,\n INSURANCE_STEPS.CHECK_OUT,\n INSURANCE_STEPS.PREVIEW,\n ];\n case INSURANCE_STEPS.PURCHASED:\n return [INSURANCE_STEPS.PURCHASED];\n default:\n return [];\n }\n};\n\nexport const LIABILTY_DETAILS = {\n heading: 'Your Liability',\n description:\n \"This protects you in case you cause damage to your home or neighboring property because of smoke, fire, water and explosion. And, if a guest gets hurt or bitten by your dog we'll cover necessary medical and legal expenses up to the liability amount\",\n options: ['$50000', '$100000'],\n};\n\nexport const BELONGINGS_DETAILS = {\n heading: 'Your Belongings',\n description:\n \"How much would it cost to replace your belongings (e.g. furniture, clothes, electronics)? Select your coverage based on your answer. The amount you choose can cover a roommate's belongings too. Just be sure to add them to your policy at checkout.\",\n};\n\nexport const DEDUCTIBLE_DETAILS = {\n heading: 'DEDUCTIBLE',\n description:\n \"A deductible is a lump sum you have to pay upfront, but with us, we'll subtract it from your claim payout. A higher deductible will lower your monthly payment, but also means you'll receive less for a covered loss. For example, if you choose a $250 deductible and you have a table worth $800, we'll give you $550 back.\",\n options: ['$100', '$250', '$500'],\n};\n\nexport const coverageDefaultValues = [\n {\n name: 'hasEarthquake',\n value: 'N',\n },\n {\n name: 'hasIdentityFraud',\n value: 'N',\n },\n {\n name: 'iuiType',\n value: 'N',\n },\n {\n name: 'liabilityAmount',\n value: '100000',\n },\n {\n name: 'personalPropertyAmount',\n value: '15000',\n },\n {\n name: 'hasPetDamage',\n value: 'N',\n },\n {\n name: 'hasReplacementCost',\n value: 'Y',\n },\n {\n name: 'hasSewerBackup',\n value: 'Y',\n },\n {\n name: 'deductible',\n value: '250',\n },\n];\n\nexport enum QUESTION_KEY_MAPPING {\n dwellingType = 'dwellingType',\n manufacturedMobileHome = 'isManufacturedHome',\n mandatoryInsuranceRequirement = 'mustHaveInsurance',\n losses = 'losses',\n numberOfLosses = 'howManyLosses',\n lossDate = 'lastLossDate',\n animalInjury = 'hadAnimalInjury',\n coverageMasonry = 'coverageMasonry',\n Arson = 'Arson',\n}\n\nexport enum QUESTION_KEY_MAPPING_REVERSE {\n dwellingType = 'dwellingType',\n isManufacturedHome = 'manufacturedMobileHome',\n mustHaveInsurance = 'mandatoryInsuranceRequirement',\n losses = 'losses',\n howManyLosses = 'numberOfLosses',\n lastLossDate = 'lossDate',\n hadAnimalInjury = 'animalInjury',\n coverageMasonry = 'coverageMasonry',\n Arson = 'Arson',\n}\n\nexport const PANELS = [\n {\n key: 'hasReplacementCost',\n heading: 'Replacement Cost',\n text:\n 'Coverage includes reimbursement for the actual cost of replacing belongings.',\n isEditable: false,\n },\n {\n key: 'hasIdentityFraud',\n heading: 'Fraud Expense Protection',\n text:\n 'Identity fraud expense coverage includes up to $15,000 for your expenses as a result of being a victim of identity fraud. A $100 deductible applies.',\n isEditable: true,\n },\n {\n key: 'hasWaterBackup',\n heading: 'Water Sewer Backup',\n text:\n 'Coverage includes up to $2,500 in damage if a sewer or drain backs up into your home. A $250 deductible applies',\n isEditable: true,\n },\n];\n\nexport enum DiscloserTypes {\n FRAUD = 'fraud',\n ELECTRONIC_BUSSINESS_CONSENT = 'ebc',\n LEGAL_NOTICE = 'legal',\n UNDERWRITTERS = 'underwriters',\n PRIVACY_POLICY = 'privacypolicy',\n RAGULATORY_NOTICE = 'regulatorynotice',\n CONSUMER_RIGHTS = 'consumerrights',\n COVERAGE_DESCRIPTION = 'coveragedescription',\n ACCESSIBILITY = 'accessibility',\n CANCELATION_NOTICE = 'cancelationnotice',\n PAY_AUTHORIZATION = 'payauthorization',\n}\n\nexport const ADDITIONAL_PARTIES_PANELS = [\n {\n key: 'hasInterestedParty',\n heading: 'Interested Party',\n text:\n \"This is typically your landlord or property manager. Put down their information and we'll automatically notify them that you've got coverage.\",\n isEditable: true,\n linkText: 'Read more',\n },\n];\n","import React from 'react';\nimport Logo from '../../assets/logo.png';\n\nconst NotAuthorized: React.FC = () => {\n return (\n
\n \"Logo\"\n \n You are not authorized to access this page.\n \n
\n );\n};\n\nexport default NotAuthorized;\n","import { observable } from 'mobx';\nimport Model from '../Model';\nimport { UnitStore } from '../../stores/UnitStore';\nimport { Building } from './BuildingModel';\nimport { User } from './UserModel';\nimport { ModelItem } from '../ModelItem';\nimport { ModelList } from '../ModelList';\nimport { UnitImage } from './UnitImage';\nimport moment from 'moment';\n\nexport class Unit extends Model {\n static _store: UnitStore;\n\n @observable id: number;\n\n @observable organisation_id: number;\n\n @observable building_id: number;\n\n @observable status_id: number;\n\n @observable name: string;\n\n @observable address_line_1: string;\n\n @observable address_line_2: string;\n\n @observable application_fee: number;\n\n @observable state: number;\n\n @observable state_name: string;\n\n @observable city: string;\n\n @observable city_name: string;\n\n @observable zip_code: number;\n\n @observable created_at: string;\n\n @observable updated_at: string;\n\n @observable image_url: string;\n\n @observable unit_images = new ModelList(UnitImage);\n\n // TODO: Fix this later.\n @observable renter_name: string;\n\n @observable renter_email: string;\n\n @observable status: 'available' | 'unavailable';\n\n @observable unit_full_address: string;\n\n @observable building = new ModelItem(Building);\n\n @observable appliedBy: User[];\n\n @observable monthly_rent: number;\n\n @observable security_deposit: number;\n\n @observable cats_allowed: boolean;\n\n @observable dogs_allowed: boolean;\n\n @observable bathrooms: number;\n\n @observable bedrooms: number;\n\n @observable marketing_description: string;\n\n @observable accepted_app_id: number;\n\n @observable last_app_accepted_at: Date;\n\n @observable area: number;\n\n @observable latitude: number;\n\n @observable longitude: number;\n\n @observable year_built: number;\n\n get canAcceptAppForUnit() {\n if (this.last_app_accepted_at && this.accepted_app_id) {\n const _last_app_accepted_at = moment\n .utc(this.last_app_accepted_at)\n .startOf('date');\n const _now = moment.utc().startOf('date');\n const _30DaysBefore = _now.clone().subtract(30, 'days');\n return (\n !this.accepted_app_id && _last_app_accepted_at.isBefore(_30DaysBefore)\n );\n }\n return true;\n }\n\n get fullAddress() {\n return this.address_line_1 + this.address_line_2;\n }\n}\n","import { observable } from 'mobx';\nimport { PaginatedModelList } from 'models/PaginatedModelList';\nimport Model from '../Model';\nimport { BuildingStore } from '../../stores/BuildingStore';\nimport { Organization } from './OrganizationModel';\nimport { State } from './StateModel';\nimport { City } from './CityModel';\nimport { Unit } from './UnitModel';\nimport { ModelItem } from '../ModelItem';\nimport { ModelList } from '../ModelList';\nimport { BuildingImage } from './BuildingImage';\n\nexport enum BuildingType {\n SINGLE_UNIT = 'single_unit',\n MULTI_UNIT = 'multi_unit',\n VACATION = 'vacation',\n COMMERCIAL = 'commercial',\n MIXED_USE = 'mixed_use',\n}\n\nexport class Building extends Model {\n static _store: BuildingStore;\n\n @observable id: number;\n\n @observable organisation_id: number;\n\n @observable building_images = new ModelList(BuildingImage);\n\n @observable name: string;\n\n @observable organisation: Organization;\n\n @observable address_line_1: string;\n\n @observable address_line_2: string;\n\n @observable type: BuildingType;\n\n @observable units = new PaginatedModelList(Unit);\n\n @observable state = new ModelItem(State);\n\n @observable city = new ModelItem(City);\n\n @observable zip_code: string;\n\n @observable latitude: number;\n\n @observable longitude: number;\n\n @observable pha_voucher_enabled: boolean;\n\n @observable landlord_tax_form_url: string;\n\n @observable rental_form_url: string;\n\n @observable pha_sub_programme_id: number;\n\n @observable created_at: string;\n\n @observable updated_at: string;\n\n @observable extras: any;\n}\n","export enum DocumentType {\n GOVT_ID = 1,\n BANK_STATEMENT = 2,\n PAY_STUB = 3,\n TAX_RETURN_W2 = 4,\n TAX_RETURN_W4 = 5,\n TAX_RETURN_1040 = 6,\n TAX_RETURN_1099 = 7,\n TAX_RETURN_OTHER = 8,\n CREDIT_REPORT = 9,\n EVICTION_REPORT = 10,\n CRIMINAL_REPORT = 11,\n ADDITIONAL_DOCUMENT = 12,\n UNIT_IMAGE,\n BUILDING_IMAGE,\n PHA_VOUCHER,\n INSPECTION_REPORT,\n}\n\nexport class DocumentTypeUtils {\n static getDocumentType = (v: DocumentType) => {\n switch (v) {\n case DocumentType.GOVT_ID: {\n return 'doc_government_id';\n }\n case DocumentType.BANK_STATEMENT: {\n return 'doc_bank_statements';\n }\n case DocumentType.PAY_STUB: {\n return 'doc_paystubs';\n }\n case DocumentType.TAX_RETURN_W2: {\n return 'doc_tax_return_w2';\n }\n case DocumentType.TAX_RETURN_W4: {\n return 'doc_tax_return_w4';\n }\n case DocumentType.TAX_RETURN_1040: {\n return 'doc_tax_return_1040';\n }\n case DocumentType.TAX_RETURN_1099: {\n return 'doc_tax_return_1099';\n }\n case DocumentType.TAX_RETURN_OTHER: {\n return 'doc_tax_return_other';\n }\n case DocumentType.CREDIT_REPORT: {\n return 'doc_credit_report';\n }\n case DocumentType.EVICTION_REPORT: {\n return 'doc_eviction_report';\n }\n case DocumentType.CRIMINAL_REPORT: {\n return 'doc_criminal_report';\n }\n case DocumentType.UNIT_IMAGE: {\n return 'unit_image';\n }\n case DocumentType.BUILDING_IMAGE: {\n return 'building_image';\n }\n case DocumentType.PHA_VOUCHER: {\n return 'pha_voucher';\n }\n case DocumentType.INSPECTION_REPORT: {\n return 'inspection_report';\n }\n case DocumentType.ADDITIONAL_DOCUMENT: {\n return 'doc_additional_document';\n }\n }\n return '';\n };\n}\n","import { observable } from 'mobx';\nimport Model from '../Model';\nimport { ApplicantStore } from '../../stores/ApplicantStore';\nimport { ModelItem } from '../ModelItem';\nimport { GuestCard } from './GuestCardModel';\nimport { InviteType } from '../../enums/InviteType';\nimport { ApplicationStep } from '../ApplicationStep';\nimport { ModelList } from '../ModelList';\nimport { DocumentModel } from './DocumentModel';\nimport { Bank } from './BankModel';\nimport { ResidenceHistory } from './ResidenceHistory';\nimport { User } from './UserModel';\nimport { GovtIDStatus } from 'enums/GovIdstatus.enum';\nimport { PBStatus } from 'enums/PayrollStatus.enum';\n\nexport class Applicant extends Model {\n static _store: ApplicantStore;\n\n @observable id: number;\n\n @observable user_id: number;\n\n @observable applicant_data_id: number;\n\n @observable first_name: string;\n\n @observable last_name: string;\n\n @observable application_id: number;\n\n @observable phone_number: number;\n\n @observable email: string;\n\n @observable is_primary: boolean;\n\n @observable role: InviteType;\n\n @observable guest_card_id: number;\n\n @observable documents = new ModelList(DocumentModel);\n\n @observable banks = new ModelList(Bank);\n\n @observable residence_histories = new ModelList(\n ResidenceHistory,\n );\n\n @observable information_confirmed: boolean;\n\n @observable signed_document_url: string;\n\n @observable guestCard = new ModelItem(GuestCard);\n\n @observable step: ApplicationStep;\n\n @observable terms_accepted_at: Date;\n\n @observable extended_app_meta: any;\n\n get fullname(): string {\n if (this.last_name) {\n return `${this.first_name} ${this.last_name}`;\n }\n return this.first_name;\n }\n\n @observable sentilink_scores: any;\n\n @observable requirements: any;\n\n @observable organisation_id: number;\n\n @observable user = new ModelItem(User);\n\n @observable additional_information: any;\n\n @observable crs_token_exists: boolean;\n\n @observable is_monitoring_user: boolean;\n\n @observable govt_id_status: GovtIDStatus;\n\n @observable bank_account_status: PBStatus;\n\n @observable paystubs_status: PBStatus;\n}\n","import { observable } from 'mobx';\nimport { BankProviderType } from '../../pages/renter/bank-statements/constants';\nimport { BankStore } from '../../stores/BankStore';\nimport Model from '../Model';\n\nexport class Bank extends Model {\n static _store: BankStore;\n\n @observable id: number;\n\n @observable name: string;\n\n @observable provider: BankProviderType;\n}\n","import { observable } from 'mobx';\nimport Model from '../Model';\nimport { ResidenceHistoryStore } from '../../stores/ResidenceHistoryStore';\n\nexport class ResidenceHistory extends Model {\n static _store: ResidenceHistoryStore;\n\n @observable id: number;\n\n @observable user_id: number;\n\n @observable address_line_1: string;\n\n @observable address_line_2: string;\n\n @observable state_name: string;\n\n @observable city_name: string;\n\n @observable country: string;\n\n @observable phone_number: string;\n\n @observable zip_code: number;\n\n @observable landlord_name: string;\n\n @observable landlord_phone_number: string;\n\n @observable landlord_email: string;\n\n @observable previous_rent: number;\n\n @observable move_in_date: string;\n\n @observable move_out_date: string;\n\n @observable currently_living: boolean;\n\n @observable currently_homeless: boolean;\n}\n","import React from 'react';\nimport cx from 'classnames';\nimport './HeadingText.scss';\n\ninterface HeadingTextProps {\n className?: string;\n heading?: 'H1' | 'H2' | 'H3' | 'H4' | 'H5' | 'H6' | 'H7' | 'H8';\n color?: string;\n}\n\nconst HeadingText: React.FC = ({\n heading = 'H1',\n color = 'darkText',\n className,\n ...props\n}) => (\n \n {props.children}\n \n);\n\nexport default HeadingText;\n","class AuthService {\n static getInstance(): AuthService {\n return new AuthService();\n }\n\n get authToken() {\n return localStorage.getItem('auth_token');\n }\n\n setAuthToken = (token: string) => {\n localStorage.setItem('auth_token', `bearer ${token}`);\n };\n\n clearAuthToken() {\n localStorage.removeItem('auth_token');\n }\n\n get hasAuthToken() {\n return !!this.authToken;\n }\n}\n\nexport const authService = AuthService.getInstance();\n","import { observable } from 'mobx';\n\nimport Model from '../Model';\nimport { CityStore } from '../../stores/CityStore';\n\nexport class City extends Model {\n static _store: CityStore;\n\n @observable id: number;\n\n @observable city: string;\n\n @observable slug: string;\n}\n","import { observable } from 'mobx';\nimport Model from '../Model';\nimport { StateStore } from '../../stores/StateStore';\n\nexport class State extends Model {\n static _store: StateStore;\n\n @observable id: number;\n\n @observable state: string;\n\n @observable code: string;\n}\n","import { observable } from 'mobx';\nimport Model from '../Model';\nimport { GuestCardStore } from '../../stores/GuestCardStore';\nimport { GuestCardChat } from './GuestCardChatModel';\nimport { PaginatedModelList } from '../PaginatedModelList';\n\nexport class GuestCard extends Model {\n static _store: GuestCardStore;\n\n @observable id: number;\n\n @observable name: string;\n\n @observable email: string;\n\n @observable phone: string;\n\n @observable comments: number;\n\n @observable move_in_date: string;\n\n @observable source: string;\n\n @observable date_received: string;\n\n @observable property_address: string;\n\n @observable guest_card_url: string;\n\n @observable organisation_id: number;\n\n @observable created_at: string;\n\n @observable updated_at: string;\n\n @observable unread_count: number;\n\n @observable chats = new PaginatedModelList(GuestCardChat);\n}\n","import { observable } from 'mobx';\nimport Model from '../Model';\nimport { DocumentStore } from '../../stores/DocumentStore';\nimport { DocumentType } from '../../enums/DocumentType';\nimport { TAX_RETURN_DOCS } from '../../constants/constants';\nimport { getFormattedDate } from '../../utils/helpers';\n\nexport class DocumentModel extends Model {\n static _store: DocumentStore;\n\n @observable document: string;\n\n @observable document_type: string;\n\n @observable document_type_id: number;\n\n @observable id: number;\n\n @observable key: string;\n\n @observable valid: boolean;\n\n @observable verified: boolean;\n\n @observable createdAt: string;\n\n @observable updatedAt: string;\n\n @observable applicant_data_id: number;\n\n @observable deleted_at: string;\n\n @observable last_polled_at: string;\n\n @observable output: string;\n\n @observable polling_attempts: number;\n\n @observable renter_id: number;\n\n @observable status: string;\n\n @observable source_meta: {\n application_id: number;\n waitlist_applicant_id: number;\n description: string;\n };\n\n @observable renter_documents_data_id: number;\n\n get isGovtId() {\n return this.document_type_id === DocumentType.GOVT_ID;\n }\n\n get isPayStub() {\n return this.document_type_id === DocumentType.PAY_STUB;\n }\n\n get isBankDocument() {\n return this.document_type_id === DocumentType.BANK_STATEMENT;\n }\n\n get isTaxReturn() {\n return TAX_RETURN_DOCS.includes(+this.document_type_id);\n }\n\n get isCreditReport() {\n return this.document_type_id === DocumentType.CREDIT_REPORT;\n }\n\n get isEvictionReport() {\n return this.document_type_id === DocumentType.EVICTION_REPORT;\n }\n\n get isCriminalReport() {\n return this.document_type_id === DocumentType.CRIMINAL_REPORT;\n }\n\n get getUpdatedAt() {\n return getFormattedDate(this.updated_at ? this.updated_at : this.updatedAt);\n }\n\n get isAdditionalDocument() {\n return this.document_type_id === DocumentType.ADDITIONAL_DOCUMENT;\n }\n\n get filename() {\n return this.document.split('/').pop();\n }\n}\n","import { observable } from 'mobx';\nimport Model from '../Model';\nimport { UnitImageStore } from \"../../stores/UnitImageStore\";\n\nexport class UnitImage extends Model {\n static _store: UnitImageStore;\n\n @observable id: number;\n\n @observable unit_id: number;\n\n @observable url: string;\n}\n","/* eslint-disable import/no-cycle */\nimport { action, observable } from 'mobx';\nimport { ModelItem } from 'models/ModelItem';\nimport { ConsumerService } from 'constants/constants';\n\nimport { Model } from '../Model';\nimport { OrganizationStore } from '../../stores/OrganizationStore';\nimport { City } from './CityModel';\nimport { State } from './StateModel';\nexport enum InsuranceType {\n DISABLED = 'disabled',\n INTERNAL = 'internal',\n EXTERNAL = 'external',\n}\n\nexport interface W9FormData {\n name: string;\n business_name: string;\n federal_tax: string;\n city: string;\n address: string;\n account_number: string;\n requester_name: string;\n date: string;\n payee_code?: string;\n fatca_code?: string;\n social_security_number?: string;\n employer_identification_number?: string;\n other?: string;\n classification?: string;\n}\nexport class Organization extends Model {\n static _store: OrganizationStore;\n\n @observable id: number;\n\n @observable name: string;\n\n @observable owner_id: number;\n\n @observable owner: any;\n\n @observable primary_name: string;\n\n @observable primary_email: string;\n\n @observable primary_phone: string;\n\n @observable insurance_type: InsuranceType;\n\n @observable address: string;\n\n @observable city_id: number;\n\n @observable state_id: number;\n\n @observable city = new ModelItem(City);\n\n @observable state = new ModelItem(State);\n\n @observable zip_code: string;\n\n @observable is_agent_enabled: boolean;\n\n @observable appfolio_account_id: number;\n\n @observable dtc_enabled: boolean;\n\n @observable pha_voucher_enabled: boolean;\n\n @observable inspector_flow_enabled: boolean;\n\n @observable payment_enabled: boolean;\n\n @observable case_manager_enabled: boolean;\n\n @observable tax_documents_required: boolean;\n\n @observable valid_govt_id_required: boolean;\n\n @observable consumer_service: ConsumerService;\n\n @observable consumer_username: string;\n\n @observable consumer_interface: string;\n\n @observable consumer_password: string;\n\n @observable api_key: string;\n\n @observable stripe_account_id: string;\n\n @observable support_tab_enabled: boolean;\n\n @observable allow_refund: boolean;\n\n @observable crs_token_exists: boolean;\n\n @observable allow_waitlist: boolean;\n\n @observable crs_token_expired: boolean;\n\n @observable terms_accepted_at: string;\n\n @observable tnc_url: string;\n\n @observable signator_name: string;\n\n @observable w9_form_data: W9FormData;\n\n @observable is_extended_app: boolean;\n\n @action\n setTermsAcceptedAt(b: string) {\n this.terms_accepted_at = b;\n }\n}\n","/* eslint-disable import/no-cycle */\nimport { observable } from 'mobx';\nimport { WaitingListSteps } from 'models/WaitingListStep';\n\nimport { WaitingListApplicantStore } from '../../stores/WaitingListApplicantStore';\nimport { Model } from '../Model';\nimport { ModelItem } from '../ModelItem';\nimport { ModelList } from '../ModelList';\nimport { DocumentModel } from './DocumentModel';\nimport { Bank } from './BankModel';\nimport { User } from './UserModel';\nimport { Building } from './BuildingModel';\n\nexport interface WaitingListEmployer {\n name: string;\n address: {\n state: {\n state: string;\n code: string;\n };\n city: string;\n zip: string;\n };\n}\n\nexport enum WaitingListStatus {\n INCOMPLETE = 'in-complete',\n PROCESSING = 'processing',\n ACTIVE = 'active',\n IN_ACTIVE = 'in-active',\n FAILED = 'failed',\n}\n\nexport class WaitingListApplicant extends Model {\n static _store: WaitingListApplicantStore;\n\n @observable id: number;\n\n @observable user_id: number;\n\n @observable first_name: string;\n\n @observable last_name: string;\n\n @observable phone_number: number;\n\n @observable email: string;\n\n @observable documents = new ModelList(DocumentModel);\n\n @observable banks = new ModelList(Bank);\n\n @observable organisation_id: number;\n\n @observable step: WaitingListSteps;\n\n @observable user = new ModelItem(User);\n\n @observable is_monitoring_user: boolean;\n\n @observable invite_id: number;\n\n @observable report_url: string;\n\n @observable building: Building;\n\n @observable employers: { data: WaitingListEmployer[] };\n\n @observable status: WaitingListStatus;\n\n @observable report_status: string;\n\n @observable terms_accepted_at: Date;\n\n get fullname(): string {\n if (this.last_name) {\n return `${this.first_name} ${this.last_name}`;\n }\n return this.first_name;\n }\n}\n","import { times, random } from 'lodash';\n\nexport class Utils {\n static getRandomString = (length = 20) =>\n times(length, () => random(35).toString(36)).join('');\n\n static getSanitizedFileName = (name: string) => {\n const newName = name.replace(/[^a-zA-Z0-9-_/. ]/g, '_');\n if (!newName) {\n return Utils.getRandomString(12);\n }\n return newName;\n };\n\n static makeFirstLetterCapital = (str: string): string =>\n str.charAt(0).toUpperCase() + str.substr(1);\n\n static removeUnderscore = (str: string): string => {\n const list = str.split('_');\n return `${Utils.makeFirstLetterCapital(list[0])} ${list\n .slice(1)\n .join(' ')}`;\n };\n\n private static objectToGetParams = (object: {\n [key: string]: string | number | undefined | null;\n }) => {\n const params = Object.entries(object)\n .filter(([, value]) => value !== undefined && value !== null)\n .map(\n ([key, value]) =>\n `${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`,\n );\n\n return params.length > 0 ? `?${params.join('&')}` : '';\n };\n\n static getPinterestShareUrl = (\n description: string,\n url: string,\n media: string,\n ) => {\n return `https://pinterest.com/pin/create/button/${Utils.objectToGetParams({\n url,\n media,\n description,\n })}`;\n };\n\n static getFacebookShareUrl = (title: string, url: string) => {\n return `https://www.facebook.com/sharer/sharer.php${Utils.objectToGetParams(\n {\n quote: title,\n u: url,\n },\n )}`;\n };\n\n static getTwitterShareUrl = (\n title: string,\n url: string,\n imageUrl: string,\n ) => {\n return `https://twitter.com/intent/tweet${Utils.objectToGetParams({\n text: title,\n url,\n via: imageUrl,\n })}`;\n };\n\n static getGoogleMapUrl = (lat: number, long: number) => {\n return `https://maps.google.com?q=${lat},${long}`;\n };\n}\n","import { AxiosError } from 'axios';\n\nexport enum ErrorCode {\n UNIDENTIFIED,\n UNAUTHORIZED = 401,\n NOT_FOUND = 404,\n UNPROCESSABLE_ENTITY = 422,\n TOO_MANY_REQUESTS = 429,\n}\n\nexport enum UploadErrorCode {\n GOVERNMENT_ID_MISSING = 1202,\n TAX_DOCS_MISSING = 1203,\n PAYSTUBS_MISSING = 1204,\n BANK_STATEMENTS_MISSING = 1205,\n RESIDENCE_HISTORY_MISSING = 1206,\n DOCUMENTS_ARE_MISSING = 1201,\n APPLICATION_PAYMENT_DETAILS_MISSING = 1207,\n APPLICATION_DOES_NOT_EXIST = 4001,\n DOB_INVALID = 203,\n CRS_MISSING = 1208,\n INCOMPLETE_USER_DATA = 1220,\n PHA_INVITE_ALREADY_ACCEPTED = 13002,\n}\n\nexport class MatrixError {\n constructor(\n readonly message: string = 'Error. Please Try Again.',\n readonly code?: UploadErrorCode,\n readonly status: ErrorCode = ErrorCode.UNIDENTIFIED,\n readonly errors = {},\n readonly data = {},\n ) {}\n\n static from(axiosError: AxiosError): MatrixError {\n if (!axiosError.response) {\n return new MatrixError();\n }\n\n const { status, data } = axiosError.response;\n if (status === ErrorCode.UNPROCESSABLE_ENTITY) {\n return new MatrixError(\n data?.message,\n data?.code,\n status,\n data?.errors,\n data?.meta,\n );\n }\n return new MatrixError(\n data?.message,\n data?.code,\n status,\n data?.errors || null,\n data?.meta,\n );\n }\n\n errorsByKey(key: string) {\n return this.errors?.[key];\n }\n\n hasErrorByKey(key: string) {\n return !!this.errorsByKey(key);\n }\n}\n","import Axios, {\n AxiosRequestConfig,\n CancelToken,\n CancelTokenSource,\n} from 'axios';\nimport URI from 'urijs';\nimport { ErrorCode, MatrixError, UploadErrorCode } from 'models/MatrixError';\nimport { Utils } from 'utils/utils';\nimport * as rdd from 'react-device-detect';\nimport { notification } from 'antd';\n\ninterface RequestConfig extends AxiosRequestConfig {\n requestId?: string;\n redirectIfUnauthorized?: boolean;\n useBaseUrl?: boolean;\n useAuthHeaders?: boolean;\n}\n\nconst BASE_URL = process.env.REACT_APP_BACKEND_URL;\n\nexport class ApiService {\n private static instance = new ApiService();\n\n private requestMap = new Map();\n\n private unreportedErrors = [ErrorCode.UNAUTHORIZED, ErrorCode.NOT_FOUND];\n\n static getInstance() {\n return this.instance;\n }\n\n get(url: string, params?: any, headers?: any, requestId?: string) {\n return this.request({ method: 'GET', url, headers, params, requestId });\n }\n\n delete(\n url: string,\n params?: any,\n headers?: any,\n requestId?: string,\n data?: any,\n ) {\n return this.request({\n method: 'DELETE',\n url,\n headers,\n params,\n requestId,\n data,\n });\n }\n\n post(\n url: string,\n data?: any,\n headers?: any,\n params?: any,\n requestId?: string,\n ) {\n return this.request({\n method: 'POST',\n url,\n data,\n headers,\n params,\n requestId,\n });\n }\n\n put(\n url: string,\n data?: any,\n useBaseUrl = true,\n useAuthHeaders = true,\n headers?: any,\n params?: any,\n requestId?: string,\n onUploadProgress?: any,\n ) {\n return this.request({\n method: 'PUT',\n url,\n data,\n headers,\n params,\n requestId,\n useBaseUrl,\n useAuthHeaders,\n onUploadProgress,\n });\n }\n\n patch(\n url: string,\n data?: any,\n headers?: any,\n params?: any,\n requestId?: string,\n ) {\n return this.request({\n method: 'PATCH',\n url,\n data,\n headers,\n params,\n requestId,\n });\n }\n\n generateHeaders = (additionalHeaders, useAuthHeaders: boolean) => {\n const headers = {\n ...additionalHeaders,\n };\n\n if (useAuthHeaders) {\n headers.Authorization = localStorage.getItem('auth_token');\n }\n let deviceType;\n if (rdd.isDesktop) {\n deviceType = 'desktop';\n } else if (rdd.isMobile) {\n deviceType = 'mobile';\n } else if (rdd.isTablet) {\n deviceType = 'tablet';\n }\n\n headers['os-name'] = rdd.osName;\n headers['device-type'] = deviceType;\n\n return { ...headers };\n };\n\n // TODO: pass token only when required.\n private async request({\n useBaseUrl = true,\n useAuthHeaders = true,\n ...config\n }) {\n const cancelToken = this.addToRequestMap(config.requestId);\n try {\n const response = await Axios.request({\n baseURL: useBaseUrl ? BASE_URL : undefined,\n cancelToken,\n ...config,\n headers: this.generateHeaders(config.headers, useAuthHeaders),\n });\n this.removeFromRequestMap(config.requestId);\n return response?.data;\n } catch (e) {\n const error = e as any;\n const errorStatus = error?.response?.status;\n const errorCode = error.response?.data?.code;\n if (errorStatus === ErrorCode.UNAUTHORIZED) {\n window.location.href = URI('/auth/login').query({\n redirect_to: URI().pathname(),\n });\n }\n if (errorCode === UploadErrorCode.PHA_INVITE_ALREADY_ACCEPTED) {\n notification.error({\n message: 'Invite already accepted',\n description: 'Please login to continue',\n });\n setTimeout(() => {\n window.location.replace(URI('/auth/login'));\n }, 2000);\n }\n if (this.shouldReportToSentry(errorStatus)) {\n // Report To sentry or any other service.\n }\n if (error.response && error.response.data) {\n // console.log(error.response.data);\n } else {\n console.log(error);\n }\n throw MatrixError.from(error);\n }\n }\n\n private shouldReportToSentry(errorStatus: ErrorCode) {\n return !this.unreportedErrors.includes(errorStatus);\n }\n\n private addToRequestMap(requestId?: string): CancelToken {\n if (!requestId) {\n return undefined;\n }\n\n const source = Axios.CancelToken.source();\n this.requestMap.set(requestId, source);\n return source.token;\n }\n\n private removeFromRequestMap(requestId?: string) {\n if (!requestId) {\n return;\n }\n\n this.requestMap.delete(requestId);\n }\n\n generateRequsetId(): string {\n return Utils.getRandomString();\n }\n\n cancelRequest(requestId: string) {\n const source = this.requestMap.get(requestId);\n source && source.cancel();\n }\n}\n","import React from 'react';\nimport { Redirect, Route } from 'react-router';\nimport { authService } from 'services/AuthService';\n\nconst PublicRoute: React.FC = ({ component: Component, ...rest }) => {\n if (authService.hasAuthToken) {\n return (\n (\n \n )}\n />\n );\n }\n\n return (\n <>\n } />\n \n );\n};\n\nexport default PublicRoute;\n","import { Route } from 'react-router';\nimport React from 'react';\nimport { inject, observer } from 'mobx-react';\nimport { AUTH_STORE } from '../constants/stores';\nimport NotAuthorized from '../components/NotAuthorized/NotAuthorized';\n\nconst AdminProtectedRoute: React.FC = ({\n component: Component,\n ...rest\n}) => {\n if (!rest.authStore.loggedInUser.isAdmin) {\n return } />;\n }\n\n return } />;\n};\n\nexport default inject(AUTH_STORE)(observer(AdminProtectedRoute));\n","import { Route } from 'react-router';\nimport React from 'react';\nimport { inject, observer } from 'mobx-react';\nimport { AUTH_STORE } from '../constants/stores';\nimport NotAuthorized from '../components/NotAuthorized/NotAuthorized';\n\nconst ManagerProtectedRoute: React.FC = ({\n component: Component,\n ...rest\n}) => {\n if (\n !rest.authStore.loggedInUser.isAdmin &&\n !rest.authStore.loggedInUser.isManager &&\n !rest.authStore.loggedInUser.isAgent\n ) {\n return } />;\n }\n\n return } />;\n};\n\nexport default inject(AUTH_STORE)(observer(ManagerProtectedRoute));\n","import { Route } from 'react-router';\nimport React from 'react';\nimport { inject, observer } from 'mobx-react';\nimport { AUTH_STORE } from '../constants/stores';\nimport NotAuthorized from '../components/NotAuthorized/NotAuthorized';\n\nconst RenterProtectedRoute: React.FC = ({\n component: Component,\n authStore,\n inverse,\n ...rest\n}) => {\n let isRenter = !authStore.isLoadingLoggedInUser && authStore.loggedInUser.isRenter;\n if (inverse) {\n isRenter = !isRenter;\n }\n if (!isRenter) {\n return } />;\n }\n\n return } />;\n};\n\nexport default inject(AUTH_STORE)(observer(RenterProtectedRoute));\n","import { Route } from 'react-router';\nimport React from 'react';\nimport { inject, observer } from 'mobx-react';\nimport { AUTH_STORE } from '../constants/stores';\nimport NotAuthorized from '../components/NotAuthorized/NotAuthorized';\n\nconst AdminOrSupportProtectedRoute: React.FC = ({\n component: Component,\n ...rest\n}) => {\n if (!rest.authStore.loggedInUser.isAdminOrSupport) {\n return } />;\n }\n\n return } />;\n};\n\nexport default inject(AUTH_STORE)(observer(AdminOrSupportProtectedRoute));\n","import { Route } from 'react-router';\nimport React from 'react';\nimport { inject, observer } from 'mobx-react';\nimport {\n ENV_MATRIX_ORG_ID,\n ENV_MATRIX_TEAM_ORG_ID,\n ENV_MCENEARNEY_ORG_ID,\n} from 'utils/secrets';\nimport { AUTH_STORE } from '../constants/stores';\nimport NotAuthorized from '../components/NotAuthorized/NotAuthorized';\n\nconst AdminOrManagerOrSupportProtectedRoute: React.FC = ({\n component: Component,\n ...rest\n}) => {\n if (\n (!rest.authStore.loggedInUser.isAdminOrManagerOrSupport &&\n !(\n rest.authStore?.loggedInUserOrg?.id === +ENV_MCENEARNEY_ORG_ID &&\n rest.authStore.loggedInUser.isAgent\n )) ||\n (!rest.authStore?.loggedInUser.isAdmin &&\n ![+ENV_MATRIX_ORG_ID, +ENV_MATRIX_TEAM_ORG_ID].includes(\n rest.authStore?.loggedInUserOrg?.id,\n ) &&\n !rest.authStore?.isLoadingLoggedInUserOrg &&\n !rest.authStore?.loggedInUserOrg?.support_tab_enabled)\n ) {\n return } />;\n }\n\n return } />;\n};\n\nexport default inject(AUTH_STORE)(\n observer(AdminOrManagerOrSupportProtectedRoute),\n);\n","import { Route } from 'react-router';\nimport React from 'react';\nimport { inject, observer } from 'mobx-react';\nimport { AUTH_STORE } from '../constants/stores';\nimport NotAuthorized from '../components/NotAuthorized/NotAuthorized';\n\nconst SupportProtectedRoute: React.FC = ({\n component: Component,\n authStore,\n inverse,\n ...rest\n}) => {\n let isSupport =\n !authStore.isLoadingLoggedInUser && authStore.loggedInUser.isSupport;\n if (inverse) {\n isSupport = !isSupport;\n }\n if (!isSupport) {\n return } />;\n }\n\n return } />;\n};\n\nexport default inject(AUTH_STORE)(observer(SupportProtectedRoute));\n","import { Route } from 'react-router';\nimport React from 'react';\nimport { inject, observer } from 'mobx-react';\nimport { AUTH_STORE } from '../constants/stores';\nimport NotAuthorized from '../components/NotAuthorized/NotAuthorized';\n\nconst RenterOrSupportOrPHAOrInspectorProtectedRoute: React.FC = ({\n component: Component,\n inverse,\n authStore,\n ...rest\n}) => {\n let isRenterOrSupportOrPHAOrInspector =\n !authStore.isLoadingLoggedInUser &&\n authStore.loggedInUser.isRenterOrSupportOrPHAOrInspector;\n if (inverse) {\n isRenterOrSupportOrPHAOrInspector = !isRenterOrSupportOrPHAOrInspector;\n }\n if (!isRenterOrSupportOrPHAOrInspector) {\n return } />;\n }\n\n return } />;\n};\n\nexport default inject(AUTH_STORE)(\n observer(RenterOrSupportOrPHAOrInspectorProtectedRoute),\n);\n","import { Route } from 'react-router';\nimport React from 'react';\nimport { inject, observer } from 'mobx-react';\nimport { AUTH_STORE } from '../constants/stores';\nimport NotAuthorized from '../components/NotAuthorized/NotAuthorized';\n\nconst AdminOrPHAMemberProtectedRoute: React.FC = ({\n component: Component,\n ...rest\n}) => {\n if (\n !rest.authStore.loggedInUser.isAdmin &&\n !rest.authStore.loggedInUser.isPHAMember\n ) {\n return } />;\n }\n\n return } />;\n};\n\nexport default inject(AUTH_STORE)(observer(AdminOrPHAMemberProtectedRoute));\n","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAABACAYAAABC6cT1AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABrQSURBVHgBvVsHgFTF3Z+ZV7be7fXeuOPod4CgIEWKFEWPJqLgFysx0SgqRpMQE9Hw+an5TBRFDAYxgjQxCogoIGCwEUGK9HK9l7297fvKzPd/W47dvT1Ec3z/g7333s6bmd/8+3/mMLpCVFfHjGtrrKUXbJ6REsIlPoUVSgpKVhgzE4IMiGGBYeTClNk5HttFTOt0PDqbqhOOjEj3fTm7f34jxpihK0QY9SD9s9aevPeMq8wq0TkuSR3rVlEcY4ExtA8WMSzrMg0cfMZjpBh4cj7BgPdmGNg7s0ZnHxqOsYx6kHoE+BvftQ040OR9rM2nzvWpOJ4hhmKxCjiImP+L2IxkLGxpQBzgHyJwlaBjp7NNwpLxWfyOGf1SHagH6CcDh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+mvfUAKGeGZygaHvEyMyKtAVph4Vn2jKNKFPFMZnQbGzCLDlQNEi06cyvV93tVILpJQ6nnRAPlbDYVIVpyMnR2elN6L/B/o/yGQ+GCuSMiIAAAAASUVORK5CYII=\"","import { observable } from 'mobx';\nimport { ChatCategory } from '../../enums/ChatCategory.enum';\nimport { ChatType } from '../../enums/ChatType.enum';\nimport { RentDeterminationChatStore } from '../../stores/RentDeterminationChatStore';\nimport Model from '../Model';\n\nexport class RentDeterminationChat extends Model {\n static _store: RentDeterminationChatStore;\n\n @observable id: number;\n\n @observable application_id: number;\n\n @observable category: ChatCategory;\n\n @observable type: ChatType;\n\n @observable message_body: string;\n\n @observable read: boolean;\n\n @observable meta: JSON;\n\n @observable createdAt: Date;\n\n @observable updatedAt: Date;\n}\n","import { ApplicationInsuranceFrequency } from 'enums/ApplicationInsuranceFrequency.enum';\nimport { ApplicationInsuranceStatus } from 'enums/ApplicationInsuranceStatus';\nimport { ApplicationInsuranceType } from 'enums/ApplicationInsuranceType.enum';\nimport { observable } from 'mobx';\nimport Model from '../Model';\nimport { ApplicationInsuranceStore } from '../../stores/ApplicationInsuranceStore';\n\nexport class ApplicationInsurance extends Model {\n static _store: ApplicationInsuranceStore;\n\n @observable id: number;\n\n @observable organisation_id: number;\n\n @observable application_id: string;\n\n @observable frequency: ApplicationInsuranceFrequency;\n\n @observable type: ApplicationInsuranceType;\n\n @observable status: ApplicationInsuranceStatus;\n\n @observable createdAt: string;\n\n @observable updatedAt: string;\n\n @observable start_date: string;\n\n @observable renewal_date: string;\n\n @observable user_id: number;\n\n @observable subscription_id: string;\n}\n","export enum UnitStatus {\n AVAILABLE = 'Available',\n UNAVAILABLE = 'Unavailable',\n}\n\nexport class UnitStatusUtils {\n static getUnitStatus = (v: UnitStatus) => {\n switch (v) {\n case UnitStatus.AVAILABLE: {\n return 'Available';\n }\n case UnitStatus.UNAVAILABLE: {\n return 'Unavailable';\n }\n }\n };\n}\n","import React from 'react';\n\nexport const LazyLoadedLoginPage = React.lazy(() => import('./auth/LoginPage'));\nexport const LazyLoadedSignupPage = React.lazy(() =>\n import('./auth/RegisterPage'),\n);\nexport const LazyLoadedForgotPasswordPage = React.lazy(() =>\n import('./auth/ForgotPasswordPage'),\n);\nexport const LazyLoadedResetPasswordPage = React.lazy(() =>\n import('./auth/ResetPasswordPage'),\n);\nexport const LazyLoadedInvitationSignupPage = React.lazy(() =>\n import('./auth/PHAInvitationSignupPage'),\n);\nexport const LazyLoadedOptOutPage = React.lazy(() =>\n import('./app/OptOutPage'),\n);\nexport const LazyLoadedApplicationsPage = React.lazy(() =>\n import('./app/application/ApplicationsPage'),\n);\nexport const LazyLoadedBuildingsPage = React.lazy(() =>\n import('./app/building/BuildingsPageNew'),\n);\n\n// Remove later\n// export const LazyLoadedOrganizationsPage = React.lazy(() =>\n// import('./app/organization/OrganizationsPageNew'),\n// );\n// export const LazyLoadedPHAsPage = React.lazy(() => import('./app/phas/index'));\n// export const LazyLoadedPHAInvitationsPage = React.lazy(() =>\n// import('./app/PHAInvitations/index'),\n// );\n// export const LazyLoadedPHAProgrammes = React.lazy(() =>\n// import('./app/PHAProgrammes/index'),\n// );\n// export const LazyLoadedAgentsListPage = React.lazy(() =>\n// import('./app/organization/members/OrganizationMembersListPage'),\n// );\n// export const LazyLoadedPhaMemberListPage = React.lazy(() =>\n// import('./app/phas/PhaMembersListPage'),\n// );\nexport const LazyLoadedOrganizationsDataPage = React.lazy(() =>\n import('./app/organization/OrganizationsDataPage'),\n);\nexport const LazyLoadedPHADataPage = React.lazy(() =>\n import('./app/phas/PHADataPage'),\n);\nexport const LazyLoadedPHADetailPage = React.lazy(() =>\n import('./app/phas/PHADetailPage'),\n);\nexport const LazyLoadedEditPHADetailPage = React.lazy(() =>\n import('./app/phas/EditPHADetailPage'),\n);\nexport const LazyLoadedPHACallDetailsPage = React.lazy(() =>\n import('./app/phas/PHACallDetailPage'),\n);\nexport const LazyLoadedViewOrganizationPage = React.lazy(() =>\n import('./app/organization/ViewOrganizationPages'),\n);\nexport const LazyLoadedAddOrganizationPage = React.lazy(() =>\n import('./app/organization/AddOrganizationPage'),\n);\nexport const LazyLoadedSettingPage = React.lazy(() => import('./app/Settings'));\nexport const LazyLoadedSuggestionsPage = React.lazy(() =>\n import('./app/Suggestions'),\n);\nexport const LazyLoadedSuggestionsBankStatementPage = React.lazy(() =>\n import('./app/support/bank-statement/BankStatementManualEntry'),\n);\nexport const LazyLoadedViewSuggestionsPage = React.lazy(() =>\n import('../components/Dashboard/suggestions/UnitDetail'),\n);\nexport const LazyLoadedNewApplicationsPage = React.lazy(() =>\n import('./app/new-applications/index'),\n);\nexport const LazyLoadedOsmosUploaderPage = React.lazy(() =>\n import('./app/OsmosUploader/index'),\n);\n\nexport const LazyLoadedUnitsPage = React.lazy(() => import('./app/UnitsPage'));\nexport const LazyLoadedguestCard = React.lazy(() =>\n import('./app/GuestCardsPage'),\n);\nexport const LazyLoadedReferralsPage = React.lazy(() =>\n import('./app/Referrals/ReferralsPage'),\n);\nexport const LazyLoadedSupportPage = React.lazy(() =>\n import('./app/support/SupportPage'),\n);\nexport const LazyLoadedPropertyPreview = React.lazy(() =>\n import('./preview/PropertyPreview/PropertyPreview'),\n);\nexport const LazyLoadedGuestApply = React.lazy(() =>\n import('./preview/GuestApply/GuestApply'),\n);\nexport const LazyLoadedInsuredApplications = React.lazy(() =>\n import('./app/insuranced-applications/InsurancedApplicationsListPage'),\n);\nexport const LazyLoadedConfigurationPage = React.lazy(() =>\n import('./app/organization/configuration/ConfigurationPage'),\n);\n\nexport const LazyLoadedSystemLogsPage = React.lazy(() =>\n import('./app/system/index'),\n);\n// RENTER ROUTES\nexport const LazyLoadedUploadPhaVoucherPage = React.lazy(() =>\n import('./renter/UploadPhaVoucherPage'),\n);\nexport const LazyLoadedUploadGovtIdPage = React.lazy(() =>\n import('./renter/UploadGovtIdPage'),\n);\nexport const LazyLoadedUploadCoApplicantsPage = React.lazy(() =>\n import('./renter/UploadCoApplicantsPage'),\n);\nexport const LazyLoadedPaymentDetailsPage = React.lazy(() =>\n import('./renter/PaymentDetailsPage'),\n);\nexport const LazyLoadedUploadCRSPage = React.lazy(() =>\n import('./renter/crs/UploadCRSPage'),\n);\nexport const LazyLoadedUploadCRSPageNew = React.lazy(() =>\n import('./renter/crs/UploadCRSPageNew'),\n);\nexport const LazyLoadedUploadBankStatementPage = React.lazy(() =>\n import('./renter/bank-statements/index'),\n);\nexport const LazyLoadedUploadPayStubPage = React.lazy(() =>\n import('./renter/payrolls'),\n);\nexport const LazyLoadedUploadTaxReturnPage = React.lazy(() =>\n import('./renter/UploadTaxReturnPage'),\n);\nexport const LazyLoadedUploadResidenceHistoryPage = React.lazy(() =>\n import('./renter/UploadResidenceHistoryPage'),\n);\nexport const LazyLoadedTermAndConditionPage = React.lazy(() =>\n import('./renter/TermAndConditionPage'),\n);\nexport const LazyLoadedExtendedAppTermAndConditionPage = React.lazy(() =>\n import('./renter/ExtendedAppTermAndConditionPage'),\n);\n\nexport const LazyLoadedExtendedAppAdditionalInformationPage = React.lazy(() =>\n import('./renter/extended-app-additional-info/CombinedApplicationForm'),\n);\n\nexport const LazyLoadedSubmissionPage = React.lazy(() =>\n import('./renter/SubmissionPage'),\n);\n\nexport const LazyLoadedYourInformationPage = React.lazy(() =>\n import('./renter/YourInformationPage'),\n);\n\nexport const LazyLoadedConfirmDetailsPage = React.lazy(() =>\n import('./confirm-details/ConfirmDetailsPage'),\n);\n\nexport const LazyLoadedInsurancePage = React.lazy(() =>\n import('./insurance/insurance-flow/InsurancePage'),\n);\n\nexport const LazyLoadedSignLeasePage = React.lazy(() =>\n import('./insurance/SignLeasePage/SignLeasePage'),\n);\n\nexport const LazyLoadedPendingPayrollsPage = React.lazy(() =>\n import('./app/support/shared/PayrollsDocumentsList'),\n);\n\nexport const LazyLoadedPendingBankStatementsPage = React.lazy(() =>\n import('./app/support/bank-statement/BankStatementsDocumentsList'),\n);\n\nexport const LazyLoadedPendingPropertiesPage = React.lazy(() =>\n import('./app/support/property/PendingPropertiesList'),\n);\n\n// User Routes\nexport const LazyLoadedProfilePage = React.lazy(() =>\n import('../pages/app/Profile/UserProfilePage'),\n);\nexport const LazyLoadedProfileEditPage = React.lazy(() =>\n import('./app/Profile/EditUserProfilePage'),\n);\n\nexport const LazyLoadedGetInsurencePage = React.lazy(() =>\n import('./insurance/assurant-flow/pages/AssurantInsurancePage'),\n);\n\n// Waiting List Routes\nexport const LazyLoadedTenantMonitoringPage = React.lazy(() =>\n import('./app/waiting-list/TenantMonitoringPage'),\n);\n// Apply\nexport const LazyLoadedWaitingListApplyPreview = React.lazy(() =>\n import('./preview/WaitingListApplyPreview/WaitingListApplyPreview'),\n);\nexport const LazyLoadedWaitingListPersonalInformationPage = React.lazy(() =>\n import('./app/waiting-list/apply/PersonalInformationPage'),\n);\nexport const LazyLoadedWaitingListGovtIdentificationPage = React.lazy(() =>\n import('./app/waiting-list/apply/GovtIdentificationPage'),\n);\nexport const LazyLoadedWaitingListBankStatementPage = React.lazy(() =>\n import('./app/waiting-list/apply/UploadBankStatementPage'),\n);\nexport const LazyLoadedWaitingListPaystubPage = React.lazy(() =>\n import('./app/waiting-list/apply/UploadPaystubPage'),\n);\nexport const LazyLoadedTermsAndConditionPage = React.lazy(() =>\n import('./app/waiting-list/apply/TermsAndCondition'),\n);\nexport const LazyLoadedUploadAdditionalDocumentsPage = React.lazy(() =>\n import('./app/waiting-list/apply/UploadAdditionalDocument'),\n);\n\nexport const LazyLoadedWaitListApplicantsPage = React.lazy(() =>\n import('./app/waiting-list/WaitlistApplicantsListPage'),\n);\n\nexport const LazyLoadedWaitlistApplicantInvitesListPage = React.lazy(() =>\n import('./app/waiting-list/invites/WaitlistApplicantInvitesListPage'),\n);\nexport const LazyLoadedWaitlistDataPage = React.lazy(() =>\n import('./app/waiting-list/WaitlistDataPage'),\n);\n","export enum QueuedDocumentUploadStatus {\n NOOP = 'noop',\n PROCESSING = 'processing',\n PROCESSED = 'processed',\n FAILED = 'failed',\n REQUESTED = 're-requested',\n}\n\nexport interface QueuedDoc {\n id: number;\n appfolio_account_id: number;\n status: QueuedDocumentUploadStatus;\n meta: {\n file_name: string;\n report_url: string;\n };\n}\n","import React from 'react';\n\nexport const AuthContext = React.createContext({\n onLogout: (setRedirect = false) => {},\n});\n","import { ApplicationStep } from 'models/ApplicationStep';\nimport { Application } from 'models/entities/ApplicationModel';\nimport ApiRoutes from 'routes/api/ApiRoutes';\nimport WebRoutes from '../routes/web/WebRoutes';\nimport { ApplicationStatusType } from './constants';\n\nexport const ApplicationStepUrlMapping = {\n [ApplicationStep.LANDING]: WebRoutes.app.upload.onboarding,\n [ApplicationStep.TERMS_AND_CONDITIONS]: WebRoutes.app.upload.terms,\n [ApplicationStep.TERMS_AND_CONDITIONS_EXTENDED]:\n WebRoutes.app.upload.termsExtended,\n [ApplicationStep.PHA_VOUCHER]: WebRoutes.app.upload.phaVoucher,\n [ApplicationStep.GOVERNMENT_IDENTIFICATION]: WebRoutes.app.upload.govtId,\n [ApplicationStep.YOUR_INFORMATION]: WebRoutes.app.upload.yourInformation,\n [ApplicationStep.CO_APPLICANTS_AND_GUARANTOR]:\n WebRoutes.app.upload.coapplicants,\n [ApplicationStep.PAYMENT_DETAILS]: WebRoutes.app.upload.paymentDetails,\n [ApplicationStep.CREDIT_REPORTING_SERVICE]: WebRoutes.app.upload.crs,\n [ApplicationStep.BANK_STATEMENTS]: WebRoutes.app.upload.bankStatements,\n [ApplicationStep.EMPLOYMENT_INFORMATION]:\n WebRoutes.app.upload.employmentInformation,\n [ApplicationStep.TAX_DOCUMENTS]: WebRoutes.app.upload.taxReturns,\n [ApplicationStep.RESIDENCE_HISTORY]: WebRoutes.app.upload.residenceHistory,\n [ApplicationStep.ADDITIONAL_INFROMATION]:\n WebRoutes.app.upload.additionalInformationExtended,\n [ApplicationStep.SUBMISSION]: WebRoutes.app.upload.submission,\n [ApplicationStep.CONFIRM_DETAILS]: WebRoutes.documents.confirmDetails,\n [ApplicationStep.INSURANCE_PLAN]: WebRoutes.documents.insurance,\n [ApplicationStep.LEASE_PENDING]: WebRoutes.documents.signLease,\n};\n\nexport const getNextApplicationStepUrl = (\n step: ApplicationStep,\n application: Application,\n) => {\n if (step === ApplicationStep.CONFIRM_DETAILS) {\n if (application.status !== ApplicationStatusType.ACCEPTED) {\n return `/app${ApiRoutes.applications.show(application.id)}`;\n }\n }\n\n if (\n step === ApplicationStep.LEASE_PENDING ||\n step === ApplicationStep.APPLICATION_COMPLETED\n ) {\n return `/app${ApiRoutes.applications.show(application.id)}`;\n }\n\n return ApplicationStepUrlMapping[step]\n .replace(':unitId', application.unit_id)\n .replace(':appId', application.id);\n};\n\nexport const getApplicationStepByPath = (\n path: string,\n application: Application,\n): ApplicationStep => {\n const applicationSteps = Object.keys(ApplicationStepUrlMapping);\n\n for (const step of applicationSteps) {\n if (\n ApplicationStepUrlMapping[step]\n .replace(':unitId', application.unit_id)\n .replace(':appId', application.id) === path\n ) {\n return step as ApplicationStep;\n }\n }\n return ApplicationStep.TERMS_AND_CONDITIONS;\n};\n","import React from 'react';\nimport Logo from '../../assets/logo.png';\n\nconst PageNotFound: React.FC = () => {\n return (\n
\n \"Logo\"\n \n Sorry, we can’t find the page you were looking for!!!\n \n
\n );\n};\n\nexport default PageNotFound;\n","/* eslint-disable @typescript-eslint/ban-types */\nimport { action, computed, observable } from 'mobx';\nimport { isEqual } from 'lodash';\nimport { MatrixError } from './MatrixError';\nimport { Model } from './Model';\nimport { ApiService } from '../services/ApiService';\n\nexport abstract class ModelContainer {\n @observable error: MatrixError;\n\n @action setError = (e: MatrixError): void => {\n this.error = e;\n };\n\n @observable loading = false;\n\n @action setLoading = (loading: boolean): void => {\n this.loading = loading;\n };\n\n @observable loaded = false;\n\n @action setLoaded = (loaded: boolean): void => {\n this.loaded = loaded;\n };\n\n protected url: string;\n\n protected params: { [key: string]: any };\n\n protected requestId: string;\n\n constructor(\n protected modelClass: typeof Model,\n protected apiService = ApiService.getInstance(),\n ) {}\n\n @computed\n get hasError(): boolean {\n return !!this.error;\n }\n\n @action\n async load(\n url: string,\n params?: { [key: string]: any },\n config?: { dataKey?: string; forceRefresh?: boolean },\n dataTransformer?: (data: any) => {},\n ): Promise {\n const dataKey = config?.dataKey === undefined ? 'data' : config.dataKey;\n const forceRefresh = config && config.forceRefresh;\n\n const isSameUrl = this.url === url;\n const areSameParams =\n (!this.params && !params) || isEqual(this.params, params);\n const isSameRequest = isSameUrl && areSameParams;\n\n if (isSameRequest && this.loaded && !forceRefresh) {\n return;\n }\n\n if (this.loading) {\n if (isSameRequest) {\n return;\n }\n this.apiService.cancelRequest(this.requestId);\n }\n\n this.setError(null);\n this.setLoaded(false);\n this.setLoading(true);\n this.url = url;\n this.params = params;\n this.requestId = this.apiService.generateRequsetId();\n\n try {\n const response = await this.apiService.get(\n url,\n params,\n null,\n this.requestId,\n );\n let data = dataKey ? response[dataKey] : response;\n if (dataTransformer) {\n data = dataTransformer(data);\n }\n this.onSuccess(data);\n } catch (e) {\n this.onError(e as MatrixError);\n }\n }\n\n abstract deserialize(data: { [key: string]: any }): void;\n\n @action\n protected onSuccess(response: { [key: string]: any }): void {\n this.setLoaded(true);\n this.setLoading(false);\n this.deserialize(response);\n }\n\n @action\n protected onError(error: MatrixError): void {\n this.setLoaded(true);\n this.setLoading(false);\n this.setError(error);\n throw error;\n }\n}\n","import { observable } from 'mobx';\nimport Model from '../Model';\nimport { PaymentStore } from 'stores/PaymentStore';\n\nexport class Payment extends Model {\n static _store: PaymentStore;\n\n @observable id: number;\n\n @observable application_id: number;\n\n @observable user_id: number;\n\n @observable currency: string;\n\n @observable amount: string;\n\n @observable created_at: string;\n\n @observable updated_at: string;\n\n @observable coupon_id: number;\n}\n","import { observable } from 'mobx';\nimport Model from '../Model';\nimport { GuestCardChatType } from '../../enums/GuestCardChatType.enum';\nimport { GuestCardChatStore } from '../../stores/GuestCardChatStore';\n\nexport class GuestCardChat extends Model {\n static _store: GuestCardChatStore;\n\n @observable id: number;\n\n @observable guest_card_id: number;\n\n @observable type: GuestCardChatType;\n\n @observable message_body: string;\n\n @observable read: boolean;\n\n @observable createdAt: string;\n\n @observable updatedAt: string;\n}\n","import { observable } from 'mobx';\nimport Model from '../Model';\nimport { BuildingImageStore } from \"../../stores/BuildingImageStore\";\n\nexport class BuildingImage extends Model {\n static _store: BuildingImageStore;\n\n @observable id: number;\n\n @observable building_id: number;\n\n @observable url: string;\n}\n","import moment from 'moment';\nimport { User } from '../models/entities/UserModel';\n\nclass AnalyticsService {\n static getInstance(): AnalyticsService {\n return new AnalyticsService();\n }\n\n static getCurrentDate(): string {\n return moment().utc().toString();\n }\n\n static getTimeStamp(): number {\n return moment().utc().unix();\n }\n\n identify(user: User, meta = {}) {\n window.analytics.identify(user.id, {\n ...meta,\n name: user.fullname,\n email: user.email,\n });\n }\n\n track(eventName: string, meta = {}) {\n window.analytics.track(eventName, {\n ...meta,\n event_timestamp: AnalyticsService.getCurrentDate(),\n epoch: AnalyticsService.getTimeStamp(),\n });\n }\n}\n\nexport const analyticsService = AnalyticsService.getInstance();\n","export enum InviteType {\n COAPPLICANT = 'co-applicant',\n RENTER = 'renter',\n GUARANTOR = 'guarantor',\n}\n","export enum ApplicationSource {\n MATRIX_CONNECT = 'matrix_connect',\n MATRIX_CONNECT_FROM_PHA_INVITE = 'matrix_connect_from_pha_invite',\n MATRIX_CONNECT_SUGGESTIONS = 'matrix_connect_suggestions',\n REJECTED_APPLICATION_SUGGESTIONS = 'rejected_application_suggestions',\n FRESH_APPLICATION = 'fresh_application',\n FRESH_APPLICATION_MANUAL = 'fresh_application_manual',\n FRESH_APPLICATION_EXTERNAL = 'fresh_application_external',\n APPFOLIO_APPLICATION_INGESTION = 'appfolio_application_ingestion',\n}\n","import { ManualEntryFormValues } from '../payroll/PayrollManualEntryForm';\n\nexport interface PayrollDetailsValues {\n id?: number;\n employee?: {\n first_name?: string;\n last_name?: string;\n };\n employer?: {\n name?: string;\n address?: {\n line_1?: string;\n line_2?: string;\n city?: string;\n state_code?: string;\n postal_code?: string;\n };\n };\n job?: {\n title?: string;\n start_date?: string;\n end_date?: string;\n };\n pay?: {\n net?: number;\n date?: string;\n };\n tax?: {\n state?: number;\n medicare?: number;\n local?: number;\n social_security?: number;\n federal?: number;\n };\n benefit_insurance?: number;\n gross?: {\n pay?: number;\n ytd_gross?: number;\n };\n}\n\nexport const getFilteredDetails = (details: ManualEntryFormValues[]) =>\n details.map((detail: ManualEntryFormValues) => {\n let newDetail: PayrollDetailsValues = {};\n Object.keys(detail).map((key) => {\n switch (key) {\n case 'id':\n return (newDetail = {\n ...newDetail,\n id: detail.id,\n });\n case 'employee_first_name':\n return (newDetail = {\n ...newDetail,\n employee: {\n ...newDetail.employee,\n first_name: detail.employee_first_name,\n },\n });\n case 'employee_last_name':\n return (newDetail = {\n ...newDetail,\n employee: {\n ...newDetail.employee,\n last_name: detail.employee_last_name,\n },\n });\n case 'employer_name':\n return (newDetail = {\n ...newDetail,\n employer: {\n ...newDetail.employer,\n name: detail.employer_name,\n },\n });\n case 'employer_address_city':\n return (newDetail = {\n ...newDetail,\n employer: {\n ...newDetail.employer,\n address: {\n ...newDetail.employer?.address,\n city: detail.employer_address_city,\n },\n },\n });\n case 'employer_address_state_code':\n return (newDetail = {\n ...newDetail,\n employer: {\n ...newDetail.employer,\n address: {\n ...newDetail.employer?.address,\n state_code: detail.employer_address_state_code,\n },\n },\n });\n case 'employer_address_postal_code':\n return (newDetail = {\n ...newDetail,\n employer: {\n ...newDetail.employer,\n address: {\n ...newDetail.employer?.address,\n postal_code: detail.employer_address_postal_code,\n },\n },\n });\n case 'employer_address_line_1':\n return (newDetail = {\n ...newDetail,\n employer: {\n ...newDetail.employer,\n address: {\n ...newDetail.employer?.address,\n line_1: detail.employer_address_line_1,\n },\n },\n });\n case 'employer_address_line_2':\n return (newDetail = {\n ...newDetail,\n employer: {\n ...newDetail.employer,\n address: {\n ...newDetail.employer?.address,\n line_2: detail.employer_address_line_2,\n },\n },\n });\n case 'job_title':\n return (newDetail = {\n ...newDetail,\n job: { ...newDetail.job, title: detail.job_title },\n });\n case 'job_start_date':\n return (newDetail = {\n ...newDetail,\n job: { ...newDetail.job, start_date: detail.job_start_date },\n });\n case 'job_end_date':\n return (newDetail = {\n ...newDetail,\n job: { ...newDetail.job, end_date: detail.job_end_date },\n });\n case 'net_pay':\n return (newDetail = {\n ...newDetail,\n pay: { ...newDetail.pay, net: detail.net_pay },\n });\n case 'pay_date':\n return (newDetail = {\n ...newDetail,\n pay: { ...newDetail.pay, date: detail.pay_date },\n });\n case 'state_tax':\n return (newDetail = {\n ...newDetail,\n tax: { ...newDetail.tax, state: +detail.state_tax },\n });\n case 'medicare_tax':\n return (newDetail = {\n ...newDetail,\n tax: { ...newDetail.tax, medicare: +detail.medicare_tax },\n });\n case 'local_tax':\n return (newDetail = {\n ...newDetail,\n tax: { ...newDetail.tax, local: +detail.local_tax },\n });\n case 'social_security_tax':\n return (newDetail = {\n ...newDetail,\n tax: {\n ...newDetail.tax,\n social_security: +detail.social_security_tax,\n },\n });\n case 'federal_tax':\n return (newDetail = {\n ...newDetail,\n tax: { ...newDetail.tax, federal: +detail.federal_tax },\n });\n\n case 'gross':\n return (newDetail = {\n ...newDetail,\n gross: { ...newDetail.gross, pay: +detail.gross },\n });\n case 'ytd_gross':\n return (newDetail = {\n ...newDetail,\n gross: { ...newDetail.gross, ytd_gross: +detail.ytd_gross },\n });\n case 'benefit_insurance':\n return (newDetail = {\n ...newDetail,\n benefit_insurance: +detail.benefit_insurance,\n });\n }\n return newDetail;\n });\n return newDetail;\n });\n\nexport const transformPayrollsData = (documents) => {\n documents.data.map((doc) => {\n doc.details.map((detail) => {\n Object.keys(detail).map((key) => {\n detail[key] =\n detail[key] === 'N/A' || detail[key] === -999\n ? undefined\n : detail[key];\n });\n });\n });\n return documents;\n};\n","import React from 'react';\nimport cx from 'classnames';\nimport { Tooltip } from 'antd';\n\nimport './MTButton.scss';\n\n// TODO Maybe needs to add size of a button whether \"small/large/default\" : VS\n\ninterface Props {\n onClick?: (e: any) => void;\n onBlur?: () => void;\n form?: string;\n type?: 'button' | 'submit' | 'reset';\n disabled?: boolean;\n className?: string;\n variant?:\n | 'login'\n | 'primary'\n | 'secondary'\n | 'accept'\n | 'reject'\n | 'edit'\n | 'misc'\n | 'unit'\n | 'unit-secondary';\n uppercaseText?: boolean;\n tooltipText?: string;\n style?: any;\n ignoreTooltip?: boolean;\n}\n\nconst MTButton: React.FC = ({\n variant = 'primary',\n className,\n children,\n uppercaseText = true,\n ignoreTooltip = false,\n tooltipText,\n ...props\n}) => {\n if (ignoreTooltip) {\n return (\n
\n \n {children}\n \n
\n );\n }\n return (\n
\n \n \n {children}\n \n \n
\n );\n};\n\nexport default MTButton;\n","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMRSURBVHgBzVjdbeJAEF4beD46OHdwIH4kngIV5FIBUAFcBYEKclSQUEHSQZwnJP7Tga8D7pXf+z609kFks7NApHySZcs7u/vtzOzszDrKEoPBwEun0z9d1/2x2+2q+JXVD7HAE/BB29t6vX6pVCqBsoAjFZxMJg1MUsdnVdlhvt1ue+Vy+UkibCQ0Go2qjuM84tNTlyEAsa6JWCKh2WyWxQD30EpbXRFY3G+Yu5vP5xex7XE/6SeZTOYZnzn1OQhWq1Utzr+cBDKvSmYirrKPVdNPstBmDqu/EfaNJXVEiGbabDYz4YC9VCrViVM9/K4DkveCMeYYo3Y4hnvYSp+RkIEmusVisZ3kB6VSqUMZZUZOzxkh0pDe1o+CQeYgkxfIqfF4TNNXTXKYt4ZF+Px2D35KVEwt9pQQMFtfKBcpYk+I2lHCOIMo/aqEWC6XvlDUGw6HjYgQtNMSduRq/kplbY4N7M76/s1triziDch/k8pi1TZxrDqdTr+7PCgtOimEhaZUFlvaKrBi7DsXJrix6QT5FuOVSY6al26UEMwg6EOesgOD5/MpUmxDtH84Y+zqOYT2HRnRmQl8bOA/tHEnWrkCAY1mHQSvnboMgX4I+ozRnKeQVpfDU5fnShFosoX6OlhQQyQkVfMCdu4x3cDbuBDINCzSESIgoTdhhxfElWbSCZ8AX+dX3HFGJ8cC/jjYFW2s+MEgKz7hkyA5+UHol8tSRRmAzO5OXQiMYYzw5OLqA9A/Iefb1lZxEMwzp8z+tDfkLe/qekgcK8yz9oQKhcKT+h/cPg0ndmYQ1muHGWOSjW8lh6kJHAOWqMe1sYAMvyNCOqeNS089nk06bzoL7KvPNy+m+ajMPqo6WNbgNY/plGOtFqaZNsB2b6EvS6u43CjQc0Y4p1DkzUYPj4+VxZHfZ4qY6FaX4UnmNheKFqRC0EkPSWV1H5PPzRnbRKV0CF3FdvApLgCESKx4TxIKoQtIUUVrAE3dDAvCJNheWFFbtjciPrZ1/2oXVh8RXunp4sBTxz5DMyzQRhLv51zp/QNIBZvysu5ONwAAAABJRU5ErkJggg==\"","export enum TrackerEventType {\n // Generic Application Actions\n PREVIOUS_BUTTON_CLICKED = 'PREVIOUS_BUTTON_CLICKED',\n NEXT_BUTTON_CLICKED = 'NEXT_BUTTON_CLICKED',\n SKIP_BUTTON_CLICKED = 'SKIP_BUTTON_CLICKED',\n FORM_FIELD_FOCUSED = 'FORM_FIELD_FOCUSED',\n FORM_FIELD_BLURRED = 'FORM_FIELD_BLURRED',\n DIRECTLY_NAVIGATED = 'DIRECTLY_NAVIGATED',\n\n // Auth Actions\n LOG_IN_BUTTON_CLICKED = 'LOG_IN_BUTTON_CLICKED',\n LOGGED_IN_SUCCESSFULLY = 'LOGGED_IN_SUCCESSFULLY',\n SIGN_UP_BUTTON_CLICKED = 'SIGN_UP_BUTTON_CLICKED',\n SIGNED_UP_SUCCESSFULLY = 'SIGNED_UP_SUCCESSFULLY',\n\n // Landing Page Actions\n LETS_BEGIN_BUTTON_CLICKED = 'LETS_BEGIN_BUTTON_CLICKED',\n\n // TnC Page Actions\n TNC_CHECKED = 'TNC_CHECKED',\n TNC_UN_CHECKED = 'TNC_UN_CHECKED',\n\n // Upload Govt ID Page Actions\n GOVERNMENT_ID_UPLOAD_STARTED = 'GOVERNMENT_ID_UPLOAD_STARTED',\n GOVERNMENT_ID_UPLOAD_COMPLETED = 'GOVERNMENT_ID_UPLOAD_COMPLETED',\n GOVERNMENT_ID_UPLOAD_FAILED = 'GOVERNMENT_ID_UPLOAD_FAILED',\n GOVERNMENT_ID_REMOVED = 'GOVERNMENT_ID_REMOVED',\n\n // Your Info Page\n APPLYING_GENERALLY_CHECKED = 'APPLYING_GENERALLY_CHECKED',\n APPLYING_GENERALLY_UN_CHECKED = 'APPLYING_GENERALLY_UN_CHECKED',\n\n // Payment Details Page Actions\n PAYMENT_INITIATED = 'PAYMENT_INITIATED',\n PAYMENT_COMPLETED = 'PAYMENT_COMPLETED',\n PAYMENT_FAILED = 'PAYMENT_FAILED',\n\n // Credit Report Page Actions\n IMPORT_CREDIT_HISTORY_CLICKED = 'IMPORT_CREDIT_HISTORY_CLICKED',\n IMPORT_CREDIT_HISTORY_SUCCESS = 'IMPORT_CREDIT_HISTORY_SUCCESS',\n IMPORT_CREDIT_HISTORY_ERROR = 'IMPORT_CREDIT_HISTORY_ERROR',\n IMPORT_CREDIT_HISTORY_EXIT = 'IMPORT_CREDIT_HISTORY_EXIT',\n\n // Bank Account Page Actions\n BANK_SEARCH_OPENED = 'BANK_SEARCH_OPENED',\n BANK_SEARCH_CLOSED = 'BANK_SEARCH_CLOSED',\n SELECTED_BANK_FROM_LIST = 'SELECTED_BANK_FROM_LIST',\n BANK_NOT_LISTED_CLICKED = 'BANK_NOT_LISTED_CLICKED',\n DIRECTLY_UPLOAD_BANK_STATEMENT_CLICKED = 'DIRECTLY_UPLOAD_BANK_STATEMENT_CLICKED',\n CONNECT_TO_BANK_PROVIDER_CHOSEN = 'CONNECT_TO_BANK_PROVIDER_CHOSEN',\n MANUAL_UPLOAD_BANK_STATEMENT_CHOSEN = 'MANUAL_UPLOAD_BANK_STATEMENT_CHOSEN',\n BANK_CONNECTED_SUCCESSFULLY = 'BANK_CONNECTED_SUCCESSFULLY',\n BANK_CONNECTION_FAILED = 'BANK_CONNECTION_FAILED',\n REMOVE_BANK_CONNECTION_INITIATED = 'REMOVE_BANK_CONNECTION_INITIATED',\n REMOVE_BANK_CONNECTION_SUCCESSFUL = 'REMOVE_BANK_CONNECTION_SUCCESSFUL',\n REMOVE_BANK_CONNECTION_FAILED = 'REMOVE_BANK_CONNECTION_FAILED',\n BANK_STATEMENT_UPLOAD_INITIATED = 'BANK_STATEMENT_UPLOAD_INITIATED',\n BANK_STATEMENT_UPLOAD_SUCCESSFUL = 'BANK_STATEMENT_UPLOAD_SUCCESSFUL',\n BANK_STATEMENT_UPLOAD_FAILED = 'BANK_STATEMENT_UPLOAD_FAILED',\n REMOVE_BANK_STATEMENT_INITIATED = 'REMOVE_BANK_STATEMENT_INITIATED',\n REMOVE_BANK_STATEMENT_SUCCESSFUL = 'REMOVE_BANK_STATEMENT_SUCCESSFUL',\n REMOVE_BANK_STATEMENT_FAILED = 'REMOVE_BANK_STATEMENT_FAILED',\n NO_BANK_ACCOUNT_SELECTED = 'NO_BANK_ACCOUNT_SELECTED',\n NO_BANK_ACCOUNT_UNSELECTED = 'NO_BANK_ACCOUNT_UNSELECTED',\n\n // Income & Employment Page Actions\n EMPLOYER_SEARCH_OPENED = 'EMPLOYER_SEARCH_OPENED',\n EMPLOYER_SEARCH_CLOSED = 'EMPLOYER_SEARCH_CLOSED',\n SELECTED_COMPANY_FROM_LIST = 'SELECTED_COMPANY_FROM_LIST',\n COMPANY_NOT_LISTED_CLICKED = 'COMPANY_NOT_LISTED_CLICKED',\n DIRECTLY_UPLOAD_PAYSTUB_CLICKED = 'DIRECTLY_UPLOAD_PAYSTUB_CLICKED',\n SELF_EMPLOYED_SELECTED = 'SELF_EMPLOYED_SELECTED',\n SELF_EMPLOYED_UN_SELECTED = 'SELF_EMPLOYED_UN_SELECTED',\n CONNECT_TO_PAYROLL_PROVIDER_CHOSEN = 'CONNECT_TO_PAYROLL_PROVIDER_CHOSEN',\n MANUAL_UPLOAD_PAYSTUB_CHOSEN = 'MANUAL_UPLOAD_PAYSTUB_CHOSEN',\n INITIALIZED_CONNECTION_TO_PROVIDER = 'INITIALIZED_CONNECTION_TO_PROVIDER',\n REACHED_PROVIDER_LOGIN_PAGE = 'REACHED_PROVIDER_LOGIN_PAGE',\n STARTED_AUTHENTICATION_AGAINST_PROVIDER = 'STARTED_AUTHENTICATION_AGAINST_PROVIDER',\n DECLARED_AUTHENTICATED_BY_PROVIDER = 'DECLARED_AUTHENTICATED_BY_PROVIDER',\n DECLARED_UN_AUTHENTICATED_BY_PROVIDER = 'DECLARED_UN_AUTHENTICATED_BY_PROVIDER',\n PAYROLL_UPLOAD_INITIATED = 'PAYROLL_UPLOAD_INITIATED',\n PAYROLL_UPLOAD_SUCCESSFUL = 'PAYROLL_UPLOAD_SUCCESSFUL',\n PAYROLL_UPLOAD_FAILED = 'PAYROLL_UPLOAD_FAILED',\n REMOVE_UPLOADED_PAYSTUB_INITIATED = 'REMOVE_UPLOADED_PAYSTUB_INITIATED',\n REMOVE_UPLOADED_PAYSTUB_SUCCESSFUL = 'REMOVE_UPLOADED_PAYSTUB_SUCCESSFUL',\n REMOVE_UPLOADED_PAYSTUB_FAILED = 'REMOVE_UPLOADED_PAYSTUB_FAILED',\n REMOVE_PAYROLL_PROVIDER_INITIATED = 'REMOVE_PAYROLL_PROVIDER_INITIATED',\n REMOVE_PAYROLL_PROVIDER_SUCCESSFUL = 'REMOVE_PAYROLL_PROVIDER_SUCCESSFUL',\n REMOVE_PAYROLL_PROVIDER_FAILED = 'REMOVE_PAYROLL_PROVIDER_FAILED',\n\n // Tax Document Page Actions\n TAX_DOCUMENT_TYPE_CHANGED = 'TAX_DOCUMENT_TYPE_CHANGED',\n TAX_DOCUMENT_UPLOAD_INITIATED = 'TAX_DOCUMENT_UPLOAD_INITIATED',\n TAX_DOCUMENT_UPLOAD_SUCCESSFUL = 'TAX_DOCUMENT_UPLOAD_SUCCESSFUL',\n TAX_DOCUMENT_UPLOAD_FAILED = 'TAX_DOCUMENT_UPLOAD_FAILED',\n REMOVE_TAX_DOCUMENT_INITIATED = 'REMOVE_TAX_DOCUMENT_INITIATED',\n REMOVE_TAX_DOCUMENT_SUCCESSFUL = 'REMOVE_TAX_DOCUMENT_SUCCESSFUL',\n REMOVE_TAX_DOCUMENT_FAILED = 'REMOVE_TAX_DOCUMENT_FAILED',\n\n // Residence History Page Actions\n SAVE_RESIDENCE_HISTORY_INITIATED = 'SAVE_RESIDENCE_HISTORY_INITIATED',\n SAVE_RESIDENCE_HISTORY_SUCCESSFUL = 'SAVE_RESIDENCE_HISTORY_SUCCESSFUL',\n SAVE_RESIDENCE_HISTORY_FAILED = 'SAVE_RESIDENCE_HISTORY_FAILED',\n REMOVE_RESIDENCE_HISTORY_INITIATED = 'REMOVE_RESIDENCE_HISTORY_INITIATED',\n REMOVE_RESIDENCE_HISTORY_SUCCESSFUL = 'REMOVE_RESIDENCE_HISTORY_SUCCESSFUL',\n REMOVE_RESIDENCE_HISTORY_FAILED = 'REMOVE_RESIDENCE_HISTORY_FAILED',\n EDIT_RESIDENCE_HISTORY_BUTTON_CLICKED = 'EDIT_RESIDENCE_HISTORY_BUTTON_CLICKED',\n\n // Submission Page Actions\n SUBMIT_BUTTON_CLICKED = 'SUBMIT_BUTTON_CLICKED',\n}\n","import cx from 'classnames';\nimport {\n AppLogo,\n HaloLogo,\n HPALogo,\n MCENEARNEYLogo,\n MorganLogo,\n} from 'constants/constants';\nimport { Unit } from 'models/entities/UnitModel';\nimport React, { useEffect, useMemo, useState } from 'react';\nimport {\n isOrgHalo,\n isOrgHPA,\n isOrgMcEnearney,\n isOrgMorgan,\n} from 'utils/helpers';\n\ninterface Props {\n className?: string;\n unit?: Unit;\n orgnaisationId?: number;\n}\n\nconst Logo: React.FC = (props: Props) => {\n const { className, unit, orgnaisationId } = props;\n\n const [logo, setLogo] = useState(AppLogo);\n\n const isHaloOrg = useMemo(() => isOrgHalo(unit), [unit]);\n const isHPAOrg = useMemo(() => isOrgHPA(unit), [unit]);\n const isMcEnearneyOrg = useMemo(() => isOrgMcEnearney(unit), [unit]);\n const isMorganOrg = useMemo(() => isOrgMorgan(unit), [unit]);\n\n useEffect(() => {\n if (isHaloOrg) {\n setLogo(HaloLogo);\n }\n if (isHPAOrg) {\n setLogo(HPALogo);\n }\n if (isMcEnearneyOrg) {\n setLogo(MCENEARNEYLogo);\n }\n\n if (isMorganOrg) {\n setLogo(MorganLogo);\n }\n }, [unit, isHaloOrg, isHPAOrg, isMcEnearneyOrg, isMorganOrg]);\n\n return (\n \n );\n};\n\nexport default React.memo(Logo);\n","import React from 'react';\nimport Image from 'assets/loader-bg.png';\nimport Logo from 'assets/logo-white.svg';\nimport HeadingText from '../HeadingText/HeadingText';\n\nimport './Loader.scss';\n\nconst Loader: React.FC = () => (\n
\n
\n
\n \n
\n
\n
\n
\n \"Logo\"\n \n Matrix Rental Solutions\n \n
\n
\n
\n Loading...\n
\n);\n\nexport default Loader;\n","export enum ChatCategory {\n REGULAR = 'regular',\n RENT_PROPOSAL = 'rent_proposal',\n}\n","import { Route } from 'react-router';\nimport React from 'react';\nimport { inject, observer } from 'mobx-react';\nimport { AUTH_STORE } from '../constants/stores';\nimport NotAuthorized from '../components/NotAuthorized/NotAuthorized';\n\nconst AdminOrManagerProtectedRoute: React.FC = ({\n component: Component,\n ...rest\n}) => {\n if (!rest.authStore.loggedInUser.isAdminOrManager) {\n return } />;\n }\n\n return } />;\n};\n\nexport default inject(AUTH_STORE)(observer(AdminOrManagerProtectedRoute));","class StorageService {\n static getInstance(): StorageService {\n return new StorageService();\n }\n\n get getFirstTimeVisited() {\n return localStorage.getItem('first_time_visited');\n }\n\n setFirstTimeVisited = (value: string) => {\n localStorage.setItem('first_time_visited', value);\n };\n}\n\nexport const storageService = StorageService.getInstance();\n","export enum ApplicationInsuranceStatus {\n NONE = 'none',\n PENDING = 'pending',\n ACTIVE = 'active',\n IN_ACTIVE = 'inactive',\n EXPIRED = 'expired',\n UNKNOWN = 'unknown',\n SCHEDULED = 'scheduled',\n IN_FORCE = 'in_force',\n ON_HOLD = 'on_hold',\n REQUEST = 'request',\n}\n","import { action, observable, computed } from 'mobx';\nimport ApiRoutes from '../routes/api/ApiRoutes';\nimport { PaginatedModelList } from '../models/PaginatedModelList';\nimport Store from './Store';\nimport { Building, BuildingType } from '../models/entities/BuildingModel';\nimport { Unit } from '../models/entities/UnitModel';\nimport { ModelItem } from '../models/ModelItem';\nimport { addIncludesToParams, getUnitFullAddress } from '../utils/helpers';\n\nexport enum BuildingStoreIncludes {\n CITIES = 'city',\n STATES = 'state',\n}\n\nexport class BuildingStore extends Store {\n constructor() {\n super();\n Building._store = this;\n }\n\n @observable buildingPaginatedList = new PaginatedModelList(\n Building,\n );\n\n @observable buildingItem = new ModelItem(Building);\n\n @observable buildingUnitsPaginatedList = new PaginatedModelList(Unit);\n\n @observable buildingsDropdownList = new PaginatedModelList(\n Building,\n );\n\n @observable\n tanentMonitoringBuildingsPaginatedList = new PaginatedModelList(\n Building,\n );\n\n @computed get buildings() {\n return this.buildingPaginatedList.items;\n }\n\n @computed get tanentMonitoringBuildings() {\n return this.tanentMonitoringBuildingsPaginatedList.items;\n }\n\n @computed get building() {\n return this.buildingItem.item;\n }\n\n @computed get newBuildings() {\n if (!this.buildingsDropdownList.items.length) {\n this.buildingsDropdownList.load(ApiRoutes.buildings.list);\n }\n return this.buildingsDropdownList?.items;\n }\n\n @action\n async fetchBuildingUnits(params?: { [key: string]: any }) {\n const building = this.get(params.buildings);\n building.units.load(ApiRoutes.units.list, params);\n }\n\n @action\n async fetchBuildings(\n params?: { [key: string]: any },\n forceRefresh?: boolean,\n ) {\n return this.buildingPaginatedList.load(ApiRoutes.buildings.list, params, {\n forceRefresh,\n });\n }\n\n @action\n async fetchBuildingsDirectly(\n params?: { [key: string]: any },\n forceRefresh?: boolean,\n ) {\n return this.apiService.get(ApiRoutes.buildings.list, params, {\n forceRefresh,\n });\n }\n\n @action async fetchBuildingFromId(\n id: number,\n include: BuildingStoreIncludes[] = [],\n appendIntoStore = false,\n ) {\n const promise = this.buildingItem.load(\n ApiRoutes.buildings.show(id),\n addIncludesToParams({}, include),\n );\n if (appendIntoStore) {\n promise.then(() => {\n const alreadyPresent = this.buildingPaginatedList.items.find(\n (item) => item.id === this.buildingItem.item?.id,\n );\n if (!alreadyPresent) {\n this.buildingPaginatedList.appendItem(this.buildingItem.item);\n }\n });\n }\n return promise;\n }\n\n @action async fetchAndAppendSelectedBuilding(\n id: number,\n include: BuildingStoreIncludes[] = [],\n ) {\n await this.buildingItem.load(\n ApiRoutes.buildings.show(id),\n addIncludesToParams({}, include),\n );\n return this.buildingsDropdownList.appendItem(this.buildingItem.item);\n }\n\n @action\n async updateElement(building: Building, body: { [key: string]: any }) {\n const formData = new FormData();\n Object.keys(body).forEach((key) => formData.append(key, body[key]));\n const response = await this.apiService.patch(\n ApiRoutes.buildings.show(building.id),\n formData,\n );\n\n building.updateFromJson(response.data);\n const units = building.units.items;\n if (building.type === BuildingType.MULTI_UNIT) {\n units.map((unit) => {\n unit.updateFromJson({\n id: unit.id,\n unit_full_address: getUnitFullAddress(unit, building),\n });\n });\n } else {\n units[0]?.updateFromJson({\n id: units[0].id,\n status_id: body.status_id,\n monthly_rent: +body.monthly_rent,\n security_deposit: +body?.security_deposit,\n cats_allowed: body?.cats_allowed,\n dogs_allowed: body?.dogs_allowed,\n bedrooms: body?.number_of_bedrooms,\n bathrooms: body?.number_of_bathrooms,\n });\n }\n return building;\n }\n\n @action\n async createBuilding(body: { [key: string]: any }) {\n const formData = new FormData();\n Object.keys(body).forEach((key) => formData.append(key, body[key]));\n const response = await this.apiService.post(\n ApiRoutes.buildings.list,\n formData,\n );\n const building = Building.fromJson(response.data) as Building;\n this.buildingPaginatedList.appendItem(building);\n return building;\n }\n\n @action\n async removeImage(building: Building, body: { [key: string]: any }) {\n const response = await this.apiService.delete(\n ApiRoutes.buildingUnit.deleteImage(+building.id),\n null,\n null,\n null,\n body,\n );\n return response;\n }\n\n @action\n async addImage(building: any, body: { [key: string]: any }) {\n building.setUpdating(true);\n const formData = new FormData();\n Object.keys(body).forEach((key) => formData.append(key, body[key]));\n const response = await this.apiService.post(\n ApiRoutes.buildingUnit.addImage(+building.id),\n formData,\n );\n building.updateFromJson({\n building_images: [...building.building_images?.items, response],\n });\n building.setUpdating(false);\n return response;\n }\n\n @action\n async updateBuildingUnit(buildingId: number, unit: Unit): Promise {\n const building = this.get(buildingId);\n building.units.appendItem(unit);\n }\n\n @action\n async transferProperty(organisation_id: number, building_id: number) {\n return this.apiService.post(\n ApiRoutes.buildings.transferProperty(building_id),\n {\n organisation_id,\n },\n );\n }\n\n @action\n async createQueuedProperty(\n organisationPropertyUrlId: number,\n addresses: any,\n ) {\n return this.apiService.post(\n ApiRoutes.buildings.createQueuedProperty(organisationPropertyUrlId),\n {\n addresses,\n },\n );\n }\n\n @action\n clearStore(): void {\n this.buildingPaginatedList = new PaginatedModelList(Building);\n this.buildingItem = new ModelItem(Building);\n this.buildingUnitsPaginatedList = new PaginatedModelList(Unit);\n this.buildingsDropdownList = new PaginatedModelList(Building);\n this.tanentMonitoringBuildingsPaginatedList = new PaginatedModelList<\n Building\n >(Building);\n }\n}\n","module.exports = __webpack_public_path__ + \"static/media/onboardingpageImage.920993b5.png\";","module.exports = __webpack_public_path__ + \"static/media/loader-bg.9ed84ef7.png\";","module.exports = __webpack_public_path__ + \"static/media/logo-white.20201f0d.svg\";","// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the App load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.0/8 are 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\ntype Config = {\n onSuccess?: (registration: ServiceWorkerRegistration) => void;\n onUpdate?: (registration: ServiceWorkerRegistration) => void;\n};\n\nexport function register(config?: Config) {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener('load', () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n 'This web App is being served cache-first by a service ' +\n 'worker. To learn more, visit https://bit.ly/CRA-PWA',\n );\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl: string, config?: Config) {\n navigator.serviceWorker\n .register(swUrl)\n .then((registration) => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n if (installingWorker == null) {\n return;\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log(\n 'New content is available and will be used when all ' +\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.',\n );\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.');\n\n // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch((error) => {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl: string, config?: Config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl, {\n headers: { 'Service-Worker': 'script' },\n })\n .then((response) => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get('content-type');\n if (\n response.status === 404 ||\n (contentType != null && contentType.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\n .then((registration) => {\n registration.unregister();\n })\n .catch((error) => {\n console.error(error.message);\n });\n }\n}\n","export enum MxConnectionStatus {\n CONNECTED = 'CONNECTED',\n}\n","import React from 'react';\n\nexport const LazyLoadedAuthContainer = React.lazy(() =>\n import('./AuthContainer/AuthContainer'),\n);\nexport const LazyLoadedAppContainer = React.lazy(() =>\n import('./AppContainer/AppContainer'),\n);\nexport const LazyLoadedRenterContainer = React.lazy(() =>\n import('./AppContainer/RenterContainer/RenterContainer'),\n);\n\nexport const LazyLoadedInsuranceContainer = React.lazy(() =>\n import('./InsuranceContainer/InsuranceContainer'),\n);\n\nexport const LazyLoadedUserContainer = React.lazy(() =>\n import('./UserContainer/UserContainer'),\n);\n\nexport const LazyLoadedWaitingListContainer = React.lazy(() =>\n import('./WaitingListContainer/WaitingListContainer'),\n);\n\nexport const LazyLoadedPhaApplyContainer = React.lazy(() =>\n import('./AppContainer/PHAInviteApplyContainer/PHAInviteApplyContainer'),\n);\n","import React from 'react';\nimport { RouteComponentProps } from 'react-router-dom';\nimport { inject, observer } from 'mobx-react';\nimport { notification } from 'antd';\n\nimport profiledummyImage from 'assets/profiledummy.png';\nimport onboadingPageImage from 'assets/onboardingpageImage.png';\nimport ApiRoutes from 'routes/api/ApiRoutes';\nimport { ApplicationStep } from 'models/ApplicationStep';\nimport { getNextApplicationStepUrl } from 'constants/ApplicationStepUrlMapping';\nimport { StepStore } from 'stores/StepStore';\nimport Logo from 'components/Logo/Logo';\n\nimport HeadingText from '../../../../shared/components/HeadingText/HeadingText';\nimport MTButton from '../../../../shared/components/MTButton/MTButton';\nimport {\n AUTH_STORE,\n STEP_STORE,\n UNIT_STORE,\n} from '../../../../constants/stores';\nimport { AuthStore } from '../../../../stores/AuthStore';\nimport './OnboardingPage.scss';\nimport { UnitStore } from '../../../../stores/UnitStore';\nimport { analyticsService } from '../../../../services/AnalyticsService';\nimport { TrackerEventType } from '../../../../enums/TrackerEventType.enum';\n\ninterface RegisterPageProps extends RouteComponentProps {\n [AUTH_STORE]?: AuthStore;\n [UNIT_STORE]?: UnitStore;\n [STEP_STORE]?: StepStore;\n}\n\ninterface RegisterPageState {\n beginClicked: boolean;\n}\n\nclass OnboardingPage extends React.Component<\n RegisterPageProps,\n RegisterPageState\n> {\n constructor(props) {\n super(props);\n\n this.state = {\n beginClicked: false,\n };\n }\n\n componentDidMount() {\n this.unitStore.fetchUnitFromId(this.unitId);\n const currentApplicant = this.authStore.currentApplicant.item;\n if (\n currentApplicant &&\n currentApplicant?.step !== ApplicationStep.LANDING\n ) {\n const { history, authStore } = this.props;\n history.push(\n getNextApplicationStepUrl(\n ApplicationStep[currentApplicant.step.toUpperCase()],\n authStore.loggedInUser.applicationByUnitItem.item,\n ),\n );\n }\n }\n\n get unitId() {\n const { match } = this.props;\n const { params } = match;\n return (params as any).unitId;\n }\n\n get unitStore() {\n const { unitStore } = this.props;\n return unitStore;\n }\n\n get unit() {\n return this.unitStore.unit;\n }\n\n get authStore() {\n const { authStore } = this.props;\n return authStore;\n }\n\n get stepStore() {\n const { stepStore } = this.props;\n return stepStore;\n }\n\n get loggedInUser() {\n return this.authStore.loggedInUser;\n }\n\n welcome = () => {\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 letsBeginHandler = async () => {\n try {\n const { history, authStore } = this.props;\n this.setState({ beginClicked: true });\n await this.loggedInUser.applicationByUnitItem.load(\n ApiRoutes.me.applicationByUnit(+this.unitId),\n );\n\n analyticsService.identify(this.loggedInUser, {\n application_id: this.loggedInUser.applicationByUnit.id,\n organisation_id: this.loggedInUser.applicationByUnit.organisation_id,\n });\n await this.authStore.setCurrentApplicant();\n const currentStep = ApplicationStep.LANDING;\n const currentApplicant = this.authStore.currentApplicant.item;\n const meta = {\n application_id: currentApplicant.application_id,\n organisation_id: currentApplicant.organisation_id,\n };\n analyticsService.track(TrackerEventType.LETS_BEGIN_BUTTON_CLICKED, meta);\n if (currentStep === currentApplicant?.step) {\n const nextStep = await authStore.updateApplicationStep(\n ApplicationStep.LANDING,\n );\n await this.stepStore.setCurrentStep(nextStep);\n history.push(\n getNextApplicationStepUrl(\n nextStep,\n authStore.loggedInUser.applicationByUnitItem.item,\n ),\n );\n }\n if (currentApplicant.step !== currentStep) {\n history.push(\n getNextApplicationStepUrl(\n ApplicationStep[currentApplicant.step.toUpperCase()],\n authStore.loggedInUser.applicationByUnitItem.item,\n ),\n );\n }\n this.setState({ beginClicked: false });\n } catch (e) {\n notification.error({ message: (e as any).message, duration: 2 });\n this.setState({ beginClicked: false });\n }\n };\n\n render() {\n const { beginClicked } = this.state;\n const { authStore } = this.props;\n return (\n
\n
\n
\n
\n \n
\n
\n \n Hello, \n \n {authStore.loggedInUser != null\n ? authStore.loggedInUser.first_name\n : ''}\n \n
\n
\n\n
\n
\n
\n {this.welcome()}\n
\n \n Welcome\n \n

\n Apply to a Unit by following these 4 easy steps\n

\n
\n
\n
\n
\n {/* \n Welcome,{' '}\n {this.props.authStore.loggedInUser != null\n ? this.props.authStore.loggedInUser.first_name\n : ''}\n */}\n {/*
\n

Apply to

\n

{this.unit?.name}

\n

in

\n \n 6\n \n

easy steps.

\n
*/}\n\n
\n
\n \n 01\n \n

\n Upload your Government Identification\n

\n
\n
\n \n 02\n \n

Connect your Bank Details

\n
\n
\n \n 03\n \n

\n Upload Most Recent Paystub or Proof of Benefit\n

\n
\n
\n \n 04\n \n

\n Tell us about your Previous Residence\n

\n
\n
\n \n LET'S BEGIN\n \n
\n
\n\n {/*
\n \"auth-image\"\n
*/}\n
\n
\n
\n \"Banner\"\n
\n
\n
\n
\n );\n }\n}\n\nexport default inject(\n AUTH_STORE,\n UNIT_STORE,\n STEP_STORE,\n)(observer(OnboardingPage));\n","import { AuthContext } from 'context/AuthContext';\nimport React, { useContext, useEffect } from 'react';\nimport { RouteComponentProps } from 'react-router-dom';\n\ntype LogoutComponentProps = RouteComponentProps;\n\nexport const LogoutComponent: React.FC = (props) => {\n const context = useContext(AuthContext);\n\n useEffect(() => {\n context.onLogout(true);\n }, []);\n\n return null;\n};\n","import React from 'react';\nimport { Route } from 'react-router';\n\nimport { authService } from 'services/AuthService';\nimport { LogoutComponent } from '../components/Auth/Logout/LogoutComponent';\n\nconst ProtectedRoute: React.FC = ({ component: Component, ...rest }) => {\n if (!authService.hasAuthToken) {\n return (\n } />\n );\n }\n\n return } />;\n};\n\nexport default ProtectedRoute;\n","import OnboardingPage from 'components/Dashboard/renter/OnboardingPage/OnboardingPage';\nimport PageNotFound from 'components/PageNotFound/PageNotFound';\nimport {\n LazyLoadedAppContainer,\n LazyLoadedInsuranceContainer,\n LazyLoadedRenterContainer,\n LazyLoadedUserContainer,\n LazyLoadedWaitingListContainer,\n} from 'containers';\nimport ProtectedRoute from 'guards/ProtectedRoute';\nimport React from 'react';\nimport { Route, Switch } from 'react-router-dom';\n\nimport WebRoutes from './WebRoutes';\n\nconst ProtectedRoutes = () => {\n return (\n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default React.memo(ProtectedRoutes);\n","import React from 'react';\nimport { Redirect, Switch } from 'react-router-dom';\nimport { Route } from 'react-router';\n\nimport { PublicRoute } from 'guards';\nimport {\n LazyLoadedPropertyPreview,\n LazyLoadedGuestApply,\n LazyLoadedWaitingListApplyPreview,\n LazyLoadedOptOutPage,\n} from 'pages';\nimport {\n LazyLoadedAuthContainer,\n LazyLoadedPhaApplyContainer,\n} from 'containers';\nimport PageNotFound from 'components/PageNotFound/PageNotFound';\nimport WebRoutes from './WebRoutes';\nimport ProtectedRoutes from './ProtectedRoutes';\n\nconst webRoutes = (\n \n \n \n \n \n }\n />\n \n \n \n \n \n);\n\nexport default webRoutes;\n","import { AUTH_STORE } from 'constants/stores';\nimport { inject, observer } from 'mobx-react';\nimport React, { useCallback, useEffect } from 'react';\nimport { AuthStore } from 'stores/AuthStore';\nimport { useIntercom } from 'react-use-intercom';\n\ninterface Props {\n [AUTH_STORE]?: AuthStore;\n}\n\nconst Intercom: React.FC = (props: Props) => {\n const { authStore } = props;\n\n const { update, shutdown, boot } = useIntercom();\n\n const { loggedInUser } = authStore;\n\n const userName = useCallback(() => {\n return loggedInUser?.fullname || 'Anonymous';\n }, [loggedInUser]);\n\n const userEmail = useCallback(() => {\n return loggedInUser?.email || 'Anonymous';\n }, [loggedInUser]);\n\n useEffect(() => {\n if (!loggedInUser) {\n shutdown();\n boot();\n }\n\n if (loggedInUser) {\n update({\n name: userName(),\n email: userEmail(),\n });\n }\n }, [loggedInUser, shutdown, boot, update, userEmail, userName]);\n\n return null;\n};\n\nexport default React.memo(inject(AUTH_STORE)(observer(Intercom)));\n","import React from 'react';\nimport { Helmet } from 'react-helmet';\nimport { REACT_APP_SEGMENT_KEY } from 'utils/secrets';\nimport { useHistory } from 'react-router-dom';\nimport {capitalize} from \"lodash\";\n\nconst Segment = () => {\n const key = REACT_APP_SEGMENT_KEY;\n\n const history = useHistory();\n\n let prevPath = null;\n\n // listen and notify Segment of client-side page updates\n history.listen((location) => {\n if (location.pathname !== prevPath) {\n let splitBy = 'app/';\n if (location?.pathname?.includes('/auth')) {\n splitBy = 'auth/';\n }\n const page = location.pathname?.split(splitBy)?.pop();\n prevPath = location.pathname;\n window.analytics?.page(capitalize(page));\n }\n });\n\n return (\n \n \n \n );\n};\n\nexport default React.memo(Segment);\n","import { AuthContext } from 'context/AuthContext';\nimport React, { Suspense } from 'react';\nimport webRoutes from 'routes/web';\nimport { useHistory } from 'react-router-dom';\nimport WebRoutes from 'routes/web/WebRoutes';\nimport {\n APPLICANT_STORE,\n APPLICATION_LOGS_STORE,\n APPLICATION_STORE,\n APPLICATION_INSURANCE_STORE,\n AUTH_STORE,\n BANK_STORE,\n BUILDING_IMAGE_STORE,\n BUILDING_STORE,\n CITY_STORE,\n DOCUMENT_STORE,\n GUEST_CARD_STORE,\n INSURANCE_STORE,\n INVITE_STORE,\n ORGANIZATION_STORE,\n PAYMENT_STORE,\n RESIDENCE_HISTORY_STORE,\n STATE_STORE,\n STEP_STORE,\n UNIT_IMAGE_STORE,\n UNIT_STORE,\n USER_STORE,\n PHA_STORE,\n} from 'constants/stores';\nimport { ApplicantStore } from 'stores/ApplicantStore';\nimport { ApplicationStore } from 'stores/ApplicationStore';\nimport { AuthStore } from 'stores/AuthStore';\nimport { BankStore } from 'stores/BankStore';\nimport { BuildingImageStore } from 'stores/BuildingImageStore';\nimport { BuildingStore } from 'stores/BuildingStore';\nimport { CityStore } from 'stores/CityStore';\nimport { DocumentStore } from 'stores/DocumentStore';\nimport { GuestCardStore } from 'stores/GuestCardStore';\nimport { InsuranceStore } from 'stores/InsuranceStore';\nimport { InviteStore } from 'stores/InviteStore';\nimport { OrganizationStore } from 'stores/OrganizationStore';\nimport { PaymentStore } from 'stores/PaymentStore';\nimport { ResidenceHistoryStore } from 'stores/ResidenceHistoryStore';\nimport { StateStore } from 'stores/StateStore';\nimport { StepStore } from 'stores/StepStore';\nimport { UnitImageStore } from 'stores/UnitImageStore';\nimport { UnitStore } from 'stores/UnitStore';\nimport { UserStore } from 'stores/UserStore';\nimport { PHAStore } from 'stores/PHAStore';\nimport { ApplicationLogsStore } from 'stores/ApplicationLogsStore';\nimport { ApplicationInsuranceStore } from 'stores/ApplicationInsuranceStore';\nimport { inject } from 'mobx-react';\nimport Loader from 'shared/components/Loader/Loader';\nimport Zendesk from 'react-zendesk';\n\nimport Intercom from './Scripts/Intercom';\nimport Segment from './Scripts/Segment';\nimport { REACT_APP_ENV, ENV_ZENDESK_API_KEY } from '../utils/secrets';\nimport { ENVIRONMENT } from '../constants/constants';\nimport {set} from \"lodash\";\n\ninterface Props {\n [AUTH_STORE]?: AuthStore;\n [APPLICANT_STORE]?: ApplicantStore;\n [APPLICATION_STORE]?: ApplicationStore;\n [APPLICATION_INSURANCE_STORE]?: ApplicationInsuranceStore;\n [APPLICATION_LOGS_STORE]?: ApplicationLogsStore;\n [BANK_STORE]?: BankStore;\n [BUILDING_STORE]?: BuildingStore;\n [BUILDING_IMAGE_STORE]?: BuildingImageStore;\n [CITY_STORE]?: CityStore;\n [DOCUMENT_STORE]?: DocumentStore;\n [INVITE_STORE]?: InviteStore;\n [INSURANCE_STORE]?: InsuranceStore;\n [ORGANIZATION_STORE]?: OrganizationStore;\n [PAYMENT_STORE]?: PaymentStore;\n [RESIDENCE_HISTORY_STORE]?: ResidenceHistoryStore;\n [STATE_STORE]?: StateStore;\n [STEP_STORE]?: StepStore;\n [UNIT_STORE]?: UnitStore;\n [GUEST_CARD_STORE]?: GuestCardStore;\n [UNIT_IMAGE_STORE]?: UnitImageStore;\n [USER_STORE]?: UserStore;\n [PHA_STORE]?: PHAStore;\n}\n\nconst SplashPage: React.FC = (props: Props) => {\n const {\n applicantStore,\n applicationStore,\n applicationLogsStore,\n authStore,\n bankStore,\n buildingImageStore,\n buildingStore,\n cityStore,\n documentStore,\n guestCardStore,\n insuranceStore,\n inviteStore,\n organizationStore,\n paymentStore,\n residenceStore,\n stateStore,\n stepStore,\n unitImageStore,\n unitStore,\n userStore,\n phaStore,\n } = props;\n\n const history = useHistory();\n\n const onLogout = (setRedirect: boolean) => {\n localStorage.clear();\n const state = {};\n if (setRedirect) {\n set(state, 'redirect_to', window.location.pathname);\n }\n history.push({\n pathname: WebRoutes.auth.login,\n state,\n });\n clearStore();\n };\n\n const clearStore = () => {\n applicantStore.clearStore();\n applicationStore.clearStore();\n applicationLogsStore.clearStore();\n authStore.clearStore();\n bankStore.clearStore();\n buildingImageStore.clearStore();\n buildingStore.clearStore();\n cityStore.clearStore();\n documentStore.clearStore();\n guestCardStore.clearStore();\n insuranceStore.clearStore();\n inviteStore.clearStore();\n organizationStore.clearStore();\n paymentStore.clearStore();\n residenceStore.clearStore();\n stateStore.clearStore();\n stepStore.clearStore();\n unitImageStore.clearStore();\n unitStore.clearStore();\n userStore.clearStore();\n phaStore.clearStore();\n };\n\n const ZENDESH_ENVS: string[] = [ENVIRONMENT.DEMO, ENVIRONMENT.PRODUCTION];\n\n return (\n \n }>{webRoutes}\n {ZENDESH_ENVS.includes(REACT_APP_ENV) ? (\n \n ) : (\n \n )}\n \n \n );\n};\n\nexport default inject(\n APPLICANT_STORE,\n APPLICATION_STORE,\n APPLICATION_INSURANCE_STORE,\n APPLICATION_LOGS_STORE,\n AUTH_STORE,\n BANK_STORE,\n BUILDING_IMAGE_STORE,\n BUILDING_STORE,\n CITY_STORE,\n DOCUMENT_STORE,\n GUEST_CARD_STORE,\n INSURANCE_STORE,\n INVITE_STORE,\n ORGANIZATION_STORE,\n PAYMENT_STORE,\n RESIDENCE_HISTORY_STORE,\n STATE_STORE,\n STEP_STORE,\n UNIT_IMAGE_STORE,\n UNIT_STORE,\n USER_STORE,\n PHA_STORE,\n)(SplashPage);\n","import { ModelItem } from 'models/ModelItem';\nimport { action, observable } from 'mobx';\nimport Store from './Store';\nimport { User } from '../models/entities/UserModel';\nimport { PaginatedModelList } from '../models/PaginatedModelList';\nimport ApiRoutes from '../routes/api/ApiRoutes';\n\nexport enum UserStoreIncludes {\n BANKS = 'banks',\n DOCUMENTS = 'documents',\n WAITING_LIST_APPLICANT = 'waiting_list_applicants',\n}\n\nexport class UserStore extends Store {\n constructor() {\n super();\n User._store = this;\n }\n\n @observable user = new ModelItem(User);\n\n @observable userPaginatedList = new PaginatedModelList(User);\n\n @observable userLoading = true;\n\n @action\n setLoadingUser(val: boolean) {\n this.userLoading = val;\n }\n\n @action\n addUserPaginatedListValue(val: User) {\n this.userPaginatedList.appendItem(val);\n }\n\n @action\n async fetchUsers(params?: { [key: string]: any }, forceRefresh?: boolean) {\n return this.userPaginatedList.load(ApiRoutes.admin.users.list, params, {\n forceRefresh,\n });\n }\n\n @action async fetchById(id: number) {\n this.setLoadingUser(true);\n const response = await this.apiService.get(ApiRoutes.admin.users.show(id));\n if (response.data) {\n const alreadyPresent = this.userPaginatedList.items.find(\n (item) => item.id === response.data.id,\n );\n if (!alreadyPresent) {\n const user = User.fromJson(response.data) as User;\n User.getStore().push(user);\n this.userPaginatedList.appendItem(user);\n }\n }\n this.setLoadingUser(false);\n return response.data;\n }\n\n @action showById(id: number) {\n return User.getOrNew(id) as User;\n }\n\n @action async getUserProfile(user_id: number) {\n try {\n await this.user.load(ApiRoutes.user.profile(user_id));\n return this.user.item;\n } catch (e) {\n this.user.setLoaded(false);\n this.user.setLoading(false);\n return e;\n }\n }\n\n @action async updateUserProfile(\n user_id: number,\n body: { [key: string]: any },\n ) {\n const formData = new FormData();\n Object.keys(body).forEach((key) => formData.append(key, body[key]));\n const response = await this.apiService.patch(\n ApiRoutes.user.editProfile(user_id),\n formData,\n );\n const user = User.fromJson(response.data) as User;\n this.user.setItem(user);\n return user;\n }\n\n @action\n clearStore(): void {\n this.userPaginatedList = new PaginatedModelList(User);\n }\n}\n","import { action, observable } from 'mobx';\nimport { ApplicationDocument } from 'models/entities/ApplicationDocument';\nimport { ModelItem } from 'models/ModelItem';\nimport { storageService } from 'services/StorageService';\nimport { ClassifiedDocument } from 'models/ClassifiedDocument';\nimport { Organization } from 'models/entities/OrganizationModel';\nimport { notification } from 'antd';\nimport { WaitingListSteps } from 'models/WaitingListStep';\n\nimport ApiRoutes from '../routes/api/ApiRoutes';\nimport { User } from '../models/entities/UserModel';\nimport { authService } from '../services/AuthService';\nimport { UserStoreIncludes } from './UserStore';\nimport { addIncludesToParams } from '../utils/helpers';\nimport { Bank } from '../models/entities/BankModel';\nimport { ApplicationStep } from '../models/ApplicationStep';\nimport { Store } from './Store';\nimport { MxConnectionStatus } from '../enums/MxConnectionStatus';\nimport { Applicant } from '../models/entities/ApplicantModel';\nimport { Utils } from '../utils/utils';\nimport { PHA } from '../models/entities/PHAModel';\nimport {\n WaitingListApplicant,\n WaitingListEmployer,\n} from '../models/entities/WaitingListApplicantModel';\nimport { BankProviderType } from '../pages/renter/bank-statements/constants';\n\nexport class AuthStore extends Store {\n @observable isImageUploading = false;\n\n @observable loadingSignedUrl = false;\n\n @observable isLoadingLoggedInUser: boolean;\n\n @observable payrollsLoaded = false;\n\n @observable currentApplicant = new ModelItem(Applicant);\n\n @observable primaryApplicant = new ModelItem(Applicant);\n\n @observable waitingListApplicant = new ModelItem(\n WaitingListApplicant,\n );\n\n @observable loggedInUser: User;\n\n @observable loggedInUserOrg: Organization;\n\n @observable loggedInUserPHA: PHA;\n\n @observable fetchPayrolls = true;\n\n @observable isLoadingLoggedInUserOrg = false;\n\n @observable isLoadingLoggedInUserPHA = false;\n\n @action\n toggleFetchPayrolls(val: boolean): void {\n this.fetchPayrolls = val;\n }\n\n @action setIsLoadingLoggedInUser(loading: boolean): void {\n this.isLoadingLoggedInUser = loading;\n }\n\n @action setIsLoadingLoggedInUserOrg(loading: boolean): void {\n this.isLoadingLoggedInUserOrg = loading;\n }\n\n @action setIsLoadingLoggedInUserPHA(loading: boolean): void {\n this.isLoadingLoggedInUserPHA = loading;\n }\n\n @action\n async setLoggedInUser(user: any) {\n this.loggedInUser = User.fromJson(user) as User;\n if (\n this.loggedInUser.isAdmin ||\n this.loggedInUser.isAgent ||\n this.loggedInUser.isManager ||\n this.loggedInUser.isAssociateAgent ||\n this.loggedInUser.isSupport ||\n this.loggedInUser.isCaseManager\n ) {\n // Call the agent org API\n await this.getLoggedInUserOrg();\n }\n\n if (this.loggedInUser.isPHAMember) {\n await this.getLoggedInUserPHA();\n }\n }\n\n @action\n async login(\n email: string,\n password: string,\n unitId?: number,\n inviteId?: number,\n referralCode?: string,\n waitlistInviteId?: number,\n ): Promise {\n const response = await this.apiService.post(ApiRoutes.auth.login, {\n email,\n password,\n apply_for_unit: unitId,\n invite_id: inviteId,\n referral_code: referralCode,\n waitlist_invite_id: waitlistInviteId,\n });\n authService.setAuthToken(response.token);\n\n localStorage.setItem('user_id', response.user.data.id);\n localStorage.setItem('userData', JSON.stringify(response.user.data));\n await this.setLoggedInUser(response.user.data);\n }\n\n @action\n async me(include: UserStoreIncludes[] = []): Promise {\n try {\n this.setIsLoadingLoggedInUser(true);\n const response = await this.apiService.get(\n ApiRoutes.auth.me,\n addIncludesToParams({}, include),\n );\n await this.setLoggedInUser(response.data);\n storageService.setFirstTimeVisited('false');\n } catch (e) {\n authService.clearAuthToken();\n throw e;\n } finally {\n this.setIsLoadingLoggedInUser(false);\n }\n }\n\n async signup(\n first_name: string,\n last_name: string,\n email: string,\n // phone_number: string,\n password: string,\n password_confirmation: string,\n invite_id?: string,\n unit_id?: number,\n ref?: string,\n phaInviteId?: string,\n waitlistInviteId?: number,\n ): Promise {\n const response = await this.apiService.post(ApiRoutes.auth.register, {\n first_name,\n last_name,\n email,\n // phone_number,\n password,\n password_confirmation,\n invite_id,\n apply_for_unit: unit_id,\n referral_code: ref,\n pha_invite_id: phaInviteId,\n waitlist_invite_id: waitlistInviteId,\n });\n authService.setAuthToken(response.token);\n\n localStorage.setItem('user_id', response.user.data.id);\n localStorage.setItem('userData', JSON.stringify(response.user.data));\n await this.setLoggedInUser(response.user.data);\n }\n\n @action\n async resetPassword(\n token: string,\n password: string,\n password_confirmation: string,\n is_first_login = false,\n ) {\n return this.apiService.post(ApiRoutes.auth.resetPassword, {\n token,\n password,\n password_confirmation,\n is_first_login,\n });\n }\n\n @action\n async forgotPassword(email: string) {\n return this.apiService.post(ApiRoutes.auth.forgotPassword, {\n email,\n });\n }\n\n @action\n async deleteBank(bank: Bank): Promise {\n bank.setDeleting(true);\n await this.apiService.delete(ApiRoutes.me.banks.show(bank.id));\n bank.setDeleting(false);\n bank.delete();\n this.currentApplicant.item?.banks.removeItem(bank);\n }\n\n @action\n async updateMe(body: { [key: string]: any }) {\n this.loggedInUser.setUpdating(true);\n const formData = new FormData();\n if (!body.social_security_number && body.credit_history_outside_usa) {\n delete body.social_security_number;\n }\n Object.keys(body).forEach((key) => formData.append(key, body[key]));\n const response = await this.apiService.patch(ApiRoutes.auth.me, formData);\n await this.setLoggedInUser(response.data);\n this.loggedInUser.setUpdating(false);\n return response.data;\n }\n\n @action\n async updateMyMeta(body: { [key: string]: any }) {\n this.loggedInUser.setUpdating(true);\n const response = await this.apiService.put(ApiRoutes.me.updateMeta, body);\n await this.setLoggedInUser(response.data);\n this.loggedInUser.setUpdating(false);\n }\n\n @action\n async getMyDocuments() {\n const response = await this.apiService.get(ApiRoutes.me.listMyDocuments);\n this.currentApplicant.item.documents.deserialize(response.data);\n }\n\n @action\n async getSignedUrl(\n file: File,\n unitId: number,\n docType: string,\n applicationId?: number,\n ): Promise {\n try {\n this.loadingSignedUrl = true;\n const body: any = {\n file_name: file.name,\n doc_type: docType,\n content_type: file.type,\n };\n if (docType === 'building_image') {\n body.building_id = unitId;\n } else {\n body.unit_id = unitId;\n }\n if (applicationId) {\n body.application_id = applicationId;\n }\n const response = await this.apiService.get(ApiRoutes.preSignedUrl, body);\n this.loadingSignedUrl = false;\n return response.url;\n } catch (e) {\n this.loadingSignedUrl = false;\n throw e;\n }\n }\n\n @action\n async upload(\n file,\n unitId: number,\n docType: string,\n onUploadProgress?: any,\n applicationId?: number,\n ): Promise {\n try {\n const newFileName = Utils.getSanitizedFileName(file.name); // File name without special character's\n const newFile = new File([file], newFileName, { type: file.type });\n this.isImageUploading = true;\n const url = await this.getSignedUrl(\n newFile,\n unitId,\n docType,\n applicationId,\n );\n await this.apiService.put(\n url,\n newFile,\n false,\n false,\n {\n 'Content-Type': file.type,\n 'Content-Disposition': `filename=${newFile.name}`,\n },\n '',\n '',\n onUploadProgress,\n );\n this.isImageUploading = false;\n return url.split('?')[0];\n } catch (e) {\n this.isImageUploading = false;\n throw e;\n }\n }\n\n async uploadBankStatements(file) {\n const formData = new FormData();\n formData.append('document', file);\n return this.apiService.post(ApiRoutes.me.uploadBankStatements, formData);\n }\n\n @action\n async deleteFile(key: string): Promise {\n await this.apiService.delete(\n ApiRoutes.me.deleteDocument,\n null,\n null,\n null,\n {\n document_key: key,\n },\n );\n\n if (this.currentApplicant?.item) {\n const updatedDocs =\n this.currentApplicant.item?.documents?.items.filter(\n (doc) => doc.key !== key,\n ) || [];\n this.currentApplicant?.item?.documents?.setItems(updatedDocs);\n }\n\n if (this.waitingListApplicant?.item) {\n const updatedDocs =\n this.waitingListApplicant.item?.documents?.items.filter(\n (doc) => doc.key !== key,\n ) || [];\n this.waitingListApplicant?.item?.documents?.setItems(updatedDocs);\n }\n }\n\n @action\n async updateApplicationStep(\n currentStep: string,\n applicationId?: number,\n doNotUpdateApplicationStep = false,\n byPassChecks = false,\n ): Promise {\n const appId =\n applicationId ?? this.loggedInUser.applicationByUnitItem.item.id;\n const nextStep = await this.apiService.put(\n ApiRoutes.applications.completeStep(appId),\n { step: currentStep, bypass_checks: byPassChecks },\n );\n\n if (!doNotUpdateApplicationStep) {\n this.currentApplicant.item.step = nextStep;\n }\n\n return nextStep;\n }\n\n @action\n async updateWaitingListStep(tenantId: number, step: WaitingListSteps) {\n try {\n const response = await this.apiService.post(\n ApiRoutes.tenantMonitoring.completeStep(tenantId),\n { step },\n );\n if (response?.data) {\n this.waitingListApplicant.item.step = response.data.step;\n this.waitingListApplicant.item.terms_accepted_at =\n response?.data?.terms_accepted_at;\n }\n return this.waitingListApplicant.item.step;\n } catch (e) {\n console.log(e);\n if ((e as any)?.code === 107) {\n this.waitingListApplicant.item.step = (e as any).data.desired_step_to_complete;\n return (e as any).data.desired_step_to_complete;\n }\n return this.waitingListApplicant.item.step;\n }\n }\n\n @action\n async importMxMember(memberGuid: string) {\n const token = localStorage.getItem('auth_token');\n await this.apiService.post(\n ApiRoutes.mx.importMember,\n { mx_member_id: memberGuid },\n {\n Authorization: token,\n },\n );\n }\n\n @action\n async updateBankConnected(memberGuid: string) {\n const token = localStorage.getItem('auth_token');\n const response = await this.apiService.post(\n ApiRoutes.mx.syncMember,\n {\n mx_member_id: memberGuid,\n connection_status: MxConnectionStatus.CONNECTED,\n },\n {\n Authorization: token,\n },\n );\n const bank = Bank.fromJson(response.data.bank.data) as Bank;\n if (this.currentApplicant.item) {\n this.currentApplicant.item.banks.appendItem(bank);\n }\n if (this.waitingListApplicant.item) {\n this.waitingListApplicant.item.banks.appendItem(bank);\n }\n }\n\n @action\n async recordNewTellerConnection(\n connection_token: string,\n institution: string,\n enrollment_id: string,\n ) {\n const response = await this.apiService.post(\n ApiRoutes.teller.recordNewConnection,\n { connection_token, institution, enrollment_id },\n );\n if (response && response.data) {\n const bank = Bank.fromJson(response.data) as Bank;\n if (this.currentApplicant.item) {\n const bankExists = this.currentApplicant.item.banks.items.find(\n (_bank) => _bank.id === bank.id,\n );\n if (bankExists) {\n notification.error({\n message: 'Bank already connected',\n duration: 2.5,\n });\n return;\n }\n this.currentApplicant.item.banks.appendItem(bank);\n }\n if (this.waitingListApplicant.item) {\n const bankExists = this.waitingListApplicant.item.banks.items.find(\n (_bank) => _bank.id === bank.id,\n );\n if (bankExists) {\n notification.error({\n message: 'Bank already connected',\n duration: 2.5,\n });\n return;\n }\n this.waitingListApplicant.item.banks.appendItem(bank);\n }\n }\n }\n\n @action\n async importPayroll(\n companyId: string,\n companyName: string,\n taskId: string,\n ): Promise {\n const response = await this.apiService.post(\n ApiRoutes.payroll.importPayroll,\n {\n company_id: companyId,\n company_name: companyName,\n task_id: taskId,\n },\n );\n this.loggedInUser.payrolls = [\n ...this.loggedInUser.payrolls,\n ...response.payrolls,\n ];\n }\n\n @action\n async updateEmployers(\n id: number,\n payload: {\n employers: WaitingListEmployer[];\n },\n ): Promise {\n await this.apiService.post(\n ApiRoutes.tenantMonitoring.updateEmployers(id),\n payload,\n );\n\n this.waitingListApplicant.item.employers = {\n data: payload.employers,\n };\n }\n\n @action\n async getPayrolls(): Promise {\n if (!this.payrollsLoaded) {\n const response = await this.apiService.get(ApiRoutes.payroll.show);\n if (response.payrolls) {\n this.loggedInUser.payrolls = response.payrolls;\n }\n this.payrollsLoaded = true;\n }\n }\n\n @action\n async createDummyPayroll(): Promise {\n const response = await this.apiService.post(\n ApiRoutes.payroll.zeroIncomePayroll,\n );\n if (response.data) {\n this.loggedInUser.payrolls = [response?.data];\n }\n }\n\n @action\n async deletePayroll(payroll_id: number): Promise {\n this.loggedInUser.payrolls = this.loggedInUser.payrolls.filter(\n (_payroll) => _payroll.id !== payroll_id,\n );\n await this.apiService.delete(ApiRoutes.payroll.showById(payroll_id));\n }\n\n @action\n async deletePayStub(payrollId: number): Promise {\n await this.apiService.delete(ApiRoutes.me.deletePaystub(payrollId));\n this.loggedInUser.payrolls = this.loggedInUser.payrolls.filter(\n (_doc) => _doc.id !== payrollId,\n );\n }\n\n @action\n async deleteAtomicPayroll(payrollId: number): Promise {\n await this.apiService.delete(ApiRoutes.payroll.deletePayroll(payrollId));\n this.loggedInUser.payrolls = this.loggedInUser.payrolls.filter(\n (payroll) => payroll.id !== payrollId,\n );\n }\n\n @action\n async uploadPaystub(\n file,\n companyName: string,\n companyId?: string,\n ): Promise {\n const formData = new FormData();\n formData.append('document', file);\n formData.append('company_name', companyName);\n formData.append('company_mapping_id', companyId);\n const { payroll } = await this.apiService.post(\n ApiRoutes.me.uploadPayStub,\n formData,\n );\n if (this.loggedInUser.payrolls.length === 0) {\n this.loggedInUser.payrolls = [];\n }\n this.loggedInUser.payrolls = [...this.loggedInUser.payrolls, payroll];\n return payroll;\n }\n\n @action\n async getBankStatements(\n id: number,\n ): Promise<\n {\n document: string;\n name: string;\n created_at: string;\n updated_at: string;\n }[]\n > {\n const response = await this.apiService.get(ApiRoutes.me.bankStatements(id));\n return response.data;\n }\n\n @action\n async createDummyBankAccount(): Promise {\n const response = await this.apiService.post(\n ApiRoutes.bank.createDummyAccount,\n );\n if (response.data) {\n this.currentApplicant.item.banks.setItems([response.data]);\n }\n }\n\n @action\n async deleteDummyBankAccount(userId: string): Promise {\n const response = await this.apiService.delete(\n ApiRoutes.bank.deleteDummyAccount,\n );\n if (response.success) {\n this.currentApplicant.item.banks.setItems([]);\n }\n }\n\n @action\n async getApplicationPayrolls(\n id: number,\n ): Promise<{ url: string; created_at: string; updated_at: string }[]> {\n const response = await this.apiService.get(ApiRoutes.me.payrolls(id));\n return response.data;\n }\n\n // Fetch Renter Requested Docs\n @action\n async getRequestedDocuments(): Promise {\n const response = await this.apiService.get(\n ApiRoutes.applicationDocuments.getRequestedDocuments,\n );\n\n return response.data;\n }\n\n @action\n async setCurrentApplicant() {\n if (this.loggedInUser.applicationByUnitItem.item) {\n const currentApplicant = this.loggedInUser.applicationByUnitItem.item.applicants.items.find(\n (_) => _.user_id === this.loggedInUser.id,\n );\n\n this.currentApplicant.setItem(currentApplicant);\n }\n }\n\n @action\n async setPrimaryApplicant() {\n if (this.loggedInUser.applicationByUnitItem.item) {\n const primaryApplicant = this.loggedInUser.applicationByUnitItem.item.applicants.items.find(\n (_) => _.is_primary,\n );\n\n this.primaryApplicant.setItem(primaryApplicant);\n }\n }\n\n @action\n async documentClassification(file: File): Promise {\n const formData = new FormData();\n formData.append('document', file);\n const response = await this.apiService.post(\n ApiRoutes.documentClassification.classifier,\n formData,\n );\n return response.documents as ClassifiedDocument[];\n }\n\n async getTanentMonitoringApplicantsByUserId(userId: number): Promise {\n await this.waitingListApplicant.load(\n ApiRoutes.tenantMonitoring.fetchByUserId(userId),\n );\n }\n\n @action\n async getLoggedInUserOrg(): Promise {\n if (this.loggedInUserOrg) {\n return;\n }\n\n this.setIsLoadingLoggedInUserOrg(true);\n const response = await this.apiService.get(ApiRoutes.me.agentOrg);\n this.loggedInUserOrg = response.data as Organization;\n this.setIsLoadingLoggedInUserOrg(false);\n }\n\n @action\n async createStripePaymentSource(\n source_id: string,\n organisation_id: number,\n ): Promise {\n await this.apiService.post(ApiRoutes.me.createPaymentSource, {\n source_id,\n organisation_id,\n });\n }\n\n @action\n async getLoggedInUserPendingConnectApplicationsCount(): Promise {\n try {\n const response = await this.apiService.get(\n ApiRoutes.me.getPendingConnectApplicationsCount,\n );\n if (response.data) {\n return response.data;\n }\n return 0;\n } catch (e) {\n notification.error({\n message: (e as any)?.message || 'Something went wrong.',\n duration: 2.5,\n });\n return 0;\n }\n }\n\n // eslint-disable-next-line consistent-return\n @action\n async acceptPHAInvite(\n inviteId: string,\n data: {\n type: string;\n first_name: string;\n last_name: string;\n email: string;\n phone_number?: string;\n password: string;\n password_confirmation: string;\n organisation_name?: string;\n registering_as?: string;\n city_name?: string;\n street_name?: string;\n route?: string;\n state_code?: string;\n house_number?: string;\n country?: string;\n zip_code?: string;\n latitude?: number;\n longitude?: number;\n },\n ) {\n const response = await this.apiService.post(\n ApiRoutes.public.phaInvite.acceptInvite(inviteId),\n data,\n );\n\n localStorage.setItem('user_id', response.user.data.id);\n localStorage.setItem('userData', JSON.stringify(response.user.data));\n authService.setAuthToken(response.token);\n await this.setLoggedInUser(response.user.data);\n return response.user.data;\n }\n\n @action\n toggleAnsweredQuestionnaire(val: boolean) {\n this.loggedInUser.answered_questionnaire = val;\n }\n\n @action\n toggleCRSTokenExists(val: boolean) {\n this.loggedInUser.crs_token_exists = val;\n }\n\n @action\n toggleCRSTokenExpired(val: boolean) {\n this.loggedInUser.crs_token_expired = val;\n }\n\n @action\n async getLoggedInUserPHA(): Promise {\n if (this.loggedInUserPHA) {\n return;\n }\n\n this.setIsLoadingLoggedInUserPHA(true);\n const response = await this.apiService.get(ApiRoutes.me.agentPHA);\n this.loggedInUserPHA = response.data as PHA;\n this.setIsLoadingLoggedInUserPHA(false);\n }\n\n @action\n async optOutUser(token: string): Promise {\n const response = await this.apiService.post(\n ApiRoutes.public.optOut,\n undefined,\n { 'x-opt-out-token': token },\n );\n return response.success;\n }\n\n @action\n clearStore(): void {\n this.isImageUploading = false;\n this.loadingSignedUrl = false;\n this.isLoadingLoggedInUser = false;\n this.payrollsLoaded = false;\n this.currentApplicant = new ModelItem(Applicant);\n this.loggedInUser = null;\n this.loggedInUserOrg = null;\n this.loggedInUserPHA = null;\n this.fetchPayrolls = true;\n }\n}\n","import { action, observable } from 'mobx';\nimport ApiRoutes from '../routes/api/ApiRoutes';\nimport { PaginatedModelList } from '../models/PaginatedModelList';\nimport { City } from '../models/entities/CityModel';\nimport Store from './Store';\nimport { ModelItem } from '../models/ModelItem';\n\nexport class CityStore extends Store {\n constructor() {\n super();\n City._store = this;\n }\n\n @observable cityPaginatedList = new PaginatedModelList(City);\n\n @observable cityItem = new ModelItem(City);\n\n @action\n async fetchCities(params?: { [key: string]: any }, forceRefresh?: boolean) {\n return this.cityPaginatedList.load(ApiRoutes.cities.list, params, {\n forceRefresh,\n });\n }\n\n @action\n async fetchCityById(cityId: number, appendIntoStore = false) {\n const promise = this.cityItem.load(ApiRoutes.cities.show(cityId));\n if (appendIntoStore) {\n promise.then(() => {\n const alreadyPresent = this.cityPaginatedList.items.find(item => item.id === this.cityItem.item?.id);\n if (!alreadyPresent) {\n this.cityPaginatedList.appendItem(this.cityItem.item);\n }\n });\n }\n return promise;\n }\n\n @action\n clearStore(): void {\n this.cityPaginatedList = new PaginatedModelList(City);\n }\n}\n","import { observable } from 'mobx';\nimport { ApplicationLogsStore } from 'stores/ApplicationLogsStore';\nimport Model from '../Model';\n\nexport enum ApplicationLogType {\n INVITED = 'invited',\n INVITE_UPDATED = 'invite_updated',\n SIGNUP = 'signup',\n DOCUMENT_ADDED = 'document_added',\n DATA_RAW_SUBMITTED = 'data_raw_submitted',\n DATA_PROCESSED_RECEIVED = 'data_processed_received',\n STATUS_UPDATED = 'status_updated',\n INSURANCE_PLAN = 'insurance_plan',\n APPLICATION_UPDATED = 'application_updated',\n GENERATING_REPORT = 'generating_report',\n REQUESTING_ADDITIONAL_DOCUMENT = 'requesting_additional_document',\n SUBMITTING_ADDITIONAL_DOCUMENT = 'submitting_additional_document',\n CLONED = 'application_cloned',\n}\n\nexport class ApplicationLogs extends Model {\n static _store: ApplicationLogsStore;\n\n @observable id: number;\n\n @observable application_id: number;\n\n @observable organisation_id: number;\n\n @observable type: ApplicationLogType;\n\n @observable logged_by: string;\n\n @observable logged_at: string;\n\n @observable metadata: JSON;\n}\n","import { action, computed, observable } from 'mobx';\n\nimport Store from './Store';\nimport { Unit } from '../models/entities/UnitModel';\nimport { ModelItem } from '../models/ModelItem';\nimport ApiRoutes from '../routes/api/ApiRoutes';\nimport { PaginatedModelList } from '../models/PaginatedModelList';\nimport { DataFinitiPropertyDetail } from '../interfaces/DataFinitiPropertyDetail.interface';\nimport { set } from 'lodash';\nimport { Utils } from '../utils/utils';\nimport { getFormattedDateWithoutTime } from '../utils/helpers';\n\nexport class UnitStore extends Store {\n constructor() {\n super();\n Unit._store = this;\n }\n\n @observable unitList = new PaginatedModelList(Unit);\n\n @observable unitItem = new ModelItem(Unit);\n\n @computed get units() {\n return this.unitList.items;\n }\n\n @computed get unit() {\n return this.unitItem.item;\n }\n\n @action\n async fetchUnits(params?: { [key: string]: any }) {\n return this.unitList.load(ApiRoutes.units.list, params);\n }\n\n @action async fetchUnitFromId(id: number, appendIntoStore = false) {\n const promise = this.unitItem.load(ApiRoutes.units.show(id));\n if (appendIntoStore) {\n promise.then(() => {\n const alreadyPresent = this.unitList.items.find(\n (item) => item.id === this.unitItem.item?.id,\n );\n if (!alreadyPresent) {\n this.unitList.appendItem(this.unitItem.item);\n }\n });\n }\n return promise;\n }\n\n @action async fetchUnitFromInvite(inviteId: number) {\n return this.unitItem.load(ApiRoutes.public.units.show(inviteId));\n }\n\n @action async fetchGuestApplyUnit(unitId: number) {\n return this.unitItem.load(ApiRoutes.public.units.guestApplyUnit(unitId));\n }\n\n @action\n async updateElement(unit: Unit, body: { [key: string]: any }) {\n const { unit_image } = body;\n const formData = new FormData();\n if (unit_image !== null) {\n Object.keys(body).forEach((key) => formData.append(key, body[key]));\n }\n const response = await this.apiService.patch(\n ApiRoutes.units.show(unit.id),\n body.unit_image ? formData : body,\n );\n unit.updateFromJson(response.data);\n return unit;\n }\n\n @action\n async addImage(unit: any, body: { [key: string]: any }) {\n unit.setUpdating(true);\n const formData = new FormData();\n Object.keys(body).forEach((key) => formData.append(key, body[key]));\n const response = await this.apiService.post(\n ApiRoutes.buildingUnit.addImage(+unit.id),\n formData,\n );\n\n unit.updateFromJson({\n unit_images: [...unit?.unit_images?.items, response],\n });\n return response;\n }\n\n @action\n async removeImage(unit: any, body: { [key: string]: any }) {\n const response = await this.apiService.delete(\n ApiRoutes.buildingUnit.deleteImage(+unit.id),\n null,\n null,\n null,\n body,\n );\n unit.updateFromJson({\n unit_images: unit.unit_images?.items.filter(\n (item) => item.id !== body?.property_id,\n ),\n });\n return response;\n }\n\n @action\n async createUnit(body: { [key: string]: any }) {\n const formData = new FormData();\n Object.keys(body).forEach((key) => formData.append(key, body[key]));\n const response = await this.apiService.post(ApiRoutes.units.list, formData);\n const unit = Unit.fromJson(response.data) as Unit;\n // TODO: add only if filters allows.\n this.unitList.appendItem(unit);\n return unit;\n }\n\n @action\n async fetchPropertyDataByAddress(\n address: string,\n city: string,\n country: string,\n ): Promise {\n const body = {\n address,\n city,\n country,\n };\n const response = await this.apiService.post(\n ApiRoutes.units.fetchPropertyDataByAddress,\n body,\n );\n\n return response.data;\n }\n\n @action\n async contactLandlord(\n unit_id: number,\n message: string,\n preferredTourDates?: Date[],\n ) {\n const data = { message };\n if (preferredTourDates.length > 0) {\n const formatedDates = preferredTourDates.map((_d) =>\n getFormattedDateWithoutTime(_d.toString()),\n );\n set(data, ['preferred_tour_dates'], formatedDates);\n }\n await this.apiService.post(ApiRoutes.units.contactLandlord(unit_id), data);\n }\n @action\n clearStore(): void {\n this.unitList = new PaginatedModelList(Unit);\n this.unitItem = new ModelItem(Unit);\n }\n}\n","/* eslint-disable import/no-cycle */\nimport { notification } from 'antd';\nimport { ApplicationDocumentStatus } from 'enums/ApplicationDocumentStatus';\nimport { ApplicationInsuranceStatus } from 'enums/ApplicationInsuranceStatus';\nimport { ChatCategory } from 'enums/ChatCategory.enum';\nimport { action, observable } from 'mobx';\nimport moment from 'moment/moment';\nimport { PHASteps } from 'constants/constants';\nimport { DataFinitiPropertyDetail } from 'interfaces/DataFinitiPropertyDetail.interface';\nimport { ApplicationDocument } from 'models/entities/ApplicationDocument';\nimport { Application } from '../models/entities/ApplicationModel';\nimport { Unit } from '../models/entities/UnitModel';\nimport { ModelItem } from '../models/ModelItem';\nimport { PaginatedModelList } from '../models/PaginatedModelList';\nimport ApiRoutes from '../routes/api/ApiRoutes';\nimport { Store } from './Store';\nimport { RentDeterminationChat } from '../models/entities/RentDeterninationChatModel';\n\nexport class ApplicationStore extends Store {\n constructor() {\n super();\n Application._store = this;\n }\n\n @observable applicationPaginatedList = new PaginatedModelList(\n Application,\n );\n\n @observable\n unassignedApplicationPaginatedList = new PaginatedModelList(\n Application,\n );\n\n @observable\n insurancedApplicationPaginatedList = new PaginatedModelList(\n Application,\n );\n\n @observable applicationItem = new ModelItem(Application);\n\n @observable suggestedUnitList = new PaginatedModelList(Unit);\n\n @observable applicationDocuments: ApplicationDocument[] = [];\n\n @observable fetchApplicationDocuments = true;\n\n @observable fetchRentBasedMAIAReports = true;\n\n @observable showGenerateMAIAScoreOption = true;\n\n @observable isAgentFilterApplied = false;\n\n @observable suggestedUnitStatus: 'processing' | 'processed' | null = null;\n\n get applications(): Application[] {\n return this.applicationPaginatedList.items;\n }\n\n get application(): Application {\n return this.applicationItem.item;\n }\n\n @action\n async fetchApplicationFromId(\n id: number,\n params?: { [key: string]: any },\n forceRefresh?: boolean,\n ) {\n return this.applicationItem.load(ApiRoutes.applications.show(id), params, {\n forceRefresh,\n });\n }\n\n async loadApplications(params?: { [key: string]: any }) {\n return this.applicationPaginatedList.load(\n ApiRoutes.applications.list,\n params,\n );\n }\n\n @action\n async toggleIsAgentFilterApplied(value: boolean) {\n this.isAgentFilterApplied = value;\n }\n\n @action\n async updateApplication(id: number, body: { [key: string]: any }) {\n const application = Application.getOrNew(id) as Application;\n application.setUpdating(true);\n const response = await this.apiService.patch(\n ApiRoutes.applications.show(id),\n body,\n );\n application.updateFromJson(response.data);\n application.setUpdating(false);\n return application;\n }\n\n @action\n async updateApplicationIntoStore(updatedApplication: Application) {\n const application = Application.getOrNew(\n updatedApplication.id,\n ) as Application;\n application.setUpdating(true);\n application.updateFromJson(updatedApplication);\n application.setUpdating(false);\n }\n\n @action\n async shareReport(id: number, name: string, email: string) {\n return this.apiService.post(ApiRoutes.applications.shareReport(id), {\n name,\n email,\n });\n }\n\n @action\n async getPaymentDetailsForApplication(applicationId: number) {\n const response = await this.apiService.get(\n ApiRoutes.applications.paymentDetails(applicationId),\n );\n const application = Application.getOrNew(applicationId) as Application;\n application.updateFromJson({\n ...application,\n fee_processed: response.fee_processed,\n });\n }\n\n @action\n async processApplicationFee(\n application_id: number,\n payment_intent_id: string,\n source_id: string,\n organisation_id: number,\n ): Promise {\n const response = await this.apiService.post(\n ApiRoutes.applications.processFee(application_id),\n { payment_intent_id, source_id, organisation_id },\n );\n const application = Application.getOrNew(application_id) as Application;\n application.updateFromJson(response.data);\n return application;\n }\n\n @action\n async processInternalInsuranceFee(\n application_id: number,\n subscription_id: string,\n source_id: string,\n frequency: string,\n start_date: string,\n organisation_id: number,\n ): Promise {\n const response = await this.apiService.post(\n ApiRoutes.applications.processInternalInsuranceFee(application_id),\n {\n subscription_id,\n source_id,\n frequency,\n start_date,\n organisation_id,\n },\n );\n const application = Application.getOrNew(application_id) as Application;\n application.updateFromJson(response.data);\n return application;\n }\n\n // REMOVED USAGE\n // @action\n // async makeApplicationFeePayment(\n // applicationId: number,\n // sourceId: string,\n // isExisting: boolean,\n // ): Promise {\n // const response = await this.apiService.post(\n // ApiRoutes.applications.makeApplicationFeePayment(applicationId),\n // { source_id: sourceId, is_existing: isExisting },\n // );\n // const application = Application.getOrNew(applicationId) as Application;\n // application.updateFromJson(response.data);\n // return application;\n // }\n\n @action\n async generatePaymentIntent(id: number) {\n return this.apiService.post(\n ApiRoutes.applications.generatePaymentIntent(id),\n );\n }\n\n @action\n async generateSubscriptionPaymentIntent(id: number, data: any) {\n return this.apiService.post(\n ApiRoutes.applications.generateSubscriptionPaymentIntent(id),\n data,\n );\n }\n\n @action\n async getLeaseDocumentUrl(applicationId: number) {\n return this.apiService.get(\n ApiRoutes.applications.getLeaseDocumentUrl(applicationId),\n );\n }\n\n @action\n async getSubscriptionStatus(applicationId: number) {\n return this.apiService.get(\n ApiRoutes.applications.getSubscriptionStatus(applicationId),\n );\n }\n\n @action\n async getPreviousApplication(userId) {\n return this.apiService.get(\n ApiRoutes.applications.getPreviousApplication(userId),\n );\n }\n\n @action\n async submitComps(applicationId: number, body: { [key: string]: any }) {\n const application = Application.getOrNew(applicationId) as Application;\n application.setUpdating(true);\n const response = await this.apiService.post(\n ApiRoutes.applications.submitComps(applicationId),\n body,\n );\n application.updateFromJson(response.data);\n application.setUpdating(false);\n return application;\n }\n\n @action\n async submitPHAComps(applicationId: number, body: { [key: string]: any }) {\n const application = Application.getOrNew(applicationId) as Application;\n application.setUpdating(true);\n const response = await this.apiService.post(\n ApiRoutes.applications.submitPHAComps(applicationId),\n body,\n );\n application.updateFromJson(response.data);\n application.setUpdating(false);\n return application;\n }\n\n @action async updatePhaStep(applicationId: number) {\n const application = Application.getOrNew(applicationId) as Application;\n const response = await this.apiService.post(\n ApiRoutes.applications.pha.updateStep(applicationId),\n );\n application.updateFromJson(response.data);\n return application;\n }\n\n @action\n async getNewApplicationDocumentSignedUrl(\n file: File,\n applicationId: number,\n userId: number,\n docType: string,\n ): Promise {\n const body = {\n file_name: file.name,\n content_type: file.type,\n user_id: userId,\n doc_type: docType,\n };\n\n const response = await this.apiService.post(\n ApiRoutes.applicationDocuments.signedUrlForNew(applicationId),\n body,\n );\n return response;\n }\n\n @action\n async uploadApplicationDocument(\n url: string,\n file: File,\n applicationId: number,\n documentId: number,\n onUploadProgress: any,\n ): Promise {\n await this.apiService.put(\n url,\n file,\n false,\n false,\n {\n 'Content-Type': file.type,\n 'Content-Disposition': `filename=${file.name}`,\n },\n '',\n '',\n onUploadProgress,\n );\n this.toggleFetchApplicationDocument(true);\n return url.split('?')[0];\n }\n\n @action\n async completeApplicationDocumentUpload(\n applicationId: number,\n documentId: number,\n uploadCount?: number,\n ) {\n await this.apiService.post(\n ApiRoutes.applicationDocuments.complete(applicationId, documentId),\n {\n upload_count: uploadCount,\n },\n );\n }\n\n @action\n toggleFetchApplicationDocument(val: boolean) {\n this.fetchApplicationDocuments = val;\n }\n\n @action\n toggleFetchRentBasedMAIAReports(val: boolean) {\n this.fetchRentBasedMAIAReports = val;\n }\n\n @action\n toggleShowGenerateMAIAScoreOption(val: boolean) {\n this.showGenerateMAIAScoreOption = val;\n }\n\n @action\n async getApplicationDocuments(\n applicationId: number,\n status: ApplicationDocumentStatus,\n ) {\n const response = await this.apiService.get(\n ApiRoutes.applicationDocuments.list(applicationId),\n { status },\n );\n if (response.data) {\n this.applicationDocuments = response.data;\n }\n return response.data;\n }\n\n @action\n async updateDocumentDescription(\n applicationId: number,\n docId: number,\n fileUploadId: number,\n desc: string,\n ): Promise {\n await this.apiService.put(\n ApiRoutes.applicationDocumentUploads.applicationDocumentUpload(\n applicationId,\n docId,\n fileUploadId,\n ),\n {\n description: desc,\n },\n );\n this.toggleFetchApplicationDocument(true);\n }\n\n @action\n async confirmDocumentUpload(\n applicationId: number,\n docId: number,\n fileUploadId: number,\n ): Promise {\n await this.apiService.put(\n ApiRoutes.applicationDocumentUploads.confirmUpload(\n applicationId,\n docId,\n fileUploadId,\n ),\n );\n }\n\n @action\n async requestDocument(\n docName: string,\n request_description: string,\n userId: number,\n applicationId: number,\n upload_against?: number,\n ): Promise {\n const response = await this.apiService.post(\n ApiRoutes.applicationDocuments.list(applicationId),\n {\n user_id: userId,\n request_description,\n request_message: docName,\n upload_against,\n },\n );\n if (response.data) {\n this.application.updateFromJson(response.data);\n notification.success({\n message: `${docName} document requested successfully.`,\n duration: 2,\n });\n }\n return response;\n }\n\n @action\n async getExistingApplicationDocumentSignedUrl(\n applicationId: number,\n docId: number,\n file: File,\n ): Promise {\n const body = {\n file_name: file.name,\n content_type: file.type,\n };\n return this.apiService.post(\n ApiRoutes.applicationDocuments.signedUrlForExisting(applicationId, docId),\n body,\n );\n }\n\n @action\n async rejectApplication(applicationId: number, body: { [key: string]: any }) {\n const application = Application.getOrNew(applicationId) as Application;\n application.setUpdating(true);\n const response = await this.apiService.post(\n ApiRoutes.applications.rejectApplication(applicationId),\n body,\n );\n application.updateFromJson(response.data);\n application.setUpdating(false);\n return application;\n }\n\n @action\n async getSuggestedUnits(applicationId: number) {\n const response = await this.apiService.get(\n ApiRoutes.applications.applicationSuggestions.suggestions(applicationId),\n );\n const units = [];\n response.data.units.data.forEach((unit) => {\n units.push(Unit.fromJson(unit) as Unit);\n });\n return {\n score: response.data.score,\n units,\n };\n }\n\n @action\n async getApplicationTermsAndConditions(unitId: number): Promise {\n const response = await this.apiService.get(\n ApiRoutes.units.termsConditions(unitId),\n );\n return response.tc_url;\n }\n\n @action\n async reSubmitApplication(\n applicationId: number,\n unitId: number,\n isDTCSuggestedUnit?: boolean,\n ): Promise {\n const response = await this.apiService.post(\n ApiRoutes.applications.applicationSuggestions.resubmit(applicationId),\n { unit_id: unitId, isDTCSuggestedUnit },\n );\n const application = Application.fromJson(response.data) as Application;\n this.applicationPaginatedList.appendItem(application);\n return application;\n }\n\n @action\n async attachGuestCard(\n application: Application,\n body: { [key: string]: string | any },\n ) {\n const response = await this.apiService.post(\n ApiRoutes.applications.guestCards.attach(application.id),\n body,\n );\n\n // Attach Guest Card to primary applicant\n const primaryApplicant = application.applicants.items.find(\n (applicant) => applicant.is_primary,\n );\n primaryApplicant.guest_card_id = response.data.id;\n primaryApplicant.guestCard = response.data;\n }\n\n @action\n async createGuestCard(application: Application) {\n const response = await this.apiService.post(\n ApiRoutes.applications.guestCards.create(application.id),\n );\n\n // Attach Guest Card to primary applicant\n const primaryApplicant = application.applicants.items.find(\n (applicant) => applicant.is_primary,\n );\n primaryApplicant.guest_card_id = response.data.id;\n primaryApplicant.guestCard = response.data;\n }\n\n @action\n async getQueuedDocs(applicationId: number) {\n const response = await this.apiService.get(\n ApiRoutes.applications.queuedDocs(applicationId),\n );\n return response.data;\n }\n\n @action\n async fetchUnassignedApplications(params?: {\n [key: string]: any;\n }): Promise {\n return this.unassignedApplicationPaginatedList.load(\n ApiRoutes.unAssignedApplication.list,\n params,\n );\n }\n\n @action\n async fetchInsurancedApplications(params?: {\n [key: string]: any;\n }): Promise {\n return this.insurancedApplicationPaginatedList.load(\n ApiRoutes.insurancedApplications.list,\n params,\n );\n }\n\n @action\n async updateApplicationPhaAgent(\n application: Application,\n pha_agent_id: number,\n ): Promise {\n application.setUpdating(true);\n const response = await this.apiService.put(\n ApiRoutes.unAssignedPhaAgentApplication.assignToPhaAgent(application.id),\n {\n pha_agent_id,\n },\n );\n application.setUpdating(false);\n application.updateFromJson(response.data);\n this.unassignedApplicationPaginatedList.removeItem(application);\n this.applicationPaginatedList.setItems([\n application,\n ...this.applicationPaginatedList.items,\n ]);\n }\n\n @action\n async updateApplicationAgent(\n application: Application,\n agent_id: number,\n ): Promise {\n application.setUpdating(true);\n const response = await this.apiService.put(\n ApiRoutes.unAssignedApplication.assignToAgent(application.id),\n {\n agent_id,\n },\n );\n application.setUpdating(false);\n application.updateFromJson(response.data);\n this.unassignedApplicationPaginatedList.removeItem(application);\n if (this.isAgentFilterApplied) {\n this.applicationPaginatedList.removeItem(application);\n } else {\n this.applicationPaginatedList.setItems([\n application,\n ...this.applicationPaginatedList.items,\n ]);\n }\n }\n\n @action async updateApplicationManagerOrAgent(\n application: Application,\n agent_id?: number,\n manager_id?: number,\n ) {\n const response = await this.apiService.put(\n ApiRoutes.unAssignedApplication.assignManagerOrAgent(application.id),\n {\n agent_id,\n manager_id,\n },\n );\n if (response.data) {\n application.updateFromJson(response.data);\n }\n return response;\n }\n\n @action\n async deleteApplicationDocument(\n applicationId: number,\n docId: number,\n fileUploadId: number,\n ) {\n await this.apiService.delete(\n ApiRoutes.applicationDocumentUploads.applicationDocumentUpload(\n applicationId,\n docId,\n fileUploadId,\n ),\n );\n }\n\n @action\n async fetchDTCSuggestions(\n application_id: number,\n params: { [key: string]: any },\n ): Promise {\n const res = await this.apiService.get(\n ApiRoutes.applications.applicationSuggestions.dtcSuggestions(\n application_id,\n ),\n params,\n );\n return res?.data.map((item) => Unit.fromJson(item));\n }\n\n @action\n async fetchDTCSuggestionStatus(application_id: number): Promise {\n const res = await this.apiService.get(\n ApiRoutes.applications.applicationSuggestions.dtcSuggestionsStatus(\n application_id,\n ),\n );\n this.suggestedUnitStatus = res.status;\n return res;\n }\n\n @action\n async fetchCompListings(\n application_id: number,\n ): Promise {\n const res = await this.apiService.get(\n ApiRoutes.applications.dataFinitiComps(application_id),\n );\n return res?.data;\n }\n\n @action\n async getRentBasedMAIAScore(\n applicationId: number,\n body: { [key: string]: any },\n ): Promise {\n const res = await this.apiService.post(\n ApiRoutes.applications.rentBased.getMAIAScore(applicationId),\n body,\n );\n\n return res.score;\n }\n\n @action\n async generateRentBasedMAIAScore(\n applicationId: number,\n body: { [key: string]: any },\n ): Promise {\n try {\n const application = Application.getOrNew(applicationId) as Application;\n const response = await this.apiService.post(\n ApiRoutes.applications.rentBased.generateMAIAReport(applicationId),\n body,\n );\n application.updateFromJson(response.data);\n return response;\n } catch (e) {\n notification.error({\n message: (e as any)?.message || 'Something went wrong',\n duration: 2.5,\n });\n throw e;\n }\n }\n\n @action\n async getRentBasedMAIAReport(applicationId: number): Promise {\n const response: any = await this.apiService.get(\n ApiRoutes.applications.rentBased.getMAIAReport(applicationId),\n );\n this.toggleFetchRentBasedMAIAReports(false);\n if (response.data) {\n this.toggleShowGenerateMAIAScoreOption(false);\n }\n\n return response;\n }\n\n async generateMAIAReport(application_id: number): Promise {\n await this.apiService.post(\n ApiRoutes.applications.generateReport(application_id),\n );\n const application = Application.getOrNew(application_id) as Application;\n application.updateFromJson({\n id: application_id,\n report_url: null,\n matrix_score: null,\n mini_report_url: null,\n });\n }\n\n async triggerMAIAReport(application_id: number): Promise {\n const application = Application.getOrNew(application_id) as Application;\n application.setUpdating(true);\n const response = await this.apiService.post(\n ApiRoutes.applications.triggerMAIAReport(application_id),\n );\n if (response.data) {\n application.updateFromJson(response.data);\n }\n application.setUpdating(false);\n }\n\n @action\n async uploadInsuranceFile(file, applicationId: number): Promise {\n const formData = new FormData();\n formData.append('insurance', file);\n return this.apiService.post(\n ApiRoutes.insurance.upload(applicationId),\n formData,\n );\n }\n\n @action\n async acceptApplicationForUnitData(\n applicationId: number,\n unitDataId: number,\n ): Promise {\n const application = Application.getOrNew(applicationId) as Application;\n application.setUpdating(true);\n const response = await this.apiService.post(\n ApiRoutes.applications.rentBased.acceptByUnitDataId(\n applicationId,\n unitDataId,\n ),\n );\n application.updateFromJson(response.data);\n application.setUpdating(false);\n\n return response;\n }\n\n async fetchInsuranceDetails(applicationId: number) {\n return this.apiService.get(ApiRoutes.insurance.details(applicationId));\n }\n\n @action\n async fetchPaymentSources(showAllCards: boolean, org_id: number) {\n return this.apiService.get(ApiRoutes.me.listPaymentSources, {\n show_all: showAllCards,\n org_id,\n });\n }\n\n @action\n async createExternalInsuranceFeePayment(\n applicationId: number,\n body: { [key: string]: any },\n ) {\n return this.apiService.post(\n ApiRoutes.applications.externalInsuranceFeePayment(+applicationId),\n body,\n );\n }\n\n // REMOVED USAGE\n // @action\n // async createInternalInsuranceFeePayment(\n // applicationId: number,\n // body: { [key: string]: any },\n // ) {\n // return this.apiService.post(\n // ApiRoutes.applications.internalInsuranceFeePayment(+applicationId),\n // body,\n // );\n // }\n\n @action\n async requestInsurance(application: Application) {\n const response = await this.apiService.post(\n ApiRoutes.insurance.request(application.id),\n );\n if (response.data) {\n application.insurance.setItem(response.data);\n }\n return response;\n }\n\n @action\n async updateInsuranceStatus(\n application: Application,\n body: { [key: string]: any },\n showingInsurancedApplication: boolean,\n ) {\n const response = await this.apiService.patch(\n ApiRoutes.insurance.update(+application.id),\n body,\n );\n\n if (response.data) {\n application.insurance.setItem(response.data);\n }\n\n if (showingInsurancedApplication) {\n this.insurancedApplicationPaginatedList.removeItem(application);\n } else if (response.data.status === ApplicationInsuranceStatus.ACTIVE) {\n this.insurancedApplicationPaginatedList.removeItem(application);\n }\n\n return response;\n }\n\n // key in the body should be present in Application Model\n @action\n async updateApplicationValue(\n id: number,\n body: { [key: string]: any },\n ): Promise {\n const application = Application.getOrNew(id) as Application;\n application.setUpdating(true);\n Object.keys(body).forEach((key) => {\n application[key] = body[key];\n });\n application.setUpdating(false);\n return application;\n }\n\n @action\n async deleteInspectionReport(applicationId: number): Promise {\n const response = await this.apiService.delete(\n ApiRoutes.applications.deleteInspectionReport(applicationId),\n );\n if (response.success) {\n this.updateApplicationValue(applicationId, {\n inspection_report_url: null,\n });\n }\n return response;\n }\n\n @action\n async fetchChat(application: Application) {\n const key = `${application.id}_CHAT_LAST_FETCHED_AT`;\n localStorage.setItem(key, moment().utc().toDate().toString());\n await application.chats.load(\n ApiRoutes.applications.rent_determination.chats(application.id).list,\n );\n }\n\n @action\n async loadMoreChats(application: Application) {\n await application.chats.loadNext();\n }\n\n @action\n async sendMessage(\n message_body: string | null,\n category: string,\n application: Application,\n meta = null,\n challenged_against = undefined,\n ) {\n const response = await this.apiService.post(\n ApiRoutes.applications.rent_determination.chats(application.id).create,\n { message_body, category, meta, challenged_against },\n );\n if (response.data) {\n if (category === ChatCategory.RENT_PROPOSAL) {\n application.updateFromJson({\n ...application,\n can_create_new_proposal: false,\n });\n }\n\n application.chats.items.forEach((_chat) => {\n if (_chat.id === challenged_against) {\n _chat.updateFromJson({\n ..._chat,\n meta: { ..._chat.meta, status: 'rejected' },\n });\n }\n });\n }\n const items = [response.data, ...application.chats.items];\n application.chats.setItems(items);\n }\n\n @action\n async markAsRead(application: Application) {\n const applicationId = application.id;\n const key = `${applicationId}_CHAT_LAST_FETCHED_AT`;\n try {\n let lte = localStorage.getItem(key);\n if (!lte) {\n lte = moment().utc().toDate().toString();\n }\n await this.apiService.post(\n ApiRoutes.applications.rent_determination.chats(applicationId)\n .markAsRead,\n { lte },\n );\n application.setUpdating(true);\n application.updateFromJson({\n ...application,\n unread_count: 0,\n });\n application.setUpdating(false);\n localStorage.removeItem(key);\n await this.markChatInStoreAsRead(application);\n } catch (e) {\n console.log(e);\n }\n }\n\n @action\n async markChatInStoreAsRead(application: Application) {\n application.chats.items.forEach((_chat) => {\n if (_chat.application_id === application.id && !_chat.read) {\n _chat?.updateFromJson({\n ..._chat,\n read: true,\n });\n }\n });\n }\n\n @action async acceptProposal(application: Application, chatId: number) {\n application.setUpdating(true);\n const response = await this.apiService.post(\n ApiRoutes.applications.rent_determination\n .chats(application.id)\n .acceptProposal(chatId),\n );\n if (response.data) {\n window.location.reload();\n }\n\n return response;\n }\n\n @action\n async applyCoupon(applicationId: number, coupon_code: string) {\n const response = await this.apiService.post(\n ApiRoutes.applications.applyCoupon(applicationId),\n {\n coupon_code,\n },\n );\n const application = Application.getOrNew(applicationId) as Application;\n application.updateFromJson(response.data);\n return application;\n }\n\n @action\n async updateApplicationUnit(application: Application, unitId: number) {\n const response = await this.apiService.patch(\n ApiRoutes.applications.updateApplicationUnit(application.id),\n {\n unit_id: unitId,\n },\n );\n if (response.data) {\n application.updateFromJson(response.data);\n }\n return response;\n }\n\n @action\n async mergeApplications(data: {\n application_id_x: number;\n application_id_y: number;\n primary_applicant_id: number;\n co_applicant_ids: number[];\n delete_pending_invites: boolean;\n }): Promise {\n const {\n application_id_x,\n application_id_y,\n primary_applicant_id,\n co_applicant_ids,\n delete_pending_invites,\n } = data;\n const response = await this.apiService.post(ApiRoutes.applications.merge, {\n application_id_x,\n application_id_y,\n primary_applicant_id,\n co_applicant_ids,\n delete_pending_invites,\n });\n if (response.data) {\n const application = Application.getOrNew(response.data.id) as Application;\n application.updateFromJson(response.data);\n await this.applicationItem.load(\n ApiRoutes.applications.show(response.data.id),\n {},\n {\n forceRefresh: true,\n },\n );\n return this.applicationItem.item;\n }\n return response.data;\n }\n\n @action\n removeApplicationFromStore(applicationId: number) {\n const newApplications = this.applicationPaginatedList.items.filter(\n (application) => application.id !== applicationId,\n );\n this.applicationPaginatedList.setItems(newApplications);\n }\n\n @action\n async batchCreate(data: {\n personalInformationData: any;\n residenceHistoryData: any;\n questionnaireData: any;\n couponCodeData: any;\n createAppWithExistingUser: boolean;\n dtcRequirements?: any;\n haveAccount?: boolean;\n isEmployed?: boolean;\n subProgramId?: number;\n }) {\n const response = await this.apiService.post(\n ApiRoutes.applications.batchCreate,\n data,\n );\n const application = Application.fromJson(response.data) as Application;\n this.applicationPaginatedList.items.push(application);\n return application;\n }\n\n async deleteDocRequestAndProcess(\n applicationId: number,\n userId: number,\n requestMessage: string,\n ): Promise {\n await this.apiService.post(\n ApiRoutes.applicationDocuments.deleteRequestAndProcess(applicationId),\n { userId, requestMessage },\n );\n }\n\n async deleteDocRequest(\n applicationId: number,\n userId: number,\n requestMessage: string,\n ): Promise {\n await this.apiService.post(\n ApiRoutes.applicationDocuments.deleteRequest(applicationId),\n { userId, requestMessage },\n );\n }\n\n @action\n async getApplicationDetailForUser() {\n return this.applicationItem.load(ApiRoutes.me.moveInDate);\n }\n\n @action\n clearStore(): void {\n for (const application of [\n this.applicationItem.item,\n ...this.applicationPaginatedList.items,\n ]) {\n if (!application) {\n // eslint-disable-next-line no-continue\n continue;\n }\n /**\n * Clearing Application Chats\n */\n application.chats = new PaginatedModelList(\n RentDeterminationChat,\n );\n }\n this.applicationPaginatedList = new PaginatedModelList(\n Application,\n );\n this.unassignedApplicationPaginatedList = new PaginatedModelList<\n Application\n >(Application);\n this.insurancedApplicationPaginatedList = new PaginatedModelList<\n Application\n >(Application);\n this.applicationItem = new ModelItem(Application);\n this.suggestedUnitList = new PaginatedModelList(Unit);\n this.fetchApplicationDocuments = false;\n }\n}\n","import { observable } from 'mobx';\nimport Model from 'models/Model';\nimport { OrganisationPropertyUrlStatusType } from 'enums/OrganisationPropertyUrlStatusType';\nimport { Organization } from './OrganizationModel';\n\nexport class OrganisationPropertyUrl extends Model {\n @observable id: number;\n\n @observable organisation_id: number;\n\n @observable user_id: number;\n\n @observable file_url: string;\n\n @observable status: OrganisationPropertyUrlStatusType;\n\n @observable meta: JSON;\n\n @observable createdAt: Date;\n\n @observable updatedAt: Date;\n\n @observable organisation: Organization;\n}\n","import { action, observable } from 'mobx';\nimport { OrganisationPropertyUrl } from 'models/entities/OrganisationPropertyUrlModel';\nimport { ModelList } from 'models/ModelList';\nimport Store from './Store';\nimport ApiRoutes from '../routes/api/ApiRoutes';\nimport { PaginatedModelList } from '../models/PaginatedModelList';\nimport { Organization } from '../models/entities/OrganizationModel';\nimport { User } from '../models/entities/UserModel';\nimport { ModelItem } from '../models/ModelItem';\nimport { Utils } from '../utils/utils';\n\nexport class OrganizationStore extends Store {\n constructor() {\n super();\n Organization._store = this;\n }\n\n @observable organizationPaginatedList = new PaginatedModelList(\n Organization,\n );\n\n @observable organizationMembersPaginatedList = new PaginatedModelList(\n User,\n );\n\n @observable organizationManagersPaginatedList = new PaginatedModelList(\n User,\n );\n\n @observable organizationAgentsPaginatedList = new PaginatedModelList(\n User,\n );\n\n @observable organizationItem = new ModelItem(Organization);\n\n @observable propertyFileDetailsGroupedByOrg = new ModelList<\n OrganisationPropertyUrl\n >(OrganisationPropertyUrl);\n\n @observable organisationPropertyUrls = new ModelList(\n OrganisationPropertyUrl,\n );\n\n @observable brandLogo: string;\n\n @observable loadingMembers = true;\n\n @observable selectedOrgIdForMemberFilter = undefined;\n\n get organizations() {\n return this.organizationPaginatedList.items;\n }\n\n @action\n setLoadingMembers(val: boolean) {\n this.loadingMembers = val;\n }\n\n @action\n setSelectedOrgId(val: number | undefined) {\n this.selectedOrgIdForMemberFilter = val;\n }\n\n @action\n async loadOrganizations(params?: { [key: string]: any }) {\n return this.organizationPaginatedList.load(\n ApiRoutes.organizations.list,\n params,\n );\n }\n\n @action\n async fetchOrganizationFromId(id: number, params?: { [key: string]: any }) {\n const organization = this.organizations.find((org) => org.id === id);\n if (organization) {\n this.organizationItem.setItem(organization);\n return organization;\n }\n await this.organizationItem.load(ApiRoutes.organizations.show(id), params);\n\n this.organizationPaginatedList.appendItem(this.organizationItem.item);\n\n return this.organizationItem.item;\n }\n\n @action\n async createOrganization(body: {\n [key: string]: any;\n }): Promise {\n const response = await this.apiService.post(\n ApiRoutes.organizations.list,\n body,\n );\n const organization: Organization = Organization.fromJson(\n response.data,\n ) as Organization;\n this.organizationPaginatedList.appendItem(organization);\n this.organizationItem.setItem(organization);\n return organization;\n }\n\n @action\n async updateOrganization(\n organizationId: number,\n body: { [key: string]: any },\n ): Promise {\n const organization = Organization.getOrNew(organizationId) as Organization;\n organization.setUpdating(true);\n const response = await this.apiService.patch(\n ApiRoutes.organizations.show(organization.id),\n body,\n );\n organization.updateFromJson(response.data);\n organization.setUpdating(false);\n return organization;\n }\n\n @action\n async getBrandLogo(organitionId: number): Promise {\n const response = await this.apiService.get(\n ApiRoutes.organizations.getBrandUrl(organitionId),\n );\n this.brandLogo = response.logo;\n }\n\n @action\n async loadOrganizationMembers(orgId: number, params?: any) {\n this.setLoadingMembers(true);\n await this.organizationMembersPaginatedList.load(\n ApiRoutes.organizations.members.list(orgId),\n params,\n );\n this.setLoadingMembers(false);\n }\n\n @action\n async createOrgMember(orgId: number, data: any) {\n const response = await this.apiService.post(\n ApiRoutes.organizations.members.list(orgId),\n data,\n );\n if (this.selectedOrgIdForMemberFilter === orgId) {\n const member = User.fromJson(response.data) as User;\n this.organizationMembersPaginatedList.appendItem(member);\n }\n }\n\n @action\n async updateOrgMember(orgId: number, memberId: number, data: any) {\n const response = await this.apiService.put(\n ApiRoutes.organizations.members.update(orgId, memberId),\n data,\n );\n this.organizationMembersPaginatedList.items\n .find((_item) => _item.id === memberId)\n .updateFromJson(response.data);\n }\n\n @action\n async deleteOrgMember(orgId: number, memberId: number, isOwner = false) {\n await this.apiService.delete(\n ApiRoutes.organizations.members.update(orgId, memberId),\n );\n if (isOwner) {\n this.organizationMembersPaginatedList = new PaginatedModelList(\n User,\n );\n const newOrgs = this.organizationPaginatedList.items.filter(\n (_org) => _org.id !== orgId,\n );\n this.organizationPaginatedList.setItems(newOrgs);\n this.setSelectedOrgId(newOrgs[0].id);\n } else {\n const newItems = this.organizationMembersPaginatedList.items.filter(\n (_item) => _item.id !== memberId,\n );\n this.organizationMembersPaginatedList.setItems(newItems);\n }\n }\n\n async generateApiKey(organisationId: number): Promise {\n const response = await this.apiService.post(\n ApiRoutes.organizations.generateApiKey(organisationId),\n );\n\n const organisation = this.organizationPaginatedList.items.filter(\n (_item) => _item.id === organisationId,\n )[0];\n organisation.api_key = response.api_key;\n }\n\n async deleteApiKey(organisationId: number): Promise {\n const response = await this.apiService.delete(\n ApiRoutes.organizations.deleteApiKey(organisationId),\n );\n\n const organisation = this.organizationPaginatedList.items.filter(\n (_item) => _item.id === organisationId,\n )[0];\n organisation.api_key = response.api_key;\n }\n\n @action\n async validateCoupon(organisation_id: number, coupon_code: string) {\n return this.apiService.post(ApiRoutes.coupons.validate, {\n organisation_id,\n coupon_code,\n });\n }\n\n @action\n async fetchCRSIframeUrlForOrganisation(\n organisation_id: number,\n unit_id?: number,\n ) {\n let url = ApiRoutes.crs.authenticationIframeUrl(organisation_id);\n if (unit_id) {\n url += `?unit_id=${unit_id}`;\n }\n const response = await this.apiService.get(url);\n\n if (response.url) {\n return response.url;\n }\n\n return '';\n }\n\n @action\n async fetchCRSIframeUrlForRenter(\n organisation_id: number,\n unit_id: number,\n user_id: number,\n ) {\n let url = ApiRoutes.crs.authenticationIframeUrlForRenter(\n organisation_id,\n user_id,\n );\n if (unit_id) {\n url += `?unit_id=${unit_id}`;\n }\n const response = await this.apiService.get(url);\n\n if (response.url) {\n return response.url;\n }\n\n return '';\n }\n\n @action\n async checkIfCRSReportExists(\n organisation_id: number,\n unit_id: number,\n user_id: number,\n ) {\n const response: {\n report_exists: boolean;\n } = await this.apiService.get(\n ApiRoutes.crs.checkIfReportExists(organisation_id, unit_id, user_id),\n );\n\n return response.report_exists;\n }\n\n @action\n async checkIfReportIsShared(organisation_id: number, unit_id: number) {\n const response: { shared: boolean } = await this.apiService.get(\n ApiRoutes.crs.checkShareStatus(organisation_id, unit_id),\n );\n\n return response.shared;\n }\n\n @action\n async checkIfReportIsBeingUpdated() {\n const response: {\n refreshing_report: boolean;\n } = await this.apiService.get(ApiRoutes.crs.checkRefreshStatus);\n\n return response.refreshing_report;\n }\n\n @action\n async fetchViewCRSIframeUrlForOrganisation(\n organisation_id: number,\n unit_id: number,\n user_id: number,\n ) {\n const response = await this.apiService.get(\n ApiRoutes.crs.viewReportIframeUrl(organisation_id, unit_id, user_id),\n );\n\n if (response.url) {\n return response.url;\n }\n\n return '';\n }\n\n @action\n async uploadPropertyCSV(file: any) {\n const newFileName = Utils.getSanitizedFileName(file.name); // File name without special character's\n const newFile = new File([file], newFileName, { type: file.type });\n const { url } = await this.apiService.get(\n ApiRoutes.organizations.getPropertySignedUrl,\n );\n\n if (url) {\n await this.apiService.put(\n url,\n newFile,\n false,\n false,\n {\n 'Content-Type': file.type,\n 'Content-Disposition': `filename=${newFile.name}`,\n },\n '',\n '',\n );\n return url.split('?')[0];\n }\n\n return '';\n }\n\n @action\n async appendPropertyUrl(url: string): Promise {\n const response = await this.apiService.put(\n ApiRoutes.organizations.appendPropertyUrl,\n { url },\n );\n\n if (response.success) {\n return response.success;\n }\n\n return false;\n }\n\n @action\n async fetchPropertyUrls() {\n const response = await this.apiService.get(\n ApiRoutes.organizations.getPendingPropertyFilesGroupedByOrg,\n );\n if (response?.data) {\n this.propertyFileDetailsGroupedByOrg.setItems(response?.data);\n }\n }\n\n @action\n async fetchPropertyUrlsByOrgId(\n orgId: number,\n ): Promise {\n const propertyUrls = this.organisationPropertyUrls.items.filter(\n (item) => item.organisation_id === orgId,\n );\n if (!propertyUrls.length) {\n const response = await this.apiService.get(\n ApiRoutes.organizations.getPropertyUrlsByOrgId(orgId),\n );\n if (response?.data) {\n this.organisationPropertyUrls.appendItems(response?.data);\n }\n return response.data;\n }\n return propertyUrls;\n }\n\n @action async rejectOrganisationPropertyUrl(\n organisationPropertyUrlId: number,\n ): Promise {\n const response = await this.apiService.post(\n ApiRoutes.organizations.rejectOrganisationPropertyUrl(\n organisationPropertyUrlId,\n ),\n );\n if (response.data) {\n return response?.data;\n }\n return null;\n }\n\n @action\n clearStore(): void {\n this.organizationPaginatedList = new PaginatedModelList(\n Organization,\n );\n this.organizationItem = new ModelItem(Organization);\n this.brandLogo = undefined;\n this.organizationMembersPaginatedList = new PaginatedModelList(User);\n this.organizationManagersPaginatedList = new PaginatedModelList(User);\n this.organizationAgentsPaginatedList = new PaginatedModelList(User);\n }\n}\n","import { observable } from 'mobx';\nimport Model from '../Model';\nimport { InviteStore } from '../../stores/InviteStore';\nimport { InviteType } from '../../enums/InviteType';\nimport { User } from './UserModel';\n\nexport class Invite extends Model {\n static _store: InviteStore;\n\n @observable id: number;\n\n @observable unit_id: number;\n\n @observable renter_name: string;\n\n @observable renter_email: string;\n\n @observable note?: string;\n\n @observable invite_type: InviteType;\n\n @observable created_at: string;\n\n @observable updated_at: string;\n\n @observable accepted: boolean;\n\n @observable application_id: number;\n\n @observable inviter: User;\n\n @observable can_resend_invite: boolean;\n\n @observable last_attempt_at: Date;\n}\n","import { action, observable } from 'mobx';\nimport { getCapitalizeString, removeObjectEmptyValues } from 'utils/helpers';\nimport Store from './Store';\nimport { PaginatedModelList } from '../models/PaginatedModelList';\nimport ApiRoutes from '../routes/api/ApiRoutes';\nimport { Invite } from '../models/entities/InviteModel';\nimport { InviteType } from '../enums/InviteType';\nimport { notification } from 'antd';\n\nexport class InviteStore extends Store {\n constructor() {\n super();\n Invite._store = this;\n }\n\n @observable invitePaginatedList = new PaginatedModelList(Invite);\n\n get invites() {\n return this.invitePaginatedList.items;\n }\n\n @action\n async loadInvites(params?: { [key: string]: any }) {\n return this.invitePaginatedList.load(ApiRoutes.invites.list, params);\n }\n\n @action\n async inviteRenter(\n unitId: number,\n name: string,\n renterEmail: string,\n inviteType?: InviteType,\n note?: string,\n applicationId?: number,\n guestCardId?: number,\n ) {\n const body = removeObjectEmptyValues({\n unit_id: unitId,\n renter_name: name,\n renter_email: renterEmail,\n note,\n invite_type: inviteType,\n application_id: applicationId,\n guest_card_id: guestCardId,\n });\n try {\n const response = await this.apiService.post(ApiRoutes.invites.list, body);\n\n const invite = Invite.fromJson(response.data) as Invite;\n this.invitePaginatedList.appendItem(invite);\n notification.success({\n message: 'Invite Sent',\n duration: 2,\n });\n\n if (response?.application?.data) {\n return { invite, application: response.application.data };\n }\n\n return { invite };\n } catch (e) {\n const error = getCapitalizeString(e?.errors?.renter_name?.[0]);\n notification.error({\n message: error ? `Error: ${error}` : e?.message,\n duration: 2,\n });\n\n return null;\n }\n }\n\n @action\n async invitePropertyRenter(\n unitId: number,\n name: string,\n renterEmail: string,\n inviteType?: InviteType,\n note?: string,\n guestCardId?: number,\n guestCardUrl?: string,\n ) {\n const body = removeObjectEmptyValues({\n unit_id: unitId,\n renter_name: name,\n renter_email: renterEmail,\n note,\n invite_type: inviteType,\n guest_card_id: guestCardId,\n guest_card_url: guestCardUrl,\n });\n\n const response = await this.apiService.post(ApiRoutes.invites.list, body);\n\n const invite = Invite.fromJson(response.data) as Invite;\n this.invitePaginatedList.appendItem(invite);\n return invite;\n }\n\n @action\n async resendInvite(invite: Invite): Promise {\n const response = await this.apiService.post(\n ApiRoutes.invites.resend(invite.id),\n );\n if (response.success) {\n invite.updateFromJson({\n ...invite,\n can_resend_invite: false,\n last_attempt_at: new Date(),\n });\n }\n return response;\n }\n\n @action\n async deleteInvite(invite: Invite): Promise<{ application: any }> {\n try {\n const response = await this.apiService.delete(\n ApiRoutes.invites.show(invite.id),\n );\n if (response?.success) {\n this.invitePaginatedList.removeItem(invite);\n return { application: response.application.data };\n }\n return response;\n } catch (e) {\n const error = getCapitalizeString(e?.errors?.renter_name?.[0]);\n notification.error({\n message: error ? `Error: ${error}` : e?.message,\n duration: 2,\n });\n return null;\n }\n }\n\n @action\n clearStore(): void {\n this.invitePaginatedList = new PaginatedModelList(Invite);\n }\n}\n","import { action, observable } from 'mobx';\nimport ApiRoutes from '../routes/api/ApiRoutes';\nimport { PaginatedModelList } from '../models/PaginatedModelList';\nimport Store from './Store';\nimport { State } from '../models/entities/StateModel';\nimport { ModelItem } from '../models/ModelItem';\n\nexport class StateStore extends Store {\n constructor() {\n super();\n State._store = this;\n }\n\n @observable statesPaginatedList = new PaginatedModelList(State);\n\n @observable stateItem = new ModelItem(State);\n\n @action\n async fetchStates(params?: { [key: string]: any }) {\n return this.statesPaginatedList.load(ApiRoutes.states.list, params);\n }\n\n @action\n async fetchStateById(stateId: number, appendIntoStore = false) {\n const promise = this.stateItem.load(ApiRoutes.states.show(stateId));\n if (appendIntoStore) {\n promise.then(() => {\n const alreadyPresent = this.statesPaginatedList.items.find(\n (item) => item.id === this.stateItem.item?.id,\n );\n if (!alreadyPresent) {\n this.statesPaginatedList.appendItem(this.stateItem.item);\n }\n });\n }\n return promise;\n }\n\n @action\n clearStore(): void {\n this.statesPaginatedList = new PaginatedModelList(State);\n }\n}\n","import { action, observable } from 'mobx';\nimport { ApplicationStep } from 'models/ApplicationStep';\nimport { ApiService } from '../services/ApiService';\nimport ApiRoutes from '../routes/api/ApiRoutes';\n\nexport class StepStore {\n @observable private _currentStep: ApplicationStep;\n\n @observable importingBankingInfo: boolean;\n\n @observable stepError: any;\n\n @action setCurrentStep = (step: ApplicationStep) =>\n (this._currentStep = step);\n\n @action setImportingBankingInfo = (b: boolean) =>\n (this.importingBankingInfo = b);\n\n @action setStepError = (e: any) => (this.stepError = e);\n\n get currentStep() {\n return this._currentStep ?? ApplicationStep.TERMS_AND_CONDITIONS;\n }\n\n protected apiService = ApiService.getInstance();\n\n async importAccountInformation(user, metaData: any) {\n try {\n this.setImportingBankingInfo(true);\n const response = await this.apiService.post(\n ApiRoutes.me.importAccountInformation,\n { ...metaData },\n );\n user && user.updateFromJson({ ...response.data, delete: false });\n } catch (e) {\n throw e;\n } finally {\n this.setImportingBankingInfo(false);\n }\n }\n\n @action\n async completeApplication(id: number, params?: { [key: string]: any }) {\n return this.apiService.post(ApiRoutes.me.completeApplication(id), params);\n }\n\n @action\n clearStore(): void {\n this._currentStep = null;\n this.importingBankingInfo = false;\n this.stepError = null;\n }\n}\n","import { action } from 'mobx';\nimport ApiRoutes from 'routes/api/ApiRoutes';\nimport { Bank } from '../models/entities/BankModel';\nimport Store from './Store';\n\nexport class BankStore extends Store {\n constructor() {\n super();\n Bank._store = this;\n }\n\n @action\n async fetchInstitutions(searchedBank: string) {\n const fetchingLimit = 100;\n const response = await this.apiService.get(ApiRoutes.mx.getInstitutions, {\n institution_name: searchedBank,\n fetchingLimit,\n });\n\n return response;\n }\n\n @action\n async deleteBank(bankId: number) {\n this.remove(bankId);\n }\n\n @action\n async getMXIframeUrl(institutionCode: string) {\n const response = await this.apiService.get(\n ApiRoutes.mx.getWidget.replace(':institutionCode', institutionCode),\n );\n\n return response;\n }\n\n @action\n clearStore(): void {}\n}\n","import { action, observable } from 'mobx';\nimport ApiRoutes from '../routes/api/ApiRoutes';\nimport { PaginatedModelList } from '../models/PaginatedModelList';\nimport Store from './Store';\nimport { ResidenceHistory } from '../models/entities/ResidenceHistory';\nimport { ModelItem } from '../models/ModelItem';\n\nexport class ResidenceHistoryStore extends Store {\n constructor() {\n super();\n ResidenceHistory._store = this;\n }\n\n @observable residenceHistoryPaginatedList = new PaginatedModelList<\n ResidenceHistory\n >(ResidenceHistory);\n\n @observable residenceHistoryItem = new ModelItem(\n ResidenceHistory,\n );\n\n get residenceHistories() {\n return this.residenceHistoryPaginatedList.items;\n }\n\n get residenceHistory() {\n return this.residenceHistoryItem.item;\n }\n\n @action\n async fetchResidenceHistoryFromId(id: number) {\n return this.residenceHistoryItem.load(\n ApiRoutes.residenceHistories.show(id),\n );\n }\n\n @action\n async fetchResidenceHistories(params?: { [key: string]: any }) {\n return this.residenceHistoryPaginatedList.load(\n ApiRoutes.residenceHistories.list,\n params,\n );\n }\n\n @action\n async addResidenceHistory(body: { [key: string]: any }) {\n try {\n this.residenceHistoryPaginatedList.setLoading(true);\n const response = await this.apiService.post(\n ApiRoutes.residenceHistories.list,\n body,\n );\n const residenceHistory: ResidenceHistory = ResidenceHistory.fromJson(\n response.data,\n ) as ResidenceHistory;\n this.residenceHistoryPaginatedList.appendItem(residenceHistory);\n this.residenceHistoryItem.setItem(residenceHistory);\n this.residenceHistoryPaginatedList.setLoading(false);\n return residenceHistory;\n } catch (e) {\n this.residenceHistoryPaginatedList.setLoading(false);\n throw e;\n }\n }\n\n @action\n async deleteResidenceHistory(residenceHistory: ResidenceHistory) {\n residenceHistory.setDeleting(true);\n await this.apiService.delete(\n ApiRoutes.residenceHistories.show(residenceHistory.id),\n );\n residenceHistory.setDeleting(false);\n residenceHistory.delete();\n }\n\n @action\n async updateResidenceHistory(id: number, body: { [key: string]: any }) {\n try {\n this.residenceHistoryPaginatedList.setLoading(true);\n const response = await this.apiService.patch(\n ApiRoutes.residenceHistories.show(id),\n body,\n );\n const residenceHistory: ResidenceHistory = ResidenceHistory.fromJson(\n response.data,\n ) as ResidenceHistory;\n this.residenceHistoryItem.setItem(residenceHistory);\n this.residenceHistoryPaginatedList.setLoading(false);\n return residenceHistory;\n } catch (e) {\n this.residenceHistoryPaginatedList.setLoading(false);\n throw e;\n }\n }\n\n @action\n clearStore(): void {\n this.residenceHistoryPaginatedList = new PaginatedModelList<\n ResidenceHistory\n >(ResidenceHistory);\n this.residenceHistoryItem = new ModelItem(\n ResidenceHistory,\n );\n }\n}\n","import { observable } from 'mobx';\nimport Model from '../Model';\nimport { BankTransactionStore } from 'stores/BankTransactionStore';\n\nexport class BankTransaction extends Model {\n static _store: BankTransactionStore;\n\n @observable id: number;\n\n @observable amount: number;\n\n @observable bank_account_id: number;\n\n @observable category: string;\n\n @observable connection_id: string;\n\n @observable createdAt: string;\n\n @observable date: string;\n\n @observable description: string;\n\n @observable document_id: number;\n\n @observable is_bill_pay: boolean;\n\n @observable is_direct_deposit: boolean;\n\n @observable is_expenses: boolean;\n\n @observable is_fee: boolean;\n\n @observable is_income: boolean;\n\n @observable is_overdraft_fee: boolean;\n\n @observable is_payroll_advance: boolean;\n\n @observable is_subscription: boolean;\n\n @observable top_level_category: string;\n\n @observable type: string;\n}\n","import { action, observable } from 'mobx';\nimport ApiRoutes from 'routes/api/ApiRoutes';\nimport { Bank } from 'models/entities/BankModel';\nimport { PaginatedModelList } from 'models/PaginatedModelList';\nimport { BankTransaction } from 'models/entities/BankTransactionModel';\nimport { QueuedDocumentUploadStatus } from 'models/entities/QueuedDoc';\nimport { DocumentStatus } from 'enums/DocumentStatus.enum';\nimport Store from './Store';\nimport { DocumentModel } from '../models/entities/DocumentModel';\n\nexport class DocumentStore extends Store {\n @observable\n rejectedBankStatementsPaginatedModelList = new PaginatedModelList<\n DocumentModel\n >(DocumentModel);\n\n @observable requestedApplications = [];\n\n @observable bankAccounts = [];\n\n @observable groupedApplications = [];\n\n @observable bankTransactionsPaginatedList = new PaginatedModelList<\n BankTransaction\n >(BankTransaction);\n\n @observable banksPaginatedList = new PaginatedModelList(Bank);\n\n @observable nameOfApplicantWhoseDocumentIsBeingProcessed = '';\n\n constructor() {\n super();\n DocumentModel._store = this;\n }\n\n get rejectedBankStatements(): DocumentModel[] {\n return this.rejectedBankStatementsPaginatedModelList.items;\n }\n\n get banks(): Bank[] {\n return this.banksPaginatedList.items;\n }\n\n get bankTransactions() {\n return this.bankTransactionsPaginatedList.items?.map((item, index) => {\n return {\n id: index + 1,\n details: item,\n };\n });\n }\n\n @action\n setNameOfApplicantWhoseDocumentIsBeingProcessed(name: string) {\n this.nameOfApplicantWhoseDocumentIsBeingProcessed = name;\n }\n\n @action\n async fetchBanks(): Promise {\n return this.banksPaginatedList.load(ApiRoutes.bank.fetchBanks);\n }\n\n // @action\n // async loadRejectedBankStatements(): Promise {\n // return this.rejectedBankStatementsPaginatedModelList.load(\n // ApiRoutes.bank.getRejectedBankStatements,\n // );\n // }\n\n @action\n async getRequestedApplications(params?: {\n [key: string]: any;\n }): Promise {\n const response = await this.apiService.get(\n ApiRoutes.applications.getAllRequestedDocuments,\n params,\n );\n this.requestedApplications = response.map((obj) => obj.requested_against);\n }\n\n @action\n async getBankAccounts(params?: { [key: string]: any }): Promise {\n const response = await this.apiService.get(\n ApiRoutes.bank.bankAccounts,\n params,\n );\n this.bankAccounts = response;\n }\n\n @action\n async addNewBankAccount(data: { [key: string]: any }): Promise {\n const response = await this.apiService.post(\n ApiRoutes.bank.bankAccount,\n data,\n );\n this.bankAccounts.push(response);\n }\n\n @action\n async fetchBankTrasactions(documentId: number): Promise {\n return this.bankTransactionsPaginatedList.load(\n ApiRoutes.bank.fetchTransactions(documentId),\n );\n }\n\n @action\n async addBanktransaction(\n body: { [key: string]: any },\n applicationId?: number,\n isWaitlistApp?: boolean,\n ): Promise {\n const res = await this.apiService.post(ApiRoutes.bank.addTransaction, body);\n if (body.isComplete) {\n const submittedDoc = this.rejectedBankStatements.filter(\n (statement) => statement.id === body.bank_statement_id,\n )[0];\n this.rejectedBankStatementsPaginatedModelList.removeItem(submittedDoc);\n await this.getBankStatementsByApplicationId(\n applicationId,\n isWaitlistApp,\n true,\n );\n } else {\n this.bankTransactionsPaginatedList.appendItem(res.data);\n }\n }\n\n async editBankTransaction(body: { [key: string]: any }): Promise {\n const response = await this.apiService.patch(\n ApiRoutes.bank.editTransaction,\n body,\n );\n const transactions: any = this.bankTransactionsPaginatedList.items?.map(\n (tnx) => {\n if (tnx.id === response.data.id) {\n return response.data;\n }\n return tnx;\n },\n );\n this.bankTransactionsPaginatedList.setItems([...transactions]);\n }\n\n async deleteTransaction(transactionId: number) {\n const response = await this.apiService.delete(\n ApiRoutes.bank.deleteTransaction,\n { transactionId },\n );\n this.bankTransactionsPaginatedList.setItems(\n this.bankTransactionsPaginatedList.items?.filter(\n (tnx) => tnx.id !== transactionId,\n ) as any,\n );\n\n return response;\n }\n\n @action\n async moveDocument(\n data: any,\n userId: number,\n documentType: string,\n desiredDocumentType: string,\n taxReturnType?: string,\n move_reason?: string,\n ): Promise {\n const body = {\n userId,\n documentType,\n desiredDocumentType,\n taxReturnType,\n move_reason,\n };\n const documentId = data.id;\n try {\n const response = await this.apiService.post(\n ApiRoutes.payroll.moveDocument(documentId),\n body,\n );\n this.rejectedBankStatementsPaginatedModelList.removeItem(data);\n return response;\n } catch (e) {\n if ((e as any).code === 9998) {\n this.rejectedBankStatementsPaginatedModelList.removeItem(data);\n }\n throw e;\n }\n }\n\n async requestDocument(\n docName: string,\n request_description: string,\n userId: number,\n applicationId: number,\n upload_against?: number,\n default_template = false,\n waitingListApplicantId?: number,\n ): Promise {\n this.apiService.post(\n waitingListApplicantId\n ? ApiRoutes.waitlistApplicantDocument.requestDocument(\n waitingListApplicantId,\n )\n : ApiRoutes.payroll.requestDocument(applicationId),\n {\n user_id: userId,\n request_description,\n request_message: docName,\n upload_against,\n default_template,\n },\n );\n this.rejectedBankStatementsPaginatedModelList.items.filter(\n (item) => item.id === upload_against,\n )[0].status = QueuedDocumentUploadStatus.REQUESTED;\n }\n\n @action\n async rejectDocument(\n bankStatement: DocumentModel,\n rejection_reason: string,\n ): Promise {\n const response = await this.apiService.delete(\n ApiRoutes.bank.deleteBankStatement(bankStatement.id),\n null,\n null,\n null,\n { rejection_reason },\n );\n this.rejectedBankStatementsPaginatedModelList.removeItem(bankStatement);\n return response;\n }\n\n @action\n async getGroupedApplications(organisation?: number): Promise {\n const response = await this.apiService.get(\n ApiRoutes.bank.getGroupedApplications,\n { organisation },\n );\n this.groupedApplications = response.data;\n }\n\n async getBankStatementsByApplicationId(\n applicationId: number,\n isWaitlistApp: boolean,\n forceRefresh?: boolean,\n ): Promise {\n await this.rejectedBankStatementsPaginatedModelList.load(\n ApiRoutes.bank.getRejectedBankStatementById(applicationId),\n { isWaitlistApp },\n { forceRefresh },\n );\n }\n\n @action\n clearStore(): void {\n this.rejectedBankStatementsPaginatedModelList = new PaginatedModelList<\n DocumentModel\n >(DocumentModel);\n this.bankAccounts = [];\n this.requestedApplications = [];\n this.bankTransactionsPaginatedList = new PaginatedModelList<\n BankTransaction\n >(BankTransaction);\n }\n}\n","import { action, observable } from 'mobx';\nimport Store from './Store';\nimport { UnitImage } from '../models/entities/UnitImage';\nimport ApiRoutes from 'routes/api/ApiRoutes';\nimport { PaginatedModelList } from 'models/PaginatedModelList';\nimport { ModelItem } from 'models/ModelItem';\n\nexport class UnitImageStore extends Store {\n constructor() {\n super();\n UnitImage._store = this;\n }\n\n @observable unitList = new PaginatedModelList(UnitImage);\n\n @observable unitItem = new ModelItem(UnitImage);\n\n @action async fetchImages(unit, unitId) {\n const response = await this.apiService.get(\n ApiRoutes.units.getImages(unitId),\n );\n const existingUrls = unit?.unit_images?.items.map((item) => item.url) || [];\n const newImages = response.data.filter(\n (item) => !existingUrls.includes(item.url),\n );\n unit.updateFromJson({\n unit_images: [...unit?.unit_images?.items, ...newImages],\n });\n }\n\n @action\n clearStore(): void {}\n}\n","import { action } from 'mobx';\nimport Store from './Store';\nimport { BuildingImage } from '../models/entities/BuildingImage';\n\nexport class BuildingImageStore extends Store {\n constructor() {\n super();\n BuildingImage._store = this;\n }\n\n @action\n clearStore(): void {}\n}\n","import { action } from 'mobx';\nimport Store from './Store';\nimport { Payment } from '../models/entities/PaymentModel';\n\nexport class PaymentStore extends Store {\n constructor() {\n super();\n Payment._store = this;\n }\n\n @action\n clearStore(): void {}\n}\n","import { action, observable } from 'mobx';\nimport { Insurance } from 'models/entities/Insurance';\nimport ApiRoutes from 'routes/api/ApiRoutes';\nimport { notification } from 'antd';\nimport type { Question, Quote } from 'pages/insurance/insurenceType';\nimport {\n DiscloserTypes,\n INSURANCE_STEPS,\n setNextStep,\n setPreviousStep,\n} from 'pages/insurance/assurant-flow/constants';\nimport Store from './Store';\n\nexport class InsuranceStore extends Store {\n @observable private _currentStep: INSURANCE_STEPS = INSURANCE_STEPS.QUESTIONS;\n\n @observable private _completedStep: INSURANCE_STEPS;\n\n @observable loadedQuestions: boolean;\n\n @observable stepError: any;\n\n @observable uwQuestions: Question[];\n\n @observable uwAnswers;\n\n @observable quote: Quote;\n\n @observable loading = false;\n\n @observable applicationInsurance: Insurance;\n\n @observable fraudDiscloser: {\n messageText: string;\n content: string;\n documentName: string;\n };\n\n @observable payDiscloser: {\n messageText: string;\n content: string;\n documentName: string;\n };\n\n @observable cancellationNotice: {\n messageText: string;\n content: string;\n documentName: string;\n };\n\n @observable ebcDiscloser: {\n messageText: string;\n content: string;\n documentName: string;\n };\n\n @observable discloserLoading: boolean;\n\n get currentStep(): INSURANCE_STEPS {\n return this._currentStep;\n }\n\n get belonging(): string {\n return this.quote?.coverageDetails?.parameters?.find(\n (param) => param.name === 'personalPropertyAmount',\n )?.value;\n }\n\n get deductible(): string {\n return this.quote?.coverageDetails?.parameters?.find(\n (param) => param.name === 'deductible',\n )?.value;\n }\n\n get personalLiability(): string {\n return this.quote?.coverageDetails?.parameters?.find(\n (param) => param.name === 'liabilityAmount',\n )?.value;\n }\n\n @action\n setUwAnswers(answers): void {\n this.uwAnswers = answers;\n }\n\n @action setCurrentStep(\n step: INSURANCE_STEPS,\n next?: boolean,\n previous?: boolean,\n ): void {\n let updatedStep = step;\n if (next) {\n updatedStep = setNextStep(step);\n } else if (previous) {\n updatedStep = setPreviousStep(step);\n }\n this._currentStep = updatedStep;\n }\n\n get completedStep(): INSURANCE_STEPS {\n return this._completedStep;\n }\n\n @action setCompletedStep(\n step: INSURANCE_STEPS,\n next?: boolean,\n previous?: boolean,\n ): void {\n let updatedStep = step;\n if (next) {\n updatedStep = setNextStep(step);\n } else if (previous) {\n updatedStep = setPreviousStep(step);\n }\n this._completedStep = updatedStep;\n }\n\n @action\n async getApplicationInsuranceDetails(applicationId: number): Promise {\n this.loading = true;\n try {\n const response = await this.apiService.get(\n ApiRoutes.insurance.getInsuranceDetail(applicationId),\n );\n if (response.data) {\n this.applicationInsurance = response.data;\n } else {\n this._currentStep = INSURANCE_STEPS.QUESTIONS;\n this._completedStep = INSURANCE_STEPS.CONFIRM_DETAILS;\n }\n } catch (error) {\n notification.error({\n message: error.responseMessage ?? error.message,\n duration: 3,\n });\n } finally {\n this.loading = false;\n }\n }\n\n @action\n async getUWQuestions(application_id: number): Promise {\n this.loading = true;\n try {\n const response = await this.apiService.get(\n ApiRoutes.insurance.uwQuestions(+application_id),\n );\n if (response?.data?.questions?.length > 0) {\n this.uwQuestions = response.data?.questions;\n } else {\n notification.error({\n message:\n response.data.messageText ??\n response.message ??\n 'something is wrong',\n duration: 3,\n });\n }\n } catch (error) {\n console.log(error);\n notification.error({\n message: error.responseMessage ?? error.message,\n duration: 3,\n });\n } finally {\n this.loading = false;\n this.loadedQuestions = true;\n }\n }\n\n async getQuote(\n data: {\n policyEffectiveDate;\n questions: {\n questionName: string;\n answer: string;\n }[];\n coverages: { name: string; value: string }[];\n step: INSURANCE_STEPS;\n workItemId?: string;\n },\n application_id: number,\n ): Promise {\n this.loading = true;\n try {\n const response = await this.apiService.post(\n ApiRoutes.insurance.getQuote(application_id),\n data,\n );\n if (\n response.data?.quote &&\n !response.data?.quote?.transactionDetails?.responseMessage\n ) {\n this.quote = response.data.quote;\n this.applicationInsurance = response.data.applicationInsurance;\n if (!data.workItemId) {\n this.setCompletedStep(INSURANCE_STEPS.CONFIRM_DETAILS, true);\n this.setCurrentStep(INSURANCE_STEPS.QUESTIONS, true);\n }\n } else {\n notification.error({\n message:\n response?.data?.quote?.transactionDetails?.responseMessage ??\n response.data.quote?.messageText ??\n response.message ??\n 'quote failed',\n duration: 3,\n });\n }\n } catch (error) {\n console.log(error);\n notification.error({\n message: error.responseMessage ?? error.message,\n duration: 3,\n });\n } finally {\n this.loading = false;\n }\n }\n\n async selectPaymentPlan(\n data: {\n paymentPlan: string;\n step: INSURANCE_STEPS;\n },\n application_id: number,\n ): Promise {\n this.loading = true;\n try {\n const response = await this.apiService.post(\n ApiRoutes.insurance.playmentPlan(application_id),\n data,\n );\n if (response.data) {\n this.applicationInsurance = response.data;\n this.setCompletedStep(INSURANCE_STEPS.QUOTE, true);\n this.setCurrentStep(INSURANCE_STEPS.PAYMENT_PLANS, true);\n } else {\n notification.error({\n message: response?.data?.messageText,\n duration: 3,\n });\n }\n } catch (error) {\n console.log(error);\n notification.error({\n message: error.responseMessage ?? error.message,\n duration: 3,\n });\n } finally {\n this.loading = false;\n }\n }\n\n async getPaymentDetails(\n data: {\n workItemId: string;\n cardDetails: {\n cardType: string;\n cardNumber: string;\n cardCvc: string;\n cardExpMonth: string;\n cardExpYear: string;\n cardHolder: string;\n };\n step: INSURANCE_STEPS;\n hasInterestedParty?: string;\n },\n application_id: number,\n ): Promise {\n this.loading = true;\n try {\n const response = await this.apiService.post(\n ApiRoutes.insurance.playmentDetails(application_id),\n data,\n );\n\n if (response.data.transactionDetails.responseMessage === 'Success') {\n this.applicationInsurance.payment_token =\n response.data.transactionDetails.tokenizePayment;\n this.applicationInsurance.responses = {\n ...this.applicationInsurance.responses,\n cardDetails: data.cardDetails,\n hasInterestedParty: data.hasInterestedParty,\n };\n this.setCompletedStep(INSURANCE_STEPS.PAYMENT_PLANS, true);\n this.setCurrentStep(INSURANCE_STEPS.CHECK_OUT, true);\n } else {\n notification.error({\n message: response?.data?.messageText ?? response.message,\n duration: 3,\n });\n }\n } catch (error) {\n console.log(error);\n notification.error({\n message: error.responseMessage ?? error.message,\n duration: 3,\n });\n } finally {\n this.loading = false;\n }\n }\n\n async getPolicy(\n data: {\n workItemId: string;\n cardDetails: { numberOfPayments: number; paymentAmount: string };\n canText: boolean;\n isPaperLess: boolean;\n hasInterestedParty: boolean;\n },\n application_id: number,\n ): Promise {\n this.loading = true;\n try {\n const response = await this.apiService.post(\n ApiRoutes.insurance.getPolicy(application_id),\n data,\n );\n\n if (response.data.transactionDetails.policyId) {\n this.applicationInsurance.responses = {\n ...this.applicationInsurance.responses,\n policy: response.data,\n };\n this.setCompletedStep(INSURANCE_STEPS.CHECK_OUT, true);\n this.setCurrentStep(INSURANCE_STEPS.PREVIEW, true);\n } else {\n notification.error({\n message:\n response.data.transactionDetails?.responseMessage ??\n response.message,\n duration: 3,\n });\n }\n } catch (error) {\n console.log(error);\n notification.error({\n message: error.responseMessage ?? error.message,\n duration: 3,\n });\n } finally {\n this.loading = false;\n }\n }\n\n async getDiscloserMessage(\n application_id: number,\n type: string,\n ): Promise {\n this.discloserLoading = true;\n try {\n const response = await this.apiService.get(\n ApiRoutes.insurance.getDiscloserMessage(application_id, type),\n );\n\n if (response.data.messageText === 'Success') {\n if (type === DiscloserTypes.FRAUD) {\n this.fraudDiscloser = response.data;\n } else if (type === DiscloserTypes.ELECTRONIC_BUSSINESS_CONSENT) {\n this.ebcDiscloser = response.data;\n } else if (type === DiscloserTypes.PAY_AUTHORIZATION) {\n this.payDiscloser = response.data;\n } else if (type === DiscloserTypes.CANCELATION_NOTICE) {\n this.cancellationNotice = response.data;\n }\n } else {\n notification.error({\n message: response.data?.responseMessage ?? response.message,\n duration: 3,\n });\n }\n } catch (error) {\n console.log(error);\n notification.error({\n message: error.responseMessage ?? error.message,\n duration: 3,\n });\n } finally {\n this.discloserLoading = false;\n }\n }\n\n @action setStepError = (e: any): void => {\n this.stepError = e;\n };\n\n @action\n clearStore(): void {\n this._currentStep = null;\n this.stepError = null;\n this.applicationInsurance = null;\n this.uwAnswers = null;\n this.loadedQuestions = false;\n this.uwAnswers = null;\n this.fraudDiscloser = null;\n this.ebcDiscloser = null;\n this.payDiscloser = null;\n this.cancellationNotice = null;\n this.quote = undefined;\n this.uwQuestions = undefined;\n }\n}\n","import { observable } from 'mobx';\nimport Model from 'models/Model';\nimport { PayrollDetailStore } from 'stores/PayrollDetails';\n\nexport class PayrollDetail extends Model {\n static _store: PayrollDetailStore;\n\n @observable id: number;\n\n @observable payroll_id: number;\n\n @observable is_verified: boolean;\n\n @observable employee_first_name: string;\n\n @observable employee_last_name: string;\n\n @observable employer_name: string;\n\n @observable employer_address_line_1: string;\n\n @observable employer_address_line_2: string;\n\n @observable employer_address_city: string;\n\n @observable employer_address_state_code: string;\n\n @observable employer_address_postal_code: string;\n\n @observable job_title: string;\n\n @observable job_start_date: string;\n\n @observable job_end_date: string;\n\n @observable net_pay: number;\n\n @observable pay_date: string;\n\n // TODO: ADD TYPE FOR PAY_STATEMENTS\n @observable pay_statements: any;\n\n @observable social_security_tax: number;\n\n @observable state_tax: number;\n\n @observable medicare_tax: number;\n\n @observable local_tax: number;\n\n @observable federal_tax: number;\n\n @observable gross: number;\n\n @observable ytd_gross: number;\n\n @observable benefit_insurance: number;\n}\n","import { PayCycleType } from 'constants/constants';\nimport { observable } from 'mobx';\nimport { ModelList } from 'models/ModelList';\nimport { PayrollStore } from 'stores/PayrollStore';\nimport Model from '../Model';\nimport { PayrollDetail } from './PayrollDetail';\nimport { QueuedDocumentUploadStatus } from './QueuedDoc';\n\nexport class Payroll extends Model {\n static _store: PayrollStore;\n\n @observable id: number;\n\n @observable user_id: number;\n\n @observable source: string;\n\n @observable company_name: string;\n\n @observable company_id: string;\n\n @observable file_url: string;\n\n @observable source_id: string;\n\n @observable source_meta: {\n application_id: number;\n book_uuid: string;\n user_id: number;\n employed?: boolean;\n };\n\n @observable source_token: string;\n\n @observable createdAt: Date;\n\n @observable updatedAt: Date;\n\n @observable status: QueuedDocumentUploadStatus;\n\n @observable income_details: {\n income: number;\n payCycle: PayCycleType;\n incomeType: PayCycleType;\n annualIncome: number;\n hourlyIncome: number;\n netHourlyRate: number;\n nextExpectedPayDate: string;\n };\n\n distribution_deposits: any[];\n\n @observable pay_cycle: PayCycleType;\n\n @observable polling_attempts: number;\n\n @observable last_polled_at: string;\n\n @observable textract_dump: string;\n\n @observable rejection_reason: string;\n\n @observable details = new ModelList(PayrollDetail);\n}\n","import { action, observable } from 'mobx';\nimport { PaginatedModelList } from 'models/PaginatedModelList';\nimport { QueuedDocumentUploadStatus } from 'models/entities/QueuedDoc';\nimport ApiRoutes from 'routes/api/ApiRoutes';\nimport { Payroll } from 'models/entities/Payroll';\nimport {\n PayrollDetailsValues,\n transformPayrollsData,\n} from 'pages/app/support/shared/Utils';\nimport Store from './Store';\n\nexport class PayrollStore extends Store {\n constructor() {\n super();\n Payroll._store = this;\n }\n\n @observable\n payrollsPaginatedModelList = new PaginatedModelList(Payroll);\n\n @observable groupedApplications = [];\n\n @observable requestedDocuments = [];\n\n @observable nameOfApplicantWhoseDocumentIsBeingProcessed = '';\n\n @action\n setNameOfApplicantWhoseDocumentIsBeingProcessed(name: string) {\n this.nameOfApplicantWhoseDocumentIsBeingProcessed = name;\n }\n\n get payrolls() {\n return this.payrollsPaginatedModelList.items;\n }\n\n get requestedDocs() {\n return this.requestedDocuments;\n }\n\n @action\n async loadPayrollsByStatus(docStatus: string) {\n return this.payrollsPaginatedModelList.load(\n ApiRoutes.payroll.getPayrollsByStatus,\n { status: docStatus },\n undefined,\n transformPayrollsData,\n );\n }\n\n @action\n async getGroupedApplications(organisation?: number): Promise {\n const response = await this.apiService.get(\n ApiRoutes.payroll.getGroupedApplications,\n { organisation },\n );\n this.groupedApplications = response.data;\n }\n\n async getPayrollsByApplicationId(applicationId: number): Promise {\n await this.payrollsPaginatedModelList.load(\n ApiRoutes.payroll.getPendingPayrolls(applicationId),\n {},\n undefined,\n transformPayrollsData,\n );\n }\n\n @action\n async getRequestedApplications(params?: {\n [key: string]: any;\n }): Promise {\n const response = await this.apiService.get(\n ApiRoutes.applications.getAllRequestedDocuments,\n params,\n );\n this.requestedDocuments = response.map((obj) => obj.requested_against);\n }\n\n @action\n async manualUploadPayroll(body: {\n payroll_id: number;\n pay_cycle: string;\n details: PayrollDetailsValues[];\n }): Promise {\n const response = await this.apiService.patch(\n ApiRoutes.payroll.manualUpload,\n body,\n );\n if (response?.success) {\n this.payrolls.filter(\n (payroll) => payroll.id === body.payroll_id,\n )[0].status = QueuedDocumentUploadStatus.PROCESSED;\n }\n }\n\n @action\n async moveDocument(\n data: Payroll,\n userId: number,\n documentType: string,\n desiredDocumentType: string,\n taxReturnType?: string,\n move_reason?: string,\n ): Promise {\n const body = {\n userId,\n documentType,\n desiredDocumentType,\n taxReturnType,\n move_reason,\n };\n const documentId = data.id;\n try {\n const response = await this.apiService.post(\n ApiRoutes.payroll.moveDocument(documentId),\n body,\n );\n this.payrollsPaginatedModelList.removeItem(data);\n return response;\n } catch (e) {\n if ((e as any).code === 9998) {\n this.payrollsPaginatedModelList.removeItem(data);\n }\n throw e;\n }\n }\n\n @action\n async rejectDocument(\n payroll: Payroll,\n rejection_reason?: string,\n ): Promise {\n const response = await this.apiService.delete(\n ApiRoutes.payroll.deleteTextractPayroll(payroll.id),\n null,\n null,\n null,\n { rejection_reason },\n );\n this.payrollsPaginatedModelList.removeItem(payroll);\n return response;\n }\n\n @action\n async requestDocument(\n docName: string,\n request_description: string,\n userId: number,\n applicationId: number,\n upload_against?: number,\n default_template = false,\n ): Promise {\n this.apiService.post(ApiRoutes.payroll.requestDocument(applicationId), {\n user_id: userId,\n request_description,\n request_message: docName,\n upload_against,\n default_template,\n });\n this.payrollsPaginatedModelList.items.filter(\n (item) => item.id === upload_against,\n )[0].status = QueuedDocumentUploadStatus.REQUESTED;\n }\n\n @action\n async deletePayrollDetailById(\n payrollDetailId: number,\n payroll: Payroll,\n ): Promise {\n const response = await this.apiService.delete(\n ApiRoutes.payroll.deletePayrollDetail(payrollDetailId),\n );\n\n payroll.updateFromJson(response);\n\n return response;\n }\n\n @action\n async fetchCompanies(query: string) {\n const response = await this.apiService.get(ApiRoutes.atomic.company, {\n query,\n });\n\n return response;\n }\n\n @action\n async fetchAtomicToken() {\n const response = await this.apiService.get(ApiRoutes.atomic.accessToken);\n return response;\n }\n\n @action\n clearStore(): void {\n this.payrollsPaginatedModelList = new PaginatedModelList(Payroll);\n this.requestedDocuments = [];\n }\n}\n","import { action, computed, observable } from 'mobx';\n\nimport moment from 'moment';\nimport Store from './Store';\nimport { ModelItem } from '../models/ModelItem';\nimport ApiRoutes from '../routes/api/ApiRoutes';\nimport { PaginatedModelList } from '../models/PaginatedModelList';\nimport { GuestCard } from '../models/entities/GuestCardModel';\n\nexport class GuestCardStore extends Store {\n constructor() {\n super();\n GuestCard._store = this;\n }\n\n @observable guestCardList = new PaginatedModelList(GuestCard);\n\n @observable guestCardItem = new ModelItem(GuestCard);\n\n @computed get guestCards() {\n return this.guestCardList.items;\n }\n\n @computed get guestCard() {\n return this.guestCardItem.item;\n }\n\n @action\n async fetchGuestCards(params?: { [key: string]: any }) {\n await this.guestCardList.load(ApiRoutes.guestCards.list, params);\n const uniqueGuestCards = [\n ...new Map(\n this.guestCardList.items.map((item) => [item.email, item]),\n ).values(),\n ];\n return this.guestCardList.setItems(uniqueGuestCards);\n }\n\n @action async fetchGuestCardFromId(id: number) {\n return this.guestCardItem.load(ApiRoutes.guestCards.show(id));\n }\n\n @action\n async updateElement(guestCard: GuestCard, body: { [key: string]: any }) {\n guestCard.setUpdating(true);\n const response = await this.apiService.patch(\n ApiRoutes.guestCards.show(guestCard.id),\n body,\n );\n guestCard.setUpdating(false);\n guestCard.updateFromJson(response.data);\n return guestCard;\n }\n\n @action\n async createGuestCard(body: { [key: string]: any }) {\n const formData = new FormData();\n Object.keys(body).forEach((key) => formData.append(key, body[key]));\n const response = await this.apiService.post(\n ApiRoutes.guestCards.list,\n formData,\n );\n const guestCard = GuestCard.fromJson(response.data) as GuestCard;\n // TODO: add only if filters allows.\n this.guestCardList.appendItem(guestCard);\n return guestCard;\n }\n\n @action\n async fetchChats(guestCard: GuestCard) {\n const key = `${guestCard.id}_CHAT_LAST_FETCHED_AT`;\n localStorage.setItem(key, moment().utc().toDate().toString())\n await guestCard.chats.load(ApiRoutes.guestCards.chats(guestCard.id).list);\n }\n\n @action\n async loadMoreChats(guestCard: GuestCard) {\n await guestCard.chats.loadNext();\n }\n\n @action\n async sendMessage(guestCard: GuestCard, message_body: string) {\n const response = await this.apiService.post(\n ApiRoutes.guestCards.chats(guestCard.id).create,\n { message_body },\n );\n const items = [response.data, ...guestCard.chats.items];\n guestCard.chats.setItems(items);\n }\n\n @action\n async markAsRead(guestCard: GuestCard) {\n const guestCardId = guestCard.id;\n const key = `${guestCardId}_CHAT_LAST_FETCHED_AT`;\n try {\n let lte = localStorage.getItem(key);\n if (!lte) {\n lte = moment().utc().toDate().toString();\n }\n await this.apiService.post(\n ApiRoutes.guestCards.chats(guestCardId).markAsRead,\n { lte },\n );\n guestCard.setUpdating(true);\n guestCard.updateFromJson({\n ...guestCard,\n unread_count: 0,\n });\n guestCard.setUpdating(false);\n localStorage.removeItem(key);\n await this.markChatsInStoreAsRead(guestCard);\n } catch (e) {\n console.error(e);\n }\n }\n\n @action\n async markChatsInStoreAsRead(guestCard: GuestCard) {\n guestCard.chats.items.forEach((_chat) => {\n if (_chat.guest_card_id === guestCard.id && !_chat.read) {\n _chat?.updateFromJson({\n ..._chat,\n read: true,\n });\n }\n });\n }\n\n @action\n clearStore(): void {\n this.guestCardList = new PaginatedModelList(GuestCard);\n this.guestCardItem = new ModelItem(GuestCard);\n }\n}\n","import { action, observable, values } from 'mobx';\nimport ApiRoutes from 'routes/api/ApiRoutes';\nimport { notification } from 'antd';\nimport Store from './Store';\nimport { Applicant } from '../models/entities/ApplicantModel';\nimport { PaginatedModelList } from '../models/PaginatedModelList';\n\nexport class ApplicantStore extends Store {\n constructor() {\n super();\n Applicant._store = this;\n }\n\n @observable applicantPaginatedList = new PaginatedModelList(\n Applicant,\n );\n\n @observable mxMonitoringTenantsPaginatedList = new PaginatedModelList<\n Applicant\n >(Applicant);\n\n @action\n async updateApplicant(\n id: number,\n body: { [key: string]: any },\n ): Promise {\n const applicant = Applicant.getOrNew(id) as Applicant;\n applicant.setUpdating(true);\n const response = await this.apiService.patch(\n ApiRoutes.applicants.show(id),\n body,\n );\n applicant.updateFromJson(response.data);\n applicant.setUpdating(false);\n return applicant;\n }\n\n @action\n async updateApplicantDTCRequirements(\n id: number,\n body: { [key: string]: any },\n ): Promise {\n const applicant = Applicant.getOrNew(id) as Applicant;\n applicant.setUpdating(true);\n const response = await this.apiService.patch(\n ApiRoutes.applicants.dtc(id),\n body,\n );\n applicant.updateFromJson(response.data);\n applicant.setUpdating(false);\n return applicant;\n }\n\n @action\n async revertStep(id: number) {\n const response = await this.apiService.patch(\n ApiRoutes.applicants.revertStep(id),\n );\n return response;\n }\n\n @action\n async skipCreditStep(id: number) {\n try {\n await this.apiService.patch(ApiRoutes.applicants.skipCreditStep(id));\n } catch (e) {\n notification.error({\n message: (e as Error)?.message || 'Something went wrong',\n duration: 2.5,\n });\n }\n }\n\n @action\n async generateConsumerReport(id: number) {\n try {\n await this.apiService.patch(\n ApiRoutes.applicants.regenrateConsumerReport(id),\n );\n } catch (e) {\n notification.error({\n message: (e as Error)?.message || 'Something went wrong!',\n duration: 2.5,\n });\n }\n }\n\n @action\n async saveApplicationData(applicantId: number, data: any) {\n try {\n await this.apiService.post(\n ApiRoutes.extendedApp.additionalInformationExtended(applicantId),\n data,\n );\n } catch (e) {\n notification.error({\n message: (e as Error)?.message || 'Something went wrong!',\n duration: 2.5,\n });\n }\n }\n\n @action\n clearStore(): void {\n this.applicantPaginatedList = new PaginatedModelList(Applicant);\n this.mxMonitoringTenantsPaginatedList = new PaginatedModelList(\n Applicant,\n );\n }\n}\n","import { observable } from 'mobx';\nimport Model from 'models/Model';\nimport { SystemLogsStore } from 'stores/systemLogsStore';\nexport enum SystemLogType {\n ENABLE_USER = 'enable_user',\n}\n\nexport class SystemLogs extends Model {\n static _store: SystemLogsStore;\n\n @observable id: number;\n\n @observable type: SystemLogType;\n\n @observable meta: JSON;\n\n @observable createdAt: string;\n\n @observable updatedAt: string;\n}\n","import { action, observable } from 'mobx';\nimport { debounce } from 'lodash';\nimport Store from './Store';\nimport { ApplicationLogs } from '../models/entities/ApplicationLogsModel';\nimport { PaginatedModelList } from '../models/PaginatedModelList';\nimport ApiRoutes from '../routes/api/ApiRoutes';\n\nexport class ApplicationLogsStore extends Store {\n constructor() {\n super();\n ApplicationLogs._store = this;\n }\n\n @observable loading = false;\n\n @observable loadingMore = false;\n\n @observable loaded = false;\n\n @observable applicationLogsPaginatedList = new PaginatedModelList<\n ApplicationLogs\n >(ApplicationLogs);\n\n @action\n setLoading(loading: boolean) {\n this.loading = loading;\n }\n\n @action\n setLoadingMore(loading: boolean) {\n this.loadingMore = loading;\n }\n\n @action\n setLoaded(loaded: boolean) {\n this.loaded = loaded;\n }\n\n @action\n async fetchApplicationLogs(applicationId: number, force = false) {\n if (!this.loading) {\n if (force) {\n this.applicationLogsPaginatedList.setItems([]);\n this.setLoading(true);\n } else if (this.applicationLogsPaginatedList.items.length > 0) {\n this.setLoadingMore(true);\n }\n const fetchData = debounce(async () => {\n try {\n const response = await this.apiService.get(\n ApiRoutes.applications.logs.list(applicationId),\n );\n if (response && response.data) {\n this.applicationLogsPaginatedList.setItems(response.data);\n this.setLoading(false);\n this.setLoadingMore(false);\n this.setLoaded(true);\n }\n } catch (e) {\n this.setLoading(false);\n }\n }, 500);\n await fetchData();\n }\n }\n\n @action\n async createLog(applicationId: number, logBody: { type: string; meta: any }) {\n const response = await this.apiService.post(\n ApiRoutes.applications.logs.create(applicationId),\n logBody,\n );\n\n if (response && response.data) {\n this.applicationLogsPaginatedList.setItems([\n response.data,\n ...this.applicationLogsPaginatedList.items,\n ]);\n }\n }\n\n @action\n clearStore(): void {\n this.applicationLogsPaginatedList = new PaginatedModelList(\n ApplicationLogs,\n );\n this.setLoaded(false);\n this.setLoading(false);\n }\n}\n","import { action } from 'mobx';\nimport Store from './Store';\nimport { GuestCardChat } from '../models/entities/GuestCardChatModel';\n\nexport class GuestCardChatStore extends Store {\n constructor() {\n super();\n GuestCardChat._store = this;\n }\n\n @action\n clearStore(): void {}\n}\n","import { observable } from 'mobx';\nimport Model from 'models/Model';\nimport { ReferralStore } from 'stores/ReferralStore';\n\nexport class Referral extends Model {\n static _store: ReferralStore;\n\n @observable id: number;\n\n @observable agent_id: number;\n\n @observable invited_by: number;\n\n @observable invitee_name: string;\n\n @observable invitee_email: string;\n\n @observable note: string;\n\n @observable status: string;\n\n @observable createdAt: string;\n\n @observable updatedAt: string;\n}\n","import { action, computed, observable } from 'mobx';\nimport { Referral } from 'models/entities/ReferralModel';\nimport { PaginatedModelList } from 'models/PaginatedModelList';\nimport ApiRoutes from 'routes/api/ApiRoutes';\nimport Store from './Store';\n\nexport class ReferralStore extends Store {\n constructor() {\n super();\n Referral._store = this;\n }\n\n @observable loading = false;\n\n @observable loaded = false;\n\n @observable referralPaginatedList = new PaginatedModelList(\n Referral,\n );\n\n @computed get referrals() {\n return this.referralPaginatedList.items;\n }\n\n @action\n setLoading(loading: boolean) {\n this.loading = loading;\n }\n\n @action\n setLoaded(loaded: boolean) {\n this.loaded = loaded;\n }\n\n @action\n async fetchReferrals(params = {}, force = false) {\n if ((!this.loading && !this.loaded) || force) {\n this.referralPaginatedList.setItems([]);\n this.setLoading(true);\n try {\n await this.referralPaginatedList.load(ApiRoutes.referrals.list, params);\n this.setLoading(false);\n this.setLoaded(true);\n } catch (e) {\n this.setLoading(false);\n }\n }\n }\n\n @action\n async createReferrals(referralBody: {\n invitee_name: string;\n invitee_email: string;\n note: string;\n }) {\n const response = await this.apiService.post(\n ApiRoutes.referrals.create,\n referralBody,\n );\n if (response && response.data) {\n this.referralPaginatedList.setItems([\n response.data,\n ...this.referralPaginatedList.items,\n ]);\n }\n }\n\n @action\n async resendReferral(referralId: number) {\n await this.apiService.post(ApiRoutes.referrals.resend(referralId));\n }\n\n @action\n clearStore(): void {\n this.referralPaginatedList = new PaginatedModelList(Referral);\n this.setLoaded(false);\n this.setLoading(false);\n }\n}\n","import { action } from 'mobx';\nimport Store from './Store';\nimport { BankTransaction } from 'models/entities/BankTransactionModel';\n\nexport class BankTransactionStore extends Store {\n constructor() {\n super();\n BankTransaction._store = this;\n }\n\n @action\n clearStore(): void {}\n}","import { action, observable } from 'mobx';\nimport Store from './Store';\nimport { PayrollDetail } from 'models/entities/PayrollDetail';\n\nexport class PayrollDetailStore extends Store {\n constructor() {\n super();\n PayrollDetail._store = this;\n }\n\n @action\n clearStore(): void {}\n}\n","import { action, observable } from 'mobx';\nimport Store from './Store';\nimport { ModelItem } from '../models/ModelItem';\nimport { ApplicationInsurance } from '../models/entities/ApplicationInsuranceModel';\n\nexport class ApplicationInsuranceStore extends Store {\n constructor() {\n super();\n ApplicationInsurance._store = this;\n }\n\n @observable applicationInsuranceItem = new ModelItem(\n ApplicationInsurance,\n );\n\n @action\n clearStore(): void {\n this.applicationInsuranceItem = new ModelItem(\n ApplicationInsurance,\n );\n }\n}\n","import { action } from 'mobx';\nimport Store from './Store';\nimport { RentDeterminationChat } from '../models/entities/RentDeterninationChatModel';\n\nexport class RentDeterminationChatStore extends Store {\n constructor() {\n super();\n RentDeterminationChat._store = this;\n }\n\n @action\n clearStore(): void {}\n}\n","import { SystemLogs } from 'models/entities/SystemLogsModel';\nimport Store from './Store';\nimport { action, observable } from 'mobx';\nimport { PaginatedModelList } from 'models/PaginatedModelList';\nimport ApiRoutes from 'routes/api/ApiRoutes';\n\nexport class SystemLogsStore extends Store {\n constructor() {\n super();\n SystemLogs._store = this;\n }\n\n @observable loading = false;\n\n @observable loaded = false;\n\n @observable systemLogsPaginatedList = new PaginatedModelList(\n SystemLogs,\n );\n\n @action setLoading(loading: boolean) {\n this.loading = loading;\n }\n\n @action setLoaded(loaded: boolean) {\n this.loaded = loaded;\n }\n\n @action async fetchSystemLogs(\n params: { [key: string]: any },\n forceRefresh?: boolean,\n ): Promise {\n try {\n const res = await this.systemLogsPaginatedList.load(\n ApiRoutes.system.log.logs,\n params,\n { forceRefresh },\n );\n } catch (e) {\n console.log(e);\n }\n }\n\n @action\n clearStore(): void {\n this.systemLogsPaginatedList = new PaginatedModelList(\n SystemLogs,\n );\n this.setLoaded(false);\n this.setLoading(false);\n }\n}\n","/* eslint-disable import/no-cycle */\nimport { observable } from 'mobx';\nimport Model from 'models/Model';\nimport {\n HealthCheckStatus,\n HealthStatusType,\n} from 'pages/app/system/HealthCheck/constants';\n\nimport { IntegrationHealthStatusStore } from '../../stores/IntegrationHeathStatusStore';\n\nexport class IntegrationHealthStatus extends Model {\n static _store: IntegrationHealthStatusStore;\n\n @observable id: number;\n\n @observable last_check_attempt: string;\n\n @observable name: string;\n\n @observable meta: JSON;\n\n @observable status: HealthCheckStatus;\n\n @observable health_status: HealthStatusType;\n\n @observable createdAt: string;\n\n @observable updatedAt: string;\n}\n","/* eslint-disable import/no-cycle */\nimport { action, observable } from 'mobx';\nimport { IntegrationHealthStatus } from '../models/entities/IntegrationHealthStatusModel';\nimport ApiRoutes from '../routes/api/ApiRoutes';\nimport { PaginatedModelList } from '../models/PaginatedModelList';\nimport Store from './Store';\n\nexport class IntegrationHealthStatusStore extends Store<\n IntegrationHealthStatus\n> {\n constructor() {\n super();\n IntegrationHealthStatus._store = this;\n }\n\n @observable loading = false;\n\n @observable loaded = false;\n\n @action setLoading(loading: boolean): void {\n this.loading = loading;\n }\n\n @action setLoaded(loaded: boolean): void {\n this.loaded = loaded;\n }\n\n @observable\n IntegrationHealthStatusPaginatedList = new PaginatedModelList<\n IntegrationHealthStatus\n >(IntegrationHealthStatus);\n\n @action\n async loadIntegrationHealthStatus(\n params?: { [key: string]: any },\n forceRefresh?: boolean,\n ) {\n return this.IntegrationHealthStatusPaginatedList.load(\n ApiRoutes.system.integrationHealth.list,\n params,\n { forceRefresh },\n );\n }\n\n @action\n async checkIntegrationHealth(id: number) {\n this.setLoading(true);\n const response = await this.apiService.post(\n ApiRoutes.system.integrationHealth.check(id),\n );\n if (response.data) {\n this.IntegrationHealthStatusPaginatedList.items\n .find((_item) => _item.id === id)\n .updateFromJson(response.data);\n }\n\n this.setLoading(false);\n return response;\n }\n\n @action\n clearStore(): void {\n this.IntegrationHealthStatusPaginatedList = new PaginatedModelList<\n IntegrationHealthStatus\n >(IntegrationHealthStatus);\n }\n}\n","import { observable } from 'mobx';\nimport { Model } from '../Model';\nimport { PHAStore } from 'stores/PHAStore';\n\nexport class PHAInviteAnalytics extends Model {\n static _store: PHAStore;\n\n @observable id: number;\n\n @observable event: string;\n\n @observable event_occured_at: Date;\n}\n","import Model from 'models/Model';\nimport { PHAStore } from 'stores/PHAStore';\n\nexport class PHAProgramme extends Model {\n static _store: PHAStore;\n\n id: number;\n\n code: string;\n\n name: string;\n}\n","import { observable } from 'mobx';\nimport Model from '../Model';\nimport { PHAStore } from '../../stores/PHAStore';\nimport { ModelItem } from '../ModelItem';\nimport { User } from './UserModel';\nimport type { PHAStepConfiguration } from '../../interfaces/PHAStepConfiguration.interface';\n\nexport class PHA extends Model {\n static _store: PHAStore;\n\n @observable id: number;\n\n @observable address: string;\n\n @observable pha_name: string;\n\n @observable primary_name: string;\n\n @observable primary_contact: string;\n\n @observable primary_email: string;\n\n @observable owner: User;\n\n @observable address_line_1: string;\n\n @observable address_line_2: string;\n\n @observable city_name: string;\n\n @observable state_code: string;\n\n @observable zip_code: string;\n\n @observable step_configuration: PHAStepConfiguration;\n}\n","import { observable } from 'mobx';\nimport Model from 'models/Model';\n// eslint-disable-next-line import/no-cycle\nimport { WaitListInviteStore } from 'stores/WaitListInviteStore';\nimport { ModelItem } from 'models/ModelItem';\nimport { Building } from './BuildingModel';\n\nexport enum WaitListInviteStatus {\n SENT = 'sent',\n ACCEPTED = 'accepted',\n}\n\nexport class WaitListInvite extends Model {\n static _store: WaitListInviteStore;\n\n @observable id: number;\n\n @observable first_name: string;\n\n @observable last_name: number;\n\n @observable email: string;\n\n @observable phone_number: string;\n\n @observable status: WaitListInviteStatus;\n\n @observable invited_by: number;\n\n @observable expired_at: Date;\n\n @observable building_id: number;\n\n @observable building = new ModelItem(Building);\n\n get fullname(): string {\n const name = [this.first_name, this.last_name];\n return name.filter((v) => !!v).join(' ');\n }\n}\n","import { observable } from 'mobx';\nimport Model from '../Model';\nimport { PHAStore } from '../../stores/PHAStore';\nimport { PHAInviteType } from '../../enums/PHA/PHAInviteType.enum';\nimport { PHAInviteStatus } from '../../enums/PHA/PHAInviteStatus.enum';\nimport { PHAInviteSubsidyType } from '../../enums/PHA/PHAInviteSubsidyType.enum';\n\nexport class PHAInvitation extends Model {\n static _store: PHAStore;\n\n @observable id: number;\n\n @observable pha_id: number;\n\n @observable invited_by: number;\n\n @observable receiver_type: PHAInviteType;\n\n @observable receiver_first_name: string;\n\n @observable receiver_last_name: string;\n\n @observable receiver_email: string;\n\n @observable receiver_phone_number: string;\n\n @observable company_name: string;\n\n @observable status: PHAInviteStatus;\n\n @observable createdAt: string;\n\n @observable subsidy_type: PHAInviteSubsidyType;\n}\n","/* eslint-disable consistent-return */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nimport { action, observable } from 'mobx';\nimport { notification } from 'antd';\nimport { PHAInviteAnalytics } from 'models/entities/PHAInviteAnalyticsModal';\nimport { ModelList } from 'models/ModelList';\nimport { PHAProgramme } from 'models/entities/PHAProgrammesModel';\nimport Store from './Store';\nimport { PHA } from '../models/entities/PHAModel';\nimport { PaginatedModelList } from '../models/PaginatedModelList';\nimport ApiRoutes from '../routes/api/ApiRoutes';\nimport { PHAInvitation } from '../models/entities/PHAInvitationModel';\nimport { ModelItem } from '../models/ModelItem';\nimport { User } from 'models/entities/UserModel';\nimport { Application } from 'models/entities/ApplicationModel';\nimport { UserStore } from './UserStore';\n\nexport class PHAStore extends Store {\n constructor() {\n super();\n PHA._store = this;\n PHAInvitation._store = this;\n PHAProgramme._store = this;\n }\n\n @observable phaPaginatedList = new PaginatedModelList(PHA);\n\n @observable phaMembersPaginatedList = new PaginatedModelList(User);\n\n @observable phaItem = new ModelItem(PHA);\n\n @observable phaInvitationsPaginatedList = new PaginatedModelList<\n PHAInvitation\n >(PHAInvitation);\n\n @observable phaInvitationItem = new ModelItem(PHAInvitation);\n\n @observable phaInviteAnalytics = new ModelList(\n PHAInviteAnalytics,\n );\n\n @observable phaProgrammesPaginatedList = new PaginatedModelList(\n PHAProgramme,\n );\n\n @observable phaSubProgrammesPaginatedList = new PaginatedModelList<\n PHAProgramme\n >(PHAProgramme);\n\n @observable phaAllSubProgrammesPaginatedList = new PaginatedModelList<\n PHAProgramme\n >(PHAProgramme);\n\n @observable selectedPhaIdForMemberFilter = undefined;\n\n @observable loadingMembers = false;\n\n get phas() {\n return this.phaPaginatedList.items;\n }\n\n @action\n setSelectedPhaId(val: number | undefined) {\n this.selectedPhaIdForMemberFilter = val;\n }\n\n @action\n async loadPHAs(params?: { [key: string]: any }) {\n try {\n this.phaPaginatedList.setLoading(true);\n await this.phaPaginatedList.load(ApiRoutes.phas.list, params);\n this.phaPaginatedList.setLoading(false);\n } catch (e) {\n this.phaPaginatedList.setLoading(false);\n }\n }\n\n @action\n async getPHA(pha_id: number, appendToPaginatedList = false) {\n try {\n this.phaItem.setLoading(true);\n const response = await this.apiService.get(ApiRoutes.phas.show(pha_id));\n if (response.data) {\n this.phaItem.setItem(response.data);\n if (appendToPaginatedList) {\n const pha = PHA.getOrNew(pha_id) as PHA;\n pha.updateFromJson(response.data);\n this.phaPaginatedList.setItems([pha, ...this.phaPaginatedList.items]);\n }\n }\n } catch (e) {\n notification.error({\n message: e?.message || 'Something went wrong',\n duration: 2.5,\n });\n } finally {\n this.phaItem.setLoading(false);\n }\n }\n @action async updatePHA(\n pha_id: number,\n data: {\n primary_name: string;\n primary_contact: string;\n city_name: string;\n street_name: string;\n state_code: string;\n house_number: string;\n country: string;\n zip_code: string | number;\n latitude: number;\n longitude: number;\n step_cofiguration?: {\n rta_enabled: boolean;\n comps_selection_enabled: boolean;\n rent_determination_enabled: boolean;\n inspection_enabled: boolean;\n contract_enabled: boolean;\n };\n },\n ) {\n try {\n this.phaItem.setLoading(true);\n const response = await this.apiService.patch(\n ApiRoutes.phas.show(pha_id),\n data,\n );\n if (response.data) {\n this.phaItem.setItem(response.data);\n }\n this.phaItem.setLoading(false);\n return response.data;\n } catch (e) {\n this.phaItem.setLoading(false);\n notification.error({\n message: e?.message || 'Something went wrong',\n duration: 2.5,\n });\n }\n }\n\n @action\n async loadPhaMembers(phaId: number, params?: any): Promise {\n await this.phaMembersPaginatedList.load(\n ApiRoutes.phas.members.list(phaId),\n params,\n );\n }\n\n @action\n async fetchPhaFromId(id: number, params?: { [key: string]: any }) {\n const pha = this.phas.find((_pha) => _pha.id === id);\n if (pha) {\n this.phaItem.setItem(pha);\n return pha;\n }\n await this.phaItem.load(ApiRoutes.phas.show(id), params);\n\n this.phaPaginatedList.appendItem(this.phaItem.item);\n\n return this.phaItem.item;\n }\n\n @action\n async createPhaMember(phaId: number, data: any) {\n const response = await this.apiService.post(\n ApiRoutes.phas.members.create(phaId),\n data,\n );\n if (this.selectedPhaIdForMemberFilter === phaId) {\n const member = User.fromJson(response.data) as User;\n this.phaMembersPaginatedList.appendItem(member);\n return member;\n }\n return null;\n }\n\n @action\n async updatePhaMember(phaId: number, memberId: number, data: any) {\n const response = await this.apiService.put(\n ApiRoutes.phas.members.update(phaId, memberId),\n data,\n );\n this.phaMembersPaginatedList.items\n .find((_item) => _item.id === memberId)\n .updateFromJson(response.data);\n }\n\n @action\n async deletePhaMember(phaId: number, memberId: number, isOwner = false) {\n await this.apiService.delete(\n ApiRoutes.phas.members.update(phaId, memberId),\n );\n if (isOwner) {\n this.phaMembersPaginatedList = new PaginatedModelList(User);\n const newPhas = this.phaPaginatedList.items.filter(\n (_pha) => _pha.id !== phaId,\n );\n this.phaPaginatedList.setItems(newPhas);\n this.setSelectedPhaId(newPhas[0].id);\n } else {\n const newItems = this.phaMembersPaginatedList.items.filter(\n (_item) => _item.id !== memberId,\n );\n this.phaMembersPaginatedList.setItems(newItems);\n }\n }\n\n @action\n async loadPHAInvites(params?: { [key: string]: any }) {\n try {\n this.phaInvitationsPaginatedList.setLoading(true);\n await this.phaInvitationsPaginatedList.load(\n ApiRoutes.phas.invites.list,\n params,\n );\n this.phaInvitationsPaginatedList.setLoading(false);\n } catch (e) {\n this.phaInvitationsPaginatedList.setLoading(false);\n }\n }\n\n @action async sendInvite(pha_id: number, data: any) {\n try {\n this.phaInvitationsPaginatedList.setLoading(true);\n const response = await this.apiService.post(\n ApiRoutes.phas.invites.create(pha_id),\n { invite_data: data },\n );\n this.phaInvitationsPaginatedList.items.unshift(response?.data);\n this.phaInvitationsPaginatedList.setLoading(false);\n return response.data;\n } catch (e) {\n this.phaInvitationsPaginatedList.setLoading(false);\n notification.error({\n message: e?.message || 'Something went wrong',\n duration: 2.5,\n });\n }\n }\n\n @action\n async bulkInvite(phaId: number, inviteData: any) {\n try {\n const response = await this.apiService.post(\n ApiRoutes.phas.invites.bulkCreate(phaId),\n {\n invite_data: inviteData,\n },\n );\n if (response && response.data) {\n const data = [\n ...response.data,\n ...this.phaInvitationsPaginatedList.items,\n ];\n this.phaInvitationsPaginatedList.setItems(data);\n }\n } catch (e) {\n notification.error({\n message: e?.message || 'Something went wrong',\n duration: 2.5,\n });\n }\n }\n\n @action\n async fetchPHAInvite(invite_id: string): Promise {\n try {\n this.phaInvitationItem.setLoading(true);\n const response = await this.apiService.get(\n ApiRoutes.public.phaInvite.show(invite_id),\n );\n if (response) {\n this.phaInvitationItem.setItem(response.data);\n this.phaInvitationItem.setLoading(false);\n this.phaInvitationItem.setLoaded(true);\n }\n } catch (e) {\n this.phaInvitationItem.setLoading(false);\n this.phaInvitationItem.setLoaded(false);\n notification.error({\n message: e?.message || 'Something went wrong',\n duration: 2.5,\n });\n }\n }\n\n @action async answerQuestionnaire(data: {}, phaInvitedId: string) {\n return this.apiService.post(\n ApiRoutes.phas.invites.answerQuestionnaire(phaInvitedId),\n data,\n );\n }\n\n @action async getAnalytics(invite_id: number) {\n try {\n this.phaInviteAnalytics.setLoading(true);\n const response = await this.apiService.get(\n ApiRoutes.phas.analytics(invite_id),\n );\n if (response) {\n this.phaInviteAnalytics.setLoading(false);\n this.phaInviteAnalytics.setLoaded(true);\n this.phaInviteAnalytics.setItems(response.data);\n }\n } catch (e) {\n this.phaInviteAnalytics.setLoading(false);\n this.phaInviteAnalytics.setLoaded(false);\n notification.error({\n message: e?.message || 'Something went wrong',\n duration: 2.5,\n });\n }\n }\n\n @action async createPHA(data: {\n name: string;\n primary_contact_name: string;\n email: string;\n primary_phone: string;\n city_name: string;\n street_name: string;\n state_code: string;\n house_number: string;\n country: string;\n zip_code: string | number;\n latitude: number;\n longitude: number;\n step_cofiguration?: {\n rta_enabled: boolean;\n comps_selection_enabled: boolean;\n rent_determination_enabled: boolean;\n inspection_enabled: boolean;\n contract_enabled: boolean;\n };\n }): Promise {\n try {\n const response = await this.apiService.post(ApiRoutes.phas.list, data);\n if (response.data) {\n const pha = PHA.fromJson(response.data) as PHA;\n this.phaItem.setItem(pha);\n this.phaPaginatedList.appendItem(pha);\n }\n return response.data;\n } catch (e) {\n notification.error({\n message: (e as any)?.message || 'Something went wrong',\n duration: 2.5,\n });\n }\n }\n\n @action\n async createProgramme(\n pha_id: number,\n programme_data: { name: string; code: string },\n ) {\n this.phaProgrammesPaginatedList.setLoading(true);\n const response = await this.apiService.post(\n ApiRoutes.phas.programmes.createAndList(pha_id),\n { code: programme_data.code, name: programme_data.name },\n );\n if (response.data) {\n const programme = PHAProgramme.fromJson(response.data) as PHAProgramme;\n this.phaProgrammesPaginatedList.appendItem(programme);\n }\n this.phaProgrammesPaginatedList.setLoading(false);\n return response.data;\n }\n\n async createSubProgramme(\n pha_id: number,\n subProgramme_data: { name: string; code: string },\n ) {\n this.phaSubProgrammesPaginatedList.setLoading(true);\n const response = await this.apiService.post(\n ApiRoutes.phas.subProgrammes.createAndList(pha_id),\n { code: subProgramme_data.code, name: subProgramme_data.name },\n );\n if (response.data) {\n const subProgramme = PHAProgramme.fromJson(response.data) as PHAProgramme;\n this.phaSubProgrammesPaginatedList.appendItem(subProgramme);\n }\n this.phaSubProgrammesPaginatedList.setLoading(false);\n return response.data;\n }\n\n @action\n async listProgrammes(pha_id: number) {\n try {\n this.phaProgrammesPaginatedList.setLoading(true);\n const response = await this.apiService.get(\n ApiRoutes.phas.programmes.createAndList(pha_id),\n );\n if (response.data) {\n this.phaProgrammesPaginatedList.setItems(response.data);\n }\n this.phaProgrammesPaginatedList.setLoading(false);\n } catch (e) {\n this.phaProgrammesPaginatedList.setLoading(false);\n notification.error({\n message: (e as any)?.message || 'Something went wrong',\n duration: 2.5,\n });\n }\n }\n\n @action\n async listSubProgrammes(pha_id: number) {\n try {\n this.phaSubProgrammesPaginatedList.setLoading(true);\n const response = await this.apiService.get(\n ApiRoutes.phas.subProgrammes.createAndList(pha_id),\n );\n if (response.data) {\n this.phaSubProgrammesPaginatedList.setItems(response.data);\n }\n this.phaSubProgrammesPaginatedList.setLoading(false);\n } catch (e) {\n this.phaSubProgrammesPaginatedList.setLoading(false);\n notification.error({\n message: (e as any)?.message || 'Something went wrong',\n duration: 2.5,\n });\n }\n }\n\n @action\n async listAllSubProgrammes() {\n try {\n this.phaAllSubProgrammesPaginatedList.setLoading(true);\n const response = await this.apiService.get(\n ApiRoutes.phas.subProgrammes.getAllSubProgrammes,\n );\n if (response.data) {\n this.phaAllSubProgrammesPaginatedList.setItems(response.data);\n }\n this.phaAllSubProgrammesPaginatedList.setLoading(false);\n } catch (e) {\n this.phaAllSubProgrammesPaginatedList.setLoading(false);\n notification.error({\n message: (e as any)?.message || 'Something went wrong',\n duration: 2.5,\n });\n }\n }\n\n @action\n // eslint-disable-next-line consistent-return\n @action\n async updateProgramme(\n pha_id: number,\n programme_id: number,\n programme_data: { code?: string; name?: string },\n ) {\n try {\n const response = await this.apiService.put(\n ApiRoutes.phas.programmes.updateAndRemove(pha_id, programme_id),\n { code: programme_data.code, name: programme_data.name },\n );\n const programme = PHAProgramme.getOrNew(programme_id) as PHAProgramme;\n\n programme.updateFromJson(response.data);\n\n const newProgrammesList = this.phaProgrammesPaginatedList.items.map(\n (_programme) => {\n if (_programme.id === programme_id) {\n return programme;\n }\n return _programme;\n },\n );\n\n this.phaProgrammesPaginatedList.setItems(newProgrammesList);\n return response.data;\n } catch (e) {\n console.log(e);\n notification.error({\n message: (e as any)?.message || 'Something went wrong',\n duration: 2.5,\n });\n }\n }\n\n @action\n async updateSubProgramme(\n pha_id: number,\n sub_programme_id: number,\n sub_programme_data: { code?: string; name?: string },\n ) {\n try {\n const response = await this.apiService.put(\n ApiRoutes.phas.subProgrammes.updateAndRemove(pha_id, sub_programme_id),\n { code: sub_programme_data.code, name: sub_programme_data.name },\n );\n const subProgramme = PHAProgramme.getOrNew(\n sub_programme_id,\n ) as PHAProgramme;\n\n subProgramme.updateFromJson(response.data);\n\n const newSubProgrammesList = this.phaSubProgrammesPaginatedList.items.map(\n (_subProgramme) => {\n if (_subProgramme.id === sub_programme_id) {\n return subProgramme;\n }\n return _subProgramme;\n },\n );\n\n this.phaSubProgrammesPaginatedList.setItems(newSubProgrammesList);\n return response.data;\n } catch (e) {\n console.log(e);\n notification.error({\n message: (e as any)?.message || 'Something went wrong',\n duration: 2.5,\n });\n }\n }\n\n async deleteProgramme(pha_id: number, programme_id: number) {\n try {\n const response = await this.apiService.delete(\n ApiRoutes.phas.programmes.updateAndRemove(pha_id, programme_id),\n );\n const newProgrammes = this.phaProgrammesPaginatedList.items.filter(\n (_programme) => _programme.id !== programme_id,\n );\n this.phaProgrammesPaginatedList.setItems(newProgrammes);\n\n return response;\n } catch (e) {\n notification.error({\n message: (e as any)?.message || 'Something went wrong',\n duration: 2.5,\n });\n }\n }\n\n async deleteSubProgramme(pha_id: number, sub_programme_id: number) {\n try {\n const response = await this.apiService.delete(\n ApiRoutes.phas.subProgrammes.updateAndRemove(pha_id, sub_programme_id),\n );\n const newSubProgrammes = this.phaSubProgrammesPaginatedList.items.filter(\n (_subProgramme) => _subProgramme.id !== sub_programme_id,\n );\n this.phaSubProgrammesPaginatedList.setItems(newSubProgrammes);\n\n return response;\n } catch (e) {\n notification.error({\n message: (e as any)?.message || 'Something went wrong',\n duration: 2.5,\n });\n }\n }\n\n async getProgramme(pha_id: number, programme_code: string) {\n try {\n const response = await this.apiService.post(\n ApiRoutes.phas.programmes.getProgramme(pha_id),\n { programme_code },\n );\n return response.data;\n } catch (e) {\n notification.error({\n message: (e as any)?.message || 'Something went wrong',\n duration: 2.5,\n });\n }\n }\n\n async getSubProgramme(pha_id: number, sub_programme_code: string) {\n try {\n const response = await this.apiService.post(\n ApiRoutes.phas.subProgrammes.getSubProgramme(pha_id),\n { sub_programme_code },\n );\n return response.data;\n } catch (e) {\n notification.error({\n message: (e as any)?.message || 'Something went wrong',\n duration: 2.5,\n });\n }\n }\n\n async getSubProgrammeById(id: number) {\n try {\n const response = await this.apiService.get(\n ApiRoutes.phas.subProgrammes.getById(id),\n );\n this.phaAllSubProgrammesPaginatedList.appendItem(response.data);\n return response.data;\n } catch (e) {\n notification.error({\n message: (e as any)?.message || 'Something went wrong',\n duration: 2.5,\n });\n }\n }\n\n async updateTermsAndConditions(\n organisation_id: number,\n terms_accepted_at: Date,\n signatorName: string,\n ) {\n const response = await this.apiService.post(\n ApiRoutes.phas.invites.updateTermsAnditions(organisation_id),\n { terms_accepted_at, signatorName },\n );\n return response.data;\n }\n\n async submitW9Form(application: Application, data: any) {\n const response = await this.apiService.post(\n ApiRoutes.phas.w9Form(application.id),\n data,\n );\n return response.data;\n }\n\n async submitRentalTermForm(application: Application, data: any) {\n const response = await this.apiService.post(\n ApiRoutes.phas.rentalTermsForm(application.id),\n data,\n );\n return response.data;\n }\n\n @action\n clearStore(): void {\n this.phaPaginatedList = new PaginatedModelList(PHA);\n this.phaInvitationsPaginatedList = new PaginatedModelList(\n PHAInvitation,\n );\n this.phaInvitationItem = new ModelItem(PHAInvitation);\n this.phaInviteAnalytics = new ModelList(\n PHAInviteAnalytics,\n );\n this.phaSubProgrammesPaginatedList = new PaginatedModelList(\n PHAProgramme,\n );\n }\n}\n","import { observable } from 'mobx';\nimport Model from 'models/Model';\nimport { WaitListInviteStore } from 'stores/WaitListInviteStore';\n\nexport class WaitListInviteAnalytics extends Model {\n static _store: WaitListInviteStore;\n\n @observable id: number;\n\n @observable event: string;\n\n @observable event_occured_at: Date;\n}\n","import { WaitListInvite } from 'models/entities/WaitListInviteModel';\nimport ApiRoutes from 'routes/api/ApiRoutes';\nimport { action, observable } from 'mobx';\nimport { PaginatedModelList } from 'models/PaginatedModelList';\nimport { notification } from 'antd';\nimport { ModelItem } from 'models/ModelItem';\nimport Store from './Store';\nimport { ModelList } from 'models/ModelList';\nimport { WaitListInviteAnalytics } from 'models/entities/WaitListInviteAnalyticsModel';\n\nexport class WaitListInviteStore extends Store {\n constructor() {\n super();\n WaitListInvite._store = this;\n WaitListInviteAnalytics._store = this;\n }\n\n @observable invitePaginatedList = new PaginatedModelList(\n WaitListInvite,\n );\n\n @observable inviteItem = new ModelItem(WaitListInvite);\n\n @observable waitListInviteAnalytics = new ModelList(\n WaitListInviteAnalytics,\n );\n\n get invites(): WaitListInvite[] {\n return this.invitePaginatedList.items;\n }\n\n @action\n async sendInvite(body: {\n first_name: string;\n email: string;\n organisation_id?: number;\n phone_number?: string;\n last_name?: string;\n building_id?: number;\n }): Promise {\n try {\n const response = await this.apiService.post(\n ApiRoutes.tenantMonitoring.waitlistInvite.create,\n body,\n );\n\n this.invitePaginatedList.items.unshift(response);\n notification.success({\n message: 'Invite Sent',\n duration: 2,\n });\n } catch (e) {\n notification.error({\n message: (e as any)?.message ?? 'Something went wrong',\n duration: 2,\n });\n }\n }\n\n @action async fetchById(inviteId: number) {\n return this.inviteItem.load(ApiRoutes.public.waitlistInvite.show(inviteId));\n }\n\n @action\n async fetchMonitoringTenants(params?: { [key: string]: any }): Promise {\n return this.invitePaginatedList.load(\n ApiRoutes.tenantMonitoring.waitlistInvite.list,\n params,\n );\n }\n\n @action async getWaitListAnalytics(invite_id: number) {\n try {\n this.waitListInviteAnalytics.setLoading(true);\n const reponse = await this.apiService.get(\n ApiRoutes.tenantMonitoring.waitlistInvite.analytics(invite_id),\n );\n this.waitListInviteAnalytics.setItems(reponse.data);\n this.waitListInviteAnalytics.setLoading(false);\n this.waitListInviteAnalytics.setLoaded(true);\n } catch (e) {\n this.waitListInviteAnalytics.setLoading(false);\n this.waitListInviteAnalytics.setLoaded(false);\n notification.error({\n message: e?.message || 'Something went wrong',\n duration: 2.5,\n });\n }\n }\n\n @action\n clearStore(): void {}\n}\n","/* eslint-disable import/no-cycle */\nimport { action, observable } from 'mobx';\nimport ApiRoutes from 'routes/api/ApiRoutes';\nimport { ModelItem } from 'models/ModelItem';\nimport { WaitingListSteps } from 'models/WaitingListStep';\nimport { DocumentStatus } from 'enums/DocumentStatus.enum';\nimport { notification } from 'antd';\nimport Store from './Store';\nimport { WaitingListApplicant } from '../models/entities/WaitingListApplicantModel';\nimport { PaginatedModelList } from '../models/PaginatedModelList';\n\nexport class WaitingListApplicantStore extends Store {\n constructor() {\n super();\n WaitingListApplicant._store = this;\n }\n\n @observable waitingListApplicant = new ModelItem(\n WaitingListApplicant,\n );\n\n @observable\n waitingListApplicantsPaginatedList = new PaginatedModelList<\n WaitingListApplicant\n >(WaitingListApplicant);\n\n @observable currentStep: WaitingListSteps;\n\n // eslint-disable-next-line no-return-assign\n @action setCurrentStep = (step: WaitingListSteps) =>\n (this.currentStep = step);\n\n @action\n async fetchMonitoringTenants(params?: { [key: string]: any }): Promise {\n return this.waitingListApplicantsPaginatedList.load(\n ApiRoutes.tenantMonitoring.list,\n params,\n );\n }\n\n @action\n clearStore(): void {\n this.currentStep = null;\n this.waitingListApplicantsPaginatedList = new PaginatedModelList<\n WaitingListApplicant\n >(WaitingListApplicant);\n }\n\n @action\n async removeTenantMxMonitoring(tenant: WaitingListApplicant): Promise {\n const response = await this.apiService.patch(\n ApiRoutes.tenantMonitoring.remove(tenant.id),\n );\n if (response) {\n this.waitingListApplicantsPaginatedList.removeItem(tenant);\n }\n return response;\n }\n\n @action async reGenerateReport(tenant: WaitingListApplicant) {\n const response = await this.apiService.post(\n ApiRoutes.tenantMonitoring.regenerate(tenant.id),\n );\n\n if (response) {\n (this.waitingListApplicantsPaginatedList.items as any).forEach(\n (applicant) => {\n if (applicant.id === tenant.id) {\n // tenant.report_url = response\n // applicant.report_url = response?.data?.report_url;\n // applicant.last_updated = response?.data?.last_updated;\n }\n },\n );\n }\n\n return response;\n }\n\n @action\n async completeWaitlistApplicantDocumentUpload(\n waitlistApplicantId: number,\n documentId: number,\n uploadCount?: number,\n ) {\n await this.apiService.post(\n ApiRoutes.waitlistApplicantDocument.complete(\n waitlistApplicantId,\n documentId,\n ),\n {\n upload_count: uploadCount,\n },\n );\n }\n\n @action\n async getWaitlistApplicantDocuments(\n waitlistApplicantId: number,\n status: DocumentStatus,\n ) {\n const response = await this.apiService.get(\n ApiRoutes.waitlistApplicantDocument.list(waitlistApplicantId),\n { status },\n );\n return response;\n }\n\n @action\n async getExistingApplicationDocumentSignedUrl(\n waitlistApplicantId: number,\n docId: number,\n file: File,\n ): Promise {\n const body = {\n file_name: file.name,\n content_type: file.type,\n };\n return this.apiService.post(\n ApiRoutes.waitlistApplicantDocument.signedUrlForExisting(\n waitlistApplicantId,\n docId,\n ),\n body,\n );\n }\n\n @action\n async confirmDocumentUpload(\n waitlistApplicantId: number,\n docId: number,\n renterDocumentId: number,\n ): Promise {\n await this.apiService.put(\n ApiRoutes.waitlistApplicantDocument.confirmUpload(\n waitlistApplicantId,\n docId,\n renterDocumentId,\n ),\n );\n }\n\n @action\n async getNewApplicationDocumentSignedUrl(\n file: File,\n waitingListApplicantId: number,\n userId: number,\n docType: string,\n ): Promise {\n const body = {\n file_name: file.name,\n content_type: file.type,\n user_id: userId,\n doc_type: docType,\n };\n\n const response = await this.apiService.post(\n ApiRoutes.waitlistApplicantDocument.signedUrlForNew(\n waitingListApplicantId,\n ),\n body,\n );\n return response;\n }\n\n @action\n async requestDocument(\n docName: string,\n request_description: string,\n userId: number,\n waitlist_applicant_id: number,\n upload_against?: number,\n ): Promise {\n const response = await this.apiService.post(\n ApiRoutes.waitlistApplicantDocument.list(waitlist_applicant_id),\n {\n user_id: userId,\n request_description,\n request_message: docName,\n upload_against,\n },\n );\n if (response.data) {\n notification.success({\n message: `${docName} document requested successfully.`,\n duration: 2,\n });\n }\n return response;\n }\n\n async deleteDocRequestAndProcess(\n waitlistApplciantId: number,\n userId: number,\n requestMessage: string,\n ): Promise {\n await this.apiService.post(\n ApiRoutes.waitlistApplicantDocument.deleteRequestAndProcess(\n waitlistApplciantId,\n ),\n { userId, requestMessage },\n );\n }\n\n async deleteDocRequest(\n waitlistApplciantId: number,\n userId: number,\n requestMessage: string,\n ): Promise {\n await this.apiService.post(\n ApiRoutes.waitlistApplicantDocument.deleteRequest(waitlistApplciantId),\n { userId, requestMessage },\n );\n }\n}\n","import { AuthStore } from './AuthStore';\nimport { CityStore } from './CityStore';\nimport { UserStore } from './UserStore';\nimport { UnitStore } from './UnitStore';\nimport { ApplicationStore } from './ApplicationStore';\nimport { OrganizationStore } from './OrganizationStore';\nimport { InviteStore } from './InviteStore';\nimport { StateStore } from './StateStore';\nimport { BuildingStore } from './BuildingStore';\nimport { StepStore } from './StepStore';\nimport { BankStore } from './BankStore';\nimport { ResidenceHistoryStore } from './ResidenceHistoryStore';\nimport { DocumentStore } from './DocumentStore';\nimport { UnitImageStore } from './UnitImageStore';\nimport { BuildingImageStore } from './BuildingImageStore';\nimport { PaymentStore } from './PaymentStore';\nimport { InsuranceStore } from './InsuranceStore';\nimport { PayrollStore } from './PayrollStore';\n\nimport {\n APPLICANT_STORE,\n APPLICATION_STORE,\n APPLICATION_LOGS_STORE,\n AUTH_STORE,\n BANK_STORE,\n BUILDING_IMAGE_STORE,\n BUILDING_STORE,\n CITY_STORE,\n DOCUMENT_STORE,\n INVITE_STORE,\n INSURANCE_STORE,\n ORGANIZATION_STORE,\n PAYMENT_STORE,\n RESIDENCE_HISTORY_STORE,\n STATE_STORE,\n STEP_STORE,\n UNIT_IMAGE_STORE,\n UNIT_STORE,\n USER_STORE,\n GUEST_CARD_STORE,\n GUEST_CARD_CHAT_STORE,\n REFERRAL_STORE,\n PAYROLL_STORE,\n BANK_TRANSACTION_STORE,\n PAYROLL_DETAIL_STORE,\n APPLICATION_INSURANCE_STORE,\n RENT_DETERMINATION_CHAT_STORE,\n SYSTEM_LOGS_STORE,\n INTEGRATION_HEALTH_STATUS,\n PHA_STORE,\n WAITLIST_INVITE_STORE,\n WAITING_LIST_APPLICANT_STORE,\n} from '../constants/stores';\nimport { GuestCardStore } from './GuestCardStore';\nimport { ApplicantStore } from './ApplicantStore';\nimport { ApplicationLogsStore } from './ApplicationLogsStore';\nimport { GuestCardChatStore } from './GuestCardChatStore';\nimport { ReferralStore } from './ReferralStore';\nimport { BankTransactionStore } from './BankTransactionStore';\nimport { PayrollDetailStore } from './PayrollDetails';\nimport { ApplicationInsuranceStore } from './ApplicationInsuranceStore';\nimport { RentDeterminationChatStore } from './RentDeterminationChatStore';\nimport { SystemLogsStore } from './systemLogsStore';\nimport { IntegrationHealthStatusStore } from './IntegrationHeathStatusStore';\nimport { PHAStore } from './PHAStore';\nimport { WaitListInviteStore } from './WaitListInviteStore';\nimport { WaitingListApplicantStore } from './WaitingListApplicantStore';\n\nlet stores = null;\n\nexport function createStores() {\n if (!stores) {\n stores = createStoresInstance();\n }\n return stores;\n}\n\nexport function createStoresInstance() {\n return {\n [AUTH_STORE]: new AuthStore(),\n [APPLICANT_STORE]: new ApplicantStore(),\n [APPLICATION_STORE]: new ApplicationStore(),\n [APPLICATION_INSURANCE_STORE]: new ApplicationInsuranceStore(),\n [APPLICATION_LOGS_STORE]: new ApplicationLogsStore(),\n [BANK_STORE]: new BankStore(),\n [BUILDING_STORE]: new BuildingStore(),\n [BUILDING_IMAGE_STORE]: new BuildingImageStore(),\n [CITY_STORE]: new CityStore(),\n [DOCUMENT_STORE]: new DocumentStore(),\n [INVITE_STORE]: new InviteStore(),\n [INSURANCE_STORE]: new InsuranceStore(),\n [INTEGRATION_HEALTH_STATUS]: new IntegrationHealthStatusStore(),\n [ORGANIZATION_STORE]: new OrganizationStore(),\n [PAYMENT_STORE]: new PaymentStore(),\n [PHA_STORE]: new PHAStore(),\n [REFERRAL_STORE]: new ReferralStore(),\n [RENT_DETERMINATION_CHAT_STORE]: new RentDeterminationChatStore(),\n [RESIDENCE_HISTORY_STORE]: new ResidenceHistoryStore(),\n [STATE_STORE]: new StateStore(),\n [STEP_STORE]: new StepStore(),\n [SYSTEM_LOGS_STORE]: new SystemLogsStore(),\n [UNIT_STORE]: new UnitStore(),\n [GUEST_CARD_STORE]: new GuestCardStore(),\n [GUEST_CARD_CHAT_STORE]: new GuestCardChatStore(),\n [UNIT_IMAGE_STORE]: new UnitImageStore(),\n [USER_STORE]: new UserStore(),\n [PAYROLL_STORE]: new PayrollStore(),\n [BANK_TRANSACTION_STORE]: new BankTransactionStore(),\n [PAYROLL_DETAIL_STORE]: new PayrollDetailStore(),\n [WAITING_LIST_APPLICANT_STORE]: new WaitingListApplicantStore(),\n [WAITLIST_INVITE_STORE]: new WaitListInviteStore(),\n };\n}\n\n// Follow alphabetical order\n","import React from 'react';\nimport { Provider } from 'mobx-react';\nimport 'antd/dist/antd.less';\nimport { IntercomProvider } from 'react-use-intercom';\nimport SplashPage from './components/SplashPage';\nimport { REACT_APP_ENV } from './utils/secrets';\nimport { ENVIRONMENT } from './constants/constants';\n\nimport './styles/main.scss';\nimport 'react-phone-number-input/style.css';\nimport { createStores } from './stores';\n\ndeclare global {\n interface Window {\n analytics: any;\n }\n}\n\nconst INTERCOM_APP_ID = 'bkejkdey';\n\nconst ZENDESH_ENVS: string[] = [ENVIRONMENT.DEMO, ENVIRONMENT.PRODUCTION];\n\nconst App = () => {\n return (\n \n {ZENDESH_ENVS.includes(REACT_APP_ENV) ? (\n \n ) : (\n \n \n \n )}\n \n );\n};\n\nexport default App;\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { BrowserRouter } from 'react-router-dom';\nimport * as serviceWorker from './serviceWorker';\nimport App from './App';\nimport './index.scss';\n\nReactDOM.render(\n \n \n \n \n ,\n document.getElementById('root'),\n);\n\n// If you want your App to work offline and load faster, you can change\n// unregister() to RegisterForm() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister();\n"],"sourceRoot":""}