\n {street_address}{unit_no && `, ${unit_no}`}{`, ${city}, ${state}. ${zip}`}\n
\n {/* Left part - Single Image */}\n
\n
\n
\n\n {/* Right part - User form */}\n
\n
Start Your Rental Application
\n
Provide your contact information below to begin your rental\n application. To add a roommate, click “Add Applicants”. To\n continue, click “Apply Now”.
\n
\n
\n\n {/* Modal for adding/editing applicants */}\n {showModal && (\n
\n
\n
\n
× \n {applicants.map((applicant, index) => (\n
\n
\n \n \n {\n index === 0 ? 'Primary Applicant' : `Applicant ${index + 1}`\n }\n \n \n \n {\n index > 0 &&\n handleDeleteApplicant(index)}\n className=\"delete-button\">\n \n \n }\n \n \n\n
\n \n handleInputChange(index, e)}\n className=\"input-field\"\n />\n {touchedFields[index]?.fullName && errors[index]?.fullName &&\n {errors[index].fullName}
}\n\n \n \n handleInputChange(index, e)}\n className=\"input-field\"\n />\n {touchedFields[index]?.phone && errors[index]?.phone && {errors[index].phone}
}\n \n \n\n
\n \n handleInputChange(index, e)}\n className=\"input-field\"\n />\n {touchedFields[index]?.email && errors[index]?.email && {errors[index].email}
}\n \n \n handleInputChange(index, e)}\n className=\"input-field\"\n />\n {touchedFields[index]?.verifyEmail && errors[index]?.verifyEmail &&\n {errors[index].verifyEmail}
}\n \n \n\n {\n (index !== applicants.length - 1) &&
\n }\n
\n ))}\n
\n \n \n Add applicant\n \n \n \n\n
\n \n \n SAVE\n \n \n \n \n CANCEL\n \n \n \n
\n
\n )}\n {\n isModalOpen &&
\n }\n \n
\n );\n};\n","import {REST} from \"../../rest\";\n\nexport const userEmailApi = {\n get: async (email: string): Promise
=> {\n const url = `/api/user/email/${email}`;\n return await REST.get(url,).then(res => {\n return res;\n });\n },\n};","import {HttpRequest} from \"../../../../services/httprequest\";\n\nexport class listingServiceApi {\n static async get(params: IListingServiceApiGetParams) {\n return HttpRequest.get(`/apply_now/listing?syndicator_property_id=${params.syndicator_property_id}&syndicator_access_key=${params.syndicator_access_key}`)\n .then((response) => response.data)\n .catch((error) => {\n return error.response\n });\n }\n static async getPartnerListing (params: IGetPartnerListingParams) {\n let url = `/apply_now/partner_listing?`;\n url += `syndicator_access_key=${params.syndicator_access_key}`;\n url += `&partner_id=${params.partner_id}`;\n url += `&mls_id=${params.listing_id}`;\n\n if(params.buyers_agent_id){\n url += `&buyers_agent_id=${params.buyers_agent_id}`;\n }\n else {\n url += `&buyers_agent_id=`;\n }\n return HttpRequest.get(url)\n .then((response) => response.data)\n .catch((error) => {\n return error.response\n });\n }\n static async save (listing: any) {\n return HttpRequest.post(\"/free_tenant_screening/property\", {listing, landlord: listing.landlord})\n .then((response) => response.data.data)\n .catch((error) => Promise.reject(error.response));\n }\n}\n\ninterface IListingServiceApiGetParams {\n syndicator_property_id: any,\n syndicator_access_key: string\n}\n\ninterface IGetPartnerListingParams {\n syndicator_access_key: any,\n partner_id: any,\n listing_id: any,\n buyers_agent_id: any\n}","import {REST} from \"../../rest\";\n\nexport const affiliateReferralApi = {\n\n get : async (params: IGetAffiliateReferralParams) => {\n const url = `/api/affiliate_referral?affiliate_referral_id=${params.affiliate_referral_id}`;\n return await REST.get(url,\n {\n headers: {\n 'Content-Type': 'multipart/form-data'\n },\n params: params\n }).then(res => {\n return res.data.affiliateReferralsRequest;\n });\n },\n};\n\nexport interface IGetAffiliateReferralParams {\n affiliate_referral_id: string;\n}"],"sourceRoot":""}