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R,cAAe,gCAEjB,CACEQ,QACE,kJACFR,cAAe,+BAEjB,CACEQ,QACE,wJACFR,cAAe,gCAEjB,CACEQ,QACE,4GACFR,cAAe,kDAIrBS,MAAO,CACLC,WACE,qQAEJC,QAAS,CACPP,kBAAmB,4BACnBJ,cAAe,4BACfY,gBAAiB,0C","sources":["webpack://aurora-new-frontend/./packages/lead-capture/src/pages/profile-review/components/left-content.tsx","webpack://aurora-new-frontend/./packages/lead-capture/src/pages/profile-review/profile-review-page.tsx","webpack://aurora-new-frontend/./packages/lead-capture/src/utils/text-constants.tsx"],"sourcesContent":["import React from 'react';\n\nimport { BoxWithMargin } from '../../../shared-components';\nimport { LCAIText } from '../../../typography';\nimport { HEADER_COLOR, PARAGRAPH_COLOR } from '../../../utils/constants';\nimport { TEXT } from '../../../utils/text-constants';\n\nexport interface LeftContentProps {\n customHeader?: string | null;\n customSubheader?: string | null;\n}\n\nexport function LeftContent({ customHeader, customSubheader }: LeftContentProps) {\n return (\n <>\n \n {customHeader || TEXT.profileReview.primaryHeader}\n \n \n \n {customSubheader || TEXT.profileReview.subheader}\n \n \n >\n );\n}\n","import React, { useEffect } from 'react';\n\nimport { Analytics, AnalyticsPageTypes, useAppModule } from '@aurorasolar/common-module-loader';\n\nimport { useCloseLcaiWithRedirect, useRouteData } from '../../hooks';\nimport { AnimateView, Image, SplitView, TopRail } from '../../shared-components';\nimport { LCAIButton, LCAIButtonIntent } from '../../typography/lcai-button/lcai-button';\nimport { SourcePage } from '../../utils/source-page';\nimport { TEXT } from '../../utils/text-constants';\nimport { LeftContent } from './components';\n\nexport interface ProfileReviewPageProps {\n projectId: string;\n sourcePage: SourcePage;\n}\n\nexport function ProfileReviewPage({ projectId, sourcePage }: ProfileReviewPageProps) {\n const analytics = useAppModule(Analytics);\n\n const { customSettings, templateId } = useRouteData();\n const closeLCAIWithRedirect = useCloseLcaiWithRedirect({\n projectId,\n redirectUrl: customSettings?.endFlowRedirectUrl,\n sourcePage,\n templateId,\n });\n\n useEffect(() => {\n analytics?.page(AnalyticsPageTypes.LeadCaptureProfileReview, {\n project_id: projectId,\n });\n }, [analytics, projectId]);\n\n return (\n <>\n \n \n \n {customSettings?.endFlowButtonPrimary || TEXT.common.endFlowButton}\n \n }\n leftContent={\n \n }\n rightContent={\n \n }\n />\n \n >\n );\n}\n\nexport default ProfileReviewPage;\n","export interface Tip {\n message: string;\n primaryHeader: string;\n}\n\nexport interface LCAIText {\n alternatePrimaryButtonText?: string;\n endFlowButton?: string;\n primaryHeader?: string;\n placeholder?: string;\n secondaryHeader?: string;\n subheader?: string;\n disclaimer?: string;\n primaryButtonText?: string;\n tips?: Tip[];\n}\n\nexport const TEXT: Record = {\n common: {\n endFlowButton: 'Done',\n },\n error: {\n alternatePrimaryButtonText: 'Contact us',\n primaryHeader: 'Automated estimates are coming soon to your area.',\n subheader: \"Our solar experts will design a system that's perfect for your home.\",\n },\n landing: {\n primaryHeader: 'See solar on your home in minutes.',\n subheader:\n 'Bring solar to life on your home and learn how much you could save with solar in just a few simple steps.',\n },\n profileComplete: {\n primaryButtonText: 'Estimate your savings',\n primaryHeader: \"Thanks, now let's add solar to your home!\",\n subheader:\n 'Our advanced simulation engine is ready to build your home in 3D, automatically place solar panels, and estimate how much energy your house can generate every year.',\n },\n profileReview: {\n primaryHeader: 'Thank you, your profile is being reviewed.',\n subheader: 'If your home is a good fit for solar, a solar expert will reach out to you soon.',\n },\n progress: {\n tips: [\n {\n message:\n \"Solar panels save you money while you own the home, then add value when you're ready to sell. Homes with solar sell for 4.1% more on average than homes without.\",\n primaryHeader: 'Invest in your future',\n },\n {\n message:\n \"Solar is a clean, renewable source of energy that reduces your home's carbon footprint. A typical solar installation can reduce a home's CO2 impact by 6 tons per year.\",\n primaryHeader: 'Help build a better tomorrow',\n },\n {\n message:\n 'Pairing battery storage with solar panels helps ensure your home stays running even during outages, keeping your lights on and your food fresh.',\n primaryHeader: 'Power when you need it most',\n },\n {\n message:\n \"Air conditioning is the largest single contributor to most home's electricity bills. Going solar can help reduce high bills during hot summer months.\",\n primaryHeader: 'Take control over high bills',\n },\n {\n message:\n 'While electricity prices have increased 15% in the last decade, the cost of solar has decreased over 60%.',\n primaryHeader: \"There's never been a better time to go solar\",\n },\n ],\n },\n quote: {\n disclaimer:\n 'By checking the box, I am providing my electronic signature authorizing the company to contact me by email, text, or phone, including an automated technology, at the phone number or email provided above. This consent is not a required condition of purchase.',\n },\n results: {\n primaryButtonText: 'Get a more accurate quote',\n primaryHeader: 'With solar you could save',\n secondaryHeader: \"Here's how solar adds up for your home\",\n },\n};\n"],"names":["LeftContent","customHeader","customSubheader","color","fontWeight","type","ProfileReviewPage","projectId","sourcePage","analytics","customSettings","templateId","closeLCAIWithRedirect","redirectUrl","endFlowRedirectUrl","useEffect","page","project_id","buttons","intent","onClick","endFlowButtonPrimary","leftContent","profileReviewPageHeader","profileReviewPageSubHeader","rightContent","alt","customImage","profileReviewPageImage","name","position","TEXT","common","endFlowButton","error","alternatePrimaryButtonText","primaryHeader","subheader","landing","profileComplete","primaryButtonText","profileReview","progress","tips","message","quote","disclaimer","results","secondaryHeader"],"sourceRoot":""}