// 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 (
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}.
$45 application fee covers credit, background, and verification. Refunded in full if your home is rented before we review your file.
{/* Stepper */}Three checkboxes that protect everyone — you, us, and the people living in the building next door.
{[ { k: 'creditAgree', label: 'Credit & background screening', body: 'I authorize Santirma Property Solutions to obtain a consumer credit report and background screening from a third-party provider for the sole purpose of evaluating this rental application.' }, { k: 'agreeFair', label: 'Fair Housing acknowledgement', body: 'I understand Santirma complies with the Fair Housing Act and Washington State law, and does not discriminate based on race, color, religion, sex, national origin, familial status, disability, gender identity, sexual orientation, source of income, marital status, or any other protected class.' }, { k: 'agreeTerms', label: 'Terms & Privacy', body: <>I have read and agree to the { e.preventDefault(); navigate('/terms'); }}>Terms & Conditions and { e.preventDefault(); navigate('/privacy'); }}>Privacy Policy. I understand the $45 application fee is refundable only if the home is rented before my application is reviewed.> }, ].map(item => ( ))}Confirm the details below. The $45 fee covers screening costs; we do not profit from it.