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AACF,EAAAA,GAAK,CACJhG,UAAU,oCACViG,YAAazE,EAAegB,MAC5B1B,KAAK,OACLoF,UAAQ,IAET1E,EAAe2E,cACd,SAACH,EAAAA,GAAK,CACJhG,UAAU,oCACViG,YAAazE,EAAe2E,YAC5BrF,KAAK,OACLoF,UAAQ,IAGX1E,EAAe4E,aACd,SAACJ,EAAAA,GAAK,CACJhG,UAAU,oCACViG,YAAazE,EAAe4E,WAC5BtF,KAAK,OACLoF,UAAQ,IAGX1E,EAAe6E,OACd,SAACL,EAAAA,GAAK,CACJhG,UAAU,0CACViG,YAAazE,EAAe6E,KAC5BvF,KAAK,OACLoF,UAAQ,KAGZ,SAACrF,EAAAA,GAAM,CACLG,QAASqE,EACTtE,UAAU,UACVf,UAAU,oG,SACX,e,mEC5gBF,IAAMwE,EAAuB,CAClC8B,oBAAqB,sBACrBC,sBAAuB,gBACvBC,oBAAqB,2BACrBC,sBAAuB,wBACvBC,wBAAyB,0BACzBC,uBAAwB,yBACxBC,uBAAwB,uBACxBC,qBAAsB,uBACtBC,4BAA6B,8BAC7BC,gBAAiB,kBACjBC,kBAAmB,oBACnBC,eAAgB,iBAChBC,QAAS,UACTC,gBAAiB,kBACjBC,eAAgB,iBAChBC,eAAgB,iBAChBC,mBAAoB,qBACpBC,eAAgB,iBAChBC,WAAY,wB","sources":["webpack://_N_E/?1b18","webpack://_N_E/./components/intro-slides/intro-slides.tsx","webpack://_N_E/./pages/index.page.tsx","webpack://_N_E/./utils/application-statuses.ts"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/\",\n function () {\n return require(\"private-next-pages/index.page.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/\"])\n });\n }\n ","import { useState } from 'react';\nimport {\n Heading,\n Link,\n Logo,\n Text,\n Button,\n Icon,\n} from '@requity-homes/component-library';\nimport Image from 'next/image';\n\nexport interface IntroSlidesProps {\n setShowIntroSlides: (show: boolean) => void;\n}\n\nexport function IntroSlides({ setShowIntroSlides }) {\n const [showNextSlide, setShowNextSlide] = useState(false);\n\n return (\n
\n
\n \n \n \n {showNextSlide ? (\n
\n
\n
\n \n
\n
\n
\n \n 1\n \n
\n \n Invite your clients\n \n \n Your unique referral link ensures that the invited clients\n will be attributed to you.\n \n
\n
\n
\n \n 2\n \n
\n \n Check their application status\n \n \n Check you clients’ application status and send reminders\n easily.\n \n
\n
\n
\n \n 3\n \n
\n \n Earn full commission\n \n \n Once your fully approved clients find their dream home,\n you will earn your full commission!\n \n
\n
\n
\n
\n setShowIntroSlides(false)}\n >\n Next\n \n
\n ) : (\n
\n
\n
\n \n
\n
\n \n Thank you for partnering with Requity Homes!\n \n \n Invite your clients who aren’t mortgage-ready today to apply\n for rent-to-own program. Help them become homeowners sooner\n while earning your full commission.\n \n
\n
\n\n setShowNextSlide(true)}\n >\n Next\n \n
\n )}\n
\n
\n );\n}\n","import { withAuthenticator } from '../authentication';\nimport Head from 'next/head';\nimport formatDistance from 'date-fns/formatDistance';\nimport { Auth } from 'aws-amplify';\nimport { MainContent, PageWrapper, InfoBox } from '../components';\nimport { useEffect, useState } from 'react';\nimport { useRouter } from 'next/router';\nimport {\n Heading,\n Text,\n AsyncHandler,\n Input,\n Popup,\n Button,\n} from '@requity-homes/component-library';\nimport { IntroSlides } from '../components/intro-slides/intro-slides';\nimport { REMINDER_STAGES } from '../const';\nimport { RemindClientModal } from '../components/remind-client-modal/remind-client-modal';\n\nimport {\n usePartnerReferralsQuery,\n useUpdatePartnerInfoMutation,\n usePartnerInfoQuery,\n PartnerInfoDocument,\n ApplicationStatus,\n Invitation,\n ClientApplicationInfo,\n ReminderEmailType,\n} from '../graphql/generated';\nimport { APPLICATION_STATUSES } from '../utils/application-statuses';\n\nexport default withAuthenticator(Index);\n\nexport function Index() {\n const [user, setUser] = useState();\n const [showIntroSlides, setShowIntroSlides] = useState(false);\n const [clientToRemind, setClientToRemind] = useState(null);\n const [showAd, setShowAd] = useState(false);\n\n const [selectedClient, setSelectedClient] = useState<\n Invitation | ClientApplicationInfo\n >(null);\n\n const {\n data: data,\n loading: loading,\n error: error,\n } = usePartnerReferralsQuery();\n\n const router = useRouter();\n\n const applications = data?.partnerReferrals.applications || [];\n const applicationEmails = new Set(\n applications\n .filter((appl) => appl.applicationStatus !== ApplicationStatus.Invited)\n .map((appl) => appl.email),\n );\n\n // Add application in invited status to the invitations array\n const invitedApplications = applications\n .filter(\n (appl) =>\n appl.applicationStatus === ApplicationStatus.Invited &&\n !applicationEmails.has(appl.email),\n )\n .map((appl) => ({\n email: appl.email,\n givenName: appl.givenName,\n familyName: appl.familyName,\n applicationStatus: ApplicationStatus.Invited,\n createdAt: appl.createdAt,\n }));\n\n const invitations = [\n ...(data?.partnerReferrals.invitations || []),\n ...invitedApplications,\n ];\n const reversedInvitationsArray = [...invitations].reverse();\n\n const declinedApplications = applications.filter(\n (appl) =>\n appl.applicationStatus === ApplicationStatus.PreApprovalDenied ||\n appl.applicationStatus === ApplicationStatus.FullApprovalDenied ||\n appl.applicationStatus === ApplicationStatus.OfferDeclined ||\n appl.applicationStatus === ApplicationStatus.NoLongerLooking,\n );\n const activeApplications = applications.filter(\n (appl) =>\n appl.applicationStatus === ApplicationStatus.ApplicationStarted ||\n appl.applicationStatus === ApplicationStatus.PreApprovalAccepted ||\n appl.applicationStatus === ApplicationStatus.FullApprovalStarted ||\n appl.applicationStatus === ApplicationStatus.FullApprovalSubmitted ||\n appl.applicationStatus === ApplicationStatus.SentCommitmentLetter ||\n appl.applicationStatus === ApplicationStatus.FullApprovalAccepted,\n );\n\n const applicationsWithOffers = applications.filter(\n (appl) =>\n appl.applicationStatus === ApplicationStatus.TouringHouses ||\n appl.applicationStatus === ApplicationStatus.PreparingOffer ||\n appl.applicationStatus === ApplicationStatus.OfferAccepted ||\n appl.applicationStatus === ApplicationStatus.FulfillConditions ||\n appl.applicationStatus === ApplicationStatus.FirmAgreement ||\n appl.applicationStatus === ApplicationStatus.ClosedWon,\n );\n\n useEffect(() => {\n Auth.currentUserInfo().then((userInfo) => setUser(userInfo));\n }, []);\n\n const { data: partnerInfoData } = usePartnerInfoQuery();\n\n const [updatePartnerInfo, { loading: loadingPartnerUpdate }] =\n useUpdatePartnerInfoMutation({\n awaitRefetchQueries: true,\n refetchQueries: [{ query: PartnerInfoDocument }],\n });\n\n useEffect(() => {\n setShowIntroSlides(\n partnerInfoData?.partnerInfo &&\n !partnerInfoData?.partnerInfo?.hasViewedOnboarding,\n );\n }, [partnerInfoData?.partnerInfo]);\n\n if (showIntroSlides) {\n return (\n {\n updatePartnerInfo({\n variables: {\n partnerInfo: {\n hasViewedOnboarding: true,\n },\n },\n });\n setShowIntroSlides(false);\n }}\n />\n );\n }\n\n const renderDesktopRow = (user, isInvited = false) => (\n setSelectedClient(user)}\n >\n \n {user.givenName}\n \n \n {user.familyName}\n \n {isInvited && (\n \n {`Invite sent: ${formatDistance(\n new Date(),\n new Date(user.createdAt),\n )} ago`}\n \n )}\n {!isInvited && (\n \n {`${APPLICATION_STATUSES[user.applicationStatus]}:\n ${\n user.updatedAt\n ? formatDistance(new Date(), new Date(user.updatedAt))\n : formatDistance(new Date(), new Date(user.createdAt))\n } ago`}\n \n )}\n \n );\n\n const renderMobileView = (user, isInvited = false) => (\n setSelectedClient(user)}\n >\n
\n \n {user.givenName} {user.familyName}\n \n
\n {isInvited && (\n \n {`Invite sent: ${formatDistance(\n new Date(),\n new Date(user.createdAt),\n )} ago`}\n \n )}\n {!isInvited && (\n \n {`${APPLICATION_STATUSES[user.applicationStatus]}:\n ${\n user.updatedAt\n ? formatDistance(new Date(), new Date(user.updatedAt))\n : formatDistance(new Date(), new Date(user.createdAt))\n } ago`}\n \n )}\n
\n
\n \n );\n\n return (\n \n \n Requity Homes | Customer Portal\n \n \n \n
\n
\n
\n
\n \n
\n \n 1:\n \n Pre-qualify your clients (verify income, credit, and\n timing needs)\n \n \n \n 2:\n Invite qualified clients through our portal\n \n \n 3:\n \n Together, we guide clients through the approval\n process\n \n \n \n 4:\n Clients shop for homes\n \n \n 5.\n Clients move in and save for mortgage\n \n \n 6.\n Partners earn full commission\n \n
\n
\n
\n
\n
\n\n
\n
\n {selectedClient && (\n setSelectedClient(null)}\n selectedClient={selectedClient}\n />\n )}\n {clientToRemind && (\n setClientToRemind(null)}\n client={clientToRemind}\n user={user}\n />\n )}\n
\n \n Hello, {user?.attributes?.given_name}!\n \n \n You have{' '}\n {invitations?.length +\n activeApplications?.length +\n applicationsWithOffers?.length ===\n 1\n ? '1 client'\n : `${\n invitations?.length +\n activeApplications?.length +\n applicationsWithOffers?.length\n } clients`}{' '}\n to follow up with.\n \n
\n
\n
\n Invited\n \n {invitations?.length}\n \n
\n
\n Applications\n \n {activeApplications?.length}\n \n
\n
\n Offers\n \n {applicationsWithOffers?.length}\n \n
\n
\n Declined\n \n {declinedApplications?.length}\n \n
\n
\n
\n
\n
\n \n Invited\n \n \n You’ve invited these clients to Requity Homes. Reach out to\n help them create an account and start their application.\n \n {reversedInvitationsArray.length === 0 && (\n
\n \n You have not invited any clients yet\n \n
\n )}\n {reversedInvitationsArray.map((client) => (\n
\n {renderDesktopRow(client, true)}\n {renderMobileView(client, true)}\n
\n \n setClientToRemind({\n ...client,\n applicationStatus: ReminderEmailType.Invited,\n })\n }\n hierarchy=\"primary\"\n className=\"w-full md:h-full flex items-center justify-center md:h-full bg-purple text-white border-purple sm:py-0 sm:px-0 font-thin text-xs hover:shadow-none focus:ring-0 rounded-lg\"\n >\n Remind Client\n Remind\n \n
\n
\n ))}\n
\n
\n \n Applications\n \n \n Your clients have started their applications. Reach out to\n help them gather all supporting documents to get fully\n approved!\n \n {activeApplications.length === 0 && (\n
\n No active applications\n
\n )}\n {activeApplications.reverse().map((clientApplication) => (\n
\n {renderDesktopRow(clientApplication)}\n {renderMobileView(clientApplication)}\n {REMINDER_STAGES.includes(\n clientApplication.applicationStatus,\n ) &&\n !clientApplication.hasUnsubscribedFromEmails && (\n
\n \n setClientToRemind(clientApplication)\n }\n hierarchy=\"primary\"\n className=\"w-full md:h-full flex items-center justify-center bg-green text-white border-green sm:py-0 sm:px-0 font-thin text-xs hover:shadow-none focus:ring-0 active:bg-green rounded-lg\"\n >\n \n Remind Client\n \n Remind\n \n
\n )}\n
\n ))}\n
\n
\n \n Offers\n \n \n Your fully approved clients are one-step away from starting\n their home ownership journey. Reach out to assist them with\n their home shopping.\n \n {applicationsWithOffers.length === 0 && (\n
\n No active applications\n
\n )}\n {applicationsWithOffers.reverse().map((clientApplication) => (\n
\n {renderDesktopRow(clientApplication)}\n {renderMobileView(clientApplication)}\n
\n ))}\n
\n
\n \n Declined/No Longer Looking\n \n \n Your clients are currently ineligible for our rent-to-own\n program.\n \n {declinedApplications.length === 0 && (\n
\n No declined clients\n
\n )}\n {declinedApplications.map((clientApplication) => (\n
\n {renderDesktopRow(clientApplication)}\n
\n ))}\n
\n
\n
\n
\n \n
\n
\n );\n}\n\nfunction ClientInfo({ onClose, selectedClient }) {\n return (\n \n \n Client Info\n \n\n
\n
\n \n \n
\n \n {selectedClient.phoneNumber && (\n \n )}\n {selectedClient.targetCity && (\n \n )}\n {selectedClient.note && (\n \n )}\n \n Ok\n \n
\n
\n );\n}\n","export const APPLICATION_STATUSES = {\n APPLICATION_STARTED: 'Application Started',\n PRE_APPROVAL_ACCEPTED: 'Pre-qualified',\n PRE_APPROVAL_DENIED: 'Pre-qualification Denied',\n FULL_APPROVAL_STARTED: 'Full Approval Started',\n FULL_APPROVAL_SUBMITTED: 'Full Approval Submitted',\n SENT_COMMITMENT_LETTER: 'Sent Commitment Letter',\n FULL_APPROVAL_ACCEPTED: 'Application Approved',\n FULL_APPROVAL_DENIED: 'Full Approval Denied',\n FULL_APPROVAL_INFO_REQUIRED: 'Full Approval Info Required',\n OFFER_SUBMITTED: 'Offer Submitted',\n NO_LONGER_LOOKING: 'No Longer Looking',\n TOURING_HOUSES: 'Touring Houses',\n INVITED: 'Invited',\n PREPARING_OFFER: 'Preparing Offer',\n OFFER_ACCEPTED: 'Offer Accepted',\n OFFER_DECLINED: 'Offer Declined',\n FULFILL_CONDITIONS: 'Fulfill Conditions',\n FIRM_AGREEMENT: 'Firm Agreement',\n CLOSED_WON: 'Closed Won/Move In',\n};\n"],"names":["window","__NEXT_P","push","IntroSlides","setShowIntroSlides","useState","showNextSlide","setShowNextSlide","main","className","div","Link","href","Logo","color","Icon","glyph","Heading","level","element","fontFace","Text","Button","type","hierarchy","onClick","withAuthenticator","Index","user","setUser","showIntroSlides","clientToRemind","setClientToRemind","selectedClient","setSelectedClient","usePartnerReferralsQuery","data","loading","error","applications","useRouter","partnerReferrals","applicationEmails","Set","filter","appl","applicationStatus","ApplicationStatus","map","email","invitedApplications","has","givenName","familyName","createdAt","invitations","reversedInvitationsArray","reverse","declinedApplications","activeApplications","applicationsWithOffers","useEffect","Auth","then","userInfo","usePartnerInfoQuery","useUpdatePartnerInfoMutation","awaitRefetchQueries","refetchQueries","query","PartnerInfoDocument","updatePartnerInfo","partnerInfoData","partnerInfo","hasViewedOnboarding","variables","renderDesktopRow","isInvited","useCase","formatDistance","Date","APPLICATION_STATUSES","updatedAt","renderMobileView","PageWrapper","Head","title","MainContent","AsyncHandler","loadingPartnerUpdate","errorMessage","InfoBox","span","ClientInfo","onClose","RemindClientModal","client","attributes","given_name","length","ReminderEmailType","clientApplication","REMINDER_STAGES","hasUnsubscribedFromEmails","Popup","Input","placeholder","disabled","phoneNumber","targetCity","note","APPLICATION_STARTED","PRE_APPROVAL_ACCEPTED","PRE_APPROVAL_DENIED","FULL_APPROVAL_STARTED","FULL_APPROVAL_SUBMITTED","SENT_COMMITMENT_LETTER","FULL_APPROVAL_ACCEPTED","FULL_APPROVAL_DENIED","FULL_APPROVAL_INFO_REQUIRED","OFFER_SUBMITTED","NO_LONGER_LOOKING","TOURING_HOUSES","INVITED","PREPARING_OFFER","OFFER_ACCEPTED","OFFER_DECLINED","FULFILL_CONDITIONS","FIRM_AGREEMENT","CLOSED_WON"],"sourceRoot":""}