--- import Icon from './Icon.astro'; import FormAPreview from '../FormAPreview.astro'; import JotformIframe from '../JotformIframe.astro'; import { formAPreviewEnabled, formModeForRuntime, resolveFormAIframe, resolveFormMode } from '../../utils/form-integration'; interface Props { sourcePage: 'general' | 'commercial' | 'ahcccs' | 'private_pay'; title: string; intro: string; buttonText: string; } const { sourcePage, title, intro, buttonText } = Astro.props; const phone = import.meta.env.PUBLIC_AIA_PHONE || '480-687-7099'; const tel = phone.replace(/[^0-9+]/g, ''); const formConfig = resolveFormMode(import.meta.env.PUBLIC_AIA_FORMS_MODE, import.meta.env.PUBLIC_AIA_FORMS_LIVE_APPROVED); const formPreview = formAPreviewEnabled(import.meta.env.PUBLIC_AIA_FORM_A_PREVIEW, import.meta.env.PUBLIC_ALLOW_INDEXING, formModeForRuntime(formConfig)); const campaignRoute = sourcePage === 'general' ? '/lp/aba-therapy' : sourcePage === 'commercial' ? '/lp/aba-insurance' : sourcePage === 'ahcccs' ? '/lp/aba-ahcccs' : '/lp/aba-private-pay'; const iframeDescription = 'Use this form to request a conversation. An AIA team member can explain the next steps for your family.'; const formAIframe = resolveFormAIframe({ rawMode: import.meta.env.PUBLIC_AIA_FORMS_MODE, liveApproved: import.meta.env.PUBLIC_AIA_FORMS_LIVE_APPROVED, isolatedTestApproved: import.meta.env.PUBLIC_AIA_FORMS_ISOLATED_TEST_APPROVED, consultationTestApproved: import.meta.env.PUBLIC_AIA_FORMS_CONSULTATION_TEST_APPROVED, productionApproved: import.meta.env.PUBLIC_AIA_FORM_A_PRODUCTION_APPROVED, environmentRole: import.meta.env.PUBLIC_AIA_FORMS_ENVIRONMENT, allowIndexing: import.meta.env.PUBLIC_ALLOW_INDEXING, route: campaignRoute, locale: 'en', }); --- Talk with AIA {title} {intro} {formAIframe.enabled ? : formPreview ? : Start with your contact details Use this form to request a conversation. An AIA team member can explain the next steps for your family. Parent or caregiver name Phone Website Email (optional) Preferred contact method Choose one Phone Email {buttonText} Questions? Call AIA at {phone}. Review AIA's privacy policy. } Call AIA at {phone} Mon–Fri, 8:00 AM–6:00 PM Scottsdale clinic location 8901 E Raintree Dr, Ste 160Scottsdale, AZ 85260 Get directions
{intro}
Use this form to request a conversation. An AIA team member can explain the next steps for your family.
Questions? Call AIA at {phone}. Review AIA's privacy policy.
Mon–Fri, 8:00 AM–6:00 PM