"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[35],{73035:function(e,t,a){a.d(t,{T:function(){return Page}});var i,n,r,o,s=a(85893),l=a(71986),c=a(61563),d=a(66122),u=a(3183),m=a(29733),p=a(11964),g=a(70908),h=a(67294),x=a(24045),b=a(38660),E=a(9968),v=a(62657),C=a(44761),I=a(33640),y=a(65660),S=a(20410),D=a(31540),f=a(64460),A=a(39424),w=a(27350),j=a(86640),k=a(96693),U=a(50793),O=a(83344),R=a(76311),P=a(27950),T=a(73071),L=a(9051),M=a(64504),B=a(56401),J=a(17304),F=a(94445),H=a(11841),V=a(91372),W=a(60948),N=a(1943),_=a(21097),z=a(54285),q=a(34474),X=a(64267),G=a(10265),K=a(63317),Y=a(10503),Q=a(19171),$=a(67618),Z=a(10002),ee=a(13064),et=a(94788),ea=a(30368),ei=a(47243);let en={"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"},er=new Set(Object.keys(en)),isEligibleForAutoEnrollment=e=>{let{groupNumber:t,status:a}=e;return er.has(t)&&"Active"===a};(i=r||(r={})).CreateLead="createLead",i.CreateContact="createContact",i.UpdateContact="updateContact",i.CheckBenefits="checkBenefits",i.DetermineContactOrLead="determineContactOrLead",i.FetchConsents="fetchConsents",i.UpdateEmail="updateEmail";let eo={...Z.a,...r},es=$.aU[G.kT.Emory],el={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:"",comorbidities:[],diabetes:"",bariatricSurgery:""},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},ec={...K.OX,...K.cp,...K.sW,...K.Oz,...K.S8,...K.oQ,...K.q6,...K.nB,...K.v1,...(0,K.Ww)(el)},ed=(0,et.cY)({types:{},guards:{isPreEligibilityMet:e=>{let{context:{formData:t,bmi:a}}=e;return ee.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:Q.Q,isAthenaRecordCreated:Y.w},actions:ec}).createMachine({context:()=>el,id:"emoryMachine",initial:eo.PreEligibility,states:{[eo.PreEligibility]:{id:eo.PreEligibility,initial:eo.Idle,states:{[eo.Idle]:{on:{SUBMIT:{target:eo.Submitting,actions:"updateFormData"}}},[eo.Submitting]:{entry:"assignBMI",always:[{target:"#".concat(eo.ContactDetails),guard:"isPreEligibilityMet"},{target:"#".concat(eo.EligibilityUnmet)}]}}},[eo.ContactDetails]:{id:eo.ContactDetails,initial:eo.Idle,states:{[eo.Idle]:{on:{SUBMIT:{target:"#".concat(eo.InsuranceDetails),actions:"updateFormData"}}}}},[eo.InsuranceDetails]:{id:eo.InsuranceDetails,initial:eo.Idle,states:{[eo.Idle]:{on:{BACK:{target:"#".concat(eo.ContactDetails)},SUBMIT:{target:"#".concat(eo.InsuranceDetailsReview),actions:"updateFormData"}}}}},[eo.InsuranceDetailsReview]:{id:eo.InsuranceDetailsReview,initial:eo.Idle,states:{[eo.Idle]:{on:{SUBMIT:{actions:"updateFormData",target:eo.Submitting}}},[eo.Submitting]:{id:eo.Submitting,initial:eo.CheckBenefits,states:{[eo.CheckBenefits]:{id:eo.CheckBenefits,invoke:{src:(0,ea.p4)(async e=>{let{input:t}=e,a={...t,payerCode:$.qK[G.PF.Aetna]};return await (0,N.o)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:[{actions:(0,ei.a)({benefitsCheck:e=>{let{event:t}=e;return t.output.data}}),target:"#".concat(eo.DetermineContactOrLead)}],onError:"#".concat(eo.DetermineContactOrLead)}},[eo.DetermineContactOrLead]:{id:eo.DetermineContactOrLead,always:[{guard:"isApplicationReviewRequired",target:eo.CreateLead},{target:eo.CreateContact}]},[eo.CreateContact]:{id:eo.CreateContact,invoke:{src:(0,ea.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:en[null===(a=i.benefitsCheck)||void 0===a?void 0:null===(t=a.coverage)||void 0===t?void 0:t.groupNumber]},company:es,insurance:$.KG[G.kT.Emory],evolveOrganization:G.bV.Emory,accountId:$.kS[G.kT.Emory],eligibilityVerifiedBy:G.Vn.Pverify};return await (0,z.rE)(n)}),input:e=>{let{context:t}=e;return t},onDone:{actions:"assignContactData",target:"#".concat(eo.EmailVerification)},onError:[{guard:"isApplicationDetected",target:"#".concat(eo.ApplicationDetected)},{target:"#".concat(eo.InsuranceDetailsReview,".").concat(eo.Error)}]}},[eo.CreateLead]:{id:eo.CreateLead,invoke:{src:(0,ea.p4)(async e=>{let{input:t}=e,a={...t.formData,...t.formData.insuranceMemberID&&{employmentVerificationCode:t.formData.insuranceMemberID},...t.benefitsCheck&&{benefitsCheck:t.benefitsCheck},insurance:$.KG[G.kT.Emory],evolveOrganization:G.bV.Emory,company:es,leadStatus:G.rl.EligibleWaiting,automateEvolveEnrollment:!1,ineligibilityReason:G.ib.Insurance};return await (0,X.$)(a)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(eo.ApplicationReview),onError:[{guard:"isApplicationDetected",target:"#".concat(eo.ApplicationDetected)},{target:"#".concat(eo.InsuranceDetailsReview,".").concat(eo.Error)}]}}}},[eo.Error]:{id:"".concat(eo.InsuranceDetailsReview,".").concat(eo.Error),on:{SUBMIT:{actions:["updateFormData","resetBenefitsCheck"],target:eo.Submitting}}}}},[eo.EmailVerification]:{id:eo.EmailVerification,initial:eo.Idle,states:{[eo.Idle]:{id:"".concat(eo.EmailVerification,".").concat(eo.Idle),on:{SUBMIT:{actions:"assignOtpCode",target:eo.Submitting},RESEND_EMAIL_VERIFICATION:{target:eo.Idle,reenter:!0},UPDATE_EMAIL:{target:eo.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,ea.p4)(async e=>{let{input:t}=e,a={email:t.email,firstName:t.firstName},i=await (0,V.t)(a);return{token:i.data.token,onSuccess:t.onSuccess}}),onDone:{actions:[(0,ei.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:eo.Error}},[eo.Submitting]:{invoke:{src:(0,ea.p4)(async e=>{let{input:t}=e,a={email:t.formData.email,token:t.otpData.token,otp:t.otpData.otp};return await (0,W.M)(a)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(eo.OnboardingChecklist),onError:eo.Error}},[eo.Error]:{on:{SUBMIT:{actions:"assignOtpCode",target:eo.Submitting},RESEND_EMAIL_VERIFICATION:{target:eo.Idle},UPDATE_EMAIL:{target:eo.UpdateEmail}}},[eo.UpdateEmail]:{initial:eo.Idle,states:{[eo.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,ea.p4)(async e=>{let{input:t}=e,a={contactId:t.contactId,email:t.email};await (0,z.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(eo.EmailVerification,".").concat(eo.Idle)},onError:eo.Error}},[eo.Error]:{on:{SUBMIT:{target:"#".concat(eo.EmailVerification,".").concat(eo.Idle)},RESEND_EMAIL_VERIFICATION:{target:"#".concat(eo.EmailVerification,".").concat(eo.Idle)},UPDATE_EMAIL:{target:eo.Idle}}}}}}},[eo.ReviewConsents]:{id:eo.ReviewConsents,initial:eo.FetchConsents,states:{[eo.Idle]:{on:{SUBMIT:{actions:["assignUserConsentStatus"],target:eo.Submitting}}},[eo.FetchConsents]:{invoke:{src:(0,ea.p4)(async()=>await (0,_.J)()),onDone:{actions:"assignConsents",target:eo.Idle},onError:eo.Error}},[eo.Submitting]:{invoke:{src:(0,ea.p4)(async e=>{var t,a;let{input:i}=e,n={patientIdentifier:i.contactData.contactId,firstName:i.formData.firstName,lastName:i.formData.lastName,phone:i.formData.phone,email:i.formData.email,birthDate:i.formData.birthdate,state:i.formData.state,heightInInch:i.formData.heightInInch,heightInFeet:i.formData.heightInFoot,currentWeightInPounds:i.formData.currentWeightInPounds,evolveOrganization:G.bV.Emory,consents:i.consentsData.userConsentStatus,participantDepartmentorOrg:en[null===(a=i.benefitsCheck)||void 0===a?void 0:null===(t=a.coverage)||void 0===t?void 0:t.groupNumber]};return await (0,q.D)(n)}),input:e=>{let{context:t}=e;return t},onDone:[{actions:"assignFlyteUserData",target:eo.UpdateContact}],onError:"#".concat(eo.OnboardingUserError)}},[eo.UpdateContact]:{invoke:{src:(0,ea.p4)(async e=>{let{input:t}=e,a={contactId:t.contactData.contactId,evolvePatientID:t.flyteUserData.patientId};return await (0,z.Tk)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{guard:"isAthenaRecordCreated",target:"#".concat(eo.CreatePassword)},{target:"#".concat(eo.OnboardingUserError)}],onError:"#".concat(eo.OnboardingUserError)}},[eo.Error]:{on:{SUBMIT:{actions:["assignUserConsentStatus"],target:eo.Submitting}}}}},[eo.CreatePassword]:{id:eo.CreatePassword,initial:eo.Idle,states:{[eo.Idle]:{on:{SUBMIT:{actions:"assignPasswordData",target:eo.Submitting}}},[eo.Submitting]:{invoke:{src:(0,ea.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(eo.AppDownload),onError:{target:eo.Error,actions:"assignError"}}},[eo.Error]:{on:{SUBMIT:{actions:["resetError","assignPasswordData"],target:eo.Submitting}}}}},[eo.OnboardingChecklist]:{id:eo.OnboardingChecklist,on:{SUBMIT:{target:"#".concat(eo.ReviewConsents)}}},[eo.AppDownload]:{id:eo.AppDownload},[eo.ApplicationReview]:{id:eo.ApplicationReview},[eo.OnboardingUserError]:{id:eo.OnboardingUserError},[eo.ApplicationComplete]:{id:eo.ApplicationComplete},[eo.ApplicationDetected]:{id:eo.ApplicationDetected},[eo.EligibilityUnmet]:{id:eo.EligibilityUnmet,initial:eo.Idle,states:{[eo.Idle]:{on:{SUBMIT:{target:eo.Submitting,actions:"updateFormData"}}},[eo.Submitting]:{invoke:{src:(0,ea.p4)(async e=>{let{input:t}=e,a={...t,company:es,leadStatus:G.rl.Ineligible,ineligibilityReason:G.ib.BMI,automateEvolveEnrollment:!1};return await (0,X.$)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:eo.Success,onError:eo.Error}},[eo.Success]:{},[eo.Error]:{on:{SUBMIT:{actions:"updateFormData",target:eo.Submitting}}}}}},on:{RESET:{target:"#".concat(eo.PreEligibility),actions:"reset"}}});var eu=a(56344);let em={[g.J.PreEligibility]:{title:(0,s.jsxs)(l.TextPairing,{variant:"textpairing-header-2XL",children:[(0,s.jsx)(l.TextPairing.Label,{color:"text-primary",children:"Let's make sure you're eligible for the FlyteHealth program."}),(0,s.jsx)(l.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,s.jsx)(l.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."})},[g.J.EligibilityUnmet]:{title:(0,s.jsxs)(l.TextPairing,{variant:"textpairing-header-2XL",children:[(0,s.jsx)(l.TextPairing.Label,{color:"text-secondary-negative",children:"Unfortunately, you are not eligible to join FlyteHealth at this time."}),(0,s.jsx)(l.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+."})]})},[g.J.ContactDetails]:{title:(0,s.jsxs)(l.TextPairing,{variant:"textpairing-header-2XL",children:[(0,s.jsx)(l.TextPairing.Label,{color:"text-secondary-negative",children:"Congratulations! You're eligible for the FlyteHealth program"}),(0,s.jsx)(l.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."})]})},[g.J.InsuranceDetails]:{title:(0,s.jsxs)(l.Text,{variant:"text-header-2XL",color:"text-secondary-negative",children:["One more thing:"," ",(0,s.jsx)(l.Text,{as:"span",variant:"text-header-2XL",color:"text-primary",children:"What's your Aetna membership number?"})]})},[g.J.InsuranceDetailsReview]:{title:(0,s.jsxs)(l.TextPairing,{variant:"textpairing-header-2XL",children:[(0,s.jsx)(l.TextPairing.Label,{children:"Let's review: Is your info correct?"}),(0,s.jsx)(l.TextPairing.SubLabel,{color:"text-secondary",children:"Please double-check the information you provided to make sure everything is correct."})]})},[g.J.ApplicationComplete]:{title:(0,s.jsxs)(l.TextPairing,{variant:"textpairing-header-2XL",children:[(0,s.jsx)(l.TextPairing.Label,{color:"text-secondary-negative",children:"Welcome aboard! We're so excited you're here."}),(0,s.jsx)(l.TextPairing.SubLabel,{color:"text-secondary",children:"Next, we need to confirm your email. Click the link we sent to:"})]}),description:(0,s.jsx)(l.Text,{mt:"spacer-8",color:"text-secondary",variant:"text-body-regular",children:"Can’t find the email? Make sure to check your Spam folder."})},[g.J.ApplicationReview]:{title:(0,s.jsxs)(l.TextPairing,{variant:"textpairing-header-2XL",children:[(0,s.jsx)(l.TextPairing.Label,{color:"text-primary",children:"You're almost finished!"}),(0,s.jsx)(l.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."})]})},[g.J.ApplicationDetected]:{title:(0,s.jsx)(l.Text,{variant:"text-header-2XL",color:"text-primary",children:"We found an existing account for:"}),description:(0,s.jsx)(l.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."})},[g.J.EmailVerification]:eu.T[g.J.EmailVerification],[g.J.OnboardingChecklist]:eu.T[g.J.OnboardingChecklist],[g.J.CreatePassword]:eu.T[g.J.CreatePassword],[g.J.AppDownload]:eu.T[g.J.AppDownload],[g.J.ReviewConsents]:eu.T[g.J.ReviewConsents]};var ep=a(58976);let eg=[B.Op.BenefitsWebsite,B.Op.CoworkerReferral,B.Op.PrescriptionDenial,B.Op.ProviderReferral,B.Op.WordOfMouth,B.Op.Other],eh={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"},ex={[g.J.ContactDetails]:{state:{options:ep.Fp},howDidYouFindUs:{options:eg}},[g.J.InsuranceDetails]:{insuranceMemberID:{...eh,tooltip:(0,s.jsxs)(l.Box,{children:[(0,s.jsx)(l.Text,{variant:"text-body-meta-regular",color:"text-light",children:"Where to find my Membership ID Number:"}),(0,s.jsx)(l.Image,{width:"100%",height:"auto",src:"/static/assets/programs/emory/emory-insurance-card.png",alt:"Member ID guidance"})]}),description:(0,s.jsx)(l.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."})}},[g.J.InsuranceDetailsReview]:{insuranceMemberID:eh}},eb=B.kT.Emory,EmoryWorkflow=e=>{let{render:t}=e,[a,i]=(0,F.eO)(ed),n=(0,h.useMemo)(()=>(0,J.k)(a.value),[a.value]);(0,M.R)(n,eb);let r=(0,h.useCallback)(e=>{i({type:"SUBMIT",data:e})},[i]),o=(0,h.useCallback)(()=>{i({type:"BACK"})},[i]),c=(0,h.useCallback)(()=>{switch(n){case eo.PreEligibility:return(0,s.jsx)(T.b,{configuration:{contentResources:em[g.J.PreEligibility]},onSubmit:r});case eo.ContactDetails:return(0,s.jsx)(A.q,{configuration:{contentResources:em[g.J.ContactDetails],fields:ex[g.J.ContactDetails]},onSubmit:r,defaultValues:a.context.formData});case eo.EligibilityUnmet:return(0,s.jsx)(j.X,{configuration:{contentResources:em[g.J.EligibilityUnmet]},onSubmit:r,loading:a.matches({[eo.EligibilityUnmet]:eo.Submitting}),isEmailSent:a.matches({[eo.EligibilityUnmet]:eo.Success}),hasError:a.matches({[eo.EligibilityUnmet]:eo.Error}),isMobileFooterSticky:!1});case eo.InsuranceDetails:return(0,s.jsx)(U.v,{configuration:{contentResources:em[g.J.InsuranceDetails],fields:ex[g.J.InsuranceDetails]},onSubmit:r,onBack:o});case eo.InsuranceDetailsReview:return(0,s.jsx)(O.b,{configuration:{contentResources:em[g.J.InsuranceDetailsReview],fields:ex[g.J.InsuranceDetailsReview]},onSubmit:r,loading:a.matches({[eo.InsuranceDetailsReview]:eo.Submitting}),hasError:a.matches({[eo.InsuranceDetailsReview]:eo.Error}),defaultValues:a.context.formData});case eo.ApplicationComplete:return(0,s.jsx)(I.J,{...em[g.J.ApplicationComplete],email:a.context.formData.email});case eo.ApplicationReview:return(0,s.jsx)(S.G,{...em[g.J.ApplicationReview]});case eo.ApplicationDetected:return(0,s.jsx)(y.v,{...em[g.J.ApplicationDetected],email:a.context.formData.email});case eo.EmailVerification:return(0,s.jsx)(k.Z,{configuration:{contentResources:{title:em[g.J.EmailVerification](a.context.formData.email).title}},email:a.context.formData.email,hasError:a.matches({[eo.EmailVerification]:eo.Error}),loading:a.matches({[eo.EmailVerification]:eo.Submitting}),isUpdateEmailLoading:a.matches({[eo.EmailVerification]:{[eo.UpdateEmail]:eo.Idle}}),hasUpdateEmailError:a.matches({[eo.EmailVerification]:{[eo.UpdateEmail]:eo.Error}}),onSubmit:r,onResendCode:e=>i({type:"RESEND_EMAIL_VERIFICATION",data:{onSuccess:e}}),onEditEmail:(e,t)=>i({type:"UPDATE_EMAIL",data:{email:e,onSuccess:t}})});case eo.OnboardingChecklist:return(0,s.jsx)(R.O,{configuration:{contentResources:em[g.J.OnboardingChecklist]},onSubmit:r});case eo.ReviewConsents:return(0,s.jsx)(L.R,{configuration:{contentResources:em[g.J.ReviewConsents]},consents:a.context.consentsData.items,hasError:a.matches({[eo.ReviewConsents]:eo.Error}),loading:a.matches({[eo.ReviewConsents]:eo.FetchConsents})||a.matches({[eo.ReviewConsents]:eo.Submitting})||a.matches({[eo.ReviewConsents]:eo.UpdateContact}),onSubmit:r});case eo.CreatePassword:return(0,s.jsx)(w.f,{configuration:{contentResources:em[g.J.CreatePassword]},loading:a.matches({[eo.CreatePassword]:eo.Submitting}),error:a.context.error,onSubmit:r});case eo.AppDownload:return(0,s.jsx)(C.B,{title:em[g.J.AppDownload].title,checklist:em[g.J.AppDownload].checklist});case eo.OnboardingUserError:return(0,s.jsx)(P._,{});default:return null}},[n,a]);return t({header:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l.Flex,{gap:"spacer-5",alignItems:"center",children:[(0,s.jsx)(D.E,{partner:B.kT.Flyte}),(0,s.jsx)(l.Divider,{orientation:"vertical",alignSelf:"stretch",height:"auto"}),(0,s.jsx)(D.E,{partner:eb})]}),(0,s.jsx)(f.K,{currentStep:n})]}),body:c(),currentWorkFlowStep:n})};var eE=a(93942),ev=a(35592),eC=a(17219),eI=a(84901),ey=a(16428);Object.values(B.PF).filter(e=>e!==B.PF.SelfPay);var eS=a(23616),eD=a(84862),ef=a(87536),eA=a(97324),ew=a(68701),ej=a(36045);let ek="insuranceMemberID",eU=(0,s.jsx)(l.Text,{variant:"text-body-meta-regular",color:"text-secondary",children:"Your Unique ID is your ten-digit Benefit Funds’ Member ID Number. For Eligible dependents, use the guidance below:"}),SeiuInsuranceMemberIdField=e=>{let{label:t="1199SEIU Unique ID",placeholder:a="Unique ID Number",description:i=eU,tooltip:n,type:r,maxLength:o,minLength:c,maskOptions:d,inputMode:u,registerOptions:m,isDisabled:p=!1,isRequired:g=!0,...h}=e,{setValue:x,register:b,formState:{errors:E}}=(0,ef.Gc)(),v=(0,ej.T)(ek,E,["minLength","maxLength","pattern"]);return(0,s.jsxs)(l.Flex,{direction:"column",gap:"spacer-2",...h,children:[(0,s.jsxs)(l.Box,{children:[(0,s.jsxs)(l.Flex,{gap:"spacer-2",alignItems:"center",children:[(0,s.jsx)(l.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:ek,children:t}),n&&(0,s.jsx)(l.Tooltip,{label:n,placement:"auto-end",children:(0,s.jsx)(l.Flex,{children:(0,s.jsx)(l.IconInfoCircle,{size:"m",color:"text-link-primary-default"})})})]}),i]}),(0,s.jsx)(ew.o,{"data-test":ek,id:ek,isInvalid:v,isDisabled:p,placeholder:a,type:r,inputMode:u,maxLength:o,minLength:c,maskOptions:d,onInput:e=>{let t=e.currentTarget.value,a=!c||c&&t.length>=c;x(ek,t,{shouldValidate:a})},...b(ek,{required:g,...m})}),(0,s.jsxs)(l.Text,{variant:"text-body-regular",fontSize:12,color:"text-secondary",children:[(0,s.jsx)("b",{children:"- For Spouse:"})," ","member’s ID number + first nine characters of spouse’s first name + S."," ",(0,s.jsx)("br",{}),"Example: 1234567890JohnathonS",(0,s.jsx)("br",{}),(0,s.jsx)("b",{children:"- For Child (18 or older)"}),": member’s ID number + first nine characters of dependent’s first name + D. Example: 1234567890MariaD"]}),v&&(0,s.jsx)(ep.VO,{errors:E,name:ek})]})},SeiuInsuranceDetailsForm=e=>{let{configuration:t,loading:a=!1,onSubmit:i,onBack:n}=e,{contentResources:r,fields:o}=t,c=(0,ef.cI)({mode:"onBlur"}),d=(0,eD.d)(),u=c.watch(eA.o0)===B.eF.SelfPay,m=c.watch(eA.OF)===B.PF.Other;(0,h.useEffect)(()=>{u&&(c.resetField(eA.OF),c.resetField(eA.rI))},[u,c]),(0,h.useEffect)(()=>{c.resetField(eA.zQ)},[c.watch(eA.OF),c]);let renderFormActions=()=>(0,s.jsxs)(l.Flex,{gap:{base:"spacer-8",md:"spacer-16"},alignItems:"center",flex:{base:1,lg:"unset"},children:[(0,s.jsx)(l.Button,{size:{base:"m",lg:"l"},isLoading:a,variant:"link","aria-label":"Back",leadingIcon:(0,s.jsx)(l.IconArrowLeft,{}),onClick:n,children:"Back"}),(0,s.jsx)(l.Button,{type:"submit",size:{base:"m",lg:"l"},isDisabled:!c.formState.isValid,flex:1,isLoading:a,trailingIcon:(0,s.jsx)(l.IconArrowRight,{}),"aria-label":"Continue",children:"Continue"})]});return(0,s.jsx)(ef.RV,{...c,children:(0,s.jsxs)(eS.S,{as:"form",onSubmit:c.handleSubmit(i),noValidate:!0,children:[(0,s.jsx)(eS.S.Side,{gap:0,flex:{base:"none",lg:1},children:r.title}),(0,s.jsxs)(eS.S.Form,{children:[(null==o?void 0:o.insuranceCoverage)&&(0,s.jsx)(eA.nK,{isDisabled:a}),(null==o?void 0:o.insurance)&&(0,s.jsx)(eA.vu,{isDisabled:a||u,isRequired:!u,...null==o?void 0:o.insurance},u.toString()),m&&(0,s.jsx)(eA.dn,{isDisabled:a,...null==o?void 0:o.insuranceOther}),(0,s.jsx)(SeiuInsuranceMemberIdField,{isDisabled:a||u,isRequired:!u,pb:{base:"spacer-24",lg:0},...null==o?void 0:o.insuranceMemberID}),d?(0,s.jsx)(ep.D2,{children:renderFormActions()}):renderFormActions()]})]})})};var eO=a(33546),eR=a(37053);let SEIU_helpers_state_machine_isEligibleForAutoEnrollment=e=>e===eR._.FULL_MATCH||e===eR._.ELIGIBLE_MATCH||e===eR._.PERSON_MATCH,getLeadStatus=e=>{switch(e){case eR._.INSURANCE_MATCH:case eR._.EXPIRED:case eR._.NOT_FOUND:return B.rl.EligibleWaiting;case eR._.PERSON_MATCH:case eR._.FULL_MATCH:case eR._.ELIGIBLE_MATCH:default:return}};(n=o||(o={})).CreateLead="createLead",n.CreateContact="createContact",n.UpdateContact="updateContact",n.DetermineContactOrLead="determineContactOrLead",n.FetchConsents="fetchConsents",n.UpdateEmail="updateEmail",n.CheckEligibility="checkEligibility";let eP={...Z.a,...o},eT=$.aU[G.kT["1199SEIU"]],eL={formData:{birthdate:"",comorbidity:"",currentWeightInPounds:"",dateOfHighestWeightValue:"",email:"",ssn:"",firstName:"",heightInFoot:"",heightInInch:"",highestWeightInPounds:"",insuranceCoverage:void 0,insuranceMemberID:"",insurance:void 0,lastName:"",phone:"",termsAgreement:!1,howDidYouFindUS:"",diabetes:"",bariatricSurgery:"",comorbidities:[""]},eligibilityCheckMatchType:void 0,bmi:void 0,otpData:void 0,consentsData:{items:[],userConsentStatus:[]},contactData:{},passwordData:{password:void 0,confirmPassword:void 0},flyteUserData:void 0,error:void 0},eM={...K.OX,...K.cp,...K.sW,...K.Oz,...K.S8,...K.oQ,...K.q6,...K.nB,...K.v1,...(0,K.Ww)(eL).reset},eB=(0,et.cY)({types:{},guards:{isPreEligibilityMet:e=>{let{context:{formData:t,bmi:a}}=e;return ee.Pq["1199SEIU"]({bmi:a,comorbidity:t.comorbidity,birthdate:t.birthdate})},isApplicationReviewRequired:e=>{let{context:{eligibilityCheckMatchType:t}}=e;return!SEIU_helpers_state_machine_isEligibleForAutoEnrollment(t)},isApplicationDetected:Q.Q,isAthenaRecordCreated:Y.w},actions:eM}).createMachine({context:()=>eL,id:"SEIUMachine",initial:eP.PreEligibility,states:{[eP.PreEligibility]:{id:eP.PreEligibility,initial:eP.Idle,states:{[eP.Idle]:{on:{SUBMIT:{target:eP.Submitting,actions:"updateFormData"}}},[eP.Submitting]:{entry:"assignBMI",always:[{target:"#".concat(eP.ContactDetails),guard:"isPreEligibilityMet"},{target:"#".concat(eP.EligibilityUnmet)}]}}},[eP.ContactDetails]:{id:eP.ContactDetails,initial:eP.Idle,states:{[eP.Idle]:{on:{SUBMIT:{target:"#".concat(eP.InsuranceDetails),actions:"updateFormData"}}}}},[eP.InsuranceDetails]:{id:eP.InsuranceDetails,initial:eP.Idle,states:{[eP.Idle]:{on:{BACK:{target:"#".concat(eP.ContactDetails)},SUBMIT:{target:"#".concat(eP.InsuranceDetailsReview),actions:"updateFormData"}}}}},[eP.InsuranceDetailsReview]:{id:eP.InsuranceDetailsReview,initial:eP.Idle,states:{[eP.Idle]:{on:{SUBMIT:{actions:"updateFormData",target:eP.Submitting}}},[eP.Submitting]:{id:eP.Submitting,initial:eP.CheckEligibility,states:{[eP.CheckEligibility]:{id:eP.CheckEligibility,invoke:{src:(0,ea.p4)(async e=>{let{input:t}=e,a={...t,insurance:$.Er[G.kT["1199SEIU"]],benefitProgram:$.Q1[G.kT["1199SEIU"]]};return await (0,eO.m)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:[{actions:(0,ei.a)({eligibilityCheckMatchType:e=>{let{event:t}=e;return t.output.data.matchType}}),target:"#".concat(eP.DetermineContactOrLead)}],onError:"#".concat(eP.InsuranceDetailsReview,".").concat(eP.Error)}},[eP.DetermineContactOrLead]:{id:eP.DetermineContactOrLead,always:[{guard:"isApplicationReviewRequired",target:eP.CreateLead},{target:eP.CreateContact}]},[eP.CreateContact]:{id:eP.CreateContact,invoke:{src:(0,ea.p4)(async e=>{let{input:t}=e,a={...t.formData,employmentVerificationCode:t.formData.insuranceMemberID,eligibilityVerifiedBy:G.Vn.Evolve,insuranceMemberID:t.formData.insuranceMemberID,company:eT,insurance:$.KG[G.kT["1199SEIU"]],evolveOrganization:G.bV["1199SEIU"],accountId:$.kS[G.kT["1199SEIU"]]};return await (0,z.rE)(a)}),input:e=>{let{context:t}=e;return t},onDone:{actions:"assignContactData",target:"#".concat(eP.EmailVerification)},onError:[{guard:"isApplicationDetected",target:"#".concat(eP.ApplicationDetected)},{target:"#".concat(eP.InsuranceDetailsReview,".").concat(eP.Error)}]}},[eP.CreateLead]:{id:eP.CreateLead,invoke:{src:(0,ea.p4)(async e=>{let{input:t}=e,a={...t.formData,employmentVerificationCode:t.formData.insuranceMemberID,eligibilityVerifiedBy:G.Vn.Evolve,insuranceMemberID:t.formData.insuranceMemberID,company:eT,insurance:$.KG[G.kT["1199SEIU"]],evolveOrganization:G.bV["1199SEIU"],leadStatus:getLeadStatus(t.eligibilityCheckMatchType),automateEvolveEnrollment:SEIU_helpers_state_machine_isEligibleForAutoEnrollment(t.eligibilityCheckMatchType)};return await (0,X.$)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{guard:"isApplicationReviewRequired",target:"#".concat(eP.ApplicationReview)},{target:"#".concat(eP.ApplicationComplete)}],onError:[{guard:"isApplicationDetected",target:"#".concat(eP.ApplicationDetected)},{target:"#".concat(eP.InsuranceDetailsReview,".").concat(eP.Error)}]}}}},[eP.Error]:{id:"".concat(eP.InsuranceDetailsReview,".").concat(eP.Error),on:{SUBMIT:{actions:"updateFormData",target:eP.Submitting}}}}},[eP.EmailVerification]:{id:eP.EmailVerification,initial:eP.Idle,states:{[eP.Idle]:{id:"".concat(eP.EmailVerification,".").concat(eP.Idle),on:{SUBMIT:{actions:"assignOtpCode",target:eP.Submitting},RESEND_EMAIL_VERIFICATION:{target:eP.Idle,reenter:!0},UPDATE_EMAIL:{target:eP.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,ea.p4)(async e=>{let{input:t}=e,a={email:t.email,firstName:t.firstName},i=await (0,V.t)(a);return{token:i.data.token,onSuccess:t.onSuccess}}),onDone:{actions:[(0,ei.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:eP.Error}},[eP.Submitting]:{invoke:{src:(0,ea.p4)(async e=>{let{input:t}=e,a={email:t.formData.email,token:t.otpData.token,otp:t.otpData.otp};return await (0,W.M)(a)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(eP.OnboardingChecklist),onError:eP.Error}},[eP.Error]:{on:{SUBMIT:{actions:"assignOtpCode",target:eP.Submitting},RESEND_EMAIL_VERIFICATION:{target:eP.Idle},UPDATE_EMAIL:{target:eP.UpdateEmail}}},[eP.UpdateEmail]:{initial:eP.Idle,states:{[eP.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,ea.p4)(async e=>{let{input:t}=e,a={contactId:t.contactId,email:t.email};await (0,z.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(eP.EmailVerification,".").concat(eP.Idle)},onError:eP.Error}},[eP.Error]:{on:{SUBMIT:{target:"#".concat(eP.EmailVerification,".").concat(eP.Idle)},RESEND_EMAIL_VERIFICATION:{target:"#".concat(eP.EmailVerification,".").concat(eP.Idle)},UPDATE_EMAIL:{target:eP.Idle}}}}}}},[eP.ReviewConsents]:{id:eP.ReviewConsents,initial:eP.FetchConsents,states:{[eP.Idle]:{on:{SUBMIT:{actions:["assignUserConsentStatus"],target:eP.Submitting}}},[eP.FetchConsents]:{invoke:{src:(0,ea.p4)(async()=>await (0,_.J)()),onDone:{actions:"assignConsents",target:eP.Idle},onError:eP.Error}},[eP.Submitting]:{invoke:{src:(0,ea.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:G.bV["1199SEIU"],consents:t.consentsData.userConsentStatus};return await (0,q.D)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{actions:"assignFlyteUserData",target:eP.UpdateContact}],onError:"#".concat(eP.OnboardingUserError)}},[eP.UpdateContact]:{invoke:{src:(0,ea.p4)(async e=>{let{input:t}=e,a={contactId:t.contactData.contactId,evolvePatientID:t.flyteUserData.patientId};return await (0,z.Tk)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{guard:"isAthenaRecordCreated",target:"#".concat(eP.CreatePassword)},{target:"#".concat(eP.OnboardingUserError)}],onError:"#".concat(eP.OnboardingUserError)}},[eP.Error]:{on:{SUBMIT:{actions:["assignUserConsentStatus"],target:eP.Submitting}}}}},[eP.CreatePassword]:{id:eP.CreatePassword,initial:eP.Idle,states:{[eP.Idle]:{on:{SUBMIT:{actions:"assignPasswordData",target:eP.Submitting}}},[eP.Submitting]:{invoke:{src:(0,ea.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(eP.AppDownload),onError:{target:eP.Error,actions:"assignError"}}},[eP.Error]:{on:{SUBMIT:{actions:["resetError","assignPasswordData"],target:eP.Submitting}}}}},[eP.OnboardingChecklist]:{id:eP.OnboardingChecklist,on:{SUBMIT:{target:"#".concat(eP.ReviewConsents)}}},[eP.AppDownload]:{id:eP.AppDownload},[eP.ApplicationReview]:{id:eP.ApplicationReview},[eP.OnboardingUserError]:{id:eP.OnboardingUserError},[eP.ApplicationComplete]:{id:eP.ApplicationComplete},[eP.ApplicationDetected]:{id:eP.ApplicationDetected},[eP.EligibilityUnmet]:{id:eP.EligibilityUnmet,initial:eP.Idle,states:{[eP.Idle]:{on:{SUBMIT:{target:eP.Submitting,actions:"updateFormData"}}},[eP.Submitting]:{invoke:{src:(0,ea.p4)(async e=>{let{input:t}=e,a={...t,company:eT,leadStatus:G.rl.Ineligible,ineligibilityReason:G.ib.BMI,automateEvolveEnrollment:!1};return await (0,X.$)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:eP.Success,onError:eP.Error}},[eP.Success]:{},[eP.Error]:{on:{SUBMIT:{target:eP.Submitting}}}}}},on:{RESET:{target:"#".concat(eP.PreEligibility),actions:"reset"}}}),eJ={[g.J.PreEligibility]:{title:(0,s.jsxs)(l.TextPairing,{variant:"textpairing-header-2XL",children:[(0,s.jsx)(l.TextPairing.Label,{color:"text-primary",children:"Let's make sure you're eligible for the FlyteHealth program."}),(0,s.jsx)(l.TextPairing.SubLabel,{color:"text-secondary",children:"To be eligible for the FlyteHealth program through the 1199SEIU Benefit Funds, you must meet specific age and Body Mass Index (BMI)* requirements."})]}),bmiEnrollmentDisclaimer:(0,s.jsx)(l.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."})},[g.J.EligibilityUnmet]:{title:(0,s.jsxs)(l.TextPairing,{variant:"textpairing-header-2XL",children:[(0,s.jsx)(l.TextPairing.Label,{color:"text-secondary-negative",children:"Unfortunately, you are not eligible to join FlyteHealth at this time."}),(0,s.jsx)(l.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+."})]})},[g.J.ContactDetails]:{title:(0,s.jsxs)(l.TextPairing,{variant:"textpairing-header-2XL",children:[(0,s.jsx)(l.TextPairing.Label,{color:"text-secondary-negative",children:"Next, tell us about yourself"}),(0,s.jsxs)(l.TextPairing.SubLabel,{color:"text-secondary",children:["To help match your information with the 1199SEIU Health Benefits Plan, we need to verify a few personal details.",(0,s.jsx)("br",{})," ",(0,s.jsx)("br",{}),"Be sure to have your member ID card handy for the next step."]})]})},[g.J.InsuranceDetails]:{title:(0,s.jsxs)(l.Text,{variant:"text-header-2XL",color:"text-secondary-negative",children:["One more thing:"," ",(0,s.jsx)(l.Text,{as:"span",variant:"text-header-2XL",color:"text-primary",children:"Do you have health insurance?"})]})},[g.J.InsuranceDetailsReview]:{title:(0,s.jsxs)(l.TextPairing,{variant:"textpairing-header-2XL",children:[(0,s.jsx)(l.TextPairing.Label,{children:"Let's review: Is your info correct?"}),(0,s.jsx)(l.TextPairing.SubLabel,{color:"text-secondary",children:"Please double-check the information you provided to make sure everything is correct."})]})},[g.J.ApplicationComplete]:{title:(0,s.jsxs)(l.TextPairing,{variant:"textpairing-header-2XL",children:[(0,s.jsx)(l.TextPairing.Label,{color:"text-secondary-negative",children:"Welcome aboard! We're so excited you're here."}),(0,s.jsx)(l.TextPairing.SubLabel,{color:"text-secondary",children:"Next, we need to confirm your email. Click the link we sent to:"})]}),description:(0,s.jsx)(l.Text,{mt:"spacer-8",color:"text-secondary",variant:"text-body-regular",children:"Can’t find the email? Make sure to check your Spam folder."})},[g.J.ApplicationReview]:{title:(0,s.jsxs)(l.TextPairing,{variant:"textpairing-header-2XL",children:[(0,s.jsx)(l.TextPairing.Label,{color:"text-primary",children:"You're almost finished!"}),(0,s.jsx)(l.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."})]})},[g.J.ApplicationDetected]:{title:(0,s.jsx)(l.Text,{variant:"text-header-2XL",color:"text-primary",children:"We found an existing account for:"}),description:(0,s.jsx)(l.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."})},[g.J.EmailVerification]:eu.T[g.J.EmailVerification],[g.J.OnboardingChecklist]:eu.T[g.J.OnboardingChecklist],[g.J.CreatePassword]:eu.T[g.J.CreatePassword],[g.J.AppDownload]:eu.T[g.J.AppDownload],[g.J.ReviewConsents]:eu.T[g.J.ReviewConsents]},eF=[B.Op.BenefitsWebsite,B.Op.CoworkerReferral,B.Op.PrescriptionDenial,B.Op.ProviderReferral,B.Op.WordOfMouth,B.Op.Other],eH={[g.J.ContactDetails]:{state:{options:ep.Fp},howDidYouFindUs:{options:eF}},[g.J.InsuranceDetails]:{insuranceMemberID:{}},[g.J.InsuranceDetailsReview]:{insuranceMemberID:{}}},SEIUWorkflow=e=>{let{render:t}=e,[a,i]=(0,F.eO)(eB),n=(0,h.useMemo)(()=>(0,J.k)(a.value),[a.value]);(0,M.R)(n);let r=(0,h.useCallback)(e=>{i({type:"SUBMIT",data:e})},[i]),o=(0,h.useCallback)(()=>{i({type:"BACK"})},[i]),c=(0,h.useCallback)(()=>{switch(n){case eP.PreEligibility:return(0,s.jsx)(T.b,{configuration:{contentResources:eJ[g.J.PreEligibility]},onSubmit:r});case eP.ContactDetails:return(0,s.jsx)(A.q,{configuration:{contentResources:eJ[g.J.ContactDetails],fields:eH[g.J.ContactDetails]},onSubmit:r,defaultValues:a.context.formData});case eP.EligibilityUnmet:return(0,s.jsx)(j.X,{configuration:{contentResources:eJ[g.J.EligibilityUnmet]},onSubmit:r,loading:a.matches({[eP.EligibilityUnmet]:eP.Submitting}),isEmailSent:a.matches({[eP.EligibilityUnmet]:eP.Success}),hasError:a.matches({[eP.EligibilityUnmet]:eP.Error})});case eP.InsuranceDetails:return(0,s.jsx)(SeiuInsuranceDetailsForm,{configuration:{contentResources:eJ[g.J.InsuranceDetails],fields:eH[g.J.InsuranceDetails]},onSubmit:r,onBack:o});case eP.InsuranceDetailsReview:return(0,s.jsx)(O.b,{configuration:{contentResources:eJ[g.J.InsuranceDetailsReview],fields:eH[g.J.InsuranceDetailsReview]},onSubmit:r,loading:a.matches({[eP.InsuranceDetailsReview]:eP.Submitting}),hasError:a.matches({[eP.InsuranceDetailsReview]:eP.Error}),defaultValues:a.context.formData});case eP.ApplicationComplete:return(0,s.jsx)(I.J,{...eJ[g.J.ApplicationComplete],email:a.context.formData.email});case eP.ApplicationDetected:return(0,s.jsx)(y.v,{...eJ[g.J.ApplicationDetected],email:a.context.formData.email});case eP.ApplicationReview:return(0,s.jsx)(S.G,{...eJ[g.J.ApplicationReview]});case eP.EmailVerification:return(0,s.jsx)(k.Z,{configuration:{contentResources:{title:eJ[g.J.EmailVerification](a.context.formData.email).title}},email:a.context.formData.email,hasError:a.matches({[eP.EmailVerification]:eP.Error}),loading:a.matches({[eP.EmailVerification]:eP.Submitting}),isUpdateEmailLoading:a.matches({[eP.EmailVerification]:{[eP.UpdateEmail]:eP.Idle}}),hasUpdateEmailError:a.matches({[eP.EmailVerification]:{[eP.UpdateEmail]:eP.Error}}),onSubmit:r,onResendCode:e=>i({type:"RESEND_EMAIL_VERIFICATION",data:{onSuccess:e}}),onEditEmail:(e,t)=>i({type:"UPDATE_EMAIL",data:{email:e,onSuccess:t}})});case eP.OnboardingChecklist:return(0,s.jsx)(R.O,{configuration:{contentResources:eJ[g.J.OnboardingChecklist]},onSubmit:r});case eP.ReviewConsents:return(0,s.jsx)(L.R,{configuration:{contentResources:eJ[g.J.ReviewConsents]},consents:a.context.consentsData.items,hasError:a.matches({[eP.ReviewConsents]:eP.Error}),loading:a.matches({[eP.ReviewConsents]:eP.FetchConsents})||a.matches({[eP.ReviewConsents]:eP.Submitting})||a.matches({[eP.ReviewConsents]:eP.UpdateContact}),onSubmit:r});case eP.CreatePassword:return(0,s.jsx)(w.f,{configuration:{contentResources:eJ[g.J.CreatePassword]},loading:a.matches({[eP.CreatePassword]:eP.Submitting}),error:a.context.error,onSubmit:r});case eP.AppDownload:return(0,s.jsx)(C.B,{title:eJ[g.J.AppDownload].title,checklist:eJ[g.J.AppDownload].checklist});case eP.OnboardingUserError:return(0,s.jsx)(P._,{});default:return null}},[n,a]);return t({header:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l.Flex,{gap:"spacer-5",alignItems:"center",children:[(0,s.jsx)(D.E,{partner:B.kT.Flyte}),(0,s.jsx)(l.Divider,{orientation:"vertical",alignSelf:"stretch",height:"auto"}),(0,s.jsx)(D.E,{partner:B.kT["1199SEIU"]})]}),(0,s.jsx)(f.K,{currentStep:n})]}),body:c(),currentWorkFlowStep:n})};var eV=a(38098),eW=a(79929),eN=a(50574);let e_="currentWeightInPounds",ez="heightInFoot",eq="heightInInch",eX={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:r,setValue:o,watch:c}=(0,ef.cI)({mode:"onBlur"}),d=(0,eN.M)(c(e_)),u=(0,eN.M)(c(ez)),m=(0,eN.M)(c(eq)),p=null===(t=(0,h.useMemo)(()=>d&&u&&m&&(0,eW.V)({weightPounds:d,heightFeet:u,heightInches:m}),[d,u,m]))||void 0===t?void 0:t.toFixed(1),g=(0,ej.T)(e_,r.errors,"validate"),x=(0,ej.T)(ez,r.errors,"validate"),b=(0,ej.T)(eq,r.errors,"validate");return(0,s.jsxs)(l.Flex,{direction:"column",...i,children:[(0,s.jsxs)(l.Flex,{direction:"column",as:"form",children:[(0,s.jsx)(l.Flex,{px:"spacer-8",py:"spacer-4",backgroundColor:"secondary-default",borderTopLeftRadius:"radii-6",borderTopRightRadius:"radii-6",children:(0,s.jsx)(l.Text,{color:"text-light",variant:"text-header-L",children:"BMI Calculator"})}),(0,s.jsxs)(l.Flex,{direction:"column",py:"spacer-8",px:{base:"spacer-5",md:"spacer-8"},backgroundColor:"background-card",borderBottomLeftRadius:"radii-6",borderBottomRightRadius:"radii-6",children:[(0,s.jsxs)(l.Flex,{gap:"spacer-4",children:[(0,s.jsxs)(l.Flex,{direction:"column",gap:"spacer-2",flex:1,children:[(0,s.jsx)(l.Text,{variant:"text-body-medium",color:"text-primary",as:"label",htmlFor:ez,children:"Height (ft)"}),(0,s.jsx)(ep.lm,{unit:"ft",id:ez,isInvalid:x,onInput:e=>o(ez,e.currentTarget.value),...n(ez,{required:!0,validate:e=>{let t=(0,eN.M)(e);return t>=4&&t<=7||eV.x[ez].validate}})})]}),(0,s.jsxs)(l.Flex,{direction:"column",gap:"spacer-2",flex:1,children:[(0,s.jsx)(l.Text,{variant:"text-body-medium",color:"text-primary",as:"label",htmlFor:eq,children:"Height (in)"}),(0,s.jsx)(ep.lm,{unit:"in",id:eq,isInvalid:b,onInput:e=>o(eq,e.currentTarget.value),...n(eq,{required:!0,validate:e=>{let t=(0,eN.M)(e);return t>=0&&t<=11||eV.x[eq].validate}})})]})]}),(x||b)&&(0,s.jsxs)(l.Flex,{gap:"spacer-2",direction:"column",mt:"spacer-2",children:[x&&(0,s.jsx)(ep.VO,{errors:r.errors,name:ez}),b&&(0,s.jsx)(ep.VO,{errors:r.errors,name:eq})]}),(0,s.jsxs)(l.Box,{mb:{base:"spacer-6",md:"spacer-8"},mt:"spacer-4",children:[(0,s.jsx)(l.Text,{variant:"text-body-medium",color:"text-primary",as:"label",htmlFor:e_,children:"Weight (lbs)"}),(0,s.jsx)(ep.CZ,{id:e_,isInvalid:g,mt:"spacer-2",onInput:e=>o(e_,e.currentTarget.value),...n(e_,{required:!0,validate:e=>{let t=(0,eN.M)(e);return t>=1&&t<1e3||eV.x[e_].validate}})}),g&&(0,s.jsx)(l.Box,{mt:"spacer-2",children:(0,s.jsx)(ep.VO,{errors:r.errors,name:e_})})]}),(0,s.jsx)(l.Box,{margin:"0 auto",children:(0,s.jsxs)(l.TextPairing,{variant:{base:"textpairing-body-display-XL",md:"textpairing-body-display-2XL"},children:[(0,s.jsx)(l.TextPairing.Label,{color:"text-primary",children:null!=p?p:"--.--"}),(0,s.jsx)(l.TextPairing.SubLabel,{color:"text-secondary",textAlign:"center",children:"BMI"})]})})]})]}),(0,s.jsx)(l.Tooltip,{label:a,placement:"top",children:(0,s.jsxs)(l.Flex,{gap:"spacer-2",alignItems:"center",mt:"spacer-3",justifyContent:"center",children:[(0,s.jsx)(l.Text,{color:"text-link-accent-default",variant:"text-body-meta-medium",as:"p",children:"Why BMI?"}),(0,s.jsx)(l.IconInfoCircle,{})]})})]})},AetnaSignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[n,r]=(0,h.useState)(!1),[o,c]=(0,h.useState)(!1),{track:b}=(0,u.useAnalytics)(),E=(0,h.useCallback)(()=>{c(!1),r(!1),b(d.U.closeWorkflowEvent)},[]),v=(0,h.useCallback)(()=>c(e=>!e),[]),C=(0,h.useCallback)(e=>{let t=[g.J.ApplicationReview,g.J.ApplicationComplete,g.J.ApplicationDetected,g.J.EligibilityUnmet],a=t.includes(e);a?r(!1):(b(d.U.closeWorkflowConfirmationEvent),v())},[]),I=(0,h.useCallback)(()=>{b(d.U.abortCloseWorkflow),v()},[v,b]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.Button,{onClick:()=>r(!0),trailingIcon:(0,s.jsx)(l.IconArrowRight,{}),size:t,children:a,"data-test":"aetnaSignUpLauncher",...i}),n&&(0,s.jsx)(x.U,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,s.jsxs)(m.Eg,{isOpen:!0,onClose:()=>C(i),children:[(0,s.jsx)(m.Eg.Header,{children:t}),(0,s.jsx)(m.Eg.Body,{children:a},i)]})}}),(0,s.jsx)(p.e,{isOpen:o,onContinue:I,onLeave:E})]})},CareCompassSignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[n,r]=(0,h.useState)(!1),[o,c]=(0,h.useState)(!1),{track:x}=(0,u.useAnalytics)(),E=(0,h.useCallback)(()=>{c(!1),r(!1),x(d.U.closeWorkflowEvent)},[]),v=(0,h.useCallback)(()=>c(e=>!e),[]),C=(0,h.useCallback)(e=>{let t=[g.J.ApplicationReview,g.J.ApplicationComplete,g.J.ApplicationDetected,g.J.EligibilityUnmet],a=t.includes(e);a?r(!1):(x(d.U.closeWorkflowConfirmationEvent),v())},[]),I=(0,h.useCallback)(()=>{x(d.U.abortCloseWorkflow),v()},[v,x]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.Button,{onClick:()=>r(!0),trailingIcon:(0,s.jsx)(l.IconArrowRight,{}),size:t,children:a,"data-test":"careCompassSignUpLauncher",...i}),n&&(0,s.jsx)(b.$,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,s.jsxs)(m.Eg,{isOpen:!0,onClose:()=>C(i),children:[(0,s.jsx)(m.Eg.Header,{children:t}),(0,s.jsx)(m.Eg.Body,{children:a},i)]})}}),(0,s.jsx)(p.e,{isOpen:o,onContinue:I,onLeave:E})]})},EmorySignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[n,r]=(0,h.useState)(!1),[o,c]=(0,h.useState)(!1),{track:x}=(0,u.useAnalytics)(),b=(0,h.useCallback)(()=>{c(!1),r(!1),x(d.U.closeWorkflowEvent)},[]),E=(0,h.useCallback)(()=>c(e=>!e),[]),v=(0,h.useCallback)(e=>{let t=[g.J.ApplicationReview,g.J.ApplicationComplete,g.J.ApplicationDetected,g.J.EligibilityUnmet,g.J.AppDownload],a=t.includes(e);a?r(!1):(x(d.U.closeWorkflowConfirmationEvent),E())},[]),C=(0,h.useCallback)(()=>{x(d.U.abortCloseWorkflow),E()},[E,x]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.Button,{onClick:()=>r(!0),trailingIcon:(0,s.jsx)(l.IconArrowRight,{}),size:t,children:a,"data-test":"emorySignUpLauncher",...i}),n&&(0,s.jsx)(EmoryWorkflow,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,s.jsxs)(m.Eg,{isOpen:!0,onClose:()=>v(i),children:[(0,s.jsx)(m.Eg.Header,{children:t}),(0,s.jsx)(m.Eg.Body,{children:a},i)]})}}),(0,s.jsx)(p.e,{isOpen:o,onContinue:C,onLeave:b})]})},FlyteSignUpLauncher:eE.U,RiverspringSignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[n,r]=(0,h.useState)(!1),[o,c]=(0,h.useState)(!1),{track:x}=(0,u.useAnalytics)(),b=(0,h.useCallback)(()=>{c(!1),r(!1),x(d.U.closeWorkflowEvent)},[]),E=(0,h.useCallback)(()=>c(e=>!e),[]),v=(0,h.useCallback)(e=>{let t=[g.J.ApplicationReview,g.J.ApplicationComplete,g.J.ApplicationDetected,g.J.EligibilityUnmet,g.J.AppDownload],a=t.includes(e);a?r(!1):(x(d.U.closeWorkflowConfirmationEvent),E())},[]),C=(0,h.useCallback)(()=>{x(d.U.abortCloseWorkflow),E()},[E,x]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.Button,{onClick:()=>r(!0),trailingIcon:(0,s.jsx)(l.IconArrowRight,{}),size:t,children:a,"data-test":"riverspringSignUpLauncher",...i}),n&&(0,s.jsx)(ey.l,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,s.jsxs)(m.Eg,{isOpen:!0,onClose:()=>v(i),children:[(0,s.jsx)(m.Eg.Header,{children:t}),(0,s.jsx)(m.Eg.Body,{children:a},i)]})}}),(0,s.jsx)(p.e,{isOpen:o,onContinue:C,onLeave:b})]})},PequotSignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[n,r]=(0,h.useState)(!1),[o,c]=(0,h.useState)(!1),{track:x}=(0,u.useAnalytics)(),b=(0,h.useCallback)(()=>{c(!1),r(!1),x(d.U.closeWorkflowEvent)},[]),E=(0,h.useCallback)(()=>c(e=>!e),[]),v=(0,h.useCallback)(e=>{let t=[g.J.ApplicationReview,g.J.ApplicationComplete,g.J.ApplicationDetected,g.J.EligibilityUnmet,g.J.AppDownload],a=t.includes(e);a?r(!1):(x(d.U.closeWorkflowConfirmationEvent),E())},[]),C=(0,h.useCallback)(()=>{x(d.U.abortCloseWorkflow),E()},[E,x]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.Button,{onClick:()=>r(!0),trailingIcon:(0,s.jsx)(l.IconArrowRight,{}),size:t,children:a,"data-test":"pequotSignUpLauncher",...i}),n&&(0,s.jsx)(eC.u,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,s.jsxs)(m.Eg,{isOpen:!0,onClose:()=>v(i),children:[(0,s.jsx)(m.Eg.Header,{children:t}),(0,s.jsx)(m.Eg.Body,{children:a},i)]})}}),(0,s.jsx)(p.e,{isOpen:o,onContinue:C,onLeave:b})]})},PyleSignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[n,r]=(0,h.useState)(!1),[o,c]=(0,h.useState)(!1),{track:x}=(0,u.useAnalytics)(),b=(0,h.useCallback)(()=>{c(!1),r(!1),x(d.U.closeWorkflowEvent)},[]),E=(0,h.useCallback)(()=>c(e=>!e),[]),v=(0,h.useCallback)(e=>{let t=[g.J.ApplicationReview,g.J.ApplicationDetected,g.J.EligibilityUnmet],a=t.includes(e);a?r(!1):(x(d.U.closeWorkflowConfirmationEvent),E())},[]),C=(0,h.useCallback)(()=>{x(d.U.abortCloseWorkflow),E()},[E,x]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.Button,{onClick:()=>r(!0),trailingIcon:(0,s.jsx)(l.IconArrowRight,{}),size:t,children:a,"data-test":"pyleSignUpLauncher",...i}),n&&(0,s.jsx)(eI.u,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,s.jsxs)(m.Eg,{isOpen:!0,onClose:()=>v(i),children:[(0,s.jsx)(m.Eg.Header,{children:t}),(0,s.jsx)(m.Eg.Body,{children:a},i)]})}}),(0,s.jsx)(p.e,{isOpen:o,onContinue:C,onLeave:b})]})},DGASignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[n,r]=(0,h.useState)(!1),[o,c]=(0,h.useState)(!1),{track:x}=(0,u.useAnalytics)(),b=(0,h.useCallback)(()=>{c(!1),r(!1),x(d.U.closeWorkflowEvent)},[]),E=(0,h.useCallback)(()=>c(e=>!e),[]),C=(0,h.useCallback)(e=>{let t=[g.J.ApplicationReview,g.J.ApplicationComplete,g.J.ApplicationDetected,g.J.EligibilityUnmet,g.J.AppDownload],a=t.includes(e);a?r(!1):(x(d.U.closeWorkflowConfirmationEvent),E())},[]),I=(0,h.useCallback)(()=>{x(d.U.abortCloseWorkflow),E()},[E,x]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.Button,{onClick:()=>r(!0),trailingIcon:(0,s.jsx)(l.IconArrowRight,{}),size:t,children:a,"data-test":"dgaSignUpLauncher",...i}),n&&(0,s.jsx)(v.I,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,s.jsxs)(m.Eg,{isOpen:!0,onClose:()=>C(i),children:[(0,s.jsx)(m.Eg.Header,{children:t}),(0,s.jsx)(m.Eg.Body,{children:a},i)]})}}),(0,s.jsx)(p.e,{isOpen:o,onContinue:I,onLeave:b})]})},SEIUSignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[n,r]=(0,h.useState)(!1),[o,c]=(0,h.useState)(!1),{track:x}=(0,u.useAnalytics)(),b=(0,h.useCallback)(()=>{c(!1),r(!1),x(d.U.closeWorkflowEvent)},[]),E=(0,h.useCallback)(()=>c(e=>!e),[]),v=(0,h.useCallback)(e=>{let t=[g.J.ApplicationReview,g.J.ApplicationComplete,g.J.ApplicationDetected,g.J.EligibilityUnmet,g.J.AppDownload],a=t.includes(e);a?r(!1):(x(d.U.closeWorkflowConfirmationEvent),E())},[]),C=(0,h.useCallback)(()=>{x(d.U.abortCloseWorkflow),E()},[E,x]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.Button,{onClick:()=>r(!0),trailingIcon:(0,s.jsx)(l.IconArrowRight,{}),size:t,children:a,"data-test":"seiuSignUpLauncher",...i}),n&&(0,s.jsx)(SEIUWorkflow,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,s.jsxs)(m.Eg,{isOpen:!0,onClose:()=>v(i),children:[(0,s.jsx)(m.Eg.Header,{children:t}),(0,s.jsx)(m.Eg.Body,{children:a},i)]})}}),(0,s.jsx)(p.e,{isOpen:o,onContinue:C,onLeave:b})]})},MDSaveSignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[n,r]=(0,h.useState)(!1),[o,c]=(0,h.useState)(!1),{track:x}=(0,u.useAnalytics)(),b=(0,h.useCallback)(()=>{c(!1),r(!1),x(d.U.closeWorkflowEvent)},[]),E=(0,h.useCallback)(()=>c(e=>!e),[]),v=(0,h.useCallback)(e=>{let t=[g.J.ApplicationReview,g.J.ApplicationDetected,g.J.EligibilityUnmet],a=t.includes(e);a?r(!1):(x(d.U.closeWorkflowConfirmationEvent),E())},[]),C=(0,h.useCallback)(()=>{x(d.U.abortCloseWorkflow),E()},[E,x]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.Button,{onClick:()=>r(!0),trailingIcon:(0,s.jsx)(l.IconArrowRight,{}),size:t,children:a,"data-test":"mdSaveSignUpLauncher",...i}),n&&(0,s.jsx)(ev.t,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,s.jsxs)(m.Eg,{isOpen:!0,onClose:()=>v(i),children:[(0,s.jsx)(m.Eg.Header,{children:t}),(0,s.jsx)(m.Eg.Body,{children:a},i)]})}}),(0,s.jsx)(p.e,{isOpen:o,onContinue:C,onLeave:b})]})},ChristianaCareSignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[n,r]=(0,h.useState)(!1),[o,c]=(0,h.useState)(!1),{track:x}=(0,u.useAnalytics)(),b=(0,h.useCallback)(()=>{c(!1),r(!1),x(d.U.closeWorkflowEvent)},[]),v=(0,h.useCallback)(()=>c(e=>!e),[]),C=(0,h.useCallback)(e=>{let t=[g.J.ApplicationReview,g.J.ApplicationComplete,g.J.ApplicationDetected,g.J.EligibilityUnmet,g.J.AppDownload],a=t.includes(e);a?r(!1):(x(d.U.closeWorkflowConfirmationEvent),v())},[]),I=(0,h.useCallback)(()=>{x(d.U.abortCloseWorkflow),v()},[v,x]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.Button,{onClick:()=>r(!0),trailingIcon:(0,s.jsx)(l.IconArrowRight,{}),size:t,children:a,"data-test":"christianaCareSignUpLauncher",...i}),n&&(0,s.jsx)(E.k,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,s.jsxs)(m.Eg,{isOpen:!0,onClose:()=>C(i),children:[(0,s.jsx)(m.Eg.Header,{children:t}),(0,s.jsx)(m.Eg.Body,{children:a},i)]})}}),(0,s.jsx)(p.e,{isOpen:o,onContinue:I,onLeave:b})]})},PartnerLandingNavigation:e=>{let{children:t,...a}=e,i=(0,l.useScrollPosition)(),n=(0,l.useBreakpointValue)({base:!0,md:!1}),r=i>400,o=(0,h.useMemo)(()=>{let e=[],a=null;return h.Children.forEach(t,t=>{(0,h.isValidElement)(t)&&(t.type===l.Image?e.push(t):a||(a=t))}),{images:e,launcher:a}},[t]),[c,d]=o.images;return(0,s.jsx)(l.Flex,{as:"nav",backgroundColor:"background-page",position:"sticky",top:"0",zIndex:10,width:"100%",height:"84px",children:(0,s.jsxs)(l.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,s.jsxs)(l.Flex,{gap:"spacer-5",alignItems:"center",children:[c,(0,s.jsx)(l.Fade,{in:!n||i<=400,unmountOnExit:!0,children:(0,s.jsxs)(l.Flex,{gap:"spacer-5",alignItems:"center",children:[(0,s.jsx)(l.Divider,{orientation:"vertical",height:"52px"}),d]})})]}),r&&o.launcher&&(0,s.jsx)(l.Fade,{in:r,children:o.launcher})]})})}};var eG=a(92041),eK=a(9008),eY=a.n(eK);let Page=e=>{let{content:t,title:a,metaConfiguration:i,theme:n}=e,r=Object.values(null!=i?i:{}),o=a||r.length>0;return(0,s.jsxs)(l.ComposerProvider,{theme:{...n,...eG.C},children:[o&&(0,s.jsxs)(eY(),{children:[(0,s.jsx)("title",{children:a}),r.map(e=>{let t={[e.propertyName]:e.propertyValue,content:e.content};return(0,s.jsx)("meta",{...t},e.propertyValue)})]}),null==t?void 0:t.map((e,t)=>(0,s.jsx)(c._E,{content:e,componentMap:eX},t))]})}}}]);