"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[379],{9379: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(44761),I=a(33640),y=a(65660),C=a(20410),S=a(31540),D=a(64460),f=a(39424),A=a(27350),w=a(86640),j=a(96693),k=a(50793),U=a(83344),O=a(76311),R=a(27950),P=a(73071),T=a(9051),L=a(64504),M=a(56401),B=a(17304),F=a(94445),J=a(11841),H=a(91372),V=a(60948),N=a(1943),W=a(21097),_=a(54285),q=a(34474),z=a(64267),X=a(10265),G=a(63317),K=a(10503),Y=a(19171),Q=a(67618),$=a(10002),Z=a(13064),ee=a(94788),et=a(30368),ea=a(47243);let ei={"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"},en=new Set(Object.keys(ei)),isEligibleForAutoEnrollment=e=>{let{groupNumber:t,status:a}=e;return en.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 er={...$.a,...r},eo=Q.aU[X.kT.Emory],es={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},el={...G.OX,...G.cp,...G.sW,...G.Oz,...G.S8,...G.oQ,...G.q6,...G.nB,...G.v1,...(0,G.Ww)(es)},ec=(0,ee.cY)({types:{},guards:{isPreEligibilityMet:e=>{let{context:{formData:t,bmi:a}}=e;return Z.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:Y.Q,isAthenaRecordCreated:K.w},actions:el}).createMachine({context:()=>es,id:"emoryMachine",initial:er.PreEligibility,states:{[er.PreEligibility]:{id:er.PreEligibility,initial:er.Idle,states:{[er.Idle]:{on:{SUBMIT:{target:er.Submitting,actions:"updateFormData"}}},[er.Submitting]:{entry:"assignBMI",always:[{target:"#".concat(er.ContactDetails),guard:"isPreEligibilityMet"},{target:"#".concat(er.EligibilityUnmet)}]}}},[er.ContactDetails]:{id:er.ContactDetails,initial:er.Idle,states:{[er.Idle]:{on:{SUBMIT:{target:"#".concat(er.InsuranceDetails),actions:"updateFormData"}}}}},[er.InsuranceDetails]:{id:er.InsuranceDetails,initial:er.Idle,states:{[er.Idle]:{on:{BACK:{target:"#".concat(er.ContactDetails)},SUBMIT:{target:"#".concat(er.InsuranceDetailsReview),actions:"updateFormData"}}}}},[er.InsuranceDetailsReview]:{id:er.InsuranceDetailsReview,initial:er.Idle,states:{[er.Idle]:{on:{SUBMIT:{actions:"updateFormData",target:er.Submitting}}},[er.Submitting]:{id:er.Submitting,initial:er.CheckBenefits,states:{[er.CheckBenefits]:{id:er.CheckBenefits,invoke:{src:(0,et.p4)(async e=>{let{input:t}=e,a={...t,payerCode:Q.qK[X.PF.Aetna]};return await (0,N.o)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:[{actions:(0,ea.a)({benefitsCheck:e=>{let{event:t}=e;return t.output.data}}),target:"#".concat(er.DetermineContactOrLead)}],onError:"#".concat(er.DetermineContactOrLead)}},[er.DetermineContactOrLead]:{id:er.DetermineContactOrLead,always:[{guard:"isApplicationReviewRequired",target:er.CreateLead},{target:er.CreateContact}]},[er.CreateContact]:{id:er.CreateContact,invoke:{src:(0,et.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:ei[null===(a=i.benefitsCheck)||void 0===a?void 0:null===(t=a.coverage)||void 0===t?void 0:t.groupNumber]},company:eo,insurance:Q.KG[X.kT.Emory],evolveOrganization:X.bV.Emory,accountId:Q.kS[X.kT.Emory],eligibilityVerifiedBy:X.Vn.Pverify};return await (0,_.rE)(n)}),input:e=>{let{context:t}=e;return t},onDone:{actions:"assignContactData",target:"#".concat(er.EmailVerification)},onError:[{guard:"isApplicationDetected",target:"#".concat(er.ApplicationDetected)},{target:"#".concat(er.InsuranceDetailsReview,".").concat(er.Error)}]}},[er.CreateLead]:{id:er.CreateLead,invoke:{src:(0,et.p4)(async e=>{let{input:t}=e,a={...t.formData,...t.formData.insuranceMemberID&&{employmentVerificationCode:t.formData.insuranceMemberID},...t.benefitsCheck&&{benefitsCheck:t.benefitsCheck},insurance:Q.KG[X.kT.Emory],evolveOrganization:X.bV.Emory,company:eo,leadStatus:X.rl.EligibleWaiting,automateEvolveEnrollment:!1,ineligibilityReason:X.ib.Insurance};return await (0,z.$)(a)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(er.ApplicationReview),onError:[{guard:"isApplicationDetected",target:"#".concat(er.ApplicationDetected)},{target:"#".concat(er.InsuranceDetailsReview,".").concat(er.Error)}]}}}},[er.Error]:{id:"".concat(er.InsuranceDetailsReview,".").concat(er.Error),on:{SUBMIT:{actions:["updateFormData","resetBenefitsCheck"],target:er.Submitting}}}}},[er.EmailVerification]:{id:er.EmailVerification,initial:er.Idle,states:{[er.Idle]:{id:"".concat(er.EmailVerification,".").concat(er.Idle),on:{SUBMIT:{actions:"assignOtpCode",target:er.Submitting},RESEND_EMAIL_VERIFICATION:{target:er.Idle,reenter:!0},UPDATE_EMAIL:{target:er.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,et.p4)(async e=>{let{input:t}=e,a={email:t.email,firstName:t.firstName},i=await (0,H.t)(a);return{token:i.data.token,onSuccess:t.onSuccess}}),onDone:{actions:[(0,ea.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:er.Error}},[er.Submitting]:{invoke:{src:(0,et.p4)(async e=>{let{input:t}=e,a={email:t.formData.email,token:t.otpData.token,otp:t.otpData.otp};return await (0,V.M)(a)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(er.OnboardingChecklist),onError:er.Error}},[er.Error]:{on:{SUBMIT:{actions:"assignOtpCode",target:er.Submitting},RESEND_EMAIL_VERIFICATION:{target:er.Idle},UPDATE_EMAIL:{target:er.UpdateEmail}}},[er.UpdateEmail]:{initial:er.Idle,states:{[er.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,et.p4)(async e=>{let{input:t}=e,a={contactId:t.contactId,email:t.email};await (0,_.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(er.EmailVerification,".").concat(er.Idle)},onError:er.Error}},[er.Error]:{on:{SUBMIT:{target:"#".concat(er.EmailVerification,".").concat(er.Idle)},RESEND_EMAIL_VERIFICATION:{target:"#".concat(er.EmailVerification,".").concat(er.Idle)},UPDATE_EMAIL:{target:er.Idle}}}}}}},[er.ReviewConsents]:{id:er.ReviewConsents,initial:er.FetchConsents,states:{[er.Idle]:{on:{SUBMIT:{actions:["assignUserConsentStatus"],target:er.Submitting}}},[er.FetchConsents]:{invoke:{src:(0,et.p4)(async()=>await (0,W.J)()),onDone:{actions:"assignConsents",target:er.Idle},onError:er.Error}},[er.Submitting]:{invoke:{src:(0,et.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:X.bV.Emory,consents:i.consentsData.userConsentStatus,participantDepartmentorOrg:ei[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:er.UpdateContact}],onError:"#".concat(er.OnboardingUserError)}},[er.UpdateContact]:{invoke:{src:(0,et.p4)(async e=>{let{input:t}=e,a={contactId:t.contactData.contactId,evolvePatientID:t.flyteUserData.patientId};return await (0,_.Tk)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{guard:"isAthenaRecordCreated",target:"#".concat(er.CreatePassword)},{target:"#".concat(er.OnboardingUserError)}],onError:"#".concat(er.OnboardingUserError)}},[er.Error]:{on:{SUBMIT:{actions:["assignUserConsentStatus"],target:er.Submitting}}}}},[er.CreatePassword]:{id:er.CreatePassword,initial:er.Idle,states:{[er.Idle]:{on:{SUBMIT:{actions:"assignPasswordData",target:er.Submitting}}},[er.Submitting]:{invoke:{src:(0,et.p4)(async e=>{let{input:t}=e,a={email:t.formData.email,password:t.passwordData.password,confirmPassword:t.passwordData.confirmPassword};return await (0,J.x)(t.flyteUserData.verifyToken,a)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(er.AppDownload),onError:{target:er.Error,actions:"assignError"}}},[er.Error]:{on:{SUBMIT:{actions:["resetError","assignPasswordData"],target:er.Submitting}}}}},[er.OnboardingChecklist]:{id:er.OnboardingChecklist,on:{SUBMIT:{target:"#".concat(er.ReviewConsents)}}},[er.AppDownload]:{id:er.AppDownload},[er.ApplicationReview]:{id:er.ApplicationReview},[er.OnboardingUserError]:{id:er.OnboardingUserError},[er.ApplicationComplete]:{id:er.ApplicationComplete},[er.ApplicationDetected]:{id:er.ApplicationDetected},[er.EligibilityUnmet]:{id:er.EligibilityUnmet,initial:er.Idle,states:{[er.Idle]:{on:{SUBMIT:{target:er.Submitting,actions:"updateFormData"}}},[er.Submitting]:{invoke:{src:(0,et.p4)(async e=>{let{input:t}=e,a={...t,company:eo,leadStatus:X.rl.Ineligible,ineligibilityReason:X.ib.BMI,automateEvolveEnrollment:!1};return await (0,z.$)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:er.Success,onError:er.Error}},[er.Success]:{},[er.Error]:{on:{SUBMIT:{actions:"updateFormData",target:er.Submitting}}}}}},on:{RESET:{target:"#".concat(er.PreEligibility),actions:"reset"}}});var ed=a(56344);let eu={[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]:ed.T[g.J.EmailVerification],[g.J.OnboardingChecklist]:ed.T[g.J.OnboardingChecklist],[g.J.CreatePassword]:ed.T[g.J.CreatePassword],[g.J.AppDownload]:ed.T[g.J.AppDownload],[g.J.ReviewConsents]:ed.T[g.J.ReviewConsents]};var em=a(58976);let ep=[M.Op.BenefitsWebsite,M.Op.CoworkerReferral,M.Op.PrescriptionDenial,M.Op.ProviderReferral,M.Op.WordOfMouth,M.Op.Other],eg={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={[g.J.ContactDetails]:{state:{options:em.Fp},howDidYouFindUs:{options:ep}},[g.J.InsuranceDetails]:{insuranceMemberID:{...eg,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:eg}},ex=M.kT.Emory,EmoryWorkflow=e=>{let{render:t}=e,[a,i]=(0,F.eO)(ec),n=(0,h.useMemo)(()=>(0,B.k)(a.value),[a.value]);(0,L.R)(n,ex);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 er.PreEligibility:return(0,s.jsx)(P.b,{configuration:{contentResources:eu[g.J.PreEligibility]},onSubmit:r});case er.ContactDetails:return(0,s.jsx)(f.q,{configuration:{contentResources:eu[g.J.ContactDetails],fields:eh[g.J.ContactDetails]},onSubmit:r,defaultValues:a.context.formData});case er.EligibilityUnmet:return(0,s.jsx)(w.X,{configuration:{contentResources:eu[g.J.EligibilityUnmet]},onSubmit:r,loading:a.matches({[er.EligibilityUnmet]:er.Submitting}),isEmailSent:a.matches({[er.EligibilityUnmet]:er.Success}),hasError:a.matches({[er.EligibilityUnmet]:er.Error}),isMobileFooterSticky:!1});case er.InsuranceDetails:return(0,s.jsx)(k.v,{configuration:{contentResources:eu[g.J.InsuranceDetails],fields:eh[g.J.InsuranceDetails]},onSubmit:r,onBack:o});case er.InsuranceDetailsReview:return(0,s.jsx)(U.b,{configuration:{contentResources:eu[g.J.InsuranceDetailsReview],fields:eh[g.J.InsuranceDetailsReview]},onSubmit:r,loading:a.matches({[er.InsuranceDetailsReview]:er.Submitting}),hasError:a.matches({[er.InsuranceDetailsReview]:er.Error}),defaultValues:a.context.formData});case er.ApplicationComplete:return(0,s.jsx)(I.J,{...eu[g.J.ApplicationComplete],email:a.context.formData.email});case er.ApplicationReview:return(0,s.jsx)(C.G,{...eu[g.J.ApplicationReview]});case er.ApplicationDetected:return(0,s.jsx)(y.v,{...eu[g.J.ApplicationDetected],email:a.context.formData.email});case er.EmailVerification:return(0,s.jsx)(j.Z,{configuration:{contentResources:{title:eu[g.J.EmailVerification](a.context.formData.email).title}},email:a.context.formData.email,hasError:a.matches({[er.EmailVerification]:er.Error}),loading:a.matches({[er.EmailVerification]:er.Submitting}),isUpdateEmailLoading:a.matches({[er.EmailVerification]:{[er.UpdateEmail]:er.Idle}}),hasUpdateEmailError:a.matches({[er.EmailVerification]:{[er.UpdateEmail]:er.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 er.OnboardingChecklist:return(0,s.jsx)(O.O,{configuration:{contentResources:eu[g.J.OnboardingChecklist]},onSubmit:r});case er.ReviewConsents:return(0,s.jsx)(T.R,{configuration:{contentResources:eu[g.J.ReviewConsents]},consents:a.context.consentsData.items,hasError:a.matches({[er.ReviewConsents]:er.Error}),loading:a.matches({[er.ReviewConsents]:er.FetchConsents})||a.matches({[er.ReviewConsents]:er.Submitting})||a.matches({[er.ReviewConsents]:er.UpdateContact}),onSubmit:r});case er.CreatePassword:return(0,s.jsx)(A.f,{configuration:{contentResources:eu[g.J.CreatePassword]},loading:a.matches({[er.CreatePassword]:er.Submitting}),error:a.context.error,onSubmit:r});case er.AppDownload:return(0,s.jsx)(v.B,{title:eu[g.J.AppDownload].title,checklist:eu[g.J.AppDownload].checklist});case er.OnboardingUserError:return(0,s.jsx)(R._,{});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)(S.E,{partner:M.kT.Flyte}),(0,s.jsx)(l.Divider,{orientation:"vertical",alignSelf:"stretch",height:"auto"}),(0,s.jsx)(S.E,{partner:ex})]}),(0,s.jsx)(D.K,{currentStep:n})]}),body:c(),currentWorkFlowStep:n})};var eb=a(93942),eE=a(35592),ev=a(17219),eI=a(84901),ey=a(16428);Object.values(M.PF).filter(e=>e!==M.PF.SelfPay);var eC=a(23616),eS=a(84862),eD=a(87536),ef=a(97324),eA=a(68701),ew=a(36045);let ej="insuranceMemberID",ek=(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=ek,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,eD.Gc)(),v=(0,ew.T)(ej,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:ej,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)(eA.o,{"data-test":ej,id:ej,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(ej,t,{shouldValidate:a})},...b(ej,{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)(em.VO,{errors:E,name:ej})]})},SeiuInsuranceDetailsForm=e=>{let{configuration:t,loading:a=!1,onSubmit:i,onBack:n}=e,{contentResources:r,fields:o}=t,c=(0,eD.cI)({mode:"onBlur"}),d=(0,eS.d)(),u=c.watch(ef.o0)===M.eF.SelfPay,m=c.watch(ef.OF)===M.PF.Other;(0,h.useEffect)(()=>{u&&(c.resetField(ef.OF),c.resetField(ef.rI))},[u,c]),(0,h.useEffect)(()=>{c.resetField(ef.zQ)},[c.watch(ef.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)(eD.RV,{...c,children:(0,s.jsxs)(eC.S,{as:"form",onSubmit:c.handleSubmit(i),noValidate:!0,children:[(0,s.jsx)(eC.S.Side,{gap:0,flex:{base:"none",lg:1},children:r.title}),(0,s.jsxs)(eC.S.Form,{children:[(null==o?void 0:o.insuranceCoverage)&&(0,s.jsx)(ef.nK,{isDisabled:a}),(null==o?void 0:o.insurance)&&(0,s.jsx)(ef.vu,{isDisabled:a||u,isRequired:!u,...null==o?void 0:o.insurance},u.toString()),m&&(0,s.jsx)(ef.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)(em.D2,{children:renderFormActions()}):renderFormActions()]})]})})};var eU=a(33546),eO=a(37053);let SEIU_helpers_state_machine_isEligibleForAutoEnrollment=e=>e===eO._.FULL_MATCH||e===eO._.ELIGIBLE_MATCH||e===eO._.PERSON_MATCH,getLeadStatus=e=>{switch(e){case eO._.INSURANCE_MATCH:case eO._.EXPIRED:case eO._.NOT_FOUND:return M.rl.EligibleWaiting;case eO._.PERSON_MATCH:case eO._.FULL_MATCH:case eO._.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 eR={...$.a,...o},eP=Q.aU[X.kT["1199SEIU"]],eT={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},eL={...G.OX,...G.cp,...G.sW,...G.Oz,...G.S8,...G.oQ,...G.q6,...G.nB,...G.v1,...(0,G.Ww)(eT).reset},eM=(0,ee.cY)({types:{},guards:{isPreEligibilityMet:e=>{let{context:{formData:t,bmi:a}}=e;return Z.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:Y.Q,isAthenaRecordCreated:K.w},actions:eL}).createMachine({context:()=>eT,id:"SEIUMachine",initial:eR.PreEligibility,states:{[eR.PreEligibility]:{id:eR.PreEligibility,initial:eR.Idle,states:{[eR.Idle]:{on:{SUBMIT:{target:eR.Submitting,actions:"updateFormData"}}},[eR.Submitting]:{entry:"assignBMI",always:[{target:"#".concat(eR.ContactDetails),guard:"isPreEligibilityMet"},{target:"#".concat(eR.EligibilityUnmet)}]}}},[eR.ContactDetails]:{id:eR.ContactDetails,initial:eR.Idle,states:{[eR.Idle]:{on:{SUBMIT:{target:"#".concat(eR.InsuranceDetails),actions:"updateFormData"}}}}},[eR.InsuranceDetails]:{id:eR.InsuranceDetails,initial:eR.Idle,states:{[eR.Idle]:{on:{BACK:{target:"#".concat(eR.ContactDetails)},SUBMIT:{target:"#".concat(eR.InsuranceDetailsReview),actions:"updateFormData"}}}}},[eR.InsuranceDetailsReview]:{id:eR.InsuranceDetailsReview,initial:eR.Idle,states:{[eR.Idle]:{on:{SUBMIT:{actions:"updateFormData",target:eR.Submitting}}},[eR.Submitting]:{id:eR.Submitting,initial:eR.CheckEligibility,states:{[eR.CheckEligibility]:{id:eR.CheckEligibility,invoke:{src:(0,et.p4)(async e=>{let{input:t}=e,a={...t,insurance:Q.Er[X.kT["1199SEIU"]],benefitProgram:Q.Q1[X.kT["1199SEIU"]]};return await (0,eU.m)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:[{actions:(0,ea.a)({eligibilityCheckMatchType:e=>{let{event:t}=e;return t.output.data.matchType}}),target:"#".concat(eR.DetermineContactOrLead)}],onError:"#".concat(eR.InsuranceDetailsReview,".").concat(eR.Error)}},[eR.DetermineContactOrLead]:{id:eR.DetermineContactOrLead,always:[{guard:"isApplicationReviewRequired",target:eR.CreateLead},{target:eR.CreateContact}]},[eR.CreateContact]:{id:eR.CreateContact,invoke:{src:(0,et.p4)(async e=>{let{input:t}=e,a={...t.formData,employmentVerificationCode:t.formData.insuranceMemberID,eligibilityVerifiedBy:X.Vn.Evolve,insuranceMemberID:t.formData.insuranceMemberID,company:eP,insurance:Q.KG[X.kT["1199SEIU"]],evolveOrganization:X.bV["1199SEIU"],accountId:Q.kS[X.kT["1199SEIU"]]};return await (0,_.rE)(a)}),input:e=>{let{context:t}=e;return t},onDone:{actions:"assignContactData",target:"#".concat(eR.EmailVerification)},onError:[{guard:"isApplicationDetected",target:"#".concat(eR.ApplicationDetected)},{target:"#".concat(eR.InsuranceDetailsReview,".").concat(eR.Error)}]}},[eR.CreateLead]:{id:eR.CreateLead,invoke:{src:(0,et.p4)(async e=>{let{input:t}=e,a={...t.formData,employmentVerificationCode:t.formData.insuranceMemberID,eligibilityVerifiedBy:X.Vn.Evolve,insuranceMemberID:t.formData.insuranceMemberID,company:eP,insurance:Q.KG[X.kT["1199SEIU"]],evolveOrganization:X.bV["1199SEIU"],leadStatus:getLeadStatus(t.eligibilityCheckMatchType),automateEvolveEnrollment:SEIU_helpers_state_machine_isEligibleForAutoEnrollment(t.eligibilityCheckMatchType)};return await (0,z.$)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{guard:"isApplicationReviewRequired",target:"#".concat(eR.ApplicationReview)},{target:"#".concat(eR.ApplicationComplete)}],onError:[{guard:"isApplicationDetected",target:"#".concat(eR.ApplicationDetected)},{target:"#".concat(eR.InsuranceDetailsReview,".").concat(eR.Error)}]}}}},[eR.Error]:{id:"".concat(eR.InsuranceDetailsReview,".").concat(eR.Error),on:{SUBMIT:{actions:"updateFormData",target:eR.Submitting}}}}},[eR.EmailVerification]:{id:eR.EmailVerification,initial:eR.Idle,states:{[eR.Idle]:{id:"".concat(eR.EmailVerification,".").concat(eR.Idle),on:{SUBMIT:{actions:"assignOtpCode",target:eR.Submitting},RESEND_EMAIL_VERIFICATION:{target:eR.Idle,reenter:!0},UPDATE_EMAIL:{target:eR.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,et.p4)(async e=>{let{input:t}=e,a={email:t.email,firstName:t.firstName},i=await (0,H.t)(a);return{token:i.data.token,onSuccess:t.onSuccess}}),onDone:{actions:[(0,ea.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:eR.Error}},[eR.Submitting]:{invoke:{src:(0,et.p4)(async e=>{let{input:t}=e,a={email:t.formData.email,token:t.otpData.token,otp:t.otpData.otp};return await (0,V.M)(a)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(eR.OnboardingChecklist),onError:eR.Error}},[eR.Error]:{on:{SUBMIT:{actions:"assignOtpCode",target:eR.Submitting},RESEND_EMAIL_VERIFICATION:{target:eR.Idle},UPDATE_EMAIL:{target:eR.UpdateEmail}}},[eR.UpdateEmail]:{initial:eR.Idle,states:{[eR.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,et.p4)(async e=>{let{input:t}=e,a={contactId:t.contactId,email:t.email};await (0,_.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(eR.EmailVerification,".").concat(eR.Idle)},onError:eR.Error}},[eR.Error]:{on:{SUBMIT:{target:"#".concat(eR.EmailVerification,".").concat(eR.Idle)},RESEND_EMAIL_VERIFICATION:{target:"#".concat(eR.EmailVerification,".").concat(eR.Idle)},UPDATE_EMAIL:{target:eR.Idle}}}}}}},[eR.ReviewConsents]:{id:eR.ReviewConsents,initial:eR.FetchConsents,states:{[eR.Idle]:{on:{SUBMIT:{actions:["assignUserConsentStatus"],target:eR.Submitting}}},[eR.FetchConsents]:{invoke:{src:(0,et.p4)(async()=>await (0,W.J)()),onDone:{actions:"assignConsents",target:eR.Idle},onError:eR.Error}},[eR.Submitting]:{invoke:{src:(0,et.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:X.bV["1199SEIU"],consents:t.consentsData.userConsentStatus};return await (0,q.D)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{actions:"assignFlyteUserData",target:eR.UpdateContact}],onError:"#".concat(eR.OnboardingUserError)}},[eR.UpdateContact]:{invoke:{src:(0,et.p4)(async e=>{let{input:t}=e,a={contactId:t.contactData.contactId,evolvePatientID:t.flyteUserData.patientId};return await (0,_.Tk)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{guard:"isAthenaRecordCreated",target:"#".concat(eR.CreatePassword)},{target:"#".concat(eR.OnboardingUserError)}],onError:"#".concat(eR.OnboardingUserError)}},[eR.Error]:{on:{SUBMIT:{actions:["assignUserConsentStatus"],target:eR.Submitting}}}}},[eR.CreatePassword]:{id:eR.CreatePassword,initial:eR.Idle,states:{[eR.Idle]:{on:{SUBMIT:{actions:"assignPasswordData",target:eR.Submitting}}},[eR.Submitting]:{invoke:{src:(0,et.p4)(async e=>{let{input:t}=e,a={email:t.formData.email,password:t.passwordData.password,confirmPassword:t.passwordData.confirmPassword};return await (0,J.x)(t.flyteUserData.verifyToken,a)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(eR.AppDownload),onError:{target:eR.Error,actions:"assignError"}}},[eR.Error]:{on:{SUBMIT:{actions:["resetError","assignPasswordData"],target:eR.Submitting}}}}},[eR.OnboardingChecklist]:{id:eR.OnboardingChecklist,on:{SUBMIT:{target:"#".concat(eR.ReviewConsents)}}},[eR.AppDownload]:{id:eR.AppDownload},[eR.ApplicationReview]:{id:eR.ApplicationReview},[eR.OnboardingUserError]:{id:eR.OnboardingUserError},[eR.ApplicationComplete]:{id:eR.ApplicationComplete},[eR.ApplicationDetected]:{id:eR.ApplicationDetected},[eR.EligibilityUnmet]:{id:eR.EligibilityUnmet,initial:eR.Idle,states:{[eR.Idle]:{on:{SUBMIT:{target:eR.Submitting,actions:"updateFormData"}}},[eR.Submitting]:{invoke:{src:(0,et.p4)(async e=>{let{input:t}=e,a={...t,company:eP,leadStatus:X.rl.Ineligible,ineligibilityReason:X.ib.BMI,automateEvolveEnrollment:!1};return await (0,z.$)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:eR.Success,onError:eR.Error}},[eR.Success]:{},[eR.Error]:{on:{SUBMIT:{target:eR.Submitting}}}}}},on:{RESET:{target:"#".concat(eR.PreEligibility),actions:"reset"}}}),eB={[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]:ed.T[g.J.EmailVerification],[g.J.OnboardingChecklist]:ed.T[g.J.OnboardingChecklist],[g.J.CreatePassword]:ed.T[g.J.CreatePassword],[g.J.AppDownload]:ed.T[g.J.AppDownload],[g.J.ReviewConsents]:ed.T[g.J.ReviewConsents]},eF=[M.Op.BenefitsWebsite,M.Op.CoworkerReferral,M.Op.PrescriptionDenial,M.Op.ProviderReferral,M.Op.WordOfMouth,M.Op.Other],eJ={[g.J.ContactDetails]:{state:{options:em.Fp},howDidYouFindUs:{options:eF}},[g.J.InsuranceDetails]:{insuranceMemberID:{}},[g.J.InsuranceDetailsReview]:{insuranceMemberID:{}}},SEIUWorkflow=e=>{let{render:t}=e,[a,i]=(0,F.eO)(eM),n=(0,h.useMemo)(()=>(0,B.k)(a.value),[a.value]);(0,L.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 eR.PreEligibility:return(0,s.jsx)(P.b,{configuration:{contentResources:eB[g.J.PreEligibility]},onSubmit:r});case eR.ContactDetails:return(0,s.jsx)(f.q,{configuration:{contentResources:eB[g.J.ContactDetails],fields:eJ[g.J.ContactDetails]},onSubmit:r,defaultValues:a.context.formData});case eR.EligibilityUnmet:return(0,s.jsx)(w.X,{configuration:{contentResources:eB[g.J.EligibilityUnmet]},onSubmit:r,loading:a.matches({[eR.EligibilityUnmet]:eR.Submitting}),isEmailSent:a.matches({[eR.EligibilityUnmet]:eR.Success}),hasError:a.matches({[eR.EligibilityUnmet]:eR.Error})});case eR.InsuranceDetails:return(0,s.jsx)(SeiuInsuranceDetailsForm,{configuration:{contentResources:eB[g.J.InsuranceDetails],fields:eJ[g.J.InsuranceDetails]},onSubmit:r,onBack:o});case eR.InsuranceDetailsReview:return(0,s.jsx)(U.b,{configuration:{contentResources:eB[g.J.InsuranceDetailsReview],fields:eJ[g.J.InsuranceDetailsReview]},onSubmit:r,loading:a.matches({[eR.InsuranceDetailsReview]:eR.Submitting}),hasError:a.matches({[eR.InsuranceDetailsReview]:eR.Error}),defaultValues:a.context.formData});case eR.ApplicationComplete:return(0,s.jsx)(I.J,{...eB[g.J.ApplicationComplete],email:a.context.formData.email});case eR.ApplicationDetected:return(0,s.jsx)(y.v,{...eB[g.J.ApplicationDetected],email:a.context.formData.email});case eR.ApplicationReview:return(0,s.jsx)(C.G,{...eB[g.J.ApplicationReview]});case eR.EmailVerification:return(0,s.jsx)(j.Z,{configuration:{contentResources:{title:eB[g.J.EmailVerification](a.context.formData.email).title}},email:a.context.formData.email,hasError:a.matches({[eR.EmailVerification]:eR.Error}),loading:a.matches({[eR.EmailVerification]:eR.Submitting}),isUpdateEmailLoading:a.matches({[eR.EmailVerification]:{[eR.UpdateEmail]:eR.Idle}}),hasUpdateEmailError:a.matches({[eR.EmailVerification]:{[eR.UpdateEmail]:eR.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 eR.OnboardingChecklist:return(0,s.jsx)(O.O,{configuration:{contentResources:eB[g.J.OnboardingChecklist]},onSubmit:r});case eR.ReviewConsents:return(0,s.jsx)(T.R,{configuration:{contentResources:eB[g.J.ReviewConsents]},consents:a.context.consentsData.items,hasError:a.matches({[eR.ReviewConsents]:eR.Error}),loading:a.matches({[eR.ReviewConsents]:eR.FetchConsents})||a.matches({[eR.ReviewConsents]:eR.Submitting})||a.matches({[eR.ReviewConsents]:eR.UpdateContact}),onSubmit:r});case eR.CreatePassword:return(0,s.jsx)(A.f,{configuration:{contentResources:eB[g.J.CreatePassword]},loading:a.matches({[eR.CreatePassword]:eR.Submitting}),error:a.context.error,onSubmit:r});case eR.AppDownload:return(0,s.jsx)(v.B,{title:eB[g.J.AppDownload].title,checklist:eB[g.J.AppDownload].checklist});case eR.OnboardingUserError:return(0,s.jsx)(R._,{});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)(S.E,{partner:M.kT.Flyte}),(0,s.jsx)(l.Divider,{orientation:"vertical",alignSelf:"stretch",height:"auto"}),(0,s.jsx)(S.E,{partner:M.kT["1199SEIU"]})]}),(0,s.jsx)(D.K,{currentStep:n})]}),body:c(),currentWorkFlowStep:n})};var eH=a(38098),eV=a(79929),eN=a(50574);let eW="currentWeightInPounds",e_="heightInFoot",eq="heightInInch",ez={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,eD.cI)({mode:"onBlur"}),d=(0,eN.M)(c(eW)),u=(0,eN.M)(c(e_)),m=(0,eN.M)(c(eq)),p=null===(t=(0,h.useMemo)(()=>d&&u&&m&&(0,eV.V)({weightPounds:d,heightFeet:u,heightInches:m}),[d,u,m]))||void 0===t?void 0:t.toFixed(1),g=(0,ew.T)(eW,r.errors,"validate"),x=(0,ew.T)(e_,r.errors,"validate"),b=(0,ew.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:e_,children:"Height (ft)"}),(0,s.jsx)(em.lm,{unit:"ft",id:e_,isInvalid:x,onInput:e=>o(e_,e.currentTarget.value),...n(e_,{required:!0,validate:e=>{let t=(0,eN.M)(e);return t>=4&&t<=7||eH.x[e_].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)(em.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||eH.x[eq].validate}})})]})]}),(x||b)&&(0,s.jsxs)(l.Flex,{gap:"spacer-2",direction:"column",mt:"spacer-2",children:[x&&(0,s.jsx)(em.VO,{errors:r.errors,name:e_}),b&&(0,s.jsx)(em.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:eW,children:"Weight (lbs)"}),(0,s.jsx)(em.CZ,{id:eW,isInvalid:g,mt:"spacer-2",onInput:e=>o(eW,e.currentTarget.value),...n(eW,{required:!0,validate:e=>{let t=(0,eN.M)(e);return t>=1&&t<1e3||eH.x[eW].validate}})}),g&&(0,s.jsx)(l.Box,{mt:"spacer-2",children:(0,s.jsx)(em.VO,{errors:r.errors,name:eW})})]}),(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),[]),I=(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())},[]),y=(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:()=>I(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:y,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),[]),I=(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())},[]),y=(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:()=>I(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:y,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())},[]),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":"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:I,onLeave:b})]})},FlyteSignUpLauncher:eb.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())},[]),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":"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:I,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())},[]),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":"pequotSignUpLauncher",...i}),n&&(0,s.jsx)(ev.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:I,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())},[]),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":"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: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())},[]),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":"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:I,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())},[]),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":"mdSaveSignUpLauncher",...i}),n&&(0,s.jsx)(eE.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:I,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),[]),I=(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())},[]),y=(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:()=>I(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:y,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 eX=a(92041),eG=a(9008),eK=a.n(eG);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,...eX.C},children:[o&&(0,s.jsxs)(eK(),{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:ez},t))]})}}}]);