"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[915],{63915:function(e,t,a){a.d(t,{T:function(){return Page}});var i,r,n=a(85893),o=a(71986),s=a(61563),l=a(66122),c=a(3183),d=a(29733),u=a(11964),p=a(70908),h=a(67294),m=a(24045),g=a(38660),x=a(33407),b=a(44761),v=a(33640),C=a(65660),y=a(20410),E=a(31540),S=a(53157),f=a(39424),A=a(27350),I=a(86640),j=a(96693),w=a(50793),k=a(83344),D=a(76311),O=a(27950),U=a(73071),R=a(9051),P=a(64504),L=a(56401),B=a(17304),T=a(94445),J=a(11841),H=a(91372),M=a(60948),F=a(1943),W=a(21097),V=a(54285),N=a(34474),z=a(64267),_=a(10265),q=a(63317),X=a(10503),G=a(19171),K=a(67618),Y=a(10002),$=a(13064),Q=a(94788),Z=a(30368),ee=a(47243);let et={"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"},ea=new Set(Object.keys(et)),isEligibleForAutoEnrollment=e=>{let{groupNumber:t,status:a}=e;return ea.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 ei={...Y.a,...r},er=K.aU[_.kT.Emory],en={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},eo={...q.OX,...q.cp,...q.sW,...q.Oz,...q.S8,...q.oQ,...q.q6,...q.nB,...q.v1,...(0,q.Ww)(en)},es=(0,Q.cY)({types:{},guards:{isPreEligibilityMet:e=>{let{context:{formData:t,bmi:a}}=e;return $.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:G.Q,isAthenaRecordCreated:X.w},actions:eo}).createMachine({context:()=>en,id:"emoryMachine",initial:ei.PreEligibility,states:{[ei.PreEligibility]:{id:ei.PreEligibility,initial:ei.Idle,states:{[ei.Idle]:{on:{SUBMIT:{target:ei.Submitting,actions:"updateFormData"}}},[ei.Submitting]:{entry:"assignBMI",always:[{target:"#".concat(ei.ContactDetails),guard:"isPreEligibilityMet"},{target:"#".concat(ei.EligibilityUnmet)}]}}},[ei.ContactDetails]:{id:ei.ContactDetails,initial:ei.Idle,states:{[ei.Idle]:{on:{SUBMIT:{target:"#".concat(ei.InsuranceDetails),actions:"updateFormData"}}}}},[ei.InsuranceDetails]:{id:ei.InsuranceDetails,initial:ei.Idle,states:{[ei.Idle]:{on:{BACK:{target:"#".concat(ei.ContactDetails)},SUBMIT:{target:"#".concat(ei.InsuranceDetailsReview),actions:"updateFormData"}}}}},[ei.InsuranceDetailsReview]:{id:ei.InsuranceDetailsReview,initial:ei.Idle,states:{[ei.Idle]:{on:{SUBMIT:{actions:"updateFormData",target:ei.Submitting}}},[ei.Submitting]:{id:ei.Submitting,initial:ei.CheckBenefits,states:{[ei.CheckBenefits]:{id:ei.CheckBenefits,invoke:{src:(0,Z.p4)(async e=>{let{input:t}=e,a={...t,payerCode:K.qK[_.PF.Aetna]};return await (0,F.o)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:[{actions:(0,ee.a)({benefitsCheck:e=>{let{event:t}=e;return t.output.data}}),target:"#".concat(ei.DetermineContactOrLead)}],onError:"#".concat(ei.DetermineContactOrLead)}},[ei.DetermineContactOrLead]:{id:ei.DetermineContactOrLead,always:[{guard:"isApplicationReviewRequired",target:ei.CreateLead},{target:ei.CreateContact}]},[ei.CreateContact]:{id:ei.CreateContact,invoke:{src:(0,Z.p4)(async e=>{var t,a;let{input:i}=e,r={...i.formData,...i.formData.insuranceMemberID&&{employmentVerificationCode:i.formData.insuranceMemberID},...i.benefitsCheck&&{benefitsCheck:i.benefitsCheck,participantDepartmentorOrg:et[null===(a=i.benefitsCheck)||void 0===a?void 0:null===(t=a.coverage)||void 0===t?void 0:t.groupNumber]},company:er,insurance:K.KG[_.kT.Emory],evolveOrganization:_.bV.Emory,accountId:K.kS[_.kT.Emory],eligibilityVerifiedBy:_.Vn.Pverify};return await (0,V.rE)(r)}),input:e=>{let{context:t}=e;return t},onDone:{actions:"assignContactData",target:"#".concat(ei.EmailVerification)},onError:[{guard:"isApplicationDetected",target:"#".concat(ei.ApplicationDetected)},{target:"#".concat(ei.InsuranceDetailsReview,".").concat(ei.Error)}]}},[ei.CreateLead]:{id:ei.CreateLead,invoke:{src:(0,Z.p4)(async e=>{let{input:t}=e,a={...t.formData,...t.formData.insuranceMemberID&&{employmentVerificationCode:t.formData.insuranceMemberID},...t.benefitsCheck&&{benefitsCheck:t.benefitsCheck},insurance:K.KG[_.kT.Emory],evolveOrganization:_.bV.Emory,company:er,leadStatus:_.rl.EligibleWaiting,automateEvolveEnrollment:!1,ineligibilityReason:_.ib.Insurance};return await (0,z.$)(a)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(ei.ApplicationReview),onError:[{guard:"isApplicationDetected",target:"#".concat(ei.ApplicationDetected)},{target:"#".concat(ei.InsuranceDetailsReview,".").concat(ei.Error)}]}}}},[ei.Error]:{id:"".concat(ei.InsuranceDetailsReview,".").concat(ei.Error),on:{SUBMIT:{actions:["updateFormData","resetBenefitsCheck"],target:ei.Submitting}}}}},[ei.EmailVerification]:{id:ei.EmailVerification,initial:ei.Idle,states:{[ei.Idle]:{id:"".concat(ei.EmailVerification,".").concat(ei.Idle),on:{SUBMIT:{actions:"assignOtpCode",target:ei.Submitting},RESEND_EMAIL_VERIFICATION:{target:ei.Idle,reenter:!0},UPDATE_EMAIL:{target:ei.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,Z.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,ee.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:ei.Error}},[ei.Submitting]:{invoke:{src:(0,Z.p4)(async e=>{let{input:t}=e,a={email:t.formData.email,token:t.otpData.token,otp:t.otpData.otp};return await (0,M.M)(a)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(ei.OnboardingChecklist),onError:ei.Error}},[ei.Error]:{on:{SUBMIT:{actions:"assignOtpCode",target:ei.Submitting},RESEND_EMAIL_VERIFICATION:{target:ei.Idle},UPDATE_EMAIL:{target:ei.UpdateEmail}}},[ei.UpdateEmail]:{initial:ei.Idle,states:{[ei.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,Z.p4)(async e=>{let{input:t}=e,a={contactId:t.contactId,email:t.email};await (0,V.Tk)(a);let i={email:t.email,onSuccess:t.onSuccess};return i}),onDone:{actions:["assignNewEmail",e=>{var t;let{event:a}=e;(null==a?void 0:null===(t=a.output)||void 0===t?void 0:t.onSuccess)&&a.output.onSuccess()}],target:"#".concat(ei.EmailVerification,".").concat(ei.Idle)},onError:ei.Error}},[ei.Error]:{on:{SUBMIT:{target:"#".concat(ei.EmailVerification,".").concat(ei.Idle)},RESEND_EMAIL_VERIFICATION:{target:"#".concat(ei.EmailVerification,".").concat(ei.Idle)},UPDATE_EMAIL:{target:ei.Idle}}}}}}},[ei.ReviewConsents]:{id:ei.ReviewConsents,initial:ei.FetchConsents,states:{[ei.Idle]:{on:{SUBMIT:{actions:["assignUserConsentStatus"],target:ei.Submitting}}},[ei.FetchConsents]:{invoke:{src:(0,Z.p4)(async()=>await (0,W.J)()),onDone:{actions:"assignConsents",target:ei.Idle},onError:ei.Error}},[ei.Submitting]:{invoke:{src:(0,Z.p4)(async e=>{var t,a;let{input:i}=e,r={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:_.bV.Emory,consents:i.consentsData.userConsentStatus,participantDepartmentorOrg:et[null===(a=i.benefitsCheck)||void 0===a?void 0:null===(t=a.coverage)||void 0===t?void 0:t.groupNumber]};return await (0,N.D)(r)}),input:e=>{let{context:t}=e;return t},onDone:[{actions:"assignFlyteUserData",target:ei.UpdateContact}],onError:"#".concat(ei.OnboardingUserError)}},[ei.UpdateContact]:{invoke:{src:(0,Z.p4)(async e=>{let{input:t}=e,a={contactId:t.contactData.contactId,evolvePatientID:t.flyteUserData.patientId};return await (0,V.Tk)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{guard:"isAthenaRecordCreated",target:"#".concat(ei.CreatePassword)},{target:"#".concat(ei.OnboardingUserError)}],onError:"#".concat(ei.OnboardingUserError)}},[ei.Error]:{on:{SUBMIT:{actions:["assignUserConsentStatus"],target:ei.Submitting}}}}},[ei.CreatePassword]:{id:ei.CreatePassword,initial:ei.Idle,states:{[ei.Idle]:{on:{SUBMIT:{actions:"assignPasswordData",target:ei.Submitting}}},[ei.Submitting]:{invoke:{src:(0,Z.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(ei.AppDownload),onError:{target:ei.Error,actions:"assignError"}}},[ei.Error]:{on:{SUBMIT:{actions:["resetError","assignPasswordData"],target:ei.Submitting}}}}},[ei.OnboardingChecklist]:{id:ei.OnboardingChecklist,on:{SUBMIT:{target:"#".concat(ei.ReviewConsents)}}},[ei.AppDownload]:{id:ei.AppDownload},[ei.ApplicationReview]:{id:ei.ApplicationReview},[ei.OnboardingUserError]:{id:ei.OnboardingUserError},[ei.ApplicationComplete]:{id:ei.ApplicationComplete},[ei.ApplicationDetected]:{id:ei.ApplicationDetected},[ei.EligibilityUnmet]:{id:ei.EligibilityUnmet,initial:ei.Idle,states:{[ei.Idle]:{on:{SUBMIT:{target:ei.Submitting,actions:"updateFormData"}}},[ei.Submitting]:{invoke:{src:(0,Z.p4)(async e=>{let{input:t}=e,a={...t,company:er,leadStatus:_.rl.Ineligible,ineligibilityReason:_.ib.BMI,automateEvolveEnrollment:!1};return await (0,z.$)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:ei.Success,onError:ei.Error}},[ei.Success]:{},[ei.Error]:{on:{SUBMIT:{actions:"updateFormData",target:ei.Submitting}}}}}},on:{RESET:{target:"#".concat(ei.PreEligibility),actions:"reset"}}});var el=a(56344);let ec="https://player.vimeo.com/video/1084676369",ed={[p.J.PreEligibility]:{title:(0,n.jsxs)(o.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(o.TextPairing.Label,{color:"text-primary",children:"Let's make sure you're eligible for the FlyteHealth program."}),(0,n.jsx)(o.TextPairing.SubLabel,{color:"text-secondary",children:"To be eligible for the FlyteHealth program through your Emory Healthcare and Emory University benefits, you must meet specific age and Body Mass Index (BMI)* requirements."})]}),bmiEnrollmentDisclaimer:(0,n.jsx)(o.Text,{variant:"text-body-meta-regular",color:"text-secondary",children:"*We acknowledge that Body Mass Index (BMI) is an imperfect way to screen for excess weight. FlyteHealth providers do not use BMI alone as a measure of overall health. Instead, BMI is used as a data point to see if someone is eligible to join the FlyteHealth program. Once someone joins the program, we'll ask each person more about their health to create a personalized treatment plan."})},[p.J.EligibilityUnmet]:{title:(0,n.jsxs)(o.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(o.TextPairing.Label,{color:"text-secondary-negative",children:"Unfortunately, you are not eligible to join FlyteHealth at this time."}),(0,n.jsx)(o.TextPairing.SubLabel,{color:"text-secondary",children:"The FlyteHealth program requires a minimum BMI of 27+ (plus one or more weight-related health conditions) or a BMI of 30+."})]})},[p.J.ContactDetails]:{title:(0,n.jsxs)(o.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(o.TextPairing.Label,{color:"text-secondary-negative",children:"Congratulations! You're eligible for the FlyteHealth program"}),(0,n.jsx)(o.TextPairing.SubLabel,{color:"text-secondary",children:"To help us match your information with your employer, tell us about yourself. Next, we'll ask about your Aetna Health Plan membership. Be sure to have your insurance card handy."})]})},[p.J.InsuranceDetails]:{title:(0,n.jsxs)(o.Box,{children:[(0,n.jsxs)(o.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsxs)(o.TextPairing.Label,{color:"text-primary",children:[(0,n.jsxs)(o.Text,{display:{base:"inline",lg:"block"},as:"label",variant:"text-header-2XL",color:"text-secondary-negative",children:["One more thing:"," "]}),"What's your Aetna membership number?"]}),(0,n.jsx)(o.TextPairing.SubLabel,{color:"text-secondary",children:"Completing and submitting your lab work is the first and most important step to begin care. This video shows exactly what you need to do and why it matters for your health."})]}),(0,n.jsx)(o.Box,{position:"relative",width:"100%",paddingBottom:"56.25%",overflow:"hidden",borderRadius:"16px",mt:{base:"spacer-5",lg:"spacer-8"},mx:"auto",children:(0,n.jsx)(o.Box,{as:"iframe",position:"absolute",top:"0",left:"0",width:"100%",height:"100%",src:ec,title:"Lab Work Instructional Video",allow:"fullscreen; picture-in-picture",frameBorder:"0"})})]})},[p.J.InsuranceDetailsReview]:{title:(0,n.jsxs)(o.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(o.TextPairing.Label,{children:"Let's review: Is your info correct?"}),(0,n.jsx)(o.TextPairing.SubLabel,{color:"text-secondary",children:"Please double-check the information you provided to make sure everything is correct."})]})},[p.J.ApplicationComplete]:{title:(0,n.jsxs)(o.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(o.TextPairing.Label,{color:"text-secondary-negative",children:"Welcome aboard! We're so excited you're here."}),(0,n.jsx)(o.TextPairing.SubLabel,{color:"text-secondary",children:"Next, we need to confirm your email. Click the link we sent to:"})]}),description:(0,n.jsx)(o.Text,{mt:"spacer-8",color:"text-secondary",variant:"text-body-regular",children:"Can't find the email? Make sure to check your Spam folder."})},[p.J.ApplicationReview]:{title:(0,n.jsxs)(o.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(o.TextPairing.Label,{color:"text-primary",children:"You're almost finished!"}),(0,n.jsx)(o.TextPairing.SubLabel,{color:"text-secondary",children:"We've received your application, but we need a little more information from you to move forward. Please call us to complete the application process."})]})},[p.J.ApplicationDetected]:{title:(0,n.jsx)(o.Text,{variant:"text-header-2XL",color:"text-primary",children:"We found an existing account for:"}),description:(0,n.jsx)(o.Text,{variant:"text-body-display-S",color:"text-secondary",children:"It looks like you already have an account with us. To continue or update your registration details, please contact our Care Coordinator team."})},[p.J.EmailVerification]:el.T[p.J.EmailVerification],[p.J.OnboardingChecklist]:el.T[p.J.OnboardingChecklist],[p.J.CreatePassword]:el.T[p.J.CreatePassword],[p.J.AppDownload]:el.T[p.J.AppDownload],[p.J.ReviewConsents]:el.T[p.J.ReviewConsents]};var eu=a(58976);let ep=[L.Op.BenefitsWebsite,L.Op.CoworkerReferral,L.Op.PrescriptionDenial,L.Op.ProviderReferral,L.Op.WordOfMouth,L.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"},em={[p.J.ContactDetails]:{state:{options:eu.Fp},howDidYouFindUs:{options:ep}},[p.J.InsuranceDetails]:{insuranceMemberID:{...eh,tooltip:(0,n.jsxs)(o.Box,{children:[(0,n.jsx)(o.Text,{variant:"text-body-meta-regular",color:"text-light",children:"Where to find my Membership ID Number:"}),(0,n.jsx)(o.Image,{width:"100%",height:"auto",src:"/static/assets/programs/emory/emory-insurance-card.png",alt:"Member ID guidance"})]}),description:(0,n.jsx)(o.Text,{variant:"text-body-meta-regular",color:"text-secondary",children:"Enter the 10-character Member ID number as displayed on your Aetna Membership ID Card."})}},[p.J.InsuranceDetailsReview]:{insuranceMemberID:eh}},eg=L.kT.Emory,EmoryWorkflow=e=>{let{render:t}=e,[a,i]=(0,T.eO)(es),r=(0,h.useMemo)(()=>(0,B.k)(a.value),[a.value]);(0,P.R)(r,eg);let s=(0,h.useCallback)(e=>{i({type:"SUBMIT",data:e})},[i]),l=(0,h.useCallback)(()=>{i({type:"BACK"})},[i]),c=(0,h.useCallback)(()=>{switch(r){case ei.PreEligibility:return(0,n.jsx)(U.b,{configuration:{contentResources:ed[p.J.PreEligibility]},onSubmit:s});case ei.ContactDetails:return(0,n.jsx)(f.q,{configuration:{contentResources:ed[p.J.ContactDetails],fields:em[p.J.ContactDetails]},onSubmit:s,defaultValues:a.context.formData});case ei.EligibilityUnmet:return(0,n.jsx)(I.X,{configuration:{contentResources:ed[p.J.EligibilityUnmet]},onSubmit:s,loading:a.matches({[ei.EligibilityUnmet]:ei.Submitting}),isEmailSent:a.matches({[ei.EligibilityUnmet]:ei.Success}),hasError:a.matches({[ei.EligibilityUnmet]:ei.Error}),isMobileFooterSticky:!1});case ei.InsuranceDetails:return(0,n.jsx)(w.v,{configuration:{contentResources:ed[p.J.InsuranceDetails],fields:em[p.J.InsuranceDetails]},onSubmit:s,onBack:l});case ei.InsuranceDetailsReview:return(0,n.jsx)(k.b,{configuration:{contentResources:ed[p.J.InsuranceDetailsReview],fields:em[p.J.InsuranceDetailsReview]},onSubmit:s,loading:a.matches({[ei.InsuranceDetailsReview]:ei.Submitting}),hasError:a.matches({[ei.InsuranceDetailsReview]:ei.Error}),defaultValues:a.context.formData});case ei.ApplicationComplete:return(0,n.jsx)(v.J,{...ed[p.J.ApplicationComplete],email:a.context.formData.email});case ei.ApplicationReview:return(0,n.jsx)(y.G,{...ed[p.J.ApplicationReview]});case ei.ApplicationDetected:return(0,n.jsx)(C.v,{...ed[p.J.ApplicationDetected],email:a.context.formData.email});case ei.EmailVerification:return(0,n.jsx)(j.Z,{configuration:{contentResources:{title:ed[p.J.EmailVerification](a.context.formData.email).title}},email:a.context.formData.email,hasError:a.matches({[ei.EmailVerification]:ei.Error}),loading:a.matches({[ei.EmailVerification]:ei.Submitting}),isUpdateEmailLoading:a.matches({[ei.EmailVerification]:{[ei.UpdateEmail]:ei.Idle}}),hasUpdateEmailError:a.matches({[ei.EmailVerification]:{[ei.UpdateEmail]:ei.Error}}),onSubmit:s,onResendCode:e=>i({type:"RESEND_EMAIL_VERIFICATION",data:{onSuccess:e}}),onEditEmail:(e,t)=>i({type:"UPDATE_EMAIL",data:{email:e,onSuccess:t}})});case ei.OnboardingChecklist:return(0,n.jsx)(D.O,{configuration:{contentResources:ed[p.J.OnboardingChecklist]},onSubmit:s});case ei.ReviewConsents:return(0,n.jsx)(R.R,{configuration:{contentResources:ed[p.J.ReviewConsents]},consents:a.context.consentsData.items,hasError:a.matches({[ei.ReviewConsents]:ei.Error}),loading:a.matches({[ei.ReviewConsents]:ei.FetchConsents})||a.matches({[ei.ReviewConsents]:ei.Submitting})||a.matches({[ei.ReviewConsents]:ei.UpdateContact}),onSubmit:s});case ei.CreatePassword:return(0,n.jsx)(A.f,{configuration:{contentResources:ed[p.J.CreatePassword]},loading:a.matches({[ei.CreatePassword]:ei.Submitting}),error:a.context.error,onSubmit:s});case ei.AppDownload:return(0,n.jsx)(b.B,{title:ed[p.J.AppDownload].title,checklist:ed[p.J.AppDownload].checklist});case ei.OnboardingUserError:return(0,n.jsx)(O._,{});default:return null}},[r,a]);return t({header:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.Flex,{gap:"spacer-5",alignItems:"center",children:[(0,n.jsx)(E.E,{partner:L.kT.Flyte}),(0,n.jsx)(o.Divider,{orientation:"vertical",alignSelf:"stretch",height:"auto"}),(0,n.jsx)(E.E,{partner:eg})]}),(0,n.jsx)(S.K,{currentStep:r})]}),body:c(),currentWorkFlowStep:r})};var ex=a(93942),eb=a(35592),ev=a(17219),eC=a(84901),ey=a(16428),eE=a(19474),eS=a(38098),ef=a(79929),eA=a(36045),eI=a(50574),ej=a(87536);let ew="currentWeightInPounds",ek="heightInFoot",eD="heightInInch",eO={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:r,formState:s,setValue:l,watch:c}=(0,ej.cI)({mode:"onBlur"}),d=(0,eI.M)(c(ew)),u=(0,eI.M)(c(ek)),p=(0,eI.M)(c(eD)),m=null===(t=(0,h.useMemo)(()=>d&&u&&p&&(0,ef.V)({weightPounds:d,heightFeet:u,heightInches:p}),[d,u,p]))||void 0===t?void 0:t.toFixed(1),g=(0,eA.T)(ew,s.errors,"validate"),x=(0,eA.T)(ek,s.errors,"validate"),b=(0,eA.T)(eD,s.errors,"validate");return(0,n.jsxs)(o.Flex,{direction:"column",...i,children:[(0,n.jsxs)(o.Flex,{direction:"column",as:"form",children:[(0,n.jsx)(o.Flex,{px:"spacer-8",py:"spacer-4",backgroundColor:"secondary-default",borderTopLeftRadius:"radii-6",borderTopRightRadius:"radii-6",children:(0,n.jsx)(o.Text,{color:"text-light",variant:"text-header-L",children:"BMI Calculator"})}),(0,n.jsxs)(o.Flex,{direction:"column",py:"spacer-8",px:{base:"spacer-5",md:"spacer-8"},backgroundColor:"background-card",borderBottomLeftRadius:"radii-6",borderBottomRightRadius:"radii-6",children:[(0,n.jsxs)(o.Flex,{gap:"spacer-4",children:[(0,n.jsxs)(o.Flex,{direction:"column",gap:"spacer-2",flex:1,children:[(0,n.jsx)(o.Text,{variant:"text-body-medium",color:"text-primary",as:"label",htmlFor:ek,children:"Height (ft)"}),(0,n.jsx)(eu.lm,{unit:"ft",id:ek,isInvalid:x,onInput:e=>l(ek,e.currentTarget.value),...r(ek,{required:!0,validate:e=>{let t=(0,eI.M)(e);return t>=4&&t<=7||eS.x[ek].validate}})})]}),(0,n.jsxs)(o.Flex,{direction:"column",gap:"spacer-2",flex:1,children:[(0,n.jsx)(o.Text,{variant:"text-body-medium",color:"text-primary",as:"label",htmlFor:eD,children:"Height (in)"}),(0,n.jsx)(eu.lm,{unit:"in",id:eD,isInvalid:b,onInput:e=>l(eD,e.currentTarget.value),...r(eD,{required:!0,validate:e=>{let t=(0,eI.M)(e);return t>=0&&t<=11||eS.x[eD].validate}})})]})]}),(x||b)&&(0,n.jsxs)(o.Flex,{gap:"spacer-2",direction:"column",mt:"spacer-2",children:[x&&(0,n.jsx)(eu.VO,{errors:s.errors,name:ek}),b&&(0,n.jsx)(eu.VO,{errors:s.errors,name:eD})]}),(0,n.jsxs)(o.Box,{mb:{base:"spacer-6",md:"spacer-8"},mt:"spacer-4",children:[(0,n.jsx)(o.Text,{variant:"text-body-medium",color:"text-primary",as:"label",htmlFor:ew,children:"Weight (lbs)"}),(0,n.jsx)(eu.CZ,{id:ew,isInvalid:g,mt:"spacer-2",onInput:e=>l(ew,e.currentTarget.value),...r(ew,{required:!0,validate:e=>{let t=(0,eI.M)(e);return t>=1&&t<1e3||eS.x[ew].validate}})}),g&&(0,n.jsx)(o.Box,{mt:"spacer-2",children:(0,n.jsx)(eu.VO,{errors:s.errors,name:ew})})]}),(0,n.jsx)(o.Box,{margin:"0 auto",children:(0,n.jsxs)(o.TextPairing,{variant:{base:"textpairing-body-display-XL",md:"textpairing-body-display-2XL"},children:[(0,n.jsx)(o.TextPairing.Label,{color:"text-primary",children:null!=m?m:"--.--"}),(0,n.jsx)(o.TextPairing.SubLabel,{color:"text-secondary",textAlign:"center",children:"BMI"})]})})]})]}),(0,n.jsx)(o.Tooltip,{label:a,placement:"top",children:(0,n.jsxs)(o.Flex,{gap:"spacer-2",alignItems:"center",mt:"spacer-3",justifyContent:"center",children:[(0,n.jsx)(o.Text,{color:"text-link-accent-default",variant:"text-body-meta-medium",as:"p",children:"Why BMI?"}),(0,n.jsx)(o.IconInfoCircle,{})]})})]})},AetnaSignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[r,s]=(0,h.useState)(!1),[g,x]=(0,h.useState)(!1),{track:b}=(0,c.useAnalytics)(),v=(0,h.useCallback)(()=>{x(!1),s(!1),b(l.U.closeWorkflowEvent)},[]),C=(0,h.useCallback)(()=>x(e=>!e),[]),y=(0,h.useCallback)(e=>{let t=[p.J.ApplicationReview,p.J.ApplicationComplete,p.J.ApplicationDetected,p.J.EligibilityUnmet],a=t.includes(e);a?s(!1):(b(l.U.closeWorkflowConfirmationEvent),C())},[]),E=(0,h.useCallback)(()=>{b(l.U.abortCloseWorkflow),C()},[C,b]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Button,{onClick:()=>s(!0),trailingIcon:(0,n.jsx)(o.IconArrowRight,{}),size:t,children:a,"data-test":"aetnaSignUpLauncher",...i}),r&&(0,n.jsx)(m.U,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,n.jsxs)(d.Eg,{isOpen:!0,onClose:()=>y(i),children:[(0,n.jsx)(d.Eg.Header,{children:t}),(0,n.jsx)(d.Eg.Body,{children:a},i)]})}}),(0,n.jsx)(u.e,{isOpen:g,onContinue:E,onLeave:v})]})},CareCompassSignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[r,s]=(0,h.useState)(!1),[m,x]=(0,h.useState)(!1),{track:b}=(0,c.useAnalytics)(),v=(0,h.useCallback)(()=>{x(!1),s(!1),b(l.U.closeWorkflowEvent)},[]),C=(0,h.useCallback)(()=>x(e=>!e),[]),y=(0,h.useCallback)(e=>{let t=[p.J.ApplicationReview,p.J.ApplicationComplete,p.J.ApplicationDetected,p.J.EligibilityUnmet],a=t.includes(e);a?s(!1):(b(l.U.closeWorkflowConfirmationEvent),C())},[]),E=(0,h.useCallback)(()=>{b(l.U.abortCloseWorkflow),C()},[C,b]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Button,{onClick:()=>s(!0),trailingIcon:(0,n.jsx)(o.IconArrowRight,{}),size:t,children:a,"data-test":"careCompassSignUpLauncher",...i}),r&&(0,n.jsx)(g.$,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,n.jsxs)(d.Eg,{isOpen:!0,onClose:()=>y(i),children:[(0,n.jsx)(d.Eg.Header,{children:t}),(0,n.jsx)(d.Eg.Body,{children:a},i)]})}}),(0,n.jsx)(u.e,{isOpen:m,onContinue:E,onLeave:v})]})},EmorySignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[r,s]=(0,h.useState)(!1),[m,g]=(0,h.useState)(!1),{track:x}=(0,c.useAnalytics)(),b=(0,h.useCallback)(()=>{g(!1),s(!1),x(l.U.closeWorkflowEvent)},[]),v=(0,h.useCallback)(()=>g(e=>!e),[]),C=(0,h.useCallback)(e=>{let t=[p.J.ApplicationReview,p.J.ApplicationComplete,p.J.ApplicationDetected,p.J.EligibilityUnmet,p.J.AppDownload],a=t.includes(e);a?s(!1):(x(l.U.closeWorkflowConfirmationEvent),v())},[]),y=(0,h.useCallback)(()=>{x(l.U.abortCloseWorkflow),v()},[v,x]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Button,{onClick:()=>s(!0),trailingIcon:(0,n.jsx)(o.IconArrowRight,{}),size:t,children:a,"data-test":"emorySignUpLauncher",...i}),r&&(0,n.jsx)(EmoryWorkflow,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,n.jsxs)(d.Eg,{isOpen:!0,onClose:()=>C(i),children:[(0,n.jsx)(d.Eg.Header,{children:t}),(0,n.jsx)(d.Eg.Body,{children:a},i)]})}}),(0,n.jsx)(u.e,{isOpen:m,onContinue:y,onLeave:b})]})},EmoryVideoInstructionsLauncher:e=>{let{videoSrc:t=ec,videoTitle:a="Lab Work Instructional Video",buttonText:i="Watch Our Intro Video",size:r="l",variant:s="primary-alt",...l}=e,[c,d]=(0,h.useState)(!1),u=(0,h.useCallback)(()=>{d(!0)},[]),p=(0,h.useCallback)(()=>{d(!1)},[]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Button,{onClick:u,trailingIcon:(0,n.jsx)(o.IconArrowRight,{}),size:r,variant:s,"data-test":"emoryVideoLauncher",...l,children:i}),(0,n.jsxs)(o.Modal,{isOpen:c,onClose:p,isCentered:!0,children:[(0,n.jsx)(o.Modal.Overlay,{}),(0,n.jsx)(o.Modal.Content,{backgroundColor:"transparent",boxShadow:"none",width:{base:"100%",md:"620px",lg:"687px",xl:"747px",xxl:"804px"},padding:0,margin:0,overflow:"hidden",borderRadius:{base:0,md:"16px"},children:(0,n.jsx)(o.Box,{width:"100%",aspectRatio:"16/9",overflow:"hidden",children:(0,n.jsx)(o.Box,{as:"iframe",width:"100%",height:"100%",src:t,title:a,allow:"fullscreen; picture-in-picture",frameBorder:"0"})})})]})]})},FlyteSignUpLauncher:ex.U,FlyteVideoInstructionsLauncher:e=>{let{videoSrc:t=ec,videoTitle:a="Lab Work Instructional Video",buttonText:i="Watch Our Intro Video",size:r="l",variant:s="primary-alt",...l}=e,[c,d]=(0,h.useState)(!1),u=(0,h.useCallback)(()=>{d(!0)},[]),p=(0,h.useCallback)(()=>{d(!1)},[]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Button,{onClick:u,trailingIcon:(0,n.jsx)(o.IconArrowRight,{}),size:r,variant:s,"data-test":"flyteVideoLauncher",...l,children:i}),(0,n.jsxs)(o.Modal,{isOpen:c,onClose:p,isCentered:!0,children:[(0,n.jsx)(o.Modal.Overlay,{}),(0,n.jsx)(o.Modal.Content,{backgroundColor:"transparent",boxShadow:"none",width:{base:"100%",md:"620px",lg:"687px",xl:"747px",xxl:"804px"},padding:0,margin:0,overflow:"hidden",borderRadius:{base:0,md:"16px"},children:(0,n.jsx)(o.Box,{width:"100%",aspectRatio:"16/9",overflow:"hidden",children:(0,n.jsx)(o.Box,{as:"iframe",width:"100%",height:"100%",src:t,title:a,allow:"fullscreen; picture-in-picture",frameBorder:"0"})})})]})]})},RiverspringSignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[r,s]=(0,h.useState)(!1),[m,g]=(0,h.useState)(!1),{track:x}=(0,c.useAnalytics)(),b=(0,h.useCallback)(()=>{g(!1),s(!1),x(l.U.closeWorkflowEvent)},[]),v=(0,h.useCallback)(()=>g(e=>!e),[]),C=(0,h.useCallback)(e=>{let t=[p.J.ApplicationReview,p.J.ApplicationComplete,p.J.ApplicationDetected,p.J.EligibilityUnmet,p.J.AppDownload],a=t.includes(e);a?s(!1):(x(l.U.closeWorkflowConfirmationEvent),v())},[]),y=(0,h.useCallback)(()=>{x(l.U.abortCloseWorkflow),v()},[v,x]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Button,{onClick:()=>s(!0),trailingIcon:(0,n.jsx)(o.IconArrowRight,{}),size:t,children:a,"data-test":"riverspringSignUpLauncher",...i}),r&&(0,n.jsx)(ey.l,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,n.jsxs)(d.Eg,{isOpen:!0,onClose:()=>C(i),children:[(0,n.jsx)(d.Eg.Header,{children:t}),(0,n.jsx)(d.Eg.Body,{children:a},i)]})}}),(0,n.jsx)(u.e,{isOpen:m,onContinue:y,onLeave:b})]})},PequotSignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[r,s]=(0,h.useState)(!1),[m,g]=(0,h.useState)(!1),{track:x}=(0,c.useAnalytics)(),b=(0,h.useCallback)(()=>{g(!1),s(!1),x(l.U.closeWorkflowEvent)},[]),v=(0,h.useCallback)(()=>g(e=>!e),[]),C=(0,h.useCallback)(e=>{let t=[p.J.ApplicationReview,p.J.ApplicationComplete,p.J.ApplicationDetected,p.J.EligibilityUnmet,p.J.AppDownload],a=t.includes(e);a?s(!1):(x(l.U.closeWorkflowConfirmationEvent),v())},[]),y=(0,h.useCallback)(()=>{x(l.U.abortCloseWorkflow),v()},[v,x]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Button,{onClick:()=>s(!0),trailingIcon:(0,n.jsx)(o.IconArrowRight,{}),size:t,children:a,"data-test":"pequotSignUpLauncher",...i}),r&&(0,n.jsx)(ev.u,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,n.jsxs)(d.Eg,{isOpen:!0,onClose:()=>C(i),children:[(0,n.jsx)(d.Eg.Header,{children:t}),(0,n.jsx)(d.Eg.Body,{children:a},i)]})}}),(0,n.jsx)(u.e,{isOpen:m,onContinue:y,onLeave:b})]})},PyleSignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[r,s]=(0,h.useState)(!1),[m,g]=(0,h.useState)(!1),{track:x}=(0,c.useAnalytics)(),b=(0,h.useCallback)(()=>{g(!1),s(!1),x(l.U.closeWorkflowEvent)},[]),v=(0,h.useCallback)(()=>g(e=>!e),[]),C=(0,h.useCallback)(e=>{let t=[p.J.ApplicationReview,p.J.ApplicationDetected,p.J.EligibilityUnmet],a=t.includes(e);a?s(!1):(x(l.U.closeWorkflowConfirmationEvent),v())},[]),y=(0,h.useCallback)(()=>{x(l.U.abortCloseWorkflow),v()},[v,x]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Button,{onClick:()=>s(!0),trailingIcon:(0,n.jsx)(o.IconArrowRight,{}),size:t,children:a,"data-test":"pyleSignUpLauncher",...i}),r&&(0,n.jsx)(eC.u,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,n.jsxs)(d.Eg,{isOpen:!0,onClose:()=>C(i),children:[(0,n.jsx)(d.Eg.Header,{children:t}),(0,n.jsx)(d.Eg.Body,{children:a},i)]})}}),(0,n.jsx)(u.e,{isOpen:m,onContinue:y,onLeave:b})]})},SEIUSignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[r,s]=(0,h.useState)(!1),[m,g]=(0,h.useState)(!1),{track:x}=(0,c.useAnalytics)(),b=(0,h.useCallback)(()=>{g(!1),s(!1),x(l.U.closeWorkflowEvent)},[]),v=(0,h.useCallback)(()=>g(e=>!e),[]),C=(0,h.useCallback)(e=>{let t=[p.J.ApplicationReview,p.J.ApplicationComplete,p.J.ApplicationDetected,p.J.EligibilityUnmet,p.J.AppDownload],a=t.includes(e);a?s(!1):(x(l.U.closeWorkflowConfirmationEvent),v())},[]),y=(0,h.useCallback)(()=>{x(l.U.abortCloseWorkflow),v()},[v,x]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Button,{onClick:()=>s(!0),trailingIcon:(0,n.jsx)(o.IconArrowRight,{}),size:t,children:a,"data-test":"seiuSignUpLauncher",...i}),r&&(0,n.jsx)(eE.N,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,n.jsxs)(d.Eg,{isOpen:!0,onClose:()=>C(i),children:[(0,n.jsx)(d.Eg.Header,{children:t}),(0,n.jsx)(d.Eg.Body,{children:a},i)]})}}),(0,n.jsx)(u.e,{isOpen:m,onContinue:y,onLeave:b})]})},MDSaveSignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[r,s]=(0,h.useState)(!1),[m,g]=(0,h.useState)(!1),{track:x}=(0,c.useAnalytics)(),b=(0,h.useCallback)(()=>{g(!1),s(!1),x(l.U.closeWorkflowEvent)},[]),v=(0,h.useCallback)(()=>g(e=>!e),[]),C=(0,h.useCallback)(e=>{let t=[p.J.ApplicationReview,p.J.ApplicationDetected,p.J.EligibilityUnmet],a=t.includes(e);a?s(!1):(x(l.U.closeWorkflowConfirmationEvent),v())},[]),y=(0,h.useCallback)(()=>{x(l.U.abortCloseWorkflow),v()},[v,x]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Button,{onClick:()=>s(!0),trailingIcon:(0,n.jsx)(o.IconArrowRight,{}),size:t,children:a,"data-test":"mdSaveSignUpLauncher",...i}),r&&(0,n.jsx)(eb.t,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,n.jsxs)(d.Eg,{isOpen:!0,onClose:()=>C(i),children:[(0,n.jsx)(d.Eg.Header,{children:t}),(0,n.jsx)(d.Eg.Body,{children:a},i)]})}}),(0,n.jsx)(u.e,{isOpen:m,onContinue:y,onLeave:b})]})},ChristianaCareSignUpLauncher:e=>{let{size:t="l",children:a="Get Started",...i}=e,[r,s]=(0,h.useState)(!1),[m,g]=(0,h.useState)(!1),{track:b}=(0,c.useAnalytics)(),v=(0,h.useCallback)(()=>{g(!1),s(!1),b(l.U.closeWorkflowEvent)},[]),C=(0,h.useCallback)(()=>g(e=>!e),[]),y=(0,h.useCallback)(e=>{let t=[p.J.ApplicationReview,p.J.ApplicationComplete,p.J.ApplicationDetected,p.J.EligibilityUnmet,p.J.AppDownload],a=t.includes(e);a?s(!1):(b(l.U.closeWorkflowConfirmationEvent),C())},[]),E=(0,h.useCallback)(()=>{b(l.U.abortCloseWorkflow),C()},[C,b]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.Button,{onClick:()=>s(!0),trailingIcon:(0,n.jsx)(o.IconArrowRight,{}),size:t,children:a,"data-test":"christianaCareSignUpLauncher",...i}),r&&(0,n.jsx)(x.k,{render:e=>{let{header:t,body:a,currentWorkFlowStep:i}=e;return(0,n.jsxs)(d.Eg,{isOpen:!0,onClose:()=>y(i),children:[(0,n.jsx)(d.Eg.Header,{children:t}),(0,n.jsx)(d.Eg.Body,{children:a},i)]})}}),(0,n.jsx)(u.e,{isOpen:m,onContinue:E,onLeave:v})]})},PartnerLandingNavigation:e=>{let{children:t,...a}=e,i=(0,o.useScrollPosition)(),r=(0,o.useBreakpointValue)({base:!0,md:!1}),s=i>400,l=(0,h.useMemo)(()=>{let e=[],a=null;return h.Children.forEach(t,t=>{(0,h.isValidElement)(t)&&(t.type===o.Image?e.push(t):a||(a=t))}),{images:e,launcher:a}},[t]),[c,d]=l.images;return(0,n.jsx)(o.Flex,{as:"nav",backgroundColor:"background-page",position:"sticky",top:"0",zIndex:10,width:"100%",height:"84px",children:(0,n.jsxs)(o.Flex,{alignItems:"center",justifyContent:"space-between",width:"100%",height:"100%",maxWidth:"1440px",margin:"0 auto",py:{base:"spacer-2",lg:"spacer-4"},px:{base:"spacer-8",lg:"spacer-16",xl:"spacer-24",xxl:"spacer-32"},...a,children:[(0,n.jsxs)(o.Flex,{gap:"spacer-5",alignItems:"center",children:[c,(0,n.jsx)(o.Fade,{in:!r||i<=400,unmountOnExit:!0,children:(0,n.jsxs)(o.Flex,{gap:"spacer-5",alignItems:"center",children:[(0,n.jsx)(o.Divider,{orientation:"vertical",height:"52px"}),d]})})]}),s&&l.launcher&&(0,n.jsx)(o.Fade,{in:s,children:l.launcher})]})})}};var eU=a(92041),eR=a(9008),eP=a.n(eR);let Page=e=>{let{content:t,title:a,metaConfiguration:i,theme:r}=e,l=Object.values(null!=i?i:{}),c=a||l.length>0;return(0,n.jsxs)(o.ComposerProvider,{theme:{...r,...eU.C},children:[c&&(0,n.jsxs)(eP(),{children:[(0,n.jsx)("title",{children:a}),l.map(e=>{let t={[e.propertyName]:e.propertyValue,content:e.content};return(0,n.jsx)("meta",{...t},e.propertyValue)})]}),null==t?void 0:t.map((e,t)=>(0,n.jsx)(s._E,{content:e,componentMap:eO},t))]})}}}]);