"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[809],{24809:function(e,t,a){a.d(t,{T:function(){return Page}});var i,n,r=a(85893),o=a(71986),s=a(61563),l=a(66122),c=a(3183),d=a(29733),u=a(11964),p=a(70908),m=a(67294),h=a(24045),g=a(38660),x=a(9968),v=a(62657),b=a(44761),C=a(33640),E=a(65660),y=a(20410),S=a(31540),A=a(64460),f=a(39424),I=a(27350),j=a(86640),D=a(96693),k=a(50793),w=a(83344),O=a(76311),U=a(27950),P=a(88494),R=a(9051),L=a(64504),T=a(56401),B=a(17304),J=a(94445),H=a(11841),M=a(91372),F=a(60948),W=a(1943),N=a(21097),V=a(54285),_=a(34474),z=a(64267),q=a(10265),G=a(63317),X=a(10503),K=a(19171),Y=a(67618),$=a(10002),Q=a(13064),Z=a(94788),ee=a(30368),et=a(47243);let ea={"081122101400001":"University POS Active 081122101400001","081122101400002":"University POS COBRA 081122101400002","081122101400007":"University POS LOA 081122101400007","081122101400011":"University POS Affiliate Active 081122101400011","081122101400012":"University POS Affiliate COBRA 081122101400012","081122101400013":"University POS Bd of Trust Active (under 65) 081122101400013","081122101400014":"University POS Bd of Trust Active (over 65) 081122101400014","081122101400017":"University POS Affiliate LOA 081122101400017","081122101700001":"University HSA Active 081122101700001","081122101700002":"University HSA COBRA 081122101700002","081122101700007":"University HSA LOA 081122101700007","081122102100113":"University POS RETIREES 081122102100113","081122102100115":"University POS KEY RETIREES 081122102100115","081122102300613":"Healthcare POS RETIREES 081122102300613","081122102300615":"Healthcare POS KEY RETIREES 081122102300615","081122103000311":"University POS Pediatric Active 081122103000311","081122103000312":"University POS Pediatric COBRA 081122103000312","081122103000317":"University POS Pediatric LOA 081122103000317","081122103100311":"University HSA Pediatric Active 081122103100311","081122103100312":"University HSA Pediatric COBRA 081122103100312","081122103100317":"University HSA Pediatric LOA 081122103100317","081122103300313":"University POS Pediatric Retiree 081122103300313","081122104300511":"University POS Physicians Active 081122104300511","081122104300512":"University POS Physicians COBRA 081122104300512","081122104300517":"University POS Physicians LOA 081122104300517","081122104400513":"University POS Physicians RETIREES 081122104400513","081122104400515":"University POS Physicians KEY RETIREES 081122104400515","081122104500511":"University HSA Physicians Active 081122104500511","081122104500512":"University HSA Physicians COBRA 081122104500512","081122104500517":"University HSA Physicians LOA 081122104500517","086534101600611":"Healthcare POS Active 086534101600611","086534101600612":"Healthcare POS COBRA 086534101600612","086534101600617":"Healthcare POS LOA 086534101600617","086534101600811":"Healthcare POS Active ESA 086534101600811","086534101600812":"Healthcare POS COBRA ESA 086534101600812","086534101600817":"Healthcare POS LOA ESA 086534101600817","086534101800611":"Healthcare HSA Active 086534101800611","086534101800612":"Healthcare HSA COBRA 086534101800612","086534101800617":"Healthcare HSA LOA 086534101800617","086534101800811":"Healthcare HSA Active ESA 086534101800811","086534101800812":"Healthcare HSA COBRA ESA 086534101800812","086534101800817":"Healthcare HSA LOA ESA 086534101800817","086534102000611":"Healthcare HSA PRN Active 086534102000611","086534102000612":"Healthcare HSA PRN COBRA 086534102000612","086534102000617":"Healthcare HSA PRN LOA 086534102000617","086534102000811":"Healthcare HSA PRN Active ESA 086534102000811","086534102000812":"Healthcare HSA PRN COBRA ESA 086534102000812","086534102000817":"Healthcare HSA PRN LOA ESA 086534102000817","086534701600711":"Healthcare JOC POS Active 086534701600711","086534701600712":"Healthcare JOC POS COBRA 086534701600712","086534701600717":"Healthcare JOC POS LOA 086534701600717","086534701800711":"Healthcare JOC HSA Active 086534701800711","086534701800712":"Healthcare JOC HSA COBRA 086534701800712","086534701800717":"Healthcare JOC HSA LOA 086534701800717","086534702000711":"Healthcare JOC PRN HSA Active 086534702000711","086534702000712":"Healthcare JOC PRN HSA COBRA 086534702000712","086534702000717":"Healthcare JOC PRN HSA LOA 086534702000717","081122202100221":"Healthcare JOC POS Active 081122202100221","081122202100222":"Healthcare JOC POS COBRA 081122202100222","081122202100227":"Healthcare JOC POS LOA 081122202100227"},ei=new Set(Object.keys(ea)),isEligibleForAutoEnrollment=e=>{let{groupNumber:t,status:a}=e;return ei.has(t)&&"Active"===a};(i=n||(n={})).CreateLead="createLead",i.CreateContact="createContact",i.UpdateContact="updateContact",i.CheckBenefits="checkBenefits",i.DetermineContactOrLead="determineContactOrLead",i.FetchConsents="fetchConsents",i.UpdateEmail="updateEmail";let en={...$.a,...n},er=Y.aU[q.kT.Emory],eo={formData:{birthdate:"",comorbidity:"",currentWeightInPounds:"",dateOfHighestWeightValue:"",email:"",firstName:"",heightInFoot:"",heightInInch:"",highestWeightInPounds:"",insuranceCoverage:void 0,insuranceMemberID:"",insurance:void 0,lastName:"",phone:"",state:void 0,termsAgreement:!1,howDidYouFindUS:""},bmi:void 0,benefitsCheck:void 0,otpData:void 0,consentsData:{items:[],userConsentStatus:[]},contactData:{},passwordData:{password:void 0,confirmPassword:void 0},flyteUserData:void 0,error:void 0},es={...G.OX,...G.cp,...G.sW,...G.Oz,...G.S8,...G.oQ,...G.q6,...G.nB,...G.v1,...(0,G.Ww)(eo)},el=(0,Z.cY)({types:{},guards:{isPreEligibilityMet:e=>{let{context:{formData:t,bmi:a}}=e;return Q.Pq.emory({bmi:a,comorbidity:t.comorbidity,birthdate:t.birthdate})},isApplicationReviewRequired:e=>{var t,a;let{context:{benefitsCheck:i}}=e;return!isEligibleForAutoEnrollment({groupNumber:null==i?void 0:null===(t=i.coverage)||void 0===t?void 0:t.groupNumber,status:null==i?void 0:null===(a=i.coverage)||void 0===a?void 0:a.status})},isApplicationDetected:K.Q,isAthenaRecordCreated:X.w},actions:es}).createMachine({context:()=>eo,id:"emoryMachine",initial:en.PreEligibility,states:{[en.PreEligibility]:{id:en.PreEligibility,initial:en.Idle,states:{[en.Idle]:{on:{SUBMIT:{target:en.Submitting,actions:"updateFormData"}}},[en.Submitting]:{entry:"assignBMI",always:[{target:"#".concat(en.ContactDetails),guard:"isPreEligibilityMet"},{target:"#".concat(en.EligibilityUnmet)}]}}},[en.ContactDetails]:{id:en.ContactDetails,initial:en.Idle,states:{[en.Idle]:{on:{SUBMIT:{target:"#".concat(en.InsuranceDetails),actions:"updateFormData"}}}}},[en.InsuranceDetails]:{id:en.InsuranceDetails,initial:en.Idle,states:{[en.Idle]:{on:{BACK:{target:"#".concat(en.ContactDetails)},SUBMIT:{target:"#".concat(en.InsuranceDetailsReview),actions:"updateFormData"}}}}},[en.InsuranceDetailsReview]:{id:en.InsuranceDetailsReview,initial:en.Idle,states:{[en.Idle]:{on:{SUBMIT:{actions:"updateFormData",target:en.Submitting}}},[en.Submitting]:{id:en.Submitting,initial:en.CheckBenefits,states:{[en.CheckBenefits]:{id:en.CheckBenefits,invoke:{src:(0,ee.p4)(async e=>{let{input:t}=e,a={...t,payerCode:Y.qK[q.PF.Aetna]};return await (0,W.o)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:[{actions:(0,et.a)({benefitsCheck:e=>{let{event:t}=e;return t.output.data}}),target:"#".concat(en.DetermineContactOrLead)}],onError:"#".concat(en.DetermineContactOrLead)}},[en.DetermineContactOrLead]:{id:en.DetermineContactOrLead,always:[{guard:"isApplicationReviewRequired",target:en.CreateLead},{target:en.CreateContact}]},[en.CreateContact]:{id:en.CreateContact,invoke:{src:(0,ee.p4)(async e=>{var t,a;let{input:i}=e,n={...i.formData,...i.formData.insuranceMemberID&&{employmentVerificationCode:i.formData.insuranceMemberID},...i.benefitsCheck&&{benefitsCheck:i.benefitsCheck,participantDepartmentorOrg:ea[null===(a=i.benefitsCheck)||void 0===a?void 0:null===(t=a.coverage)||void 0===t?void 0:t.groupNumber]},company:er,insurance:Y.KG[q.kT.Emory],evolveOrganization:q.bV.Emory,accountId:Y.kS[q.kT.Emory],eligibilityVerifiedBy:q.Vn.Pverify};return await (0,V.rE)(n)}),input:e=>{let{context:t}=e;return t},onDone:{actions:"assignContactData",target:"#".concat(en.EmailVerification)},onError:[{guard:"isApplicationDetected",target:"#".concat(en.ApplicationDetected)},{target:"#".concat(en.InsuranceDetailsReview,".").concat(en.Error)}]}},[en.CreateLead]:{id:en.CreateLead,invoke:{src:(0,ee.p4)(async e=>{let{input:t}=e,a={...t.formData,...t.formData.insuranceMemberID&&{employmentVerificationCode:t.formData.insuranceMemberID},...t.benefitsCheck&&{benefitsCheck:t.benefitsCheck},insurance:Y.KG[q.kT.Emory],evolveOrganization:q.bV.Emory,company:er,leadStatus:q.rl.EligibleWaiting,automateEvolveEnrollment:!1};return await (0,z.$)(a)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(en.ApplicationReview),onError:[{guard:"isApplicationDetected",target:"#".concat(en.ApplicationDetected)},{target:"#".concat(en.InsuranceDetailsReview,".").concat(en.Error)}]}}}},[en.Error]:{id:"".concat(en.InsuranceDetailsReview,".").concat(en.Error),on:{SUBMIT:{actions:["updateFormData","resetBenefitsCheck"],target:en.Submitting}}}}},[en.EmailVerification]:{id:en.EmailVerification,initial:en.Idle,states:{[en.Idle]:{id:"".concat(en.EmailVerification,".").concat(en.Idle),on:{SUBMIT:{actions:"assignOtpCode",target:en.Submitting},RESEND_EMAIL_VERIFICATION:{target:en.Idle,reenter:!0},UPDATE_EMAIL:{target:en.UpdateEmail}},invoke:{input:e=>{var t;let{context:a,event:i}=e;return{email:a.formData.email,firstName:a.formData.firstName,onSuccess:null==i?void 0:null===(t=i.data)||void 0===t?void 0:t.onSuccess}},src:(0,ee.p4)(async e=>{let{input:t}=e,a={email:t.email,firstName:t.firstName},i=await (0,M.t)(a);return{token:i.data.token,onSuccess:t.onSuccess}}),onDone:{actions:[(0,et.a)({otpData:e=>{let{context:t,event:a}=e;return{...t.otpData,token:a.output.token}}}),e=>{var t;let{event:a}=e;(null==a?void 0:null===(t=a.output)||void 0===t?void 0:t.onSuccess)&&a.output.onSuccess()}]},onError:en.Error}},[en.Submitting]:{invoke:{src:(0,ee.p4)(async e=>{let{input:t}=e,a={email:t.formData.email,token:t.otpData.token,otp:t.otpData.otp};return await (0,F.M)(a)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(en.OnboardingChecklist),onError:en.Error}},[en.Error]:{on:{SUBMIT:{actions:"assignOtpCode",target:en.Submitting},RESEND_EMAIL_VERIFICATION:{target:en.Idle},UPDATE_EMAIL:{target:en.UpdateEmail}}},[en.UpdateEmail]:{initial:en.Idle,states:{[en.Idle]:{invoke:{input:e=>{let{context:t,event:a}=e;return{contactId:t.contactData.contactId,email:a.data.email,onSuccess:a.data.onSuccess}},src:(0,ee.p4)(async e=>{let{input:t}=e,a={contactId:t.contactId,email:t.email};await (0,V.Tk)(a);let i={email:t.email,onSuccess:t.onSuccess};return i}),onDone:{actions:["assignNewEmail",e=>{var t;let{event:a}=e;(null==a?void 0:null===(t=a.output)||void 0===t?void 0:t.onSuccess)&&a.output.onSuccess()}],target:"#".concat(en.EmailVerification,".").concat(en.Idle)},onError:en.Error}},[en.Error]:{on:{SUBMIT:{target:"#".concat(en.EmailVerification,".").concat(en.Idle)},RESEND_EMAIL_VERIFICATION:{target:"#".concat(en.EmailVerification,".").concat(en.Idle)},UPDATE_EMAIL:{target:en.Idle}}}}}}},[en.ReviewConsents]:{id:en.ReviewConsents,initial:en.FetchConsents,states:{[en.Idle]:{on:{SUBMIT:{actions:["assignUserConsentStatus"],target:en.Submitting}}},[en.FetchConsents]:{invoke:{src:(0,ee.p4)(async()=>await (0,N.J)()),onDone:{actions:"assignConsents",target:en.Idle},onError:en.Error}},[en.Submitting]:{invoke:{src:(0,ee.p4)(async e=>{let{input:t}=e,a={patientIdentifier:t.contactData.contactId,firstName:t.formData.firstName,lastName:t.formData.lastName,phone:t.formData.phone,email:t.formData.email,birthDate:t.formData.birthdate,state:t.formData.state,heightInInch:t.formData.heightInInch,heightInFeet:t.formData.heightInFoot,currentWeightInPounds:t.formData.currentWeightInPounds,evolveOrganization:q.bV.Emory,consents:t.consentsData.userConsentStatus};return await (0,_.D)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{actions:"assignFlyteUserData",target:en.UpdateContact}],onError:"#".concat(en.OnboardingUserError)}},[en.UpdateContact]:{invoke:{src:(0,ee.p4)(async e=>{let{input:t}=e,a={contactId:t.contactData.contactId,evolvePatientID:t.flyteUserData.patientId};return await (0,V.Tk)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{guard:"isAthenaRecordCreated",target:"#".concat(en.CreatePassword)},{target:"#".concat(en.OnboardingUserError)}],onError:"#".concat(en.OnboardingUserError)}},[en.Error]:{on:{SUBMIT:{actions:["assignUserConsentStatus"],target:en.Submitting}}}}},[en.CreatePassword]:{id:en.CreatePassword,initial:en.Idle,states:{[en.Idle]:{on:{SUBMIT:{actions:"assignPasswordData",target:en.Submitting}}},[en.Submitting]:{invoke:{src:(0,ee.p4)(async e=>{let{input:t}=e,a={email:t.formData.email,password:t.passwordData.password,confirmPassword:t.passwordData.confirmPassword};return await (0,H.x)(t.flyteUserData.verifyToken,a)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(en.AppDownload),onError:{target:en.Error,actions:"assignError"}}},[en.Error]:{on:{SUBMIT:{actions:["resetError","assignPasswordData"],target:en.Submitting}}}}},[en.OnboardingChecklist]:{id:en.OnboardingChecklist,on:{SUBMIT:{target:"#".concat(en.ReviewConsents)}}},[en.AppDownload]:{id:en.AppDownload},[en.ApplicationReview]:{id:en.ApplicationReview},[en.OnboardingUserError]:{id:en.OnboardingUserError},[en.ApplicationComplete]:{id:en.ApplicationComplete},[en.ApplicationDetected]:{id:en.ApplicationDetected},[en.EligibilityUnmet]:{id:en.EligibilityUnmet,initial:en.Idle,states:{[en.Idle]:{on:{SUBMIT:{target:en.Submitting,actions:"updateFormData"}}},[en.Submitting]:{invoke:{src:(0,ee.p4)(async e=>{let{input:t}=e,a={...t,company:er,leadStatus:q.rl.Ineligible,ineligibilityReason:q.ib.BMI,automateEvolveEnrollment:!1};return await (0,z.$)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:en.Success,onError:en.Error}},[en.Success]:{},[en.Error]:{on:{SUBMIT:{actions:"updateFormData",target:en.Submitting}}}}}},on:{RESET:{target:"#".concat(en.PreEligibility),actions:"reset"}}});var ec=a(56344);let ed={[p.J.PreEligibility]:{title:(0,r.jsxs)(o.TextPairing,{variant:"textpairing-header-2XL",children:[(0,r.jsx)(o.TextPairing.Label,{color:"text-primary",children:"Let's make sure you're eligible for the FlyteHealth program."}),(0,r.jsx)(o.TextPairing.SubLabel,{color:"text-secondary",children:"To be eligible for the FlyteHealth program through your Emory Healthcare and Emory University benefits, you must meet specific age and Body Mass Index (BMI)* requirements."})]}),bmiEnrollmentDisclaimer:(0,r.jsx)(o.Text,{variant:"text-body-meta-regular",color:"text-secondary",children:"*We acknowledge that Body Mass Index (BMI) is an imperfect way to screen for excess weight. FlyteHealth providers do not use BMI alone as a measure of overall health. Instead, BMI is used as a data point to see if someone is eligible to join the FlyteHealth program. Once someone joins the program, we'll ask each person more about their health to create a personalized treatment plan."})},[p.J.EligibilityUnmet]:{title:(0,r.jsxs)(o.TextPairing,{variant:"textpairing-header-2XL",children:[(0,r.jsx)(o.TextPairing.Label,{color:"text-secondary-negative",children:"Unfortunately, you are not eligible to join FlyteHealth at this time."}),(0,r.jsx)(o.TextPairing.SubLabel,{color:"text-secondary",children:"The FlyteHealth program requires a minimum BMI of 27+ (plus one or more weight-related health conditions) or a BMI of 30+."})]})},[p.J.ContactDetails]:{title:(0,r.jsxs)(o.TextPairing,{variant:"textpairing-header-2XL",children:[(0,r.jsx)(o.TextPairing.Label,{color:"text-secondary-negative",children:"Congratulations! You're eligible for the FlyteHealth program"}),(0,r.jsx)(o.TextPairing.SubLabel,{color:"text-secondary",children:"To help us match your information with your employer, tell us about yourself. Next, we'll ask about your Aetna Health Plan membership. Be sure to have your insurance card handy."})]})},[p.J.InsuranceDetails]:{title:(0,r.jsxs)(o.Text,{variant:"text-header-2XL",color:"text-secondary-negative",children:["One more thing:"," ",(0,r.jsx)(o.Text,{as:"span",variant:"text-header-2XL",color:"text-primary",children:"What's your Aetna membership number?"})]})},[p.J.InsuranceDetailsReview]:{title:(0,r.jsxs)(o.TextPairing,{variant:"textpairing-header-2XL",children:[(0,r.jsx)(o.TextPairing.Label,{children:"Let's review: Is your info correct?"}),(0,r.jsx)(o.TextPairing.SubLabel,{color:"text-secondary",children:"Please double-check the information you provided to make sure everything is correct."})]})},[p.J.ApplicationComplete]:{title:(0,r.jsxs)(o.TextPairing,{variant:"textpairing-header-2XL",children:[(0,r.jsx)(o.TextPairing.Label,{color:"text-secondary-negative",children:"Welcome aboard! We're so excited you're here."}),(0,r.jsx)(o.TextPairing.SubLabel,{color:"text-secondary",children:"Next, we need to confirm your email. Click the link we sent to:"})]}),description:(0,r.jsx)(o.Text,{mt:"spacer-8",color:"text-secondary",variant:"text-body-regular",children:"Can’t find the email? Make sure to check your Spam folder."})},[p.J.ApplicationReview]:{title:(0,r.jsxs)(o.TextPairing,{variant:"textpairing-header-2XL",children:[(0,r.jsx)(o.TextPairing.Label,{color:"text-primary",children:"You're almost finished!"}),(0,r.jsx)(o.TextPairing.SubLabel,{color:"text-secondary",children:"We've received your application, but we need a little more information from you to move forward. Please call us to complete the application process."})]})},[p.J.ApplicationDetected]:{title:(0,r.jsx)(o.Text,{variant:"text-header-2XL",color:"text-primary",children:"We found an existing account for:"}),description:(0,r.jsx)(o.Text,{variant:"text-body-display-S",color:"text-secondary",children:"It looks like you already have an account with us. To continue or update your registration details, please contact our Care Coordinator team."})},[p.J.EmailVerification]:ec.T[p.J.EmailVerification],[p.J.OnboardingChecklist]:ec.T[p.J.OnboardingChecklist],[p.J.CreatePassword]:ec.T[p.J.CreatePassword],[p.J.AppDownload]:ec.T[p.J.AppDownload],[p.J.ReviewConsents]:ec.T[p.J.ReviewConsents]};var eu=a(58976);let ep=[T.Op.BenefitsWebsite,T.Op.CoworkerReferral,T.Op.PrescriptionDenial,T.Op.ProviderReferral,T.Op.WordOfMouth,T.Op.Other],em={maxLength:10,minLength:10,registerOptions:{minLength:{value:10,message:"Enter the 10-character member ID number."},maxLength:{value:10,message:"Enter the 10-character member ID number."}},inputMode:"text",maskOptions:{mask:/^[a-z0-9]+$/i},label:"Aetna Membership ID Number",placeholder:"W152362078"},eh={[p.J.ContactDetails]:{state:{options:eu.Fp},howDidYouFindUs:{options:ep}},[p.J.InsuranceDetails]:{insuranceMemberID:{...em,tooltip:(0,r.jsxs)(o.Box,{children:[(0,r.jsx)(o.Text,{variant:"text-body-meta-regular",color:"text-light",children:"Where to find my Membership ID Number:"}),(0,r.jsx)(o.Image,{width:"100%",height:"auto",src:"/static/assets/programs/emory/emory-insurance-card.png",alt:"Member ID guidance"})]}),description:(0,r.jsx)(o.Text,{variant:"text-body-meta-regular",color:"text-secondary",children:"Enter the 10-character Member ID number as displayed on your Aetna Membership ID Card."})}},[p.J.InsuranceDetailsReview]:{insuranceMemberID:em}},eg=T.kT.Emory,EmoryWorkflow=e=>{let{render:t}=e,[a,i]=(0,J.eO)(el),n=(0,m.useMemo)(()=>(0,B.k)(a.value),[a.value]);(0,L.R)(n,eg);let s=(0,m.useCallback)(e=>{i({type:"SUBMIT",data:e})},[i]),l=(0,m.useCallback)(()=>{i({type:"BACK"})},[i]),c=(0,m.useCallback)(()=>{switch(n){case en.PreEligibility:return(0,r.jsx)(P.b,{configuration:{contentResources:ed[p.J.PreEligibility]},onSubmit:s});case en.ContactDetails:return(0,r.jsx)(f.q,{configuration:{contentResources:ed[p.J.ContactDetails],fields:eh[p.J.ContactDetails]},onSubmit:s,defaultValues:a.context.formData});case en.EligibilityUnmet:return(0,r.jsx)(j.X,{configuration:{contentResources:ed[p.J.EligibilityUnmet]},onSubmit:s,loading:a.matches({[en.EligibilityUnmet]:en.Submitting}),isEmailSent:a.matches({[en.EligibilityUnmet]:en.Success}),hasError:a.matches({[en.EligibilityUnmet]:en.Error}),isMobileFooterSticky:!1});case en.InsuranceDetails:return(0,r.jsx)(k.v,{configuration:{contentResources:ed[p.J.InsuranceDetails],fields:eh[p.J.InsuranceDetails]},onSubmit:s,onBack:l});case en.InsuranceDetailsReview:return(0,r.jsx)(w.b,{configuration:{contentResources:ed[p.J.InsuranceDetailsReview],fields:eh[p.J.InsuranceDetailsReview]},onSubmit:s,loading:a.matches({[en.InsuranceDetailsReview]:en.Submitting}),hasError:a.matches({[en.InsuranceDetailsReview]:en.Error}),defaultValues:a.context.formData});case en.ApplicationComplete:return(0,r.jsx)(C.J,{...ed[p.J.ApplicationComplete],email:a.context.formData.email});case en.ApplicationReview:return(0,r.jsx)(y.G,{...ed[p.J.ApplicationReview]});case en.ApplicationDetected:return(0,r.jsx)(E.v,{...ed[p.J.ApplicationDetected],email:a.context.formData.email});case en.EmailVerification:return(0,r.jsx)(D.Z,{configuration:{contentResources:{title:ed[p.J.EmailVerification](a.context.formData.email).title}},email:a.context.formData.email,hasError:a.matches({[en.EmailVerification]:en.Error}),loading:a.matches({[en.EmailVerification]:en.Submitting}),isUpdateEmailLoading:a.matches({[en.EmailVerification]:{[en.UpdateEmail]:en.Idle}}),hasUpdateEmailError:a.matches({[en.EmailVerification]:{[en.UpdateEmail]:en.Error}}),onSubmit:s,onResendCode:e=>i({type:"RESEND_EMAIL_VERIFICATION",data:{onSuccess:e}}),onEditEmail:(e,t)=>i({type:"UPDATE_EMAIL",data:{email:e,onSuccess:t}})});case en.OnboardingChecklist:return(0,r.jsx)(O.O,{configuration:{contentResources:ed[p.J.OnboardingChecklist]},onSubmit:s});case en.ReviewConsents:return(0,r.jsx)(R.R,{configuration:{contentResources:ed[p.J.ReviewConsents]},consents:a.context.consentsData.items,hasError:a.matches({[en.ReviewConsents]:en.Error}),loading:a.matches({[en.ReviewConsents]:en.FetchConsents})||a.matches({[en.ReviewConsents]:en.Submitting})||a.matches({[en.ReviewConsents]:en.UpdateContact}),onSubmit:s});case en.CreatePassword:return(0,r.jsx)(I.f,{configuration:{contentResources:ed[p.J.CreatePassword]},loading:a.matches({[en.CreatePassword]:en.Submitting}),error:a.context.error,onSubmit:s});case en.AppDownload:return(0,r.jsx)(b.B,{title:ed[p.J.AppDownload].title,checklist:ed[p.J.AppDownload].checklist});case en.OnboardingUserError:return(0,r.jsx)(U._,{});default:return null}},[n,a]);return t({header:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o.Flex,{gap:"spacer-5",alignItems:"center",children:[(0,r.jsx)(S.E,{partner:T.kT.Flyte}),(0,r.jsx)(o.Divider,{orientation:"vertical",alignSelf:"stretch",height:"auto"}),(0,r.jsx)(S.E,{partner:eg})]}),(0,r.jsx)(A.K,{currentStep:n})]}),body:c(),currentWorkFlowStep:n})};var ex=a(29509),ev=a(35592),eb=a(17219),eC=a(84901),eE=a(16428),ey=a(38098),eS=a(79929),eA=a(36045),ef=a(50574),eI=a(87536);let ej="currentWeightInPounds",eD="heightInFoot",ek="heightInInch",ew={BMICalculator:e=>{var t;let{tooltip:a="We acknowledge that Body Mass Index (BMI) is an imperfect way to screen for excess weight. FlyteHealth providers do not use BMI alone as a measure of overall health. Instead, BMI is used as a data point to see if someone is eligible to join the FlyteHealth program. Once someone joins the program, we’ll ask each person more about their health to create a personalized treatment plan.",...i}=e,{register:n,formState:s,setValue:l,watch:c}=(0,eI.cI)({mode:"onBlur"}),d=(0,ef.M)(c(ej)),u=(0,ef.M)(c(eD)),p=(0,ef.M)(c(ek)),h=null===(t=(0,m.useMemo)(()=>d&&u&&p&&(0,eS.V)({weightPounds:d,heightFeet:u,heightInches:p}),[d,u,p]))||void 0===t?void 0:t.toFixed(1),g=(0,eA.T)(ej,s.errors,"validate"),x=(0,eA.T)(eD,s.errors,"validate"),v=(0,eA.T)(ek,s.errors,"validate");return(0,r.jsxs)(o.Flex,{direction:"column",...i,children:[(0,r.jsxs)(o.Flex,{direction:"column",as:"form",children:[(0,r.jsx)(o.Flex,{px:"spacer-8",py:"spacer-4",backgroundColor:"secondary-default",borderTopLeftRadius:"radii-6",borderTopRightRadius:"radii-6",children:(0,r.jsx)(o.Text,{color:"text-light",variant:"text-header-L",children:"BMI Calculator"})}),(0,r.jsxs)(o.Flex,{direction:"column",py:"spacer-8",px:{base:"spacer-5",md:"spacer-8"},backgroundColor:"background-card",borderBottomLeftRadius:"radii-6",borderBottomRightRadius:"radii-6",children:[(0,r.jsxs)(o.Flex,{gap:"spacer-4",children:[(0,r.jsxs)(o.Flex,{direction:"column",gap:"spacer-2",flex:1,children:[(0,r.jsx)(o.Text,{variant:"text-body-medium",color:"text-primary",as:"label",htmlFor:eD,children:"Height (ft)"}),(0,r.jsx)(eu.lm,{unit:"ft",id:eD,isInvalid:x,onInput:e=>l(eD,e.currentTarget.value),...n(eD,{required:!0,validate:e=>{let t=(0,ef.M)(e);return t>=4&&t<=7||ey.x[eD].validate}})})]}),(0,r.jsxs)(o.Flex,{direction:"column",gap:"spacer-2",flex:1,children:[(0,r.jsx)(o.Text,{variant:"text-body-medium",color:"text-primary",as:"label",htmlFor:ek,children:"Height (in)"}),(0,r.jsx)(eu.lm,{unit:"in",id:ek,isInvalid:v,onInput:e=>l(ek,e.currentTarget.value),...n(ek,{required:!0,validate:e=>{let t=(0,ef.M)(e);return t>=0&&t<=11||ey.x[ek].validate}})})]})]}),(x||v)&&(0,r.jsxs)(o.Flex,{gap:"spacer-2",direction:"column",mt:"spacer-2",children:[x&&(0,r.jsx)(eu.VO,{errors:s.errors,name:eD}),v&&(0,r.jsx)(eu.VO,{errors:s.errors,name:ek})]}),(0,r.jsxs)(o.Box,{mb:{base:"spacer-6",md:"spacer-8"},mt:"spacer-4",children:[(0,r.jsx)(o.Text,{variant:"text-body-medium",color:"text-primary",as:"label",htmlFor:ej,children:"Weight (lbs)"}),(0,r.jsx)(eu.CZ,{id:ej,isInvalid:g,mt:"spacer-2",onInput:e=>l(ej,e.currentTarget.value),...n(ej,{required:!0,validate:e=>{let t=(0,ef.M)(e);return t>=1&&t<1e3||ey.x[ej].validate}})}),g&&(0,r.jsx)(o.Box,{mt:"spacer-2",children:(0,r.jsx)(eu.VO,{errors:s.errors,name:ej})})]}),(0,r.jsx)(o.Box,{margin:"0 auto",children:(0,r.jsxs)(o.TextPairing,{variant:{base:"textpairing-body-display-XL",md:"textpairing-body-display-2XL"},children:[(0,r.jsx)(o.TextPairing.Label,{color:"text-primary",children:null!=h?h:"--.--"}),(0,r.jsx)(o.TextPairing.SubLabel,{color:"text-secondary",textAlign:"center",children:"BMI"})]})})]})]}),(0,r.jsx)(o.Tooltip,{label:a,placement:"top",children:(0,r.jsxs)(o.Flex,{gap:"spacer-2",alignItems:"center",mt:"spacer-3",justifyContent:"center",children:[(0,r.jsx)(o.Text,{color:"text-link-accent-default",variant:"text-body-meta-medium",as:"p",children:"Why BMI?"}),(0,r.jsx)(o.IconInfoCircle,{})]})})]})},AetnaSignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[n,s]=(0,m.useState)(!1),[g,x]=(0,m.useState)(!1),{track:v}=(0,c.useAnalytics)(),b=(0,m.useCallback)(()=>{x(!1),s(!1),v(l.U.closeWorkflowEvent)},[]),C=(0,m.useCallback)(()=>x(e=>!e),[]),E=(0,m.useCallback)(e=>{let t=[p.J.ApplicationReview,p.J.ApplicationComplete,p.J.ApplicationDetected,p.J.EligibilityUnmet],a=t.includes(e);a?s(!1):(v(l.U.closeWorkflowConfirmationEvent),C())},[]),y=(0,m.useCallback)(()=>{v(l.U.abortCloseWorkflow),C()},[C,v]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Button,{onClick:()=>s(!0),trailingIcon:(0,r.jsx)(o.IconArrowRight,{}),size:t,children:a,"data-test":"aetnaSignUpLauncher",...i}),n&&(0,r.jsx)(h.U,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,r.jsxs)(d.Eg,{isOpen:!0,onClose:()=>E(i),children:[(0,r.jsx)(d.Eg.Header,{children:t}),(0,r.jsx)(d.Eg.Body,{children:a},i)]})}}),(0,r.jsx)(u.e,{isOpen:g,onContinue:y,onLeave:b})]})},CareCompassSignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[n,s]=(0,m.useState)(!1),[h,x]=(0,m.useState)(!1),{track:v}=(0,c.useAnalytics)(),b=(0,m.useCallback)(()=>{x(!1),s(!1),v(l.U.closeWorkflowEvent)},[]),C=(0,m.useCallback)(()=>x(e=>!e),[]),E=(0,m.useCallback)(e=>{let t=[p.J.ApplicationReview,p.J.ApplicationComplete,p.J.ApplicationDetected,p.J.EligibilityUnmet],a=t.includes(e);a?s(!1):(v(l.U.closeWorkflowConfirmationEvent),C())},[]),y=(0,m.useCallback)(()=>{v(l.U.abortCloseWorkflow),C()},[C,v]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Button,{onClick:()=>s(!0),trailingIcon:(0,r.jsx)(o.IconArrowRight,{}),size:t,children:a,"data-test":"careCompassSignUpLauncher",...i}),n&&(0,r.jsx)(g.$,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,r.jsxs)(d.Eg,{isOpen:!0,onClose:()=>E(i),children:[(0,r.jsx)(d.Eg.Header,{children:t}),(0,r.jsx)(d.Eg.Body,{children:a},i)]})}}),(0,r.jsx)(u.e,{isOpen:h,onContinue:y,onLeave:b})]})},EmorySignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[n,s]=(0,m.useState)(!1),[h,g]=(0,m.useState)(!1),{track:x}=(0,c.useAnalytics)(),v=(0,m.useCallback)(()=>{g(!1),s(!1),x(l.U.closeWorkflowEvent)},[]),b=(0,m.useCallback)(()=>g(e=>!e),[]),C=(0,m.useCallback)(e=>{let t=[p.J.ApplicationReview,p.J.ApplicationComplete,p.J.ApplicationDetected,p.J.EligibilityUnmet,p.J.AppDownload],a=t.includes(e);a?s(!1):(x(l.U.closeWorkflowConfirmationEvent),b())},[]),E=(0,m.useCallback)(()=>{x(l.U.abortCloseWorkflow),b()},[b,x]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Button,{onClick:()=>s(!0),trailingIcon:(0,r.jsx)(o.IconArrowRight,{}),size:t,children:a,"data-test":"emorySignUpLauncher",...i}),n&&(0,r.jsx)(EmoryWorkflow,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,r.jsxs)(d.Eg,{isOpen:!0,onClose:()=>C(i),children:[(0,r.jsx)(d.Eg.Header,{children:t}),(0,r.jsx)(d.Eg.Body,{children:a},i)]})}}),(0,r.jsx)(u.e,{isOpen:h,onContinue:E,onLeave:v})]})},FlyteSignUpLauncher:ex.U,RiverspringSignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[n,s]=(0,m.useState)(!1),[h,g]=(0,m.useState)(!1),{track:x}=(0,c.useAnalytics)(),v=(0,m.useCallback)(()=>{g(!1),s(!1),x(l.U.closeWorkflowEvent)},[]),b=(0,m.useCallback)(()=>g(e=>!e),[]),C=(0,m.useCallback)(e=>{let t=[p.J.ApplicationReview,p.J.ApplicationComplete,p.J.ApplicationDetected,p.J.EligibilityUnmet,p.J.AppDownload],a=t.includes(e);a?s(!1):(x(l.U.closeWorkflowConfirmationEvent),b())},[]),E=(0,m.useCallback)(()=>{x(l.U.abortCloseWorkflow),b()},[b,x]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Button,{onClick:()=>s(!0),trailingIcon:(0,r.jsx)(o.IconArrowRight,{}),size:t,children:a,"data-test":"riverspringSignUpLauncher",...i}),n&&(0,r.jsx)(eE.l,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,r.jsxs)(d.Eg,{isOpen:!0,onClose:()=>C(i),children:[(0,r.jsx)(d.Eg.Header,{children:t}),(0,r.jsx)(d.Eg.Body,{children:a},i)]})}}),(0,r.jsx)(u.e,{isOpen:h,onContinue:E,onLeave:v})]})},PequotSignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[n,s]=(0,m.useState)(!1),[h,g]=(0,m.useState)(!1),{track:x}=(0,c.useAnalytics)(),v=(0,m.useCallback)(()=>{g(!1),s(!1),x(l.U.closeWorkflowEvent)},[]),b=(0,m.useCallback)(()=>g(e=>!e),[]),C=(0,m.useCallback)(e=>{let t=[p.J.ApplicationReview,p.J.ApplicationComplete,p.J.ApplicationDetected,p.J.EligibilityUnmet,p.J.AppDownload],a=t.includes(e);a?s(!1):(x(l.U.closeWorkflowConfirmationEvent),b())},[]),E=(0,m.useCallback)(()=>{x(l.U.abortCloseWorkflow),b()},[b,x]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Button,{onClick:()=>s(!0),trailingIcon:(0,r.jsx)(o.IconArrowRight,{}),size:t,children:a,"data-test":"pequotSignUpLauncher",...i}),n&&(0,r.jsx)(eb.u,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,r.jsxs)(d.Eg,{isOpen:!0,onClose:()=>C(i),children:[(0,r.jsx)(d.Eg.Header,{children:t}),(0,r.jsx)(d.Eg.Body,{children:a},i)]})}}),(0,r.jsx)(u.e,{isOpen:h,onContinue:E,onLeave:v})]})},PyleSignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[n,s]=(0,m.useState)(!1),[h,g]=(0,m.useState)(!1),{track:x}=(0,c.useAnalytics)(),v=(0,m.useCallback)(()=>{g(!1),s(!1),x(l.U.closeWorkflowEvent)},[]),b=(0,m.useCallback)(()=>g(e=>!e),[]),C=(0,m.useCallback)(e=>{let t=[p.J.ApplicationReview,p.J.ApplicationDetected,p.J.EligibilityUnmet],a=t.includes(e);a?s(!1):(x(l.U.closeWorkflowConfirmationEvent),b())},[]),E=(0,m.useCallback)(()=>{x(l.U.abortCloseWorkflow),b()},[b,x]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Button,{onClick:()=>s(!0),trailingIcon:(0,r.jsx)(o.IconArrowRight,{}),size:t,children:a,"data-test":"pyleSignUpLauncher",...i}),n&&(0,r.jsx)(eC.u,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,r.jsxs)(d.Eg,{isOpen:!0,onClose:()=>C(i),children:[(0,r.jsx)(d.Eg.Header,{children:t}),(0,r.jsx)(d.Eg.Body,{children:a},i)]})}}),(0,r.jsx)(u.e,{isOpen:h,onContinue:E,onLeave:v})]})},DGASignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[n,s]=(0,m.useState)(!1),[h,g]=(0,m.useState)(!1),{track:x}=(0,c.useAnalytics)(),b=(0,m.useCallback)(()=>{g(!1),s(!1),x(l.U.closeWorkflowEvent)},[]),C=(0,m.useCallback)(()=>g(e=>!e),[]),E=(0,m.useCallback)(e=>{let t=[p.J.ApplicationReview,p.J.ApplicationComplete,p.J.ApplicationDetected,p.J.EligibilityUnmet,p.J.AppDownload],a=t.includes(e);a?s(!1):(x(l.U.closeWorkflowConfirmationEvent),C())},[]),y=(0,m.useCallback)(()=>{x(l.U.abortCloseWorkflow),C()},[C,x]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Button,{onClick:()=>s(!0),trailingIcon:(0,r.jsx)(o.IconArrowRight,{}),size:t,children:a,"data-test":"dgaSignUpLauncher",...i}),n&&(0,r.jsx)(v.I,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,r.jsxs)(d.Eg,{isOpen:!0,onClose:()=>E(i),children:[(0,r.jsx)(d.Eg.Header,{children:t}),(0,r.jsx)(d.Eg.Body,{children:a},i)]})}}),(0,r.jsx)(u.e,{isOpen:h,onContinue:y,onLeave:b})]})},MDSaveSignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[n,s]=(0,m.useState)(!1),[h,g]=(0,m.useState)(!1),{track:x}=(0,c.useAnalytics)(),v=(0,m.useCallback)(()=>{g(!1),s(!1),x(l.U.closeWorkflowEvent)},[]),b=(0,m.useCallback)(()=>g(e=>!e),[]),C=(0,m.useCallback)(e=>{let t=[p.J.ApplicationReview,p.J.ApplicationDetected,p.J.EligibilityUnmet],a=t.includes(e);a?s(!1):(x(l.U.closeWorkflowConfirmationEvent),b())},[]),E=(0,m.useCallback)(()=>{x(l.U.abortCloseWorkflow),b()},[b,x]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Button,{onClick:()=>s(!0),trailingIcon:(0,r.jsx)(o.IconArrowRight,{}),size:t,children:a,"data-test":"mdSaveSignUpLauncher",...i}),n&&(0,r.jsx)(ev.t,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,r.jsxs)(d.Eg,{isOpen:!0,onClose:()=>C(i),children:[(0,r.jsx)(d.Eg.Header,{children:t}),(0,r.jsx)(d.Eg.Body,{children:a},i)]})}}),(0,r.jsx)(u.e,{isOpen:h,onContinue:E,onLeave:v})]})},ChristianaCareSignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[n,s]=(0,m.useState)(!1),[h,g]=(0,m.useState)(!1),{track:v}=(0,c.useAnalytics)(),b=(0,m.useCallback)(()=>{g(!1),s(!1),v(l.U.closeWorkflowEvent)},[]),C=(0,m.useCallback)(()=>g(e=>!e),[]),E=(0,m.useCallback)(e=>{let t=[p.J.ApplicationReview,p.J.ApplicationComplete,p.J.ApplicationDetected,p.J.EligibilityUnmet,p.J.AppDownload],a=t.includes(e);a?s(!1):(v(l.U.closeWorkflowConfirmationEvent),C())},[]),y=(0,m.useCallback)(()=>{v(l.U.abortCloseWorkflow),C()},[C,v]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Button,{onClick:()=>s(!0),trailingIcon:(0,r.jsx)(o.IconArrowRight,{}),size:t,children:a,"data-test":"christianaCareSignUpLauncher",...i}),n&&(0,r.jsx)(x.k,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,r.jsxs)(d.Eg,{isOpen:!0,onClose:()=>E(i),children:[(0,r.jsx)(d.Eg.Header,{children:t}),(0,r.jsx)(d.Eg.Body,{children:a},i)]})}}),(0,r.jsx)(u.e,{isOpen:h,onContinue:y,onLeave:b})]})},PartnerLandingNavigation:e=>{let{children:t,...a}=e,i=(0,o.useScrollPosition)(),n=(0,o.useBreakpointValue)({base:!0,md:!1}),s=i>400,l=(0,m.useMemo)(()=>{let e=[],a=null;return m.Children.forEach(t,t=>{(0,m.isValidElement)(t)&&(t.type===o.Image?e.push(t):a||(a=t))}),{images:e,launcher:a}},[t]),[c,d]=l.images;return(0,r.jsx)(o.Flex,{as:"nav",backgroundColor:"background-page",position:"sticky",top:"0",zIndex:10,width:"100%",height:"84px",children:(0,r.jsxs)(o.Flex,{alignItems:"center",justifyContent:"space-between",width:"100%",height:"100%",maxWidth:"1440px",margin:"0 auto",py:{base:"spacer-2",lg:"spacer-4"},px:{base:"spacer-8",lg:"spacer-16",xl:"spacer-24",xxl:"spacer-32"},...a,children:[(0,r.jsxs)(o.Flex,{gap:"spacer-5",alignItems:"center",children:[c,(0,r.jsx)(o.Fade,{in:!n||i<=400,unmountOnExit:!0,children:(0,r.jsxs)(o.Flex,{gap:"spacer-5",alignItems:"center",children:[(0,r.jsx)(o.Divider,{orientation:"vertical",height:"52px"}),d]})})]}),s&&l.launcher&&(0,r.jsx)(o.Fade,{in:s,children:l.launcher})]})})}};var eO=a(92041),eU=a(9008),eP=a.n(eU);let Page=e=>{let{content:t,title:a,metaConfiguration:i,theme:n}=e,l=Object.values(null!=i?i:{}),c=a||l.length>0;return(0,r.jsxs)(o.ComposerProvider,{theme:{...n,...eO.C},children:[c&&(0,r.jsxs)(eP(),{children:[(0,r.jsx)("title",{children:a}),l.map(e=>{let t={[e.propertyName]:e.propertyValue,content:e.content};return(0,r.jsx)("meta",{...t},e.propertyValue)})]}),null==t?void 0:t.map((e,t)=>(0,r.jsx)(s._E,{content:e,componentMap:ew},t))]})}}}]);