// Apply.jsx — multistep rental application const { useState: useStateAp, useEffect: useEffectAp } = React; const Reveal_Ap = window.Reveal; function ApplyPage({ navigate, prefillPropertyId }) { const { PROPERTIES } = window.SantirmaData; const [step, setStep] = useStateAp(0); const [form, setForm] = useStateAp({ propertyId: prefillPropertyId || (PROPERTIES[0] && PROPERTIES[0].id), moveIn: '', leaseLength: '12-month', occupants: 1, pets: 'no', firstName: '', lastName: '', email: '', phone: '', dob: '', currentAddress: '', employmentStatus: 'employed', employer: '', annualIncome: '', creditAgree: false, background: '', references: '', priorEvictions: 'no', agreeFair: false, agreeTerms: false, agreePrivacy: false, paymentMethod: 'card', }); const steps = [ { key: 'home', label: 'The Home' }, { key: 'about', label: 'About You' }, { key: 'income', label: 'Income & History' }, { key: 'consent', label: 'Consent' }, { key: 'review', label: 'Review & Pay' }, ]; const set = (k) => (e) => setForm({ ...form, [k]: e.target ? (e.target.type === 'checkbox' ? e.target.checked : e.target.value) : e }); const next = () => setStep(s => Math.min(s + 1, steps.length - 1)); const back = () => setStep(s => Math.max(s - 1, 0)); useEffectAp(() => { window.scrollTo({ top: 0, behavior: 'smooth' }); }, [step]); const selectedProperty = PROPERTIES.find(p => p.id === form.propertyId) || PROPERTIES[0]; const submitted = step === steps.length; if (submitted) { return (
Application Received

Thank you, {form.firstName || 'there'}.

We’ve received your application for {selectedProperty.title}. Amara Wells will review and reach out within one business day. Reference number #SAN-{Math.floor(Math.random() * 9000) + 1000}.

); } return (
Rental Application

A few honest questions.
Then we’re off.

$45 application fee covers credit, background, and verification. Refunded in full if your home is rented before we review your file.

{/* Stepper */}
{steps.map((s, i) => { const active = i === step; const done = i < step; return (
{done ? ( ) : (i + 1)}
Step {i + 1}
{s.label}
{i < steps.length - 1 &&
}
); })}
{step === 0 && (

The Home

)} {step === 1 && (

About You

)} {step === 2 && (

Income & History

Income should be at least 2.5x monthly rent to qualify without a guarantor. We accept multiple income sources.