"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[251],{95875:function(e,t,i){i.d(t,{U:function(){return r}});var a=i(10265);let r={[a.JJ.PreEligibility]:"pre_eligibility",[a.JJ.ContactDetails]:"contact_details",[a.JJ.InsuranceDetails]:"insurance_details",[a.JJ.InsuranceDetailsReview]:"insurance_details_review",[a.JJ.ApplicationReview]:"application_review",[a.JJ.ApplicationComplete]:"application_complete",[a.JJ.EligibilityUnmet]:"eligibility_unmet",[a.JJ.ApplicationDetected]:"account_already_exists",closeWorkflowEvent:"eligibility_signup_closed",openPartnerSelectorEvent:"partner_selector_opened",closeWorkflowConfirmationEvent:"eligibility_signup_cancel_confirmation_screen",abortCloseWorkflow:"eligibility_signup_cancel_aborted",phoneNumberClicked:"contact_phone_clicked"}},4e4:function(e,t,i){i.d(t,{o:function(){return checkBenefits}});var a=i(78260),r=i(29262);let n={name:"Flyte Medical",npi:"1992372403"},serializeBenefitsCheck=e=>{let{payerCode:t,firstName:i,lastName:a,birthdate:o,insuranceMemberID:l,provider:s}=e;return{payer:{payerCode:t},patient:{firstName:i,lastName:a,dateOfBirth:(0,r.f)(o),memberId:l},provider:s||n}},checkBenefits=async e=>{try{let t=serializeBenefitsCheck(e),i=await a.Z.post("/api/benefits/check",t);return i}catch(e){throw e}}},78260:function(e,t,i){i.d(t,{Z:function(){return n}});var a=i(5121);let r=a.Z.create();var n=r},76364:function(e,t,i){i.d(t,{m:function(){return checkEligibility}});var a=i(78260),r=i(29262);let serializeEligibilityCheck=e=>{let{firstName:t,lastName:i,birthdate:a,insuranceMemberID:n,insuranceProviderName:o,benefitProgram:l}=e;return{firstName:t,lastName:i,dateOfBirth:(0,r.f)(a),memberId:n,insurer:o,employerProgram:l}},checkEligibility=async e=>{try{let t=serializeEligibilityCheck(e),i=await a.Z.post("/api/eligibility/check",t);return i}catch(e){throw e}}},20893:function(e,t,i){i.d(t,{$:function(){return createLead}});var a=i(78260),r=i(52766),n=i(18398);let normalizePhoneNumber=e=>{let t=(0,n.h)(e,"US");return t.nationalNumber},normalizeBenefitsCheck=e=>({pvRequestID:e.checkId,pvStartDateOfService:e.startDateOfService,pvEndDateOfService:e.endDateOfService,pvPayerName:e.payer.payerName,pvSubscriberFullName:e.patient.fullName,pvMemberID:e.patient.memberId,pvEffectiveDate:e.coverage.effectiveDate,pvExpiryDate:e.coverage.expiryDate,pvStatus:e.coverage.status,pvPolicyType:e.coverage.policyType,pvGroupNumber:e.coverage.groupNumber,pvPlanName:e.coverage.planName,pvPlanNumber:e.coverage.planNumber,pvErrorDescription:e.errorDescription,pvEligibilityResult:e.eligibilityResult,pvDetailsURL:e.detailsUrl}),serializeLead=e=>{let{birthdate:t,currentWeightInPounds:i,highestWeightInPounds:a,dateOfHighestWeightValue:n,heightInFoot:o,heightInInch:l,phone:s,insuranceCoverage:c,insuranceMemberID:d,state:u,benefitProgram:m,howDidYouFindUS:g,firstName:h,lastName:p,ssn:x,benefitsCheck:b,eligibilityVerifiedBy:y,...v}=e;return{...v,birthdate:(0,r.f1)(t),currentWeightInPounds:(0,r.MC)(i),highestWeightInPounds:(0,r.MC)(a),dateOfHighestWeightValue:"".concat(n,"-01-01"),heightInFoot:(0,r.MC)(o),...l&&{heightInInch:(0,r.MC)(l)},...d&&{insuranceMemberID:d},...s&&{phone:normalizePhoneNumber(s)},...g&&{howDidYouFindUS:g},...h&&{firstName:h},...p&&{lastName:p},...u&&{state:u},...b&&{...normalizeBenefitsCheck(b)},...y&&{eligibilityVerifiedBy:y}}},createLead=async e=>{try{let t=serializeLead(e),i=await a.Z.post("/api/lead",t);return i}catch(e){throw e}}},28588:function(e,t,i){i.d(t,{J:function(){return ApplicationComplete}});var a=i(85893),r=i(71986),n=i(57087),o=i(25675),l=i.n(o),s=i(42575),c=i(76849),d=i(93773);let ApplicationComplete=e=>{let{title:t,email:i,description:o}=e,u=(0,s.d)();return(0,a.jsxs)(n.D,{gap:{lg:"spacer-16",xl:"spacer-18",xxl:"spacer-64"},alignItems:"start","data-test":d.J.ApplicationComplete,children:[(0,a.jsxs)(r.Flex,{direction:"column",justifyContent:{lg:"space-between"},height:"100%",children:[(0,a.jsxs)(r.Box,{children:[t,(0,a.jsx)(r.Box,{backgroundColor:"background-container-active",px:"spacer-7",py:"spacer-6",borderRadius:"radii-2",mt:"spacer-7",display:{base:"block",lg:"inline-block"},children:(0,a.jsx)(r.Text,{variant:"text-header-M",children:i})}),o]}),(0,a.jsxs)(r.Box,{children:[(0,a.jsx)(r.Text,{mt:"spacer-16",color:"text-secondary",variant:"text-body-bold",children:"Need some help?"}),(0,a.jsxs)(r.Text,{color:"text-secondary",variant:"text-body-regular",mt:"spacer-1",children:["Please call ",(0,a.jsx)(c.R,{fontWeight:"thin"})," to speak with a Care Coordinator."]})]})]}),!u&&(0,a.jsx)(l(),{alt:"Application Complete",width:340,height:340,src:"/static/assets/application-complete.png"})]})}},4225:function(e,t,i){i.d(t,{v:function(){return ApplicationDetected}});var a=i(85893),r=i(71986),n=i(57087),o=i(25675),l=i.n(o),s=i(42575),c=i(76849),d=i(93773);let ApplicationDetected=e=>{let{title:t,email:i,description:o}=e,u=(0,s.d)();return(0,a.jsxs)(n.D,{gap:{lg:"spacer-16",xl:"spacer-18",xxl:"spacer-64"},alignItems:"start","data-test":d.J.ApplicationDetected,children:[(0,a.jsxs)(r.Flex,{direction:"column",justifyContent:{lg:"space-between"},height:"100%",children:[(0,a.jsxs)(r.Flex,{gap:"spacer-6",direction:"column",children:[t,(0,a.jsx)(r.Box,{alignSelf:{lg:"start"},backgroundColor:"background-container-active",px:"spacer-7",py:"spacer-6",borderRadius:"radii-2",display:{base:"block",lg:"inline-block"},children:(0,a.jsx)(r.Text,{variant:"text-header-M",children:i})}),o]}),(0,a.jsxs)(c.R,{mt:"spacer-7",size:"l",leadingIcon:(0,a.jsx)(r.IconPhone,{}),"aria-label":"Contact Us",variant:"primary-alt",isInline:!1,justifyContent:"center",alignSelf:"start",children:["Call ",c._.formatted]})]}),!u&&(0,a.jsx)(l(),{alt:"Application Detected",width:340,height:340,src:"/static/assets/application-detected.png"})]})}},9941:function(e,t,i){i.d(t,{G:function(){return ApplicationReview}});var a=i(85893),r=i(71986),n=i(57087),o=i(25675),l=i.n(o),s=i(76849),c=i(93773),d=i(42575);let ApplicationReview=e=>{let{title:t,note:i}=e,o=(0,d.d)();return(0,a.jsxs)(n.D,{gap:{lg:"spacer-16",xl:"spacer-18",xxl:"spacer-64"},alignItems:"start","data-test":c.J.ApplicationReview,children:[(0,a.jsxs)(r.Flex,{direction:"column",gap:"spacer-7",children:[t,(0,a.jsxs)(s.R,{size:"l",leadingIcon:(0,a.jsx)(r.IconPhone,{}),"aria-label":"Contact Us",variant:"primary-alt",isInline:!1,justifyContent:"center",alignSelf:"start",children:["Call ",s._.formatted]}),i]}),!o&&(0,a.jsx)(l(),{alt:"Application Review",width:340,height:340,src:"/static/assets/application-review.png"})]})}},78430:function(e,t,i){i.d(t,{e:function(){return ConfirmationExitModal}});var a=i(85893),r=i(67294),n=i(71986);let ConfirmationExitModal=e=>{let{isOpen:t,onLeave:i,onContinue:o}=e,l=(0,r.useRef)(null);return(0,a.jsxs)(n.Modal,{isOpen:t,onClose:o,autoFocus:!1,isCentered:!0,initialFocusRef:l,children:[(0,a.jsx)(n.Modal.Overlay,{}),(0,a.jsxs)(n.Modal.Content,{px:"spacer-7",py:"spacer-6",gap:"spacer-7",mx:{base:"spacer-9",md:0},maxWidth:"26.25rem",children:[(0,a.jsxs)(n.Modal.Body,{p:0,children:[(0,a.jsx)(n.Text,{variant:"text-body-large-bold",children:"Are you sure you want to leave?"}),(0,a.jsx)(n.Text,{color:"text-secondary",variant:"text-body-regular",children:"You haven't finished signing up. If you leave, all information will be cleared."})]}),(0,a.jsxs)(n.Modal.Footer,{flexDirection:{base:"column",md:"row-reverse"},gap:"spacer-4",p:0,children:[(0,a.jsx)(n.Button,{variant:"secondary",size:"m",flex:1,width:"100%",onClick:o,ref:l,children:"Continue signing up"}),(0,a.jsx)(n.Button,{variant:"destroy",size:"m",flex:1,width:"100%",onClick:i,children:"Leave now"})]})]})]})}},22390:function(e,t,i){i.d(t,{$S:function(){return PhoneField},u8:function(){return ReferrerSelector},KP:function(){return TermsAgreementField}});var a=i(85893),r=i(71986),n=i(41209),o=i(58278),l=i(47209),s=i(87536),c=i(37887),d=i(98951);let u="phone",PhoneField=e=>{let{isDisabled:t,...i}=e,{register:m,setValue:g,formState:{errors:h}}=(0,s.Gc)(),p=(0,l.T)(u,h,"validate");return(0,a.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",...i,children:[(0,a.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:u,children:"Mobile phone"}),(0,a.jsx)(n.sb,{"data-test":u,id:u,isInvalid:p,isDisabled:t,onInput:e=>g(u,e.currentTarget.value),...m(u,{required:!0,validate:e=>(0,c.Z)(e,"US",d.Z)||o.x[u].validate})}),p&&(0,a.jsx)(n.VO,{errors:h,name:u})]})},m="howDidYouFindUS",g=["Brochure","Company Intranet","Email","Employee Referral","Epic EHR Referral","Frame Fertility","Google Ad","Mailer","Nuvance Rhinebeck","Onsite Monitor","Other","Poster","Print Ad","Professional Referral","Provider Referral","Quantum Health","Social Media","TV Ad","Trade Show","Upswing Health","Web Search","Website","Word of Mouth"],ReferrerSelector=e=>{let{isDisabled:t}=e,{register:i,watch:n}=(0,s.Gc)();return(0,a.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",children:[(0,a.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:m,children:"How did you hear about us?"}),(0,a.jsx)(r.Select,{"data-test":m,id:m,size:"l",variant:"flushed",placeholder:"Select",isDisabled:t,...i(m,{required:!0}),value:n(m),children:g.map(e=>(0,a.jsx)("option",{value:e,children:e},e))})]})},h="termsAgreement",TermsAgreementField=e=>{let{isDisabled:t,...i}=e,{register:n}=(0,s.Gc)();return(0,a.jsxs)(r.Flex,{direction:"row",gap:"spacer-2",...i,children:[(0,a.jsx)(r.Checkbox,{"data-test":h,size:{base:"l",lg:"m"},"aria-label":"I agree to the terms",isDisabled:t,...n(h,{required:!0})}),(0,a.jsxs)(r.Text,{variant:"text-body-regular",color:"text-secondary",children:["I have read and agree to the\xa0",(0,a.jsx)(r.Link,{fontWeight:"thin",variant:"link-primary",isInline:!0,isExternal:!0,href:"https://www.flytehealth.com/terms/#elementor-toc__heading-anchor-2",children:"Terms of Service"}),",\xa0",(0,a.jsx)(r.Link,{fontWeight:"thin",variant:"link-primary",isInline:!0,isExternal:!0,href:"https://www.flytehealth.com/terms/#elementor-toc__heading-anchor-3",children:"Privacy Policy"}),"\xa0&\xa0",(0,a.jsx)(r.Link,{fontWeight:"thin",variant:"link-primary",isInline:!0,href:"https://www.flytehealth.com/terms/#elementor-toc__heading-anchor-4",isExternal:!0,children:"Notice of Privacy Practice"}),"."]})]})}},79447:function(e,t,i){i.d(t,{q:function(){return ContactDetailsForm}});var a=i(85893),r=i(71986),n=i(87536),o=i(41209),l=i(57087),s=i(22390),c=i(42575),d=i(42811);let u="state",USStateSelector=e=>{let{isDisabled:t,options:i,...o}=e,{register:l,watch:s}=(0,n.Gc)();return(0,a.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",...o,children:[(0,a.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:u,children:"State"}),(0,a.jsx)(d.e,{"data-test":u,id:u,isDisabled:t,...l(u,{required:!0}),value:s(u),options:i})]})};var m=i(58278),g=i(47209),h=i(17207);let SsnField=e=>{let{isDisabled:t,...i}=e,{register:l,setValue:s,formState:{errors:c}}=(0,n.Gc)(),d=(0,g.T)("ssn",c,["minLength","maxLength"]);return(0,a.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",...i,children:[(0,a.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:"ssn",children:"Social Security Number"}),(0,a.jsx)(r.Text,{variant:"text-body-meta-regular",color:"text-secondary",children:"Last 4 Digits of your Social Security Number"}),(0,a.jsx)(h.T,{"data-test":"ssn",id:"ssn",isInvalid:d,isDisabled:t,onInput:e=>s("ssn",e.currentTarget.value),...l("ssn",{required:!0,minLength:{value:4,message:m.x.ssn.minLength},maxLength:{value:4,message:m.x.ssn.maxLength}})}),d&&(0,a.jsx)(o.VO,{errors:c,name:"ssn"})]})},ContactDetailsForm=e=>{let{configuration:t,loading:i=!1,onSubmit:d,defaultValues:u}=e,{contentResources:m,fields:g}=t,h=(0,n.cI)({mode:"onBlur",defaultValues:u}),p=(0,c.d)(),renderFormAction=()=>(0,a.jsx)(r.Button,{type:"submit",size:{base:"m",lg:"l"},isDisabled:!h.formState.isValid,width:"100%",isLoading:i,trailingIcon:(0,a.jsx)(r.IconArrowRight,{}),"aria-label":"Continue",children:"Continue"});return(0,a.jsx)(n.RV,{...h,children:(0,a.jsxs)(l.S,{as:"form",onSubmit:h.handleSubmit(d),noValidate:!0,children:[(0,a.jsx)(l.S.Side,{gap:0,children:m.title}),(0,a.jsxs)(l.S.Form,{children:[(0,a.jsx)(o.dO,{isDisabled:i}),(null==g?void 0:g.ssn)&&(0,a.jsx)(SsnField,{isDisabled:i}),(0,a.jsx)(o.s8,{isDisabled:i}),(0,a.jsxs)(r.Flex,{direction:{base:"column",lg:"row"},gap:"spacer-9",children:[(0,a.jsx)(s.$S,{isDisabled:i,flex:1}),(null==g?void 0:g.state)&&(0,a.jsx)(USStateSelector,{isDisabled:i,flex:1,options:g.state.options})]}),(0,a.jsx)(s.u8,{isDisabled:i}),(0,a.jsx)(s.KP,{isDisabled:i,pb:{base:"spacer-24",lg:0}}),p?(0,a.jsx)(o.D2,{children:renderFormAction()}):renderFormAction()]})]})})}},55632:function(e,t,i){i.d(t,{X:function(){return EligibilityUnmetForm}});var a=i(85893),r=i(71986),n=i(87536),o=i(41209),l=i(57087),s=i(42575),c=i(93773);let EligibilityUnmetForm=e=>{let{configuration:t,loading:i=!1,isEmailSent:d=!1,hasError:u=!1,isMobileFooterSticky:m=!0,onSubmit:g}=e,{contentResources:h}=t,p=(0,n.cI)({mode:"onBlur"}),x=(0,s.d)(),renderFormAction=()=>(0,a.jsx)(r.Button,{type:"submit",size:{base:"m",lg:"l"},isDisabled:!p.formState.isValid||d,width:"100%",isLoading:i,"aria-label":"Keep me posted",children:"Keep me posted"});return(0,a.jsx)(n.RV,{...p,children:(0,a.jsxs)(l.S,{as:"form",onSubmit:p.handleSubmit(g),noValidate:!0,"data-test":c.J.EligibilityUnmet,children:[(0,a.jsx)(l.S.Side,{children:h.title}),(0,a.jsxs)(l.S.Form,{pb:{base:"spacer-24",lg:0},children:[h.alert,(0,a.jsxs)(r.TextPairing,{variant:"textpairing-header-L",children:[(0,a.jsx)(r.TextPairing.Label,{children:"We work hard to try to offer our services to everyone who wants them."}),(0,a.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"Please provide your contact information so we can get in touch if our criteria change and you become eligible to join."})]}),(0,a.jsx)(o.dO,{isDisabled:i||d}),(0,a.jsx)(o.s8,{isDisabled:i||d}),x&&m?(0,a.jsx)(o.D2,{children:renderFormAction()}):renderFormAction(),d&&(0,a.jsxs)(r.Alert,{status:"success",variant:"subtle",children:[(0,a.jsx)(r.Alert.Icon,{}),(0,a.jsxs)(r.Box,{children:[(0,a.jsx)(r.Alert.Title,{children:(0,a.jsx)(r.Text,{variant:"text-body-bold",children:"Email received"})}),(0,a.jsx)(r.Alert.Description,{children:(0,a.jsx)(r.Text,{variant:"text-body-regular",children:"We'll keep you up to date on our latest news and will send you an email if you become eligible to join."})})]})]}),u&&(0,a.jsxs)(r.Alert,{status:"error",variant:"subtle",children:[(0,a.jsx)(r.Alert.Icon,{}),(0,a.jsx)(r.Alert.Title,{children:"There was an error submitting your information. Please review the email address above and try again."})]})]})]})})}},91176:function(e,t,i){i.d(t,{vu:function(){return InsuranceCarrierSelector},nK:function(){return InsuranceCoverageField},nB:function(){return InsuranceMemberIdField},OF:function(){return s},o0:function(){return d},rI:function(){return h}});var a=i(85893),r=i(71986),n=i(15615),o=i(67294),l=i(87536);let s="insuranceProviderName",c=Object.values(n.PF).filter(e=>e!==n.PF.SelfPay),InsuranceCarrierSelector=e=>{let{isRequired:t=!0,isDisabled:i=!1,defaultSelectedItem:n,insuranceCarriers:d=c,...u}=e,[m,g]=(0,o.useState)(d),{control:h,watch:p}=(0,l.Gc)();return(0,a.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",...u,children:[(0,a.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:s,children:"Name of the insurer"}),(0,a.jsx)(l.Qr,{control:h,name:s,rules:{required:t},render:e=>{let{field:{onChange:t,onBlur:o}}=e;return(0,a.jsxs)(r.Autocomplete,{id:"".concat(s,"-autocomplete"),items:m,onInputValueChange:e=>{let{inputValue:i}=e;if(!i){g(d),t(i);return}g(d.filter(e=>null==e?void 0:e.toLowerCase().includes(i.toLowerCase())))},onSelectedItemChange:e=>{let{selectedItem:i}=e;return t(i)},initialSelectedItem:n,selectedItem:p(s)||"",children:[(0,a.jsx)(r.Autocomplete.Input,{"data-test":s,id:s,size:"l",placeholder:"Select your insurance carrier",clearButtonMode:i?"never":"has-value",leadingIcon:(0,a.jsx)(r.IconSearch,{}),variant:"flushed",isDisabled:i,onBlur:o}),(0,a.jsx)(r.Autocomplete.List,{"data-test":"".concat(s,"List"),zIndex:2,renderItem:e=>(0,a.jsx)(r.Text,{variant:"text-body-regular",children:e}),overflowY:"auto",maxHeight:"13.5rem"})]})}})]})},d="insuranceCoverage",InsuranceCoverageField=e=>{let{isDisabled:t}=e,{register:i}=(0,l.Gc)();return(0,a.jsxs)(r.Flex,{direction:"column",gap:"spacer-4",children:[(0,a.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",children:"Do you have insurance coverage?"}),(0,a.jsxs)(r.RadioGroup,{display:"flex",flexDirection:"column",gap:"spacer-4",isDisabled:t,"data-test":d,children:[(0,a.jsx)(r.Radio,{value:n.eF.Insured,size:"m",...i(d,{required:!0}),children:"Yes, I'd like to check if my insurance can help cover the cost"}),(0,a.jsx)(r.Radio,{value:n.eF.SelfPay,size:"m",...i(d),children:"No, I will pay for it myself"})]})]})};var u=i(41209),m=i(5487),g=i(47209);let h="insuranceMemberID",InsuranceMemberIdField=e=>{let{label:t="Insurance Member ID",placeholder:i,description:n,tooltip:o,type:s,maxLength:c,minLength:d,maskOptions:p,inputMode:x,registerOptions:b,isDisabled:y=!1,isRequired:v=!0,...f}=e,{setValue:I,register:C,formState:{errors:D}}=(0,l.Gc)(),j=(0,g.T)(h,D,["minLength","maxLength","pattern"]);return(0,a.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",...f,children:[(0,a.jsxs)(r.Box,{children:[(0,a.jsxs)(r.Flex,{gap:"spacer-2",alignItems:"center",children:[(0,a.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:h,children:t}),o&&(0,a.jsx)(r.Tooltip,{label:o,placement:"auto-end",children:(0,a.jsx)(r.Flex,{children:(0,a.jsx)(r.IconInfoCircle,{size:"m",color:"text-link-primary-default"})})})]}),n]}),(0,a.jsx)(m.o,{"data-test":h,id:h,isInvalid:j,isDisabled:y,placeholder:i,type:s,inputMode:x,maxLength:c,minLength:d,maskOptions:p,onInput:e=>{let t=e.currentTarget.value,i=!d||d&&t.length>=d;I(h,t,{shouldValidate:i})},...C(h,{required:v,...b})}),j&&(0,a.jsx)(u.VO,{errors:D,name:h})]})}},21954:function(e,t,i){i.d(t,{v:function(){return InsuranceDetailsForm}});var a=i(85893),r=i(71986),n=i(67294),o=i(87536),l=i(41209),s=i(57087),c=i(91176),d=i(42575),u=i(15615);let InsuranceDetailsForm=e=>{let{configuration:t,loading:i=!1,onSubmit:m,onBack:g}=e,{contentResources:h,fields:p}=t,x=(0,o.cI)({mode:"onBlur",defaultValues:{insuranceCoverage:void 0,insuranceMemberID:"",insuranceProviderName:void 0}}),b=(0,d.d)(),y=x.watch(c.o0)===u.eF.SelfPay,v=x.watch(c.OF)===u.PF.Other;(0,n.useEffect)(()=>{y&&x.resetField(c.OF),(y||v)&&x.resetField(c.rI)},[y,v,x]);let renderFormActions=()=>(0,a.jsxs)(r.Flex,{gap:{base:"spacer-8",md:"spacer-16"},alignItems:"center",flex:{base:1,lg:"unset"},children:[(0,a.jsx)(r.Button,{size:{base:"m",lg:"l"},isLoading:i,variant:"link","aria-label":"Back",leadingIcon:(0,a.jsx)(r.IconArrowLeft,{}),onClick:g,children:"Back"}),(0,a.jsx)(r.Button,{type:"submit",size:{base:"m",lg:"l"},isDisabled:!x.formState.isValid,flex:1,isLoading:i,trailingIcon:(0,a.jsx)(r.IconArrowRight,{}),"aria-label":"Continue",children:"Continue"})]});return(0,a.jsx)(o.RV,{...x,children:(0,a.jsxs)(s.S,{as:"form",onSubmit:x.handleSubmit(m),noValidate:!0,children:[(0,a.jsx)(s.S.Side,{gap:0,flex:{base:"none",lg:1},children:h.title}),(0,a.jsxs)(s.S.Form,{children:[(null==p?void 0:p.insuranceCoverage)&&(0,a.jsx)(c.nK,{isDisabled:i}),(null==p?void 0:p.insuranceProviderName)&&(0,a.jsx)(c.vu,{isDisabled:i||y,isRequired:!y,...null==p?void 0:p.insuranceProviderName},y.toString()),(0,a.jsx)(c.nB,{isDisabled:i||y||v,isRequired:!y&&!v,pb:{base:"spacer-24",lg:0},...null==p?void 0:p.insuranceMemberID}),b?(0,a.jsx)(l.D2,{children:renderFormActions()}):renderFormActions()]})]})})}},98694:function(e,t,i){i.d(t,{b:function(){return InsuranceDetailsReviewForm}});var a=i(85893),r=i(71986),n=i(67294),o=i(87536),l=i(41209),s=i(57087),c=i(22390),d=i(17207),u=i(42811),m=i(58278),g=i(47209);let h="firstName",p="lastName",x="birthdate",b="state",IdentityFields=e=>{let{isDisabled:t,...i}=e,{register:n,formState:{errors:s,defaultValues:y},setValue:v,watch:f}=(0,o.Gc)(),I=(0,g.T)(x,s,["isValid","isOver18YearsOld","isLessThan150YearsOld"]),C=(0,g.T)("ssn",s,["minLength","maxLength"]);return(0,a.jsxs)(r.Flex,{direction:"column",...i,children:[(0,a.jsx)(r.Text,{as:"label",variant:"text-header-M",color:"text-primary",children:"About you"}),(0,a.jsxs)(r.Flex,{gap:{base:"spacer-4",md:"spacer-8"},mt:"spacer-5",children:[(0,a.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",flex:1,children:[(0,a.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:h,children:"Legal First name"}),(0,a.jsx)(l.iQ,{id:h,isDisabled:t,...n(h,{required:!0})})]}),(0,a.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",flex:1,children:[(0,a.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:p,children:"Legal Last name"}),(0,a.jsx)(l.Fl,{id:p,isDisabled:t,...n(p,{required:!0})})]})]}),(0,a.jsxs)(r.Flex,{gap:{base:"spacer-4",md:"spacer-8"},mt:"spacer-5",children:[(0,a.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",flex:1,children:[(0,a.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:x,children:"Date of birth"}),(0,a.jsx)(l.AM,{"aria-label":"Date of birth",id:x,isInvalid:I,isDisabled:t,onInput:e=>v(x,e.currentTarget.value),...n(x,{required:!0,validate:{isValid:e=>l.pm.isValid(e)||m.x[x].isValid,isOver18YearsOld:e=>l.pm.isOver18YearsOld(e)||m.x[x].isOver18YearsOld,isLessThan150YearsOld:e=>l.pm.isLessThan150YearsOld(e)||m.x[x].isLessThan150YearsOld}})}),I&&(0,a.jsx)(l.VO,{errors:s,name:x})]}),y[b]&&(0,a.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",flex:1,children:[(0,a.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:b,children:"State"}),(0,a.jsx)(u.e,{"aria-label":"State",id:b,isDisabled:t,...n(b,{required:!0}),value:f(b)})]})]}),y.ssn&&(0,a.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",flex:1,mt:"spacer-5",children:[(0,a.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:"ssn",children:"Social Security Number"}),(0,a.jsx)(r.Text,{variant:"text-body-meta-regular",color:"text-secondary",children:"Last 4 Digits of your Social Security Number"}),(0,a.jsx)(d.T,{"data-test":"ssn",id:"ssn",isInvalid:C,isDisabled:t,onInput:e=>v("ssn",e.currentTarget.value),...n("ssn",{required:!0,minLength:{value:4,message:m.x.ssn.minLength},maxLength:{value:4,message:m.x.ssn.maxLength}})}),C&&(0,a.jsx)(l.VO,{errors:s,name:"ssn"})]}),(0,a.jsxs)(r.Flex,{gap:{base:"spacer-4",md:"spacer-8"},mt:"spacer-5",children:[(0,a.jsx)(l.s8,{isDisabled:t,flex:1}),(0,a.jsx)(c.$S,{isDisabled:t,flex:1})]})]})};var y=i(91176),v=i(5487),f=i(15615);let I="insuranceMemberID",InsuranceFields=e=>{let{isDisabled:t,insuranceMemberID:i,insuranceProviderName:s,...c}=e,{register:d,formState:{defaultValues:u,errors:m},watch:h,setValue:p}=(0,o.Gc)(),x=h(y.OF)===f.PF.Other,b=u[y.OF],C=(0,g.T)(I,m,["minLength","maxLength"]),{registerOptions:D,...j}=i||{};return(0,n.useEffect)(()=>{x&&p(I,"")},[x,p]),(0,a.jsxs)(r.Flex,{direction:"column",gap:"spacer-5",...c,children:[(0,a.jsx)(r.Text,{variant:"text-header-M",color:"text-primary",children:"Insurance information"}),(0,a.jsxs)(r.Flex,{direction:{base:"column",md:"row"},gap:{base:"spacer-4",md:"spacer-8"},children:[b&&(0,a.jsx)(y.vu,{isDisabled:t,isRequired:!0,defaultSelectedItem:b,flex:1,...s}),(0,a.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",flex:1,children:[(0,a.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:I,children:(null==i?void 0:i.label)||"Insurance Member ID"}),(0,a.jsx)(v.o,{id:I,isDisabled:t||x,...j,onInput:e=>{let t=e.currentTarget.value,i=null==j?void 0:j.minLength,a=!i||i&&t.length>=i;p(I,t,{shouldValidate:a})},...d(I,{required:!x,...D})}),C&&(0,a.jsx)(l.VO,{errors:m,name:I})]})]})]})};var C=i(42575);let InsuranceDetailsReviewForm=e=>{var t,i;let{configuration:c,defaultValues:d,loading:u=!1,hasError:m=!1,onSubmit:g}=e,{contentResources:h}=c,p=(0,o.cI)({mode:"onBlur",defaultValues:d}),x=(0,C.d)(),[b,y]=(0,n.useState)(!1),v=u||!b,f=d.insuranceProviderName||d.insuranceMemberID,toggleEditMode=()=>y(e=>!e),handleCancel=()=>{p.reset(d),toggleEditMode()},renderFormActions=()=>(0,a.jsxs)(r.Flex,{gap:{base:"spacer-6"},flex:1,children:[b&&!u&&(0,a.jsx)(r.Button,{size:{base:"m",lg:"l"},variant:"primary-alt","aria-label":"Cancel",onClick:handleCancel,children:"Cancel"}),(0,a.jsx)(r.Button,{type:"submit",size:{base:"m",lg:"l"},isDisabled:!p.formState.isValid,flex:1,isLoading:u,leadingIcon:(0,a.jsx)(r.IconCircleCheck,{}),"aria-label":"My information is correct",children:x&&b?"Confirm":"My information is correct"})]});return(0,a.jsx)(o.RV,{...p,children:(0,a.jsxs)(s.S,{as:"form",onSubmit:p.handleSubmit(e=>{y(!1),g(e)}),noValidate:!0,children:[(0,a.jsx)(s.S.Side,{gap:0,children:h.title}),(0,a.jsxs)(s.S.Form,{gap:0,children:[(0,a.jsx)(r.Text,{variant:"text-header-L",color:"text-primary",children:"Please confirm your personal information"}),(0,a.jsx)(r.Button,{mt:"spacer-2",variant:"link-primary",verticalAlign:"initial",onClick:toggleEditMode,alignSelf:"start",isDisabled:u||b,leadingIcon:(0,a.jsx)(r.IconPencil,{}),textDecoration:"underline",_hover:{textDecoration:"underline"},children:"Edit your information"}),b&&(0,a.jsxs)(r.Alert,{status:"warning",variant:"subtle",mt:"spacer-5",children:[(0,a.jsx)(r.Alert.Icon,{}),(0,a.jsx)(r.Alert.Title,{children:"You are editing your personal information"})]}),m&&(0,a.jsxs)(r.Alert,{status:"error",variant:"subtle",mt:"spacer-5",children:[(0,a.jsx)(r.Alert.Icon,{}),(0,a.jsx)(r.Alert.Title,{children:"There was an error submitting your information. Please try again."})]}),(0,a.jsxs)(r.Flex,{direction:"column",mt:"spacer-5",_last:{pb:{base:"spacer-24",lg:0}},children:[(0,a.jsx)(IdentityFields,{isDisabled:v,mb:{base:f?"spacer-9":0,lg:"spacer-9"}}),f&&(0,a.jsx)(InsuranceFields,{isDisabled:v,insuranceMemberID:null==c?void 0:null===(t=c.fields)||void 0===t?void 0:t.insuranceMemberID,insuranceProviderName:null==c?void 0:null===(i=c.fields)||void 0===i?void 0:i.insuranceProviderName,mb:{base:0,lg:"spacer-9"}}),x?(0,a.jsx)(l.D2,{children:renderFormActions()}):renderFormActions()]})]})]})})}},76089:function(e,t,i){i.d(t,{fk:function(){return BMIFields},IQ:function(){return r},Dy:function(){return ComorbidityStatusField},R2:function(){return DateOfBirthField},zi:function(){return EligibilityCriteriaNote},t_:function(){return HighestWeightFields}});var a,r,n=i(85893),o=i(71986),l=i(41209),s=i(58278),c=i(47209),d=i(40188),u=i(87536);let m="currentWeightInPounds",g="heightInFoot",h="heightInInch",BMIFields=e=>{let{isDisabled:t}=e,{register:i,setValue:a,formState:{errors:r}}=(0,u.Gc)(),p=(0,c.T)(m,r,"validate"),x=(0,c.T)(g,r,"validate"),b=(0,c.T)(h,r,"validate");return(0,n.jsxs)(o.Flex,{direction:"column",gap:"spacer-2",children:[(0,n.jsx)(o.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",children:"What is your current weight and height?"}),(0,n.jsxs)(o.Flex,{direction:{base:"column",md:"row",lg:"column",xl:"row"},gap:{base:"spacer-9",xl:"spacer-12"},children:[(0,n.jsx)(o.Flex,{flex:.6,children:(0,n.jsx)(l.CZ,{"data-test":m,isDisabled:t,isInvalid:p,onInput:e=>a(m,e.currentTarget.value),...i(m,{required:!0,validate:e=>{let t=(0,d.M)(e);return t>=1&&t<1e3||s.x[m].validate}})})}),(0,n.jsxs)(o.Flex,{gap:"spacer-4",flex:1,children:[(0,n.jsx)(l.lm,{unit:"ft","data-test":g,isDisabled:t,isInvalid:x,onInput:e=>a(g,e.currentTarget.value),...i(g,{required:!0,validate:e=>{let t=(0,d.M)(e);return t>=4&&t<=7||s.x[g].validate}})}),(0,n.jsx)(l.lm,{"data-test":h,unit:"in",isDisabled:t,isInvalid:b,onInput:e=>a(h,e.currentTarget.value),...i(h,{required:!0,validate:e=>{let t=(0,d.M)(e);return t>=0&&t<=11||s.x[h].validate}})})]})]}),p&&(0,n.jsx)(l.VO,{errors:r,name:m}),x&&(0,n.jsx)(l.VO,{errors:r,name:g}),b&&(0,n.jsx)(l.VO,{errors:r,name:h})]})};(a=r||(r={})).Yes="yes",a.No="no";let p="comorbidity",x=["Asthma","Atrial fibrillation","Binge eating disorder or Bulimia","Breast cancer","Colon cancer","Congestive heart failure","Coronary artery disease","Darkening of skin around neck, armpits, groin","Deep vein thrombosis","Depression","Endometrial/Uterine cancer","Erectile dysfunction","GERD/Heartburn/Hiatal hernia","Gallstones","Gout","History of bariatric surgery","Hyperlipidemia","Hypertension","Idiopathic intracranial hypertension","Infertility","Insulin resistance/Metabolic syndrome","Liver cancer","Low Testosterone/Hypogonadism in men","Low back pain","Nonalcoholic fatty liver disease or Elevated LFTs","Obstructive sleep apnea","Osteoarthritis","Other as indicated by a doctor","Polycystic ovarian syndrome","Prediabetes/Impaired fasting glucose","Prostate cancer","Stroke","Type 2 diabetes","Venous stasis ulcers"],ComorbidityStatusField=e=>{let{trigger:t,isDisabled:i}=e,{control:a,setValue:r}=(0,u.Gc)();return(0,n.jsxs)(o.Flex,{direction:"column",children:[(0,n.jsxs)(o.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:p,children:["Do you have a weight-related health condition?",(0,n.jsxs)(o.Popover,{trigger:t,closeOnBlur:!0,placement:"auto",children:[(0,n.jsx)(o.Popover.Trigger,{children:(0,n.jsx)(o.Flex,{display:"inline-flex",verticalAlign:"text-top",ml:"spacer-2",children:(0,n.jsx)(o.IconInfoCircle,{size:"m",color:"text-link-primary-default"})})}),(0,n.jsxs)(o.Popover.Content,{children:[(0,n.jsx)(o.Popover.Arrow,{backgroundColor:"text-secondary"}),(0,n.jsx)(o.Popover.Body,{backgroundColor:"text-secondary",borderColor:"transparent",borderRadius:"radii-1",p:"spacer-2",children:(0,n.jsx)(o.Text,{variant:"text-body-meta-regular",color:"text-light",children:"Examples include heart or cardiovascular disease, high blood pressure, sleep apnea, diabetes, gastrointestinal disease, fatty liver."})})]})]})]}),(0,n.jsx)(o.Text,{variant:"text-body-meta-regular",color:"text-secondary",marginBottom:"spacer-2",children:"If yes, select all that apply. If no, skip to the next question."}),(0,n.jsx)(u.Qr,{name:p,control:a,rules:{required:!1},render:e=>{let{field:{onChange:t}}=e;return(0,n.jsxs)(o.AutocompleteMultiSelect,{items:x,useMultipleSelectionProps:{onSelectedItemsChange:e=>{let{selectedItems:i}=e;t(i),r(p,i,{shouldValidate:!0})}},isDisabled:i,children:[(0,n.jsx)(o.AutocompleteMultiSelect.SelectedItems,{renderSelectedItem:e=>{let{selectedItem:t,removeSelectedItem:a}=e;return(0,n.jsxs)(o.Tag,{size:"s",isDisabled:i,onClick:e=>{e.stopPropagation(),a(t)},cursor:"pointer",children:[(0,n.jsx)(o.Tag.Label,{children:t}),(0,n.jsx)(o.Tag.RightIcon,{as:o.IconX})]})}}),(0,n.jsx)(o.AutocompleteMultiSelect.Input,{"data-test":p,placeholder:"Select health condition",variant:"flushed"}),(0,n.jsx)(o.AutocompleteMultiSelect.List,{"data-test":"".concat(p,"List"),renderItem:e=>(0,n.jsx)(n.Fragment,{children:e}),overflowY:"auto",maxHeight:"13.5rem",zIndex:2})]})}})]})},b="birthdate",DateOfBirthField=e=>{let{isDisabled:t}=e,{register:i,setValue:a,formState:{errors:r}}=(0,u.Gc)(),d=(0,c.T)(b,r,["isValid","isOver18YearsOld","isLessThan150YearsOld"]);return(0,n.jsxs)(o.Flex,{direction:"column",gap:"spacer-2",children:[(0,n.jsx)(o.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:b,children:"What is your date of birth?"}),(0,n.jsx)(l.AM,{id:b,isInvalid:d,isDisabled:t,onInput:e=>a(b,e.currentTarget.value),...i(b,{required:!0,validate:{isValid:e=>l.pm.isValid(e)||s.x[b].isValid,isOver18YearsOld:e=>l.pm.isOver18YearsOld(e)||s.x[b].isOver18YearsOld,isLessThan150YearsOld:e=>l.pm.isLessThan150YearsOld(e)||s.x[b].isLessThan150YearsOld}})}),d&&(0,n.jsx)(l.VO,{errors:r,name:b})]})},EligibilityCriteriaNote=()=>(0,n.jsx)(o.Text,{variant:"text-body-floating-label-regular",color:"text-secondary",textAlign:"center",children:"Meeting eligibility criteria based on this information does not automatically guarantee program enrollment."});var y=i(67294);let v="highestWeightInPounds",f="dateOfHighestWeightValue",HighestWeightFields=e=>{let{isDisabled:t}=e,{register:i,setValue:a,trigger:r,formState:{errors:g},watch:h}=(0,u.Gc)(),p=h(m),x=h(b),I=(0,c.T)(v,g,["isValid","isLowerThanCurrentWeight"]),C=(0,c.T)(f,g,["pattern","min","max"]);return(0,y.useEffect)(()=>{r(v)},[p]),(0,n.jsxs)(o.Flex,{direction:"column",gap:"spacer-2",children:[(0,n.jsxs)(o.Box,{children:[(0,n.jsx)(o.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:v,children:"What was your highest lifetime weight and when did you reach it?"}),(0,n.jsx)(o.Text,{variant:"text-body-meta-regular",color:"text-secondary",children:"This will help your doctor customize your treatment plan"})]}),(0,n.jsxs)(o.Flex,{gap:"spacer-8",children:[(0,n.jsx)(o.MaskInput,{"data-test":v,"aria-label":"Weight (lbs)",id:v,inputMode:"decimal",size:"l",variant:"flushed",placeholder:"Weight (lbs)",isDisabled:t,isInvalid:I,maskOptions:{mask:/^\d{0,3}(\.\d{0,2})?$/,postfix:" (lbs)"},onInput:e=>a(v,e.currentTarget.value),...i(v,{required:!0,validate:{isValid:e=>{let t=(0,d.M)(e);return t>=1&&t<1e3||s.x[v].isValid},isLowerThanCurrentWeight:e=>{let t=(0,d.M)(p),i=(0,d.M)(e);return i>=t||s.x[v].isLowerThanCurrentWeight}}})}),(0,n.jsx)(o.MaskInput,{"data-test":f,inputMode:"numeric",id:f,size:"l",variant:"flushed",placeholder:"YYYY",isDisabled:t,isInvalid:C,maskOptions:{mask:/^\d{0,4}$/},onInput:e=>{a(f,e.currentTarget.value),4===e.currentTarget.value.length&&r(f)},...i(f,{required:!0,pattern:{value:/^\d{4}$/,message:s.x[f].pattern},min:{value:new Date(x).getFullYear(),message:s.x[f].min},max:{value:new Date().getFullYear(),message:s.x[f].max}})})]}),I&&(0,n.jsx)(l.VO,{errors:g,name:v}),C&&(0,n.jsx)(l.VO,{errors:g,name:f})]})}},17081:function(e,t,i){i.d(t,{b:function(){return PreEligibilityForm}});var a=i(85893),r=i(71986),n=i(87536),o=i(41209),l=i(57087),s=i(76089),c=i(42575),d=i(93773);let PreEligibilityForm=e=>{let{configuration:t,loading:i=!1,onSubmit:u}=e,{contentResources:m}=t,g=(0,n.cI)({mode:"onBlur"}),h=(0,c.d)(),renderFormAction=()=>(0,a.jsx)(r.Button,{type:"submit",size:{base:"m",lg:"l"},isDisabled:!g.formState.isValid,width:"100%",isLoading:i,"aria-label":"Am I eligible?",children:"Am I eligible?"});return(0,a.jsx)(n.RV,{...g,children:(0,a.jsxs)(l.S,{as:"form",onSubmit:g.handleSubmit(e=>{var t;let i=(null===(t=e.comorbidity)||void 0===t?void 0:t.length)>0,a={...e,comorbidity:i?s.IQ.Yes:s.IQ.No};u(a)}),noValidate:!0,"data-test":d.J.PreEligibility,children:[(0,a.jsxs)(l.S.Side,{children:[m.title,!h&&m.bmiEnrollmentDisclaimer]}),(0,a.jsxs)(l.S.Form,{children:[(0,a.jsx)(s.R2,{isDisabled:i}),(0,a.jsx)(s.Dy,{isDisabled:i,trigger:h?"click":"hover"}),(0,a.jsx)(s.fk,{isDisabled:i}),(0,a.jsx)(s.t_,{isDisabled:i}),h?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r.Flex,{gap:"spacer-10",direction:"column",pb:"spacer-24",children:[m.bmiEnrollmentDisclaimer,(0,a.jsx)(s.zi,{})]}),(0,a.jsx)(o.D2,{children:renderFormAction()})]}):(0,a.jsxs)(r.Flex,{direction:"column",gap:"spacer-5",children:[renderFormAction(),(0,a.jsx)(s.zi,{})]})]})]})})}},34e3:function(e,t,i){i.d(t,{E:function(){return PartnerLogo},Z:function(){return s}});var a=i(85893);i(67294);var r=i(25675),n=i.n(r),o=i(42575),l=i(15615);let s={[l.kT.Flyte]:"/static/assets/programs/flyte-logo.png",[l.kT.CareCompass]:"/static/assets/programs/care-compass-logo.png",[l.kT.PequotHealthCare]:"/static/assets/programs/pequot-logo.png",[l.kT.RiverSpringLiving]:"/static/assets/programs/riverspring-logo.png",[l.kT.Aetna]:"/static/assets/programs/aetna-logo.png",[l.kT.PyleFamilyInsurance]:"/static/assets/programs/pyle-logo.png",[l.kT.DGA]:"/static/assets/programs/dga-logo.png",[l.kT.MDSave]:"/static/assets/programs/mdsave-logo.png",[l.kT.ChristianaCare]:"/static/assets/programs/christiana-care-logo.png"},c={[l.kT.Flyte]:{width:{base:95,lg:99},height:{base:27,lg:28}},[l.kT.CareCompass]:{width:{base:44,lg:44},height:{base:44,lg:44}},[l.kT.Aetna]:{width:{base:111,lg:143},height:{base:28,lg:36}},[l.kT.RiverSpringLiving]:{width:{base:184,lg:184},height:{base:23,lg:23}},[l.kT.PequotHealthCare]:{width:{base:103,lg:103},height:{base:40,lg:40}},[l.kT.PyleFamilyInsurance]:{width:{base:118,lg:118},height:{base:36,lg:36}},[l.kT.DGA]:{width:{base:94,lg:94},height:{base:36,lg:36}},[l.kT.MDSave]:{width:{base:44,lg:44},height:{base:44,lg:44}},[l.kT.ChristianaCare]:{width:{base:169,lg:169},height:{base:32,lg:32}}},PartnerLogo=e=>{let{partner:t}=e,i=(0,o.d)(),r=s[t]||s.flyte,l=c[t]||c.flyte;return(0,a.jsx)(n(),{src:r,width:i?l.width.base:l.width.lg,height:i?l.height.base:l.height.lg,alt:"".concat(t," Logo")})}},76849:function(e,t,i){i.d(t,{R:function(){return SupportContactLink},_:function(){return l}});var a=i(85893),r=i(95875),n=i(3183),o=i(71986);let l={formatted:"(844) 359-8363"},SupportContactLink=e=>{let{onClick:t,children:i="(844) 359-8363",...l}=e,{track:s}=(0,n.useAnalytics)();return(0,a.jsx)(o.Link,{isInline:!0,href:"tel:+18443598363",children:i,onClick:e=>{s(r.U.phoneNumberClicked),null==t||t(e)},...l})}},5111:function(e,t,i){i.d(t,{K:function(){return WorkflowHeader},t:function(){return s}});var a=i(85893),r=i(67294),n=i(71986),o=i(42575);let DynamicStepGuide=e=>{let{steps:t,currentStep:i}=e,l=(0,o.d)(),s=t.length,c=t.findIndex(e=>e.label===i),{activeStep:d,setActiveStep:u}=(0,n.useSteps)({index:c,count:s});return((0,r.useEffect)(()=>{-1!==c&&u(c)},[c,u]),-1===c)?null:l?(0,a.jsx)(n.ProgressBar,{value:(d+1)/s*100,size:"xs",position:"absolute",left:0,right:0,bottom:0}):(0,a.jsx)(n.Stepper,{index:d,maxWidth:{base:"21rem",xl:"25rem",xxl:"33rem"},width:"100%",children:t.map((e,t)=>{let i=(0,a.jsx)(e.icon,{"data-testid":"".concat(e.label,"-icon"),size:"m"});return(0,a.jsxs)(n.Stepper.Step,{flexDirection:"column",_horizontal:{alignItems:"start"},gap:"spacer-2",children:[(0,a.jsxs)(n.Flex,{width:"100%",alignItems:"center",children:[(0,a.jsx)(n.Tooltip,{label:e.label,placement:"bottom",display:{base:"block",xxl:"none"},children:(0,a.jsx)(n.Box,{children:(0,a.jsx)(n.Stepper.Step.Indicator,{boxSize:"1.75rem",children:(0,a.jsx)(n.Stepper.Step.Status,{complete:(0,r.cloneElement)(i,{color:"text-light"}),incomplete:(0,r.cloneElement)(i,{color:"background-static"}),active:(0,r.cloneElement)(i,{color:"primary-default"})})})})}),(0,a.jsx)(n.Stepper.Step.Separator,{})]}),(0,a.jsx)(n.Stepper.Step.Title,{display:{base:"none",xxl:"block"},variant:"text-body-floating-label-bold",color:t<=d?"text-primary":"text-disabled",textTransform:{base:"none",xxl:"uppercase"},children:e.label})]},e.label)})})};var l=i(93773);let s=new Map([[l.J.PreEligibility,{label:"Age & BMI",icon:n.IconScaleOutline}],[l.J.ContactDetails,{label:"Personal Details",icon:n.IconId}],[l.J.InsuranceDetails,{label:"Insurance Info",icon:n.IconClipboardPlus}]]),WorkflowHeader=e=>{var t;let{currentStep:i,steps:r=s}=e,n=null===(t=r.get(i))||void 0===t?void 0:t.label,o=Array.from(r.values());return(0,a.jsx)(DynamicStepGuide,{currentStep:n,steps:o})}},5487:function(e,t,i){i.d(t,{o:function(){return o}});var a=i(85893),r=i(71986),n=i(67294);let o=(0,n.forwardRef)((e,t)=>{let{inputMode:i="text",placeholder:n="Insurance Member ID",maskOptions:o={mask:/^[a-zA-Z0-9]*$/},...l}=e;return(0,a.jsx)(r.MaskInput,{type:"text",inputMode:i,size:"l",placeholder:n,variant:"flushed",maskOptions:o,ref:t,...l})})},17207:function(e,t,i){i.d(t,{T:function(){return o}});var a=i(85893),r=i(71986),n=i(67294);let o=(0,n.forwardRef)((e,t)=>{let{isDisabled:i,...o}=e,[l,s]=(0,n.useState)(!1),c=l?r.IconEyeOff:r.IconEye;return(0,a.jsx)(r.MaskInput,{type:l?"text":"password",inputMode:"numeric",maskOptions:{mask:[/\d/,/\d/,/\d/,/\d/]},placeholder:"SSN last 4 digits",size:"l",variant:"flushed",ref:t,isDisabled:i,trailingIcon:(0,a.jsx)(r.Box,{userSelect:"none",children:(0,a.jsx)(c,{onClick:()=>{i||s(e=>!e)},cursor:i?"not-allowed":"pointer"})}),...o})})},42811:function(e,t,i){i.d(t,{e:function(){return s},F:function(){return l}});var a=i(85893),r=i(71986),n=i(15615),o=i(67294);let l=Object.entries(n.i$).map(e=>{let[t,i]=e;return{fullName:t,shortCode:i}}),s=(0,o.forwardRef)((e,t)=>{let{options:i=l,...n}=e;return(0,a.jsx)(r.Select,{size:"l",variant:"flushed",placeholder:"Select",ref:t,...n,children:i.map(e=>{let{fullName:t,shortCode:i}=e;return(0,a.jsx)("option",{value:i,children:t},i)})})})},58278:function(e,t,i){i.d(t,{x:function(){return a}});let a={email:{pattern:"Enter a valid email address",maxLength:"Email must be less than 150 characters"},phone:{validate:"Enter a valid phone number"},birthdate:{isValid:"Enter a valid date of birth using the format MM/DD/YYYY",isOver18YearsOld:"To be eligible, you must be at least 18 years old",isLessThan150YearsOld:"Enter a valid date of birth using the format MM/DD/YYYY"},currentWeightInPounds:{validate:"Weight must be a number between 1 and 999"},heightInFoot:{validate:"Height (ft) must be a number between 4 and 7"},heightInInch:{validate:"Height (in) must be a number between 0 and 11"},highestWeightInPounds:{isValid:"Weight must be a number between 1 and 999",isLowerThanCurrentWeight:"Weight must be higher than current weight"},dateOfHighestWeightValue:{min:"Enter a year that is after your birth year",pattern:"Enter a year using the format (YYYY)",max:"Enter a year that is not in the future"},ssn:{minLength:"Enter the last 4 digits of your SSN",maxLength:"Enter the last 4 digits of your SSN"}}},41209:function(e,t,i){i.d(t,{AM:function(){return s},s8:function(){return EmailField},VO:function(){return ErrorFormMessage},iQ:function(){return h},lm:function(){return p},Fl:function(){return x},D2:function(){return MobileFormFooter},dO:function(){return NameFields},sb:function(){return v},CZ:function(){return I},pm:function(){return l},Fp:function(){return f.F}});var a=i(85893),r=i(71986),n=i(48527),o=i(67294);let l={isValid:e=>10===e.length,isOver18YearsOld:e=>{let t=(0,n.F)(e);return t>=18},isLessThan150YearsOld:e=>{let t=(0,n.F)(e);return t<150}},s=(0,o.forwardRef)((e,t)=>(0,a.jsx)(r.DateInput,{placeholder:"mm/dd/yyyy",inputMode:"numeric",mode:"mm/dd/yyyy",size:"l",variant:"flushed",ref:t,"data-test":"birthdate",...e}));var c=i(58278),d=i(47209),u=i(87536);let m="email",EmailField=e=>{let{isDisabled:t,...i}=e,{register:n,formState:{errors:o}}=(0,u.Gc)(),l=(0,d.T)(m,o,["maxLength","pattern"]);return(0,a.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",...i,children:[(0,a.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:m,children:"Email address"}),(0,a.jsx)(r.Input,{"data-test":m,autoComplete:"email",placeholder:"name@email.com",inputMode:"email",type:"email",id:m,size:"l",variant:"flushed",isInvalid:l,isDisabled:t,...n(m,{required:!0,pattern:{value:/^[a-zA-Z0-9._+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,150}$/,message:c.x[m].pattern},maxLength:{value:150,message:c.x[m].maxLength}})}),l&&(0,a.jsx)(ErrorFormMessage,{errors:o,name:m})]})};var g=i(32866);let ErrorFormMessage=e=>{let{errors:t,name:i}=e;return(0,a.jsx)(g.B,{errors:t,name:i,render:e=>{let{message:t}=e;return(0,a.jsxs)(r.InlineAlert,{status:"error",children:[(0,a.jsx)(r.InlineAlert.Icon,{}),(0,a.jsx)(r.InlineAlert.Message,{children:t})]})}})},h=(0,o.forwardRef)((e,t)=>(0,a.jsx)(r.Input,{autoComplete:"given-name","aria-label":"Legal First name",placeholder:"Legal First name",type:"text",size:"l",variant:"flushed",ref:t,...e})),p=(0,o.forwardRef)((e,t)=>{let{unit:i,...n}=e;return(0,a.jsx)(r.MaskInput,{"aria-label":"Height (".concat(i,")"),placeholder:"Height (".concat(i,")"),inputMode:"numeric",size:"l",variant:"flushed",maskOptions:{mask:/^\d*$/,postfix:" (".concat(i,")")},ref:t,...n})});i(5487);let x=(0,o.forwardRef)((e,t)=>(0,a.jsx)(r.Input,{autoComplete:"family-name","aria-label":"Legal Last name",placeholder:"Legal Last name",type:"text",size:"l",variant:"flushed",ref:t,...e})),MobileFormFooter=e=>{let{children:t,...i}=e;return(0,a.jsx)(r.Flex,{position:"fixed",bottom:0,left:0,right:0,role:"contentinfo",px:"spacer-6",py:"spacer-4",background:"background-page",borderTop:"1px",borderColor:"ui-element-divider",borderStyle:"solid",zIndex:1,...i,"data-testid":"mobile-footer",children:t})},b="firstName",y="lastName",NameFields=e=>{let{isDisabled:t}=e,{register:i}=(0,u.Gc)();return(0,a.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",children:[(0,a.jsxs)(r.Box,{children:[(0,a.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",children:"Tell us about yourself"}),(0,a.jsx)(r.Text,{variant:"text-body-meta-regular",color:"text-secondary",children:"Please enter your full legal name as on your ID or medical insurance."})]}),(0,a.jsxs)(r.Flex,{gap:{base:"spacer-4",md:"spacer-8"},children:[(0,a.jsx)(h,{"data-test":b,id:b,isDisabled:t,...i(b,{required:!0})}),(0,a.jsx)(x,{"data-test":y,id:y,isDisabled:t,...i(y,{required:!0})})]})]})},v=(0,o.forwardRef)((e,t)=>(0,a.jsx)(r.PhoneInput,{autoComplete:"tel-national",inputMode:"numeric",maskOptions:{countryIsoCode:"US",mask:["(",/\d/,/\d/,/\d/,")"," ",/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/,/\d/]},placeholder:"(000) 000-0000",size:"l",variant:"flushed",ref:t,...e}));var f=i(42811);let I=(0,o.forwardRef)((e,t)=>(0,a.jsx)(r.MaskInput,{"aria-label":"Weight (lbs)",placeholder:"Weight (lbs)",inputMode:"decimal",size:"l",variant:"flushed",maskOptions:{mask:/^\d{0,3}(\.\d{0,2})?$/,postfix:" (lbs)"},ref:t,...e}))},3985:function(e,t,i){i.d(t,{Eg:function(){return FullModalLayout}});var a=i(85893),r=i(67294),n=i(71986);let o=(0,r.createContext)({onClose:()=>{}}),useFullModalLayoutContext=()=>{let e=(0,r.useContext)(o);if(!e)throw Error("useFullModalLayoutContext must be used within a FullModalLayoutProvider");return e},FullModalLayout=e=>{let{isOpen:t,onClose:i,children:r}=e;return(0,a.jsx)(o.Provider,{value:{onClose:i},children:(0,a.jsx)(n.Modal,{isOpen:t,onClose:i,size:"full",autoFocus:!1,children:(0,a.jsx)(n.Modal.Content,{p:0,backgroundColor:"background-page",height:"100%",containerProps:{overflow:"hidden"},motionProps:{initial:{opacity:1},animate:{opacity:1}},children:r})})})};FullModalLayout.Header=e=>{let{children:t}=e,{onClose:i}=useFullModalLayoutContext();return(0,a.jsx)(n.Modal.Header,{backgroundColor:"background-page",borderBottomColor:"ui-element-divider",borderBottomWidth:"1px",borderBottomStyle:"solid",borderRadius:"radius-0",p:0,position:{base:"fixed",lg:"relative"},width:"100%",zIndex:"2",children:(0,a.jsxs)(n.Flex,{alignItems:"center",justifyContent:"space-between",maxWidth:"90rem",px:{base:"spacer-6",md:"spacer-9",lg:"spacer-7",xl:"spacer-20",xxl:"spacer-28"},py:{base:"spacer-2",lg:"spacer-4"},width:"100%",margin:"0 auto",children:[t,(0,a.jsx)(n.ButtonIcon,{variant:"ghost","aria-label":"Close",size:"l",icon:(0,a.jsx)(n.IconX,{}),onClick:i})]})})},FullModalLayout.Body=e=>{let{children:t,...i}=e;return(0,a.jsx)(n.Modal.Body,{p:0,backgroundColor:"background-page",display:"flex",mt:{base:"4.25rem",lg:0},mx:"auto",overflow:"auto",borderRadius:"none",width:"100%",...i,children:(0,a.jsx)(n.Fade,{in:!0,style:{width:"100%"},transition:{enter:{duration:.4}},children:t})})}},57087:function(e,t,i){i.d(t,{D:function(){return ContentLayout},S:function(){return SplitFormLayout}});var a=i(85893),r=i(71986);let ContentLayout=e=>(0,a.jsx)(r.Flex,{px:{base:"spacer-6",md:"spacer-9",lg:"spacer-14",xl:"spacer-20",xxl:"spacer-28"},py:{base:"spacer-5",lg:"spacer-12"},maxWidth:"90rem",marginY:"0",marginX:"auto",...e}),SplitFormLayout=e=>(0,a.jsx)(ContentLayout,{direction:{base:"column",lg:"row"},gap:{base:"spacer-10",lg:"spacer-16",xl:"spacer-28",xxl:"spacer-44"},...e});SplitFormLayout.Side=e=>(0,a.jsx)(r.Flex,{direction:"column",gap:{base:"spacer-6",lg:"spacer-8"},flex:1,...e}),SplitFormLayout.Form=e=>(0,a.jsx)(r.Flex,{direction:"column",gap:"spacer-9",flex:1,...e})},19813:function(e,t,i){i.d(t,{U:function(){return AetnaWorkflow}});var a,r,n=i(85893),o=i(67294),l=i(79447),s=i(17081),c=i(55632),d=i(21954),u=i(98694),m=i(28588),g=i(9941),h=i(71986),p=i(93773);let x={[p.J.PreEligibility]:{title:(0,n.jsxs)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{color:"text-primary",children:"Let's make sure you're eligible for the Flyte program."}),(0,n.jsx)(h.TextPairing.SubLabel,{color:"text-secondary",children:"To be eligible for the Flyte program through your Aetna Medicare Advantage benefits, you must meet specific age and Body Mass Index (BMI)* requirements."})]}),bmiEnrollmentDisclaimer:(0,n.jsx)(h.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. Flyte 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 Flyte 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)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{color:"text-secondary-negative",children:"Unfortunately, you are not eligible to join FlyteHealth at this time."}),(0,n.jsx)(h.TextPairing.SubLabel,{color:"text-secondary",children:"The Flyte 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)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{color:"text-secondary-negative",children:"Congratulations! You're eligible for the FlyteHealth program"}),(0,n.jsx)(h.TextPairing.SubLabel,{color:"text-secondary",children:"To help us match your information with your health plan, tell us about yourself. Next, we'll ask about your Aetna membership. Be sure to have your insurance card handy."})]})},[p.J.InsuranceDetails]:{title:(0,n.jsxs)(h.Text,{variant:"text-header-2XL",color:"text-secondary-negative",children:["One more thing:"," ",(0,n.jsx)(h.Text,{as:"span",variant:"text-header-2XL",color:"text-primary",children:"What's your Aetna membership number?"})]})},[p.J.InsuranceDetailsReview]:{title:(0,n.jsxs)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{children:"Let's review: Is your info correct?"}),(0,n.jsx)(h.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)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{color:"text-secondary-negative",children:"Welcome aboard! We're so excited you're here."}),(0,n.jsx)(h.TextPairing.SubLabel,{color:"text-secondary",children:"Next, we need to confirm your email. Click the link we sent to:"})]}),description:(0,n.jsx)(h.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)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{color:"text-primary",children:"You're almost finished!"}),(0,n.jsx)(h.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)(h.Text,{variant:"text-header-2XL",color:"text-primary",children:"We found an existing account for:"}),description:(0,n.jsx)(h.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."})}};var b=i(20893),y=i(10265),v=i(52766),f=i(94788),I=i(47243),C=i(30368),D=i(98491),j=i(3938),S=i(15615);let isEligibleForAutoEnrollment=e=>e===j._.FULL_MATCH||e===j._.ELIGIBLE_MATCH,getLeadStatus=e=>{switch(e){case j._.PERSON_MATCH:case j._.INSURANCE_MATCH:case j._.EXPIRED:case j._.NOT_FOUND:return S.rl.EligibleWaiting;case j._.FULL_MATCH:case j._.ELIGIBLE_MATCH:default:return}};var T=i(76364),k=i(47190),P=i(97620),E=i(4e4);(a=r||(r={})).CheckEligibility="checkEligibility",a.CreateLead="createLead",a.CheckBenefits="checkBenefits";let w={...D.a,...r},F=P.aU[y.kT.Aetna],M={formData:{birthdate:"",comorbidity:"",currentWeightInPounds:"",dateOfHighestWeightValue:"",email:"",firstName:"",heightInFoot:"",heightInInch:"",highestWeightInPounds:"",insuranceCoverage:void 0,insuranceMemberID:"",insuranceProviderName:void 0,lastName:"",phone:"",state:void 0,termsAgreement:!1,howDidYouFindUS:""},eligibilityCheckMatchType:void 0,bmi:void 0,benefitsCheck:void 0},A=(0,f.cY)({types:{},guards:{isPreEligibilityMet:e=>{let{context:{formData:t,bmi:i}}=e;return v.Pq.aetna({bmi:i,comorbidity:t.comorbidity,birthdate:t.birthdate})},isApplicationReviewRequired:e=>{let{context:{eligibilityCheckMatchType:t}}=e;return[y._q.EXPIRED,y._q.INSURANCE_MATCH,y._q.PERSON_MATCH,y._q.NOT_FOUND].includes(t)},isApplicationDetected:k.Q},actions:{updateFormData:(0,I.a)({formData:e=>{let{context:t,event:i}=e;return{...t.formData,...i.data}}}),assignBMI:(0,I.a)({bmi:e=>{let{context:t}=e,{heightInFoot:i,heightInInch:a,highestWeightInPounds:r}=t.formData;return(0,v.V2)({heightFeet:(0,v.MC)(i),heightInches:(0,v.MC)(a),weightPounds:(0,v.MC)(r)})}}),reset:(0,I.a)({...M}),resetBenefitsCheck:(0,I.a)({benefitsCheck:void 0})}}).createMachine({context:()=>M,id:"aetnaMachine",initial:w.PreEligibility,states:{[w.PreEligibility]:{id:w.PreEligibility,initial:w.Idle,states:{[w.Idle]:{on:{SUBMIT:{target:w.Submitting,actions:"updateFormData"}}},[w.Submitting]:{entry:"assignBMI",always:[{target:"#".concat(w.ContactDetails),guard:"isPreEligibilityMet"},{target:"#".concat(w.EligibilityUnmet)}]}}},[w.ContactDetails]:{id:w.ContactDetails,initial:w.Idle,states:{[w.Idle]:{on:{SUBMIT:{target:"#".concat(w.InsuranceDetails),actions:"updateFormData"}}}}},[w.InsuranceDetails]:{id:w.InsuranceDetails,initial:w.Idle,states:{[w.Idle]:{on:{BACK:{target:"#".concat(w.ContactDetails)},SUBMIT:{target:"#".concat(w.InsuranceDetailsReview),actions:"updateFormData"}}}}},[w.InsuranceDetailsReview]:{id:w.InsuranceDetailsReview,initial:w.Idle,states:{[w.Idle]:{on:{SUBMIT:{actions:"updateFormData",target:w.Submitting}}},[w.Submitting]:{id:w.Submitting,initial:w.CheckEligibility,states:{[w.CheckEligibility]:{id:w.CheckEligibility,invoke:{src:(0,C.p4)(async e=>{let{input:t}=e,i={...t,insuranceProviderName:P.Er[y.kT.Aetna],benefitProgram:P.Q1[y.kT.Aetna]};return await (0,T.m)(i)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:[{actions:(0,I.a)({eligibilityCheckMatchType:e=>{let{event:t}=e;return t.output.data.matchType}}),target:"#".concat(w.CheckBenefits)}],onError:"#".concat(w.Error)}},[w.CheckBenefits]:{id:w.CheckBenefits,invoke:{src:(0,C.p4)(async e=>{let{input:t}=e,i={...t,payerCode:P.qK[y.PF["Aetna Medicare"]]};return await (0,E.o)(i)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:[{actions:(0,I.a)({benefitsCheck:e=>{let{event:t}=e;return t.output.data}}),target:"#".concat(w.CreateLead)}],onError:"#".concat(w.CreateLead)}},[w.CreateLead]:{id:w.CreateLead,invoke:{src:(0,C.p4)(async e=>{let{input:t}=e,i={...t.formData,...t.formData.insuranceMemberID&&{employmentVerificationCode:t.formData.insuranceMemberID},...t.benefitsCheck&&{benefitsCheck:t.benefitsCheck},eligibilityVerifiedBy:y.Vn.Evolve,company:F,insuranceProviderName:P.KG[y.kT.Aetna],evolveOrganization:y.bV["State of Connecticut Retirees"],leadStatus:getLeadStatus(t.eligibilityCheckMatchType),automateEvolveEnrollment:isEligibleForAutoEnrollment(t.eligibilityCheckMatchType)};return await (0,b.$)(i)}),input:e=>{let{context:t}=e;return t},onDone:[{guard:"isApplicationReviewRequired",target:"#".concat(w.ApplicationReview)},{target:"#".concat(w.ApplicationComplete)}],onError:[{guard:"isApplicationDetected",target:"#".concat(w.ApplicationDetected)},{target:"#".concat(w.Error)}]}}}},[w.Error]:{id:w.Error,on:{SUBMIT:{actions:["updateFormData","resetBenefitsCheck"],target:w.Submitting}}}}},[w.ApplicationReview]:{id:w.ApplicationReview},[w.ApplicationComplete]:{id:w.ApplicationComplete},[w.ApplicationDetected]:{id:w.ApplicationDetected},[w.EligibilityUnmet]:{id:w.EligibilityUnmet,initial:w.Idle,states:{[w.Idle]:{on:{SUBMIT:{target:w.Submitting,actions:"updateFormData"}}},[w.Submitting]:{invoke:{src:(0,C.p4)(async e=>{let{input:t}=e,i={...t,company:F,leadStatus:y.rl.Ineligible,ineligibilityReason:y.ib.BMI,automateEvolveEnrollment:!1};return await (0,b.$)(i)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:w.Success,onError:w.Error}},[w.Success]:{},[w.Error]:{on:{SUBMIT:{target:w.Submitting}}}}}},on:{RESET:{target:"#".concat(w.PreEligibility),actions:"reset"}}});var L=i(90420),R=i(94445),B=i(34e3),U=i(5111),J=i(67989),N=i(41209);let H={[p.J.ContactDetails]:{state:{options:N.Fp}},[p.J.InsuranceDetails]:{insuranceMemberID:{tooltip:(0,n.jsxs)(h.Box,{children:[(0,n.jsx)(h.Text,{variant:"text-body-meta-regular",color:"text-light",children:"Where to find my Membership ID Number:"}),(0,n.jsx)(h.Image,{width:"100%",height:"auto",src:"/static/assets/programs/aetna-insurance-card.png",alt:"Member ID guidance"})]})}},[p.J.InsuranceDetailsReview]:{insuranceMemberID:{}}};var O=i(4225);let W=S.kT.Aetna,AetnaWorkflow=e=>{let{render:t}=e,[i,a]=(0,R.eO)(A),r=(0,o.useMemo)(()=>(0,L.k)(i.value),[i.value]);(0,J.R)(r,W);let b=(0,o.useCallback)(e=>{a({type:"SUBMIT",data:e})},[a]),y=(0,o.useCallback)(()=>{a({type:"BACK"})},[a]),v=(0,o.useCallback)(()=>{switch(r){case D.a.PreEligibility:return(0,n.jsx)(s.b,{configuration:{contentResources:x[p.J.PreEligibility]},onSubmit:b});case D.a.ContactDetails:return(0,n.jsx)(l.q,{configuration:{contentResources:x[p.J.ContactDetails],fields:H[p.J.ContactDetails]},onSubmit:b,defaultValues:i.context.formData});case D.a.EligibilityUnmet:return(0,n.jsx)(c.X,{configuration:{contentResources:x[p.J.EligibilityUnmet]},onSubmit:b,loading:i.matches({[D.a.EligibilityUnmet]:D.a.Submitting}),isEmailSent:i.matches({[D.a.EligibilityUnmet]:D.a.Success}),hasError:i.matches({[D.a.EligibilityUnmet]:D.a.Error})});case D.a.InsuranceDetails:return(0,n.jsx)(d.v,{configuration:{contentResources:x[p.J.InsuranceDetails],fields:H[p.J.InsuranceDetails]},onSubmit:b,onBack:y});case D.a.InsuranceDetailsReview:return(0,n.jsx)(u.b,{configuration:{contentResources:x[p.J.InsuranceDetailsReview],fields:H[p.J.InsuranceDetailsReview]},onSubmit:b,loading:i.matches({[D.a.InsuranceDetailsReview]:D.a.Submitting}),hasError:i.matches({[D.a.InsuranceDetailsReview]:D.a.Error}),defaultValues:i.context.formData});case D.a.ApplicationComplete:return(0,n.jsx)(m.J,{...x[p.J.ApplicationComplete],email:i.context.formData.email});case D.a.ApplicationDetected:return(0,n.jsx)(O.v,{...x[p.J.ApplicationDetected],email:i.context.formData.email});case D.a.ApplicationReview:return(0,n.jsx)(g.G,{...x[p.J.ApplicationReview]});default:return null}},[r,i]);return t({header:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(h.Flex,{gap:"spacer-5",alignItems:"center",children:[(0,n.jsx)(B.E,{partner:S.kT.Flyte}),(0,n.jsx)(h.Divider,{orientation:"vertical",alignSelf:"stretch",height:"auto"}),(0,n.jsx)(B.E,{partner:W})]}),(0,n.jsx)(U.K,{currentStep:r})]}),body:v(),currentWorkFlowStep:r})}},4985:function(e,t,i){i.d(t,{$:function(){return CareCompassWorkflow}});var a,r,n=i(85893),o=i(67294),l=i(79447),s=i(17081),c=i(55632),d=i(21954),u=i(98694),m=i(28588),g=i(9941),h=i(71986),p=i(93773);let x={[p.J.PreEligibility]:{title:(0,n.jsxs)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{color:"text-primary",children:"Let's make sure you're eligible for the FlyteHealth program."}),(0,n.jsx)(h.TextPairing.SubLabel,{color:"text-secondary",children:"To be eligible for the FlyteHealth program through your State of Connecticut Health Plan benefits, you must meet specific age and Body Mass Index (BMI)* requirements."})]}),bmiEnrollmentDisclaimer:(0,n.jsx)(h.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)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{color:"text-secondary-negative",children:"Unfortunately, you are not eligible to join FlyteHealth at this time."}),(0,n.jsx)(h.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+."})]}),alert:(0,n.jsx)(()=>(0,n.jsxs)(h.Alert,{status:"info",variant:"subtle",bgColor:"background-action-hover",p:"spacer-5",flexDirection:{base:"column",md:"row"},gap:{base:"spacer-3",md:"spacer-5"},alignItems:{base:"flex-start"},children:[(0,n.jsx)(h.Image,{width:"70.56px",height:"auto",src:"/static/assets/insurance-cards.png",alt:"Insurance cards illustration"}),(0,n.jsxs)(h.Flex,{direction:"column",flex:"1",children:[(0,n.jsx)(h.Alert.Title,{textStyle:"text-body-large-bold",mb:"spacer-1",children:"Additional State of Connecticut Benefits"}),(0,n.jsx)(h.Alert.Description,{mb:"spacer-3",children:"While the FlyteHealth program isn't a match for you today, the State of Connecticut Health Plan offers a wide range of options that might suit your needs."}),(0,n.jsx)(h.Link,{href:"https://carecompass.ct.gov/state/medical/",color:"text-link-primary-default",isExternal:!0,trailingIcon:(0,n.jsx)(h.IconArrowRight,{color:"text-link-primary-default"}),children:"Learn More"})]})]}),{})},[p.J.ContactDetails]:{title:(0,n.jsxs)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{color:"text-secondary-negative",children:"Congratulations! You're eligible for the FlyteHealth program"}),(0,n.jsx)(h.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 Anthem membership. Be sure to have your insurance card handy."})]})},[p.J.InsuranceDetails]:{title:(0,n.jsxs)(h.Text,{variant:"text-header-2XL",color:"text-secondary-negative",children:["One more thing:"," ",(0,n.jsx)(h.Text,{as:"span",variant:"text-header-2XL",color:"text-primary",children:"What's your Anthem membership number?"})]})},[p.J.InsuranceDetailsReview]:{title:(0,n.jsxs)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{children:"Let's review: Is your info correct?"}),(0,n.jsx)(h.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)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{color:"text-secondary-negative",children:"Welcome aboard! We're so excited you're here."}),(0,n.jsx)(h.TextPairing.SubLabel,{color:"text-secondary",children:"Next, we need to confirm your email. Click the link we sent to:"})]}),description:(0,n.jsx)(h.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)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{color:"text-primary",children:"You're almost finished!"}),(0,n.jsx)(h.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)(h.Text,{variant:"text-header-2XL",color:"text-primary",children:"We found an existing account for:"}),description:(0,n.jsx)(h.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."})}};var b=i(20893),y=i(10265),v=i(52766),f=i(94788),I=i(47243),C=i(30368),D=i(98491),j=i(3938),S=i(15615);let isEligibleByMatchType=e=>{switch(e){case j._.FULL_MATCH:case j._.ELIGIBLE_MATCH:return!0;case j._.PERSON_MATCH:case j._.INSURANCE_MATCH:case j._.EXPIRED:case j._.NOT_FOUND:default:return!1}},isEligibleForAutoEnrollment=e=>{let{matchType:t}=e;return isEligibleByMatchType(t)},getLeadStatus=e=>{let{matchType:t}=e;if(!isEligibleForAutoEnrollment({matchType:t}))return S.rl.EligibleWaiting},removeInsuranceMemberIdPrefix=e=>e.substring(3);var T=i(76364),k=i(47190),P=i(97620),E=i(4e4);(a=r||(r={})).CheckEligibility="checkEligibility",a.CreateLead="createLead",a.CheckBenefits="checkBenefits";let w={...D.a,...r},F=P.aU[y.kT.CareCompass],M={formData:{birthdate:"",comorbidity:"",currentWeightInPounds:"",dateOfHighestWeightValue:"",email:"",firstName:"",heightInFoot:"",heightInInch:"",highestWeightInPounds:"",insuranceCoverage:void 0,insuranceMemberID:"",insuranceProviderName:void 0,lastName:"",phone:"",state:void 0,termsAgreement:!1,howDidYouFindUS:""},eligibilityCheckMatchType:void 0,bmi:void 0,benefitsCheck:void 0},A=(0,f.cY)({types:{},guards:{isPreEligibilityMet:e=>{let{context:{formData:t,bmi:i}}=e;return v.Pq.careCompass({bmi:i,comorbidity:t.comorbidity,birthdate:t.birthdate})},isApplicationReviewRequired:e=>{let{context:{eligibilityCheckMatchType:t,formData:i,bmi:a}}=e;return!isEligibleForAutoEnrollment({matchType:t})},isApplicationDetected:k.Q},actions:{updateFormData:(0,I.a)({formData:e=>{let{context:t,event:i}=e;return{...t.formData,...i.data}}}),assignBMI:(0,I.a)({bmi:e=>{let{context:t}=e,{heightInFoot:i,heightInInch:a,highestWeightInPounds:r}=t.formData;return(0,v.V2)({heightFeet:(0,v.MC)(i),heightInches:(0,v.MC)(a),weightPounds:(0,v.MC)(r)})}}),reset:(0,I.a)({...M}),resetBenefitsCheck:(0,I.a)({benefitsCheck:void 0})}}).createMachine({context:()=>M,id:"careCompassMachine",initial:w.PreEligibility,states:{[w.PreEligibility]:{id:w.PreEligibility,initial:w.Idle,states:{[w.Idle]:{on:{SUBMIT:{target:w.Submitting,actions:"updateFormData"}}},[w.Submitting]:{entry:"assignBMI",always:[{target:"#".concat(w.ContactDetails),guard:"isPreEligibilityMet"},{target:"#".concat(w.EligibilityUnmet)}]}}},[w.ContactDetails]:{id:w.ContactDetails,initial:w.Idle,states:{[w.Idle]:{on:{SUBMIT:{target:"#".concat(w.InsuranceDetails),actions:"updateFormData"}}}}},[w.InsuranceDetails]:{id:w.InsuranceDetails,initial:w.Idle,states:{[w.Idle]:{on:{BACK:{target:"#".concat(w.ContactDetails)},SUBMIT:{target:"#".concat(w.InsuranceDetailsReview),actions:"updateFormData"}}}}},[w.InsuranceDetailsReview]:{id:w.InsuranceDetailsReview,initial:w.Idle,states:{[w.Idle]:{on:{SUBMIT:{actions:"updateFormData",target:w.Submitting}}},[w.Submitting]:{id:w.Submitting,initial:w.CheckEligibility,states:{[w.CheckEligibility]:{id:w.CheckEligibility,invoke:{src:(0,C.p4)(async e=>{let{input:t}=e,i={...t,insuranceMemberID:removeInsuranceMemberIdPrefix(t.insuranceMemberID),insuranceProviderName:P.Er[y.kT.CareCompass],benefitProgram:P.Q1[y.kT.CareCompass]};return await (0,T.m)(i)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:[{actions:(0,I.a)({eligibilityCheckMatchType:e=>{let{event:t}=e;return t.output.data.matchType}}),target:"#".concat(w.CheckBenefits)}],onError:"#".concat(w.Error)}},[w.CheckBenefits]:{id:w.CheckBenefits,invoke:{src:(0,C.p4)(async e=>{let{input:t}=e,i={...t,payerCode:P.qK[y.PF.Anthem]};return await (0,E.o)(i)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:[{actions:(0,I.a)({benefitsCheck:e=>{let{event:t}=e;return t.output.data}}),target:"#".concat(w.CreateLead)}],onError:"#".concat(w.CreateLead)}},[w.CreateLead]:{id:w.CreateLead,invoke:{src:(0,C.p4)(async e=>{let{input:t}=e,i=removeInsuranceMemberIdPrefix(t.formData.insuranceMemberID),a={...t.formData,...t.formData.insuranceMemberID&&{employmentVerificationCode:i,insuranceMemberID:i},...t.benefitsCheck&&{benefitsCheck:t.benefitsCheck},eligibilityVerifiedBy:y.Vn.Evolve,company:F,insuranceProviderName:P.KG[y.kT.CareCompass],evolveOrganization:y.bV["State of Connecticut"],leadStatus:getLeadStatus({matchType:t.eligibilityCheckMatchType}),automateEvolveEnrollment:isEligibleForAutoEnrollment({matchType:t.eligibilityCheckMatchType})};return await (0,b.$)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{guard:"isApplicationReviewRequired",target:"#".concat(w.ApplicationReview)},{target:"#".concat(w.ApplicationComplete)}],onError:[{guard:"isApplicationDetected",target:"#".concat(w.ApplicationDetected)},{target:"#".concat(w.Error)}]}}}},[w.Error]:{id:w.Error,on:{SUBMIT:{actions:["updateFormData","resetBenefitsCheck"],target:w.Submitting}}}}},[w.ApplicationReview]:{id:w.ApplicationReview},[w.ApplicationComplete]:{id:w.ApplicationComplete},[w.ApplicationDetected]:{id:w.ApplicationDetected},[w.EligibilityUnmet]:{id:w.EligibilityUnmet,initial:w.Idle,states:{[w.Idle]:{on:{SUBMIT:{target:w.Submitting,actions:"updateFormData"}}},[w.Submitting]:{invoke:{src:(0,C.p4)(async e=>{let{input:t}=e,i={...t,company:F,leadStatus:y.rl.Ineligible,ineligibilityReason:y.ib.BMI,automateEvolveEnrollment:!1};return await (0,b.$)(i)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:w.Success,onError:w.Error}},[w.Success]:{},[w.Error]:{on:{SUBMIT:{actions:"updateFormData",target:w.Submitting}}}}}},on:{RESET:{target:"#".concat(w.PreEligibility),actions:"reset"}}});var L=i(90420),R=i(94445),B=i(34e3),U=i(5111),J=i(67989),N=i(41209);let H={maxLength:13,minLength:13,registerOptions:{minLength:{value:13,message:"Enter the 13-character member ID number."},maxLength:{value:13,message:"Enter the 13-character member ID number."}},inputMode:"text",maskOptions:{mask:/^[a-zA-Z0-9]+$/},label:"Anthem Membership ID Number",placeholder:"Insurance ID"},O={[p.J.ContactDetails]:{state:{options:N.Fp}},[p.J.InsuranceDetails]:{insuranceMemberID:{...H,tooltip:(0,n.jsxs)(h.Box,{children:[(0,n.jsx)(h.Text,{variant:"text-body-meta-regular",color:"text-light",children:"Where to find my Membership ID Number:"}),(0,n.jsx)(h.Image,{width:"100%",height:"auto",src:"https://images.ctfassets.net/0t897tgc80v7/7uNdTqwf8eRDlvJB51S69E/972a00db0acaa4136dd531435cc22d36/anthem_member_id_13_char.png",alt:"Member ID guidance"})]}),description:(0,n.jsx)(h.Text,{variant:"text-body-meta-regular",color:"text-secondary",children:"Enter the 13-character Member ID number as displayed on your Anthem Membership ID Card."})}},[p.J.InsuranceDetailsReview]:{insuranceMemberID:H}};var W=i(4225);let q=S.kT.CareCompass,CareCompassWorkflow=e=>{let{render:t}=e,[i,a]=(0,R.eO)(A),r=(0,o.useMemo)(()=>(0,L.k)(i.value),[i.value]);(0,J.R)(r,q);let b=(0,o.useCallback)(e=>{a({type:"SUBMIT",data:e})},[a]),y=(0,o.useCallback)(()=>{a({type:"BACK"})},[a]),v=(0,o.useCallback)(()=>{switch(r){case D.a.PreEligibility:return(0,n.jsx)(s.b,{configuration:{contentResources:x[p.J.PreEligibility]},onSubmit:b});case D.a.ContactDetails:return(0,n.jsx)(l.q,{configuration:{contentResources:x[p.J.ContactDetails],fields:O[p.J.ContactDetails]},onSubmit:b,defaultValues:i.context.formData});case D.a.EligibilityUnmet:return(0,n.jsx)(c.X,{configuration:{contentResources:x[p.J.EligibilityUnmet]},onSubmit:b,loading:i.matches({[D.a.EligibilityUnmet]:D.a.Submitting}),isEmailSent:i.matches({[D.a.EligibilityUnmet]:D.a.Success}),hasError:i.matches({[D.a.EligibilityUnmet]:D.a.Error}),isMobileFooterSticky:!1});case D.a.InsuranceDetails:return(0,n.jsx)(d.v,{configuration:{contentResources:x[p.J.InsuranceDetails],fields:O[p.J.InsuranceDetails]},onSubmit:b,onBack:y});case D.a.InsuranceDetailsReview:return(0,n.jsx)(u.b,{configuration:{contentResources:x[p.J.InsuranceDetailsReview],fields:O[p.J.InsuranceDetailsReview]},onSubmit:b,loading:i.matches({[D.a.InsuranceDetailsReview]:D.a.Submitting}),hasError:i.matches({[D.a.InsuranceDetailsReview]:D.a.Error}),defaultValues:i.context.formData});case D.a.ApplicationComplete:return(0,n.jsx)(m.J,{...x[p.J.ApplicationComplete],email:i.context.formData.email});case D.a.ApplicationReview:return(0,n.jsx)(g.G,{...x[p.J.ApplicationReview]});case D.a.ApplicationDetected:return(0,n.jsx)(W.v,{...x[p.J.ApplicationDetected],email:i.context.formData.email});default:return null}},[r,i]);return t({header:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(h.Flex,{gap:"spacer-5",alignItems:"center",children:[(0,n.jsx)(B.E,{partner:S.kT.Flyte}),(0,n.jsx)(h.Divider,{orientation:"vertical",alignSelf:"stretch",height:"auto"}),(0,n.jsx)(B.E,{partner:q})]}),(0,n.jsx)(U.K,{currentStep:r})]}),body:v(),currentWorkFlowStep:r})}},21991:function(e,t,i){i.d(t,{k:function(){return ChristianaCareWorkflow}});var a,r,n=i(85893),o=i(67294),l=i(79447),s=i(17081),c=i(55632),d=i(21954),u=i(98694),m=i(28588),g=i(9941),h=i(71986),p=i(93773);let x={[p.J.PreEligibility]:{title:(0,n.jsxs)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{color:"text-primary",children:"Let's make sure you're eligible for the FlyteHealth program."}),(0,n.jsx)(h.TextPairing.SubLabel,{color:"text-secondary",children:"To be eligible for the FlyteHealth program through ChristianaCare, you must meet specific age and Body Mass Index (BMI)* requirements."})]}),bmiEnrollmentDisclaimer:(0,n.jsx)(h.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)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{color:"text-secondary-negative",children:"Unfortunately, you are not eligible to join FlyteHealth at this time."}),(0,n.jsx)(h.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)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{color:"text-secondary-negative",children:"Congratulations! You're eligible for the FlyteHealth program"}),(0,n.jsxs)(h.TextPairing.SubLabel,{color:"text-secondary",children:["To help match your information with the ChristianaCare Caregivers with Highmark insurance plan, tell us about yourself.",(0,n.jsx)("br",{}),(0,n.jsx)("br",{}),"Next, we'll ask about your Highmark membership. Be sure to have your insurance card handy."]})]})},[p.J.InsuranceDetails]:{title:(0,n.jsxs)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsxs)(h.TextPairing.Label,{color:"text-primary",children:[(0,n.jsxs)(h.Text,{display:{base:"inline",lg:"block"},as:"label",variant:"text-header-2XL",color:"text-secondary-negative",children:["One more thing:"," "]}),"What's your Highmark membership number?"]}),(0,n.jsxs)(h.TextPairing.SubLabel,{color:"text-secondary",children:["If you are a caregiver or dependent who does not have the ChristianaCare-provided Highmark insurance plan, please apply for"," ",(0,n.jsx)(h.Link,{href:"/",size:"l",children:"FlyteHealth Direct"}),"."]})]})},[p.J.InsuranceDetailsReview]:{title:(0,n.jsxs)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{children:"Let's review: Is your info correct?"}),(0,n.jsx)(h.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)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{color:"text-secondary-negative",children:"Welcome aboard! We're so excited you're here."}),(0,n.jsx)(h.TextPairing.SubLabel,{color:"text-secondary",children:"Next, we need to confirm your email. Click the link we sent to:"})]}),description:(0,n.jsx)(h.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)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{color:"text-primary",children:"You're almost finished!"}),(0,n.jsx)(h.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)(h.Text,{variant:"text-header-2XL",color:"text-primary",children:"We found an existing account for:"}),description:(0,n.jsx)(h.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."})}};var b=i(90420),y=i(98491),v=i(94445),f=i(34e3),I=i(5111),C=i(67989),D=i(15615),j=i(41209);let S={maxLength:15,minLength:15,registerOptions:{minLength:{value:15,message:"Enter the 15-character member ID number."},maxLength:{value:15,message:"Enter the 15-character member ID number."},pattern:{value:/^(C9I|C9O)/i,message:"Member ID must begin with C9i or C9o."}},label:"Highmark Membership ID Number",placeholder:"C9XXXXXXXXXXXXX"},T={[p.J.ContactDetails]:{state:{options:j.Fp}},[p.J.InsuranceDetails]:{insuranceMemberID:{...S,description:(0,n.jsx)(h.Text,{variant:"text-body-meta-regular",color:"text-secondary",children:"Enter the 15-digit Member ID as displayed on your Highmark Membership ID Card."}),tooltip:(0,n.jsxs)(h.Box,{children:[(0,n.jsx)(h.Text,{variant:"text-body-meta-regular",color:"text-light",children:"Where to find my Membership ID Number:"}),(0,n.jsx)(h.Image,{width:"100%",height:"auto",src:"/static/assets/programs/christiana-care-insurance-card.png",alt:"Member ID guidance"})]})}},[p.J.InsuranceDetailsReview]:{insuranceMemberID:S}};var k=i(4225),P=i(20893),E=i(10265),w=i(52766),F=i(94788),M=i(47243),A=i(30368);let isEligibleForAutoEnrollment=e=>{let{groupNumber:t,status:i}=e;return["10556700","10556701","10556702","10556703","10556704","10556705","10556706","10556707","10556708","10556709","10556710","10556711","10556712","10556713","10556714","10556715","10556716","10556717","10556718","10556719","10556720","10556721","10556722","10556723","10556724","10556725","10556726","10556727","10556728"].includes(t)&&"Active"===i},getLeadStatus=e=>{let{groupNumber:t,status:i}=e;if(!isEligibleForAutoEnrollment({groupNumber:t,status:i}))return D.rl.EligibleWaiting};var L=i(47190),R=i(97620),B=i(4e4);(a=r||(r={})).CreateLead="createLead",a.CheckBenefits="checkBenefits";let U={...y.a,...r},J=R.aU[E.kT.ChristianaCare],N={formData:{birthdate:"",comorbidity:"",currentWeightInPounds:"",dateOfHighestWeightValue:"",email:"",firstName:"",heightInFoot:"",heightInInch:"",highestWeightInPounds:"",insuranceCoverage:void 0,insuranceMemberID:"",insuranceProviderName:void 0,lastName:"",phone:"",state:void 0,termsAgreement:!1,howDidYouFindUS:""},bmi:void 0,benefitsCheck:void 0},H=(0,F.cY)({types:{},guards:{isPreEligibilityMet:e=>{let{context:{formData:t,bmi:i}}=e;return w.Pq.christianaCare({bmi:i,comorbidity:t.comorbidity,birthdate:t.birthdate})},isApplicationReviewRequired:e=>{var t,i;let{context:{benefitsCheck:a}}=e;return!isEligibleForAutoEnrollment({groupNumber:null==a?void 0:null===(t=a.coverage)||void 0===t?void 0:t.groupNumber,status:null==a?void 0:null===(i=a.coverage)||void 0===i?void 0:i.status})},isApplicationDetected:L.Q},actions:{updateFormData:(0,M.a)({formData:e=>{let{context:t,event:i}=e;return{...t.formData,...i.data}}}),assignBMI:(0,M.a)({bmi:e=>{let{context:t}=e,{heightInFoot:i,heightInInch:a,highestWeightInPounds:r}=t.formData;return(0,w.V2)({heightFeet:(0,w.MC)(i),heightInches:(0,w.MC)(a),weightPounds:(0,w.MC)(r)})}}),reset:(0,M.a)({...N}),resetBenefitsCheck:(0,M.a)({benefitsCheck:void 0})}}).createMachine({context:()=>N,id:"christianaCareMachine",initial:U.PreEligibility,states:{[U.PreEligibility]:{id:U.PreEligibility,initial:U.Idle,states:{[U.Idle]:{on:{SUBMIT:{target:U.Submitting,actions:"updateFormData"}}},[U.Submitting]:{entry:"assignBMI",always:[{target:"#".concat(U.ContactDetails),guard:"isPreEligibilityMet"},{target:"#".concat(U.EligibilityUnmet)}]}}},[U.ContactDetails]:{id:U.ContactDetails,initial:U.Idle,states:{[U.Idle]:{on:{SUBMIT:{target:"#".concat(U.InsuranceDetails),actions:"updateFormData"}}}}},[U.InsuranceDetails]:{id:U.InsuranceDetails,initial:U.Idle,states:{[U.Idle]:{on:{BACK:{target:"#".concat(U.ContactDetails)},SUBMIT:{target:"#".concat(U.InsuranceDetailsReview),actions:"updateFormData"}}}}},[U.InsuranceDetailsReview]:{id:U.InsuranceDetailsReview,initial:U.Idle,states:{[U.Idle]:{on:{SUBMIT:{actions:"updateFormData",target:U.Submitting}}},[U.Submitting]:{id:U.Submitting,initial:U.CheckBenefits,states:{[U.CheckBenefits]:{id:U.CheckBenefits,invoke:{src:(0,A.p4)(async e=>{let{input:t}=e,i={...t,payerCode:R.qK[E.PF.Highmark]};return await (0,B.o)(i)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:[{actions:(0,M.a)({benefitsCheck:e=>{let{event:t}=e;return t.output.data}}),target:"#".concat(U.CreateLead)}],onError:"#".concat(U.CreateLead)}},[U.CreateLead]:{id:U.CreateLead,invoke:{src:(0,A.p4)(async e=>{var t,i,a,r,n,o,l,s,c,d,u,m;let{input:g}=e,h={...g.formData,...g.formData.insuranceMemberID&&{employmentVerificationCode:g.formData.insuranceMemberID},...g.benefitsCheck&&{benefitsCheck:g.benefitsCheck},...isEligibleForAutoEnrollment({groupNumber:null===(i=g.benefitsCheck)||void 0===i?void 0:null===(t=i.coverage)||void 0===t?void 0:t.groupNumber,status:null===(r=g.benefitsCheck)||void 0===r?void 0:null===(a=r.coverage)||void 0===a?void 0:a.status})&&{eligibilityVerifiedBy:E.Vn.Pverify},insuranceProviderName:R.KG[E.kT.ChristianaCare],evolveOrganization:E.bV["ChristianaCare - Caregivers"],company:J,leadStatus:getLeadStatus({groupNumber:null===(o=g.benefitsCheck)||void 0===o?void 0:null===(n=o.coverage)||void 0===n?void 0:n.groupNumber,status:null===(s=g.benefitsCheck)||void 0===s?void 0:null===(l=s.coverage)||void 0===l?void 0:l.status}),automateEvolveEnrollment:isEligibleForAutoEnrollment({groupNumber:null===(d=g.benefitsCheck)||void 0===d?void 0:null===(c=d.coverage)||void 0===c?void 0:c.groupNumber,status:null===(m=g.benefitsCheck)||void 0===m?void 0:null===(u=m.coverage)||void 0===u?void 0:u.status})};return await (0,P.$)(h)}),input:e=>{let{context:t}=e;return t},onDone:[{guard:"isApplicationReviewRequired",target:"#".concat(U.ApplicationReview)},{target:"#".concat(U.ApplicationComplete)}],onError:[{guard:"isApplicationDetected",target:"#".concat(U.ApplicationDetected)},{target:"#".concat(U.Error)}]}}}},[U.Error]:{id:U.Error,on:{SUBMIT:{actions:["updateFormData","resetBenefitsCheck"],target:U.Submitting}}}}},[U.ApplicationReview]:{id:U.ApplicationReview},[U.ApplicationComplete]:{id:U.ApplicationComplete},[U.ApplicationDetected]:{id:U.ApplicationDetected},[U.EligibilityUnmet]:{id:U.EligibilityUnmet,initial:U.Idle,states:{[U.Idle]:{on:{SUBMIT:{target:U.Submitting,actions:"updateFormData"}}},[U.Submitting]:{invoke:{src:(0,A.p4)(async e=>{let{input:t}=e,i={...t,company:J,leadStatus:E.rl.Ineligible,ineligibilityReason:E.ib.BMI,automateEvolveEnrollment:!1};return await (0,P.$)(i)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:U.Success,onError:U.Error}},[U.Success]:{},[U.Error]:{on:{SUBMIT:{actions:"updateFormData",target:U.Submitting}}}}}},on:{RESET:{target:"#".concat(U.PreEligibility),actions:"reset"}}}),O=D.kT.ChristianaCare,ChristianaCareWorkflow=e=>{let{render:t}=e,[i,a]=(0,v.eO)(H),r=(0,o.useMemo)(()=>(0,b.k)(i.value),[i.value]);(0,C.R)(r,O);let j=(0,o.useCallback)(e=>{a({type:"SUBMIT",data:e})},[a]),S=(0,o.useCallback)(()=>{a({type:"BACK"})},[a]),P=(0,o.useCallback)(()=>{switch(r){case y.a.PreEligibility:return(0,n.jsx)(s.b,{configuration:{contentResources:x[p.J.PreEligibility]},onSubmit:j});case y.a.ContactDetails:return(0,n.jsx)(l.q,{configuration:{contentResources:x[p.J.ContactDetails],fields:T[p.J.ContactDetails]},onSubmit:j,defaultValues:i.context.formData});case y.a.EligibilityUnmet:return(0,n.jsx)(c.X,{configuration:{contentResources:x[p.J.EligibilityUnmet]},onSubmit:j,loading:i.matches({[y.a.EligibilityUnmet]:y.a.Submitting}),isEmailSent:i.matches({[y.a.EligibilityUnmet]:y.a.Success}),hasError:i.matches({[y.a.EligibilityUnmet]:y.a.Error})});case y.a.InsuranceDetails:return(0,n.jsx)(d.v,{configuration:{contentResources:x[p.J.InsuranceDetails],fields:T[p.J.InsuranceDetails]},onSubmit:j,onBack:S});case y.a.InsuranceDetailsReview:return(0,n.jsx)(u.b,{configuration:{contentResources:x[p.J.InsuranceDetailsReview],fields:T[p.J.InsuranceDetailsReview]},onSubmit:j,loading:i.matches({[y.a.InsuranceDetailsReview]:y.a.Submitting}),hasError:i.matches({[y.a.InsuranceDetailsReview]:y.a.Error}),defaultValues:i.context.formData});case y.a.ApplicationComplete:return(0,n.jsx)(m.J,{...x[p.J.ApplicationComplete],email:i.context.formData.email});case y.a.ApplicationDetected:return(0,n.jsx)(k.v,{...x[p.J.ApplicationDetected],email:i.context.formData.email});case y.a.ApplicationReview:return(0,n.jsx)(g.G,{...x[p.J.ApplicationReview]});default:return null}},[r,i]);return t({header:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(h.Flex,{gap:"spacer-5",alignItems:"center",children:[(0,n.jsx)(f.E,{partner:D.kT.Flyte}),(0,n.jsx)(h.Divider,{orientation:"vertical",alignSelf:"stretch",height:"auto"}),(0,n.jsx)(f.E,{partner:O})]}),(0,n.jsx)(I.K,{currentStep:r})]}),body:P(),currentWorkFlowStep:r})}},45321:function(e,t,i){i.d(t,{I:function(){return DGAWorkflow}});var a,r,n=i(85893),o=i(67294),l=i(79447),s=i(17081),c=i(55632),d=i(21954),u=i(98694),m=i(28588),g=i(9941),h=i(71986),p=i(93773);let x={[p.J.PreEligibility]:{title:(0,n.jsxs)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{color:"text-primary",children:"Let's make sure you're eligible for the FlyteHealth program."}),(0,n.jsx)(h.TextPairing.SubLabel,{color:"text-secondary",children:"To be eligible for the FlyteHealth program through Directors Guild of America - Producer Health Plan, you must meet specific age and Body Mass Index (BMI)* requirements."})]}),bmiEnrollmentDisclaimer:(0,n.jsx)(h.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)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{color:"text-secondary-negative",children:"Unfortunately, you are not eligible to join FlyteHealth at this time."}),(0,n.jsx)(h.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)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{color:"text-secondary-negative",children:"Congratulations! You're eligible for the FlyteHealth program"}),(0,n.jsxs)(h.TextPairing.SubLabel,{color:"text-secondary",children:["To help match your information with the DGA - Producer Health Plan, tell us about yourself.",(0,n.jsx)("br",{})," ",(0,n.jsx)("br",{}),"Next, we'll ask about your coverage status. Be sure to have your insurance card handy."]})]})},[p.J.InsuranceDetails]:{title:(0,n.jsxs)(h.Text,{variant:"text-header-2XL",color:"text-secondary-negative",children:["One more thing:"," ",(0,n.jsx)(h.Text,{as:"span",variant:"text-header-2XL",color:"text-primary",children:"What's your DGA - Producer Health Plan Participant ID?"})]})},[p.J.InsuranceDetailsReview]:{title:(0,n.jsxs)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{children:"Let's review: Is your info correct?"}),(0,n.jsx)(h.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)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{color:"text-secondary-negative",children:"Welcome aboard! We're so excited you're here."}),(0,n.jsx)(h.TextPairing.SubLabel,{color:"text-secondary",children:"Next, we need to confirm your email. Click the link we sent to:"})]}),description:(0,n.jsx)(h.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)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{color:"text-primary",children:"You're almost finished!"}),(0,n.jsx)(h.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)(h.Text,{variant:"text-header-2XL",color:"text-primary",children:"We found an existing account for:"}),description:(0,n.jsx)(h.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."})}};var b=i(20893),y=i(10265),v=i(52766),f=i(94788),I=i(47243),C=i(30368),D=i(98491),j=i(3938),S=i(15615);let isEligibleForAutoEnrollment=e=>e===j._.FULL_MATCH||e===j._.ELIGIBLE_MATCH,getLeadStatus=e=>{switch(e){case j._.PERSON_MATCH:case j._.INSURANCE_MATCH:case j._.EXPIRED:case j._.NOT_FOUND:return S.rl.EligibleWaiting;case j._.FULL_MATCH:case j._.ELIGIBLE_MATCH:default:return}};var T=i(76364),k=i(47190),P=i(97620);(a=r||(r={})).CheckEligibility="checkEligibility",a.CreateLead="createLead";let E={...D.a,...r},w=P.aU[y.kT.DGA],F={formData:{birthdate:"",comorbidity:"",currentWeightInPounds:"",dateOfHighestWeightValue:"",email:"",ssn:"",firstName:"",heightInFoot:"",heightInInch:"",highestWeightInPounds:"",insuranceCoverage:void 0,insuranceMemberID:"",insuranceProviderName:void 0,lastName:"",phone:"",termsAgreement:!1,howDidYouFindUS:""},eligibilityCheckMatchType:void 0,bmi:void 0},M=(0,f.cY)({types:{},guards:{isPreEligibilityMet:e=>{let{context:{formData:t,bmi:i}}=e;return v.Pq.dga({bmi:i,comorbidity:t.comorbidity})},isApplicationReviewRequired:e=>{let{context:{eligibilityCheckMatchType:t}}=e;return[y._q.EXPIRED,y._q.INSURANCE_MATCH,y._q.PERSON_MATCH,y._q.NOT_FOUND].includes(t)},isApplicationDetected:k.Q},actions:{updateFormData:(0,I.a)({formData:e=>{let{context:t,event:i}=e;return{...t.formData,...i.data}}}),assignBMI:(0,I.a)({bmi:e=>{let{context:t}=e,{heightInFoot:i,heightInInch:a,highestWeightInPounds:r}=t.formData;return(0,v.V2)({heightFeet:(0,v.MC)(i),heightInches:(0,v.MC)(a),weightPounds:(0,v.MC)(r)})}}),reset:(0,I.a)({...F})}}).createMachine({context:()=>F,id:"dgaMachine",initial:E.PreEligibility,states:{[E.PreEligibility]:{id:E.PreEligibility,initial:E.Idle,states:{[E.Idle]:{on:{SUBMIT:{target:E.Submitting,actions:"updateFormData"}}},[E.Submitting]:{entry:"assignBMI",always:[{target:"#".concat(E.ContactDetails),guard:"isPreEligibilityMet"},{target:"#".concat(E.EligibilityUnmet)}]}}},[E.ContactDetails]:{id:E.ContactDetails,initial:E.Idle,states:{[E.Idle]:{on:{SUBMIT:{target:"#".concat(E.InsuranceDetails),actions:"updateFormData"}}}}},[E.InsuranceDetails]:{id:E.InsuranceDetails,initial:E.Idle,states:{[E.Idle]:{on:{BACK:{target:"#".concat(E.ContactDetails)},SUBMIT:{target:"#".concat(E.InsuranceDetailsReview),actions:"updateFormData"}}}}},[E.InsuranceDetailsReview]:{id:E.InsuranceDetailsReview,initial:E.Idle,states:{[E.Idle]:{on:{SUBMIT:{actions:"updateFormData",target:E.Submitting}}},[E.Submitting]:{id:E.Submitting,initial:E.CheckEligibility,states:{[E.CheckEligibility]:{id:E.CheckEligibility,invoke:{src:(0,C.p4)(async e=>{let{input:t}=e,i={...t,insuranceMemberID:t.ssn,insuranceProviderName:P.Er[y.kT.DGA],benefitProgram:P.Q1[y.kT.DGA]};return await (0,T.m)(i)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:[{actions:(0,I.a)({eligibilityCheckMatchType:e=>{let{event:t}=e;return t.output.data.matchType}}),target:"#".concat(E.CreateLead)}],onError:"#".concat(E.Error)}},[E.CreateLead]:{id:E.CreateLead,invoke:{src:(0,C.p4)(async e=>{let{input:t}=e,i={...t.formData,...t.formData.ssn&&{employmentVerificationCode:t.formData.ssn},eligibilityVerifiedBy:y.Vn.Evolve,insuranceMemberID:(0,v.MC)(t.formData.insuranceMemberID).toString(),company:w,insuranceProviderName:P.KG[y.kT.DGA],evolveOrganization:y.bV["Directors Guild of America – Producer Health Plan"],leadStatus:getLeadStatus(t.eligibilityCheckMatchType),automateEvolveEnrollment:isEligibleForAutoEnrollment(t.eligibilityCheckMatchType)};return await (0,b.$)(i)}),input:e=>{let{context:t}=e;return t},onDone:[{guard:"isApplicationReviewRequired",target:"#".concat(E.ApplicationReview)},{target:"#".concat(E.ApplicationComplete)}],onError:[{guard:"isApplicationDetected",target:"#".concat(E.ApplicationDetected)},{target:"#".concat(E.Error)}]}}}},[E.Error]:{id:E.Error,on:{SUBMIT:{actions:"updateFormData",target:E.Submitting}}}}},[E.ApplicationReview]:{id:E.ApplicationReview},[E.ApplicationComplete]:{id:E.ApplicationComplete},[E.ApplicationDetected]:{id:E.ApplicationDetected},[E.EligibilityUnmet]:{id:E.EligibilityUnmet,initial:E.Idle,states:{[E.Idle]:{on:{SUBMIT:{target:E.Submitting,actions:"updateFormData"}}},[E.Submitting]:{invoke:{src:(0,C.p4)(async e=>{let{input:t}=e,i={...t,company:w,leadStatus:y.rl.Ineligible,ineligibilityReason:y.ib.BMI,automateEvolveEnrollment:!1};return await (0,b.$)(i)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:E.Success,onError:E.Error}},[E.Success]:{},[E.Error]:{on:{SUBMIT:{target:E.Submitting}}}}}},on:{RESET:{target:"#".concat(E.PreEligibility),actions:"reset"}}});var A=i(90420),L=i(94445),R=i(34e3),B=i(5111),U=i(67989),J=i(41209);let N={placeholder:"DGAXXXXXXXX",label:"DGA - Producer Plan Participant ID",maxLength:11,minLength:11,inputMode:"numeric",maskOptions:{mask:["D","G","A",/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/],prefix:"DGA"},registerOptions:{minLength:{value:11,message:"Enter the 8-digit member ID number."},maxLength:{value:11,message:"Enter the 8-digit member ID number."}}},H={[p.J.ContactDetails]:{ssn:{},state:{options:J.Fp}},[p.J.InsuranceDetails]:{insuranceMemberID:{description:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h.Text,{variant:"text-body-meta-regular",color:"text-secondary",children:"Enter your Member ID number"}),(0,n.jsx)(h.Text,{variant:"text-body-meta-bold",color:"text-secondary",children:"Omit the first three alphabetic characters ('DGA')"})]}),...N}},[p.J.InsuranceDetailsReview]:{insuranceMemberID:N}};var O=i(4225);let DGAWorkflow=e=>{let{render:t}=e,[i,a]=(0,L.eO)(M),r=(0,o.useMemo)(()=>(0,A.k)(i.value),[i.value]);(0,U.R)(r);let b=(0,o.useCallback)(e=>{a({type:"SUBMIT",data:e})},[a]),y=(0,o.useCallback)(()=>{a({type:"BACK"})},[a]),v=(0,o.useCallback)(()=>{switch(r){case D.a.PreEligibility:return(0,n.jsx)(s.b,{configuration:{contentResources:x[p.J.PreEligibility]},onSubmit:b});case D.a.ContactDetails:return(0,n.jsx)(l.q,{configuration:{contentResources:x[p.J.ContactDetails],fields:H[p.J.ContactDetails]},onSubmit:b,defaultValues:i.context.formData});case D.a.EligibilityUnmet:return(0,n.jsx)(c.X,{configuration:{contentResources:x[p.J.EligibilityUnmet]},onSubmit:b,loading:i.matches({[D.a.EligibilityUnmet]:D.a.Submitting}),isEmailSent:i.matches({[D.a.EligibilityUnmet]:D.a.Success}),hasError:i.matches({[D.a.EligibilityUnmet]:D.a.Error})});case D.a.InsuranceDetails:return(0,n.jsx)(d.v,{configuration:{contentResources:x[p.J.InsuranceDetails],fields:H[p.J.InsuranceDetails]},onSubmit:b,onBack:y});case D.a.InsuranceDetailsReview:return(0,n.jsx)(u.b,{configuration:{contentResources:x[p.J.InsuranceDetailsReview],fields:H[p.J.InsuranceDetailsReview]},onSubmit:b,loading:i.matches({[D.a.InsuranceDetailsReview]:D.a.Submitting}),hasError:i.matches({[D.a.InsuranceDetailsReview]:D.a.Error}),defaultValues:i.context.formData});case D.a.ApplicationComplete:return(0,n.jsx)(m.J,{...x[p.J.ApplicationComplete],email:i.context.formData.email});case D.a.ApplicationDetected:return(0,n.jsx)(O.v,{...x[p.J.ApplicationDetected],email:i.context.formData.email});case D.a.ApplicationReview:return(0,n.jsx)(g.G,{...x[p.J.ApplicationReview]});default:return null}},[r,i]);return t({header:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(h.Flex,{gap:"spacer-5",alignItems:"center",children:[(0,n.jsx)(R.E,{partner:S.kT.Flyte}),(0,n.jsx)(h.Divider,{orientation:"vertical",alignSelf:"stretch",height:"auto"}),(0,n.jsx)(R.E,{partner:S.kT.DGA})]}),(0,n.jsx)(B.K,{currentStep:r})]}),body:v(),currentWorkFlowStep:r})}},84251:function(e,t,i){i.d(t,{U:function(){return FlyteSignUpLauncher}});var a,r,n=i(85893),o=i(67294),l=i(71986),s=i(78430),c=i(3985),d=i(93773),u=i(90420),m=i(94445),g=i(34e3),h=i(15615),p=i(10265),x=i(94788);let b={WorkflowSelector:"workflowSelector",...p.kT},y=(0,x.cY)({types:{},guards:{isCareCompassSelected:e=>{let{event:t}=e;return t.data.workflow===p.kT.CareCompass},isAetnaSelected:e=>{let{event:t}=e;return t.data.workflow===p.kT.Aetna},isRiverspringSelected:e=>{let{event:t}=e;return t.data.workflow===p.kT.RiverSpringLiving},isPequotSelected:e=>{let{event:t}=e;return t.data.workflow===p.kT.PequotHealthCare},isPyleSelected:e=>{let{event:t}=e;return t.data.workflow===p.kT.PyleFamilyInsurance},isDGASelected:e=>{let{event:t}=e;return t.data.workflow===p.kT.DGA},isMDSaveSelected:e=>{let{event:t}=e;return t.data.workflow===p.kT.MDSave},isChristianaCareSelected:e=>{let{event:t}=e;return t.data.workflow===p.kT.ChristianaCare}}}).createMachine({id:"workflowManagerMachine",initial:b.WorkflowSelector,states:{[b.WorkflowSelector]:{id:b.WorkflowSelector,on:{SUBMIT:[{guard:"isCareCompassSelected",target:b.CareCompass},{guard:"isAetnaSelected",target:b.Aetna},{guard:"isRiverspringSelected",target:b.RiverSpringLiving},{guard:"isPequotSelected",target:b.PequotHealthCare},{guard:"isPyleSelected",target:b.PyleFamilyInsurance},{guard:"isDGASelected",target:b.DGA},{guard:"isMDSaveSelected",target:b.MDSave},{guard:"isChristianaCareSelected",target:b.ChristianaCare},{target:b.Flyte}]}},[b.PequotHealthCare]:{},[b.RiverSpringLiving]:{},[b.CareCompass]:{},[b.Aetna]:{},[b.Flyte]:{},[b.PyleFamilyInsurance]:{},[b.DGA]:{},[b.MDSave]:{},[b.ChristianaCare]:{}}});var v=i(79447),f=i(17081),I=i(55632),C=i(21954),D=i(98694),j=i(28588),S=i(9941);let T={[d.J.PreEligibility]:{title:(0,n.jsxs)(l.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsxs)(l.TextPairing.Label,{color:"text-secondary-negative",children:["We're so glad you're here!"," ",(0,n.jsx)(l.Text,{as:"span",variant:"text-header-2XL",color:"text-primary",children:"Let's make sure you're eligible for FlyteHealth."})]}),(0,n.jsx)(l.TextPairing.SubLabel,{color:"text-secondary",children:"You must meet specific age and Body Mass Index (BMI) requirements* to be eligible for the FlyteHealth program."})]}),bmiEnrollmentDisclaimer:(0,n.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."})},[d.J.EligibilityUnmet]:{title:(0,n.jsxs)(l.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(l.TextPairing.Label,{color:"text-secondary-negative",children:"Unfortunately, you are not eligible to join FlyteHealth at this time."}),(0,n.jsx)(l.TextPairing.SubLabel,{color:"text-secondary",children:"FlyteHealth requires a minimum BMI of 27+ (plus one or more weight-related health conditions) or a BMI of 30+"})]})},[d.J.ContactDetails]:{title:(0,n.jsxs)(l.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(l.TextPairing.Label,{color:"text-secondary-negative",children:"Congratulations! You're eligible for the FlyteHealth program"}),(0,n.jsx)(l.TextPairing.SubLabel,{color:"text-secondary",children:"Tell us a little more about yourself."})]})},[d.J.InsuranceDetails]:{title:(0,n.jsxs)(l.Text,{variant:"text-header-2XL",color:"text-secondary-negative",children:["One more thing:"," ",(0,n.jsx)(l.Text,{as:"span",variant:"text-header-2XL",color:"text-primary",children:"Do you have health insurance?"})]})},[d.J.InsuranceDetailsReview]:{title:(0,n.jsxs)(l.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(l.TextPairing.Label,{children:"Let's review: Is your info correct?"}),(0,n.jsx)(l.TextPairing.SubLabel,{color:"text-secondary",children:"Please double-check the information you provided to make sure everything is correct."})]})},[d.J.ApplicationComplete]:{title:(0,n.jsxs)(l.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(l.TextPairing.Label,{color:"text-secondary-negative",children:"Welcome aboard! We're so excited you're here."}),(0,n.jsx)(l.TextPairing.SubLabel,{color:"text-secondary",children:"Next, we need to confirm your email. Click the link we sent to:"})]}),description:(0,n.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."})},[d.J.ApplicationReview]:{title:(0,n.jsxs)(l.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(l.TextPairing.Label,{color:"text-primary",children:"You're almost finished!"}),(0,n.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."})]})},[d.J.ApplicationDetected]:{title:(0,n.jsx)(l.Text,{variant:"text-header-2XL",color:"text-primary",children:"We found an existing account for:"}),description:(0,n.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."})}};var k=i(20893),P=i(52766),E=i(47243),w=i(30368),F=i(98491),M=i(76089);let A=[h.PF["1199SEIU"],h.PF.BCBS,h.PF.BCBSPPO,h.PF.United],L=[h.PF.Aetna,h.PF.Cigna],getEvolveOrganization=(e,t,i)=>{if(i===h.eF.SelfPay)return t===h.i$["New York"]?h.bV.SIA:h.bV.Flyte;let a=A.includes(e)||L.includes(e)&&t===h.i$["New York"]||e===h.PF.Other&&t===h.i$["New York"];return a?h.bV.SIA:h.bV.Flyte},isInsuranceStateEligible=(e,t)=>{switch(e){case h.PF["1199SEIU"]:return!0;case h.PF.Aetna:case h.PF.Cigna:return[h.i$["New York"],h.i$["New Jersey"],h.i$.Connecticut].includes(t);case h.PF.BCBS:case h.PF.United:return t===h.i$["New York"];case h.PF.BCBSPPO:case h.PF.Other:default:return!1}},isEligibleForAutoEnrollment=e=>{let{bmi:t,comorbidity:i,insuranceProviderName:a,insuranceCoverage:r,state:n}=e;return(!(t>=27)||!(t<=30)||i!==M.IQ.Yes)&&r!==h.eF.SelfPay&&isInsuranceStateEligible(a,n)},getIneligibilityReason=e=>{let{insuranceCoverage:t,insuranceProviderName:i,state:a}=e;return t===h.eF.SelfPay?h.ib.CashPay:isInsuranceStateEligible(i,a)?void 0:h.ib.Insurance},getLeadStatus=e=>{let{bmi:t,comorbidity:i,insuranceCoverage:a,insuranceProviderName:r,state:n}=e;if(!isEligibleForAutoEnrollment({bmi:t,comorbidity:i,insuranceProviderName:r,insuranceCoverage:a,state:n}))return h.rl.EligibleWaiting},getInsuranceProviderName=e=>{let{insuranceProviderName:t,insuranceCoverage:i}=e;return i===h.eF.SelfPay?h.PF.SelfPay:t};var R=i(47190),B=i(97620),U=i(4e4);(a=r||(r={})).CreateLead="createLead",a.CheckBenefits="checkBenefits",a.DecisionGate="decisionGate";let J={...F.a,...r},N=B.aU[p.kT.Flyte],H={formData:{birthdate:"",comorbidity:"",currentWeightInPounds:"",dateOfHighestWeightValue:"",email:"",firstName:"",heightInFoot:"",heightInInch:"",highestWeightInPounds:"",insuranceCoverage:void 0,insuranceMemberID:"",insuranceProviderName:void 0,lastName:"",phone:"",state:void 0,termsAgreement:!1,howDidYouFindUS:""},bmi:void 0,benefitsCheck:void 0},O=(0,x.cY)({types:{},guards:{isPreEligibilityMet:e=>{let{context:{formData:t,bmi:i}}=e;return P.Pq.flyte({bmi:i,comorbidity:t.comorbidity})},isApplicationReviewRequired:e=>{let{context:{formData:t,bmi:i}}=e;return!isEligibleForAutoEnrollment({bmi:i,comorbidity:t.comorbidity,insuranceCoverage:t.insuranceCoverage,insuranceProviderName:t.insuranceProviderName,state:t.state})},isApplicationDetected:R.Q,isInsurerSelected:e=>{let{context:{formData:t}}=e;return!!t.insuranceProviderName&&t.insuranceProviderName!==p.PF.Other}},actions:{updateFormData:(0,E.a)({formData:e=>{let{context:t,event:i}=e;return{...t.formData,...i.data}}}),assignBMI:(0,E.a)({bmi:e=>{let{context:t}=e,{heightInFoot:i,heightInInch:a,highestWeightInPounds:r}=t.formData;return(0,P.V2)({heightFeet:(0,P.MC)(i),heightInches:(0,P.MC)(a),weightPounds:(0,P.MC)(r)})}}),reset:(0,E.a)({...H}),resetBenefitsCheck:(0,E.a)({benefitsCheck:void 0})}}).createMachine({context:()=>H,id:"flyteMachine",initial:J.PreEligibility,states:{[J.PreEligibility]:{id:J.PreEligibility,initial:J.Idle,states:{[J.Idle]:{on:{SUBMIT:{target:J.Submitting,actions:"updateFormData"}}},[J.Submitting]:{entry:"assignBMI",always:[{guard:"isPreEligibilityMet",target:"#".concat(J.ContactDetails)},{target:"#".concat(J.EligibilityUnmet)}]}}},[J.ContactDetails]:{id:J.ContactDetails,initial:J.Idle,states:{[J.Idle]:{on:{SUBMIT:{target:"#".concat(J.InsuranceDetails),actions:"updateFormData"}}}}},[J.InsuranceDetails]:{id:J.InsuranceDetails,initial:J.Idle,states:{[J.Idle]:{on:{BACK:{target:"#".concat(J.ContactDetails)},SUBMIT:{target:"#".concat(J.InsuranceDetailsReview),actions:"updateFormData"}}}}},[J.InsuranceDetailsReview]:{id:J.InsuranceDetailsReview,initial:J.Idle,states:{[J.Idle]:{on:{SUBMIT:{actions:"updateFormData",target:J.Submitting}}},[J.Submitting]:{id:J.Submitting,initial:J.DecisionGate,states:{[J.DecisionGate]:{id:J.DecisionGate,always:[{guard:"isInsurerSelected",target:"#".concat(J.CheckBenefits)},{target:"#".concat(J.CreateLead)}]},[J.CheckBenefits]:{id:J.CheckBenefits,invoke:{src:(0,w.p4)(async e=>{let{input:t}=e,i={...t,payerCode:B.qK[t.insuranceProviderName]};return await (0,U.o)(i)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:[{actions:(0,E.a)({benefitsCheck:e=>{let{event:t}=e;return t.output.data}}),target:"#".concat(J.CreateLead)}],onError:"#".concat(J.CreateLead)}},[J.CreateLead]:{id:J.CreateLead,invoke:{src:(0,w.p4)(async e=>{let{input:t}=e,i={...t.formData,...t.benefitsCheck&&{benefitsCheck:t.benefitsCheck},company:N,insuranceProviderName:getInsuranceProviderName({insuranceCoverage:t.formData.insuranceCoverage,insuranceProviderName:t.formData.insuranceProviderName}),evolveOrganization:getEvolveOrganization(t.formData.insuranceProviderName,t.formData.state,t.formData.insuranceCoverage),ineligibilityReason:getIneligibilityReason({insuranceCoverage:t.formData.insuranceCoverage,insuranceProviderName:t.formData.insuranceProviderName,state:t.formData.state}),leadStatus:getLeadStatus({bmi:t.bmi,comorbidity:t.formData.comorbidity,insuranceCoverage:t.formData.insuranceCoverage,insuranceProviderName:t.formData.insuranceProviderName,state:t.formData.state}),automateEvolveEnrollment:isEligibleForAutoEnrollment({bmi:t.bmi,comorbidity:t.formData.comorbidity,insuranceCoverage:t.formData.insuranceCoverage,insuranceProviderName:t.formData.insuranceProviderName,state:t.formData.state})};return await (0,k.$)(i)}),input:e=>{let{context:t}=e;return t},onDone:[{guard:"isApplicationReviewRequired",target:"#".concat(J.ApplicationReview)},{target:"#".concat(J.ApplicationComplete)}],onError:[{guard:"isApplicationDetected",target:"#".concat(J.ApplicationDetected)},{target:"#".concat(J.Error)}]}}}},[J.Error]:{id:J.Error,on:{SUBMIT:{actions:["updateFormData","resetBenefitsCheck"],target:J.Submitting}}}}},[J.ApplicationReview]:{id:J.ApplicationReview},[J.ApplicationComplete]:{id:J.ApplicationComplete},[J.ApplicationDetected]:{id:J.ApplicationDetected},[J.EligibilityUnmet]:{id:J.EligibilityUnmet,initial:J.Idle,states:{[J.Idle]:{on:{SUBMIT:{target:J.Submitting,actions:"updateFormData"}}},[J.Submitting]:{invoke:{src:(0,w.p4)(async e=>{let{input:t}=e,i={...t,company:B.aU[p.kT.Flyte],leadStatus:p.rl.Ineligible,ineligibilityReason:p.ib.BMI,automateEvolveEnrollment:!1};return await (0,k.$)(i)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:J.Success,onError:J.Error}},[J.Success]:{},[J.Error]:{on:{SUBMIT:{target:J.Submitting}}}}}},on:{RESET:{target:"#".concat(J.PreEligibility),actions:"reset"}}});var W=i(5111),q=i(67989),_=i(41209);let V=[h.PF["1199SEIU"],h.PF.Aetna,h.PF.Cigna,h.PF.BCBS,h.PF.BCBSPPO,h.PF.United,h.PF.Other],G={[d.J.ContactDetails]:{state:{options:_.Fp}},[d.J.InsuranceDetails]:{insuranceCoverage:{},insuranceProviderName:{insuranceCarriers:V},insuranceMemberID:{}},[d.J.InsuranceDetailsReview]:{insuranceProviderName:{insuranceCarriers:V}}};var X=i(4225);let Y=h.kT.Flyte,FlyteWorkflow=e=>{let{render:t}=e,[i,a]=(0,m.eO)(O),r=(0,o.useMemo)(()=>(0,u.k)(i.value),[i.value]);(0,q.R)(r,Y);let l=(0,o.useCallback)(e=>{a({type:"SUBMIT",data:e})},[a]),s=(0,o.useCallback)(()=>{a({type:"BACK"})},[a]),c=(0,o.useCallback)(()=>{switch(r){case F.a.PreEligibility:return(0,n.jsx)(f.b,{configuration:{contentResources:T[d.J.PreEligibility]},onSubmit:l});case F.a.ContactDetails:return(0,n.jsx)(v.q,{configuration:{contentResources:T[d.J.ContactDetails],fields:G[d.J.ContactDetails]},onSubmit:l,defaultValues:i.context.formData});case F.a.EligibilityUnmet:return(0,n.jsx)(I.X,{configuration:{contentResources:T[d.J.EligibilityUnmet]},onSubmit:l,loading:i.matches({[F.a.EligibilityUnmet]:F.a.Submitting}),isEmailSent:i.matches({[F.a.EligibilityUnmet]:F.a.Success}),hasError:i.matches({[F.a.EligibilityUnmet]:F.a.Error})});case F.a.InsuranceDetails:return(0,n.jsx)(C.v,{configuration:{contentResources:T[d.J.InsuranceDetails],fields:G[d.J.InsuranceDetails]},onSubmit:l,onBack:s});case F.a.InsuranceDetailsReview:return(0,n.jsx)(D.b,{configuration:{contentResources:T[d.J.InsuranceDetailsReview]},onSubmit:l,loading:i.matches({[F.a.InsuranceDetailsReview]:F.a.Submitting}),hasError:i.matches({[F.a.InsuranceDetailsReview]:F.a.Error}),defaultValues:i.context.formData});case F.a.ApplicationComplete:return(0,n.jsx)(j.J,{...T[d.J.ApplicationComplete],email:i.context.formData.email});case F.a.ApplicationReview:return(0,n.jsx)(S.G,{...T[d.J.ApplicationReview]});case F.a.ApplicationDetected:return(0,n.jsx)(X.v,{...T[d.J.ApplicationDetected],email:i.context.formData.email});default:return null}},[r,i]);return t({header:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(g.E,{partner:Y}),(0,n.jsx)(W.K,{currentStep:r})]}),body:c(),currentWorkFlowStep:r})};var z=i(57087),K=i(76849);let WorkflowCard=e=>(0,n.jsx)(l.Flex,{direction:"column",gap:"spacer-2",alignItems:"center",cursor:"pointer",role:"group",tabIndex:0,outline:"none",as:"button",onKeyDown:t=>{"Enter"===t.key&&e.onClick()},...e});WorkflowCard.Image=e=>(0,n.jsx)(l.Image,{flex:1,objectFit:"contain",...e}),WorkflowCard.Description=e=>(0,n.jsx)(l.Text,{variant:"text-body-floating-label-regular",color:"text-secondary",textAlign:"center",...e}),WorkflowCard.Title=e=>(0,n.jsx)(l.Text,{color:"text-secondary",variant:"text-body-meta-medium",transition:"color 100ms linear",_groupHover:{color:"text-link-primary-hover"},_groupActive:{color:"text-link-primary-pressed"},_groupFocusVisible:{color:"text-link-primary-default"},...e}),WorkflowCard.Frame=e=>(0,n.jsx)(l.Flex,{px:"spacer-3",pb:"spacer-5",borderRadius:"radii-1",borderWidth:"1px",borderStyle:"solid",borderColor:"ui-element-outline-active",transition:"background-color 100ms linear, border-color 100ms linear",_groupFocusVisible:{outlineWidth:"3px",outlineStyle:"solid",outlineColor:"primary-focus"},_groupHover:{borderColor:"primary-hover",backgroundColor:"background-action-hover"},_groupActive:{borderColor:"primary-pressed",backgroundColor:"background-action-pressed"},direction:"column",alignItems:"center",minHeight:"160px",width:"100%",...e});let $={[h.kT.CareCompass]:{asset:{src:g.Z[h.kT.CareCompass],width:"64px",height:"64px",alt:"Care Compass Logo"},name:"Care Compass",description:"State of Connecticut Health Plan Members"},[h.kT.Aetna]:{asset:{src:g.Z[h.kT.Aetna],width:"141px",height:"32px",alt:"Aetna Logo"},name:"State of Connecticut: Aetna",description:"Aetna MA for State of Connecticut Retirees"},[h.kT.PequotHealthCare]:{asset:{src:g.Z[h.kT.PequotHealthCare],width:"103px",height:"40px",alt:"Pequot Health Care Logo"},name:"Mashantucket Pequot Tribal Nation",description:"Pequot Healthy Weight Program"},[h.kT.RiverSpringLiving]:{asset:{src:g.Z[h.kT.RiverSpringLiving],width:"158px",height:"24px",alt:"RiverSpring Living Logo"},name:"RiverSpring Living Employee Program",description:"Employees at The Hebrew Home at Riverdale by RiverSpring Living"},[h.kT.PyleFamilyInsurance]:{asset:{src:g.Z[h.kT.PyleFamilyInsurance],width:"157px",height:"48px",alt:"Pyle Family Insurance Logo"},name:"A. Duie Pyle",description:"Pyle Weight Management Program for Employees"},[h.kT.DGA]:{asset:{src:g.Z[h.kT.DGA],width:"123px",height:"40px",alt:"DGA Logo"},name:"Directors Guild of America",description:"DGA - Producer Health Plan Participant"},[h.kT.MDSave]:{asset:{src:g.Z[h.kT.MDSave],width:"56px",height:"56px",alt:"MDsave Logo"},name:"MDsave",description:"Patients in partnership with MDsave"}};var Q=i(3183),Z=i(25675),ee=i.n(Z);let WorkflowSelector=e=>{let{onSelectWorkflow:t}=e,{track:i}=(0,Q.useAnalytics)(),[a,r]=(0,o.useState)(""),handleWorkflowClick=e=>()=>(i("".concat(e,"_selected"),{partner:e}),t(e)),s=(0,o.useMemo)(()=>Object.entries($).filter(e=>{let[,{description:t,name:i}]=e;return t.toLowerCase().includes(a)||i.toLowerCase().includes(a)}),[a]);return(0,n.jsxs)(z.D,{direction:"column",gap:"spacer-9",children:[(0,n.jsxs)(l.Flex,{direction:"column",gap:"spacer-2",children:[(0,n.jsxs)(l.Text,{variant:"text-header-XL",color:"text-secondary-negative",children:["Welcome!"," ",(0,n.jsx)(l.Text,{as:"span",variant:"text-header-XL",color:"text-primary",children:"Select whether you're applying to FlyteHealth Direct or a specific benefit program."})]}),(0,n.jsxs)(l.Text,{color:"text-secondary",variant:"text-body-regular",children:["If you are not sure, please"," ",(0,n.jsx)(l.Link,{as:"button",isInline:!0,onClick:handleWorkflowClick(h.kT.Flyte),children:"continue with FlyteHealth Direct."})," ","(We'll review this later)."]})]}),(0,n.jsxs)(l.Flex,{direction:"column",gap:{base:"spacer-9"},children:[(0,n.jsxs)(l.Flex,{direction:"column",gap:"spacer-4",flex:1,maxWidth:"16rem",children:[(0,n.jsxs)(l.Flex,{gap:"spacer-3",alignItems:"center",children:[(0,n.jsx)(l.IconArrowRight,{color:"primary-default",size:"l"}),(0,n.jsx)(l.Text,{variant:"text-body-large-medium",color:"text-primary",children:"FlyteHealth Direct"})]}),(0,n.jsx)(WorkflowCard,{onClick:handleWorkflowClick(h.kT.Flyte),children:(0,n.jsx)(WorkflowCard.Frame,{p:0,width:"100%",minHeight:{base:"7.5rem",md:"10rem"},children:(0,n.jsx)(WorkflowCard.Image,{src:g.Z[h.kT.Flyte],width:"123px",height:"40px",alt:"Flyte Logo"})})})]}),(0,n.jsxs)(l.Flex,{direction:"column",gap:"spacer-4",pb:{base:"spacer-9",md:"spacer-6"},flex:1,children:[(0,n.jsxs)(l.Flex,{direction:{base:"column",md:"row"},gap:{base:"spacer-6",md:"spacer-3"},justifyContent:{md:"space-between"},alignItems:{md:"end"},children:[(0,n.jsxs)(l.Flex,{gap:"spacer-3",alignItems:"center",flex:1,children:[(0,n.jsx)(l.IconArrowRight,{color:"primary-default",size:"l"}),(0,n.jsx)(l.Text,{variant:"text-body-large-medium",color:"text-primary",children:"Available Benefit Programs:"})]}),(0,n.jsx)(l.Flex,{flex:1,maxWidth:{md:"20rem"},children:(0,n.jsx)(l.Input,{placeholder:"Type to search program",size:"m",variant:"flushed",leadingIcon:(0,n.jsx)(l.IconSearch,{}),onChange:e=>{r(e.target.value.toLowerCase())},autoComplete:"off",autoCorrect:"off"})})]}),s.length>0?(0,n.jsx)(l.Grid,{spacingX:"spacer-4",spacingY:{base:"spacer-4",lg:"spacer-6"},columns:{base:2,md:3,lg:4,xxl:5},children:s.map((e,t)=>{let[i,{asset:a,description:r,name:o}]=e;return(0,n.jsxs)(WorkflowCard,{onClick:handleWorkflowClick(i),children:[(0,n.jsxs)(WorkflowCard.Frame,{children:[(0,n.jsx)(WorkflowCard.Image,{...a}),(0,n.jsx)(WorkflowCard.Description,{children:r})]}),(0,n.jsx)(WorkflowCard.Title,{children:o})]},t)})}):(0,n.jsxs)(l.Flex,{py:"spacer-8",gap:"spacer-4",direction:"column",alignItems:"center",children:[(0,n.jsx)(ee(),{alt:"No results found",width:170,height:166,src:"/static/assets/application-complete.png"}),(0,n.jsxs)(l.Text,{variant:"text-body-regular",color:"text-secondary",children:['Sorry, no results found for "',a,'". If you are not able to find your program, please continue with'," ",(0,n.jsx)(l.Link,{as:"button",isInline:!0,onClick:handleWorkflowClick(h.kT.Flyte),fontWeight:"light",children:"FlyteHealth Direct."})]})]})]})]}),(0,n.jsxs)(l.Flex,{direction:"column",gap:"spacer-1",children:[(0,n.jsx)(l.Text,{color:"text-secondary",variant:"text-body-bold",children:"Need some help?"}),(0,n.jsxs)(l.Text,{color:"text-secondary",variant:"text-body-regular",children:["Please call ",(0,n.jsx)(K.R,{})," to speak with a Care Coordinator."]})]})]})};var et=i(2070),ei=i(19813),ea=i(4985),er=i(80702),en=i(9231),eo=i(54638),el=i(45321),es=i(76371),ec=i(21991);let WorkflowManager=e=>{let{render:t}=e,[i,a]=(0,m.eO)(y),r=(0,o.useMemo)(()=>(0,u.k)(i.value),[i.value]),s=(0,o.useCallback)(e=>{a({type:"SUBMIT",data:{workflow:e}})},[a]),c=(0,o.useCallback)(()=>{switch(r){case b.WorkflowSelector:return t({header:(0,n.jsx)(g.E,{partner:h.kT.Flyte}),body:(0,n.jsx)(WorkflowSelector,{onSelectWorkflow:s}),currentWorkFlowStep:r});case b.Aetna:return(0,n.jsx)(l.ComposerProvider,{theme:et.rS.aetna,children:(0,n.jsx)(ei.U,{render:t})});case b.CareCompass:return(0,n.jsx)(l.ComposerProvider,{theme:et.rS.careCompass,children:(0,n.jsx)(ea.$,{render:t})});case b.RiverSpringLiving:return(0,n.jsx)(l.ComposerProvider,{theme:et.rS.riverspring,children:(0,n.jsx)(er.l,{render:t})});case b.PequotHealthCare:return(0,n.jsx)(l.ComposerProvider,{theme:et.rS.pequot,children:(0,n.jsx)(en.u,{render:t})});case b.PyleFamilyInsurance:return(0,n.jsx)(l.ComposerProvider,{theme:et.rS.pyle,children:(0,n.jsx)(eo.u,{render:t})});case b.DGA:return(0,n.jsx)(l.ComposerProvider,{theme:et.rS.standard,children:(0,n.jsx)(el.I,{render:t})});case b.MDSave:return(0,n.jsx)(l.ComposerProvider,{theme:et.rS.standard,children:(0,n.jsx)(es.t,{render:t})});case b.ChristianaCare:return(0,n.jsx)(l.ComposerProvider,{theme:et.rS.standard,children:(0,n.jsx)(ec.k,{render:t})});case b.Flyte:default:return(0,n.jsx)(FlyteWorkflow,{render:t})}},[r]);return c()};var ed=i(95875);let FlyteSignUpLauncher=e=>{let{size:t="l",children:i="Get Started",...a}=e,[r,u]=(0,o.useState)(!1),[m,g]=(0,o.useState)(!1),{track:h}=(0,Q.useAnalytics)(),p=(0,o.useCallback)(()=>{g(!1),u(!1),h(ed.U.closeWorkflowEvent)},[]),x=(0,o.useCallback)(e=>{let t=[d.J.ApplicationReview,d.J.ApplicationComplete,d.J.ApplicationDetected,d.J.EligibilityUnmet],i=t.includes(e);i?u(!1):(h(ed.U.closeWorkflowConfirmationEvent),b())},[]),b=(0,o.useCallback)(()=>g(e=>!e),[]),y=(0,o.useCallback)(()=>{h(ed.U.abortCloseWorkflow),b()},[b]),v=(0,o.useCallback)(()=>{h(ed.U.openPartnerSelectorEvent),u(!0)},[h,u]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.Button,{onClick:v,trailingIcon:(0,n.jsx)(l.IconArrowRight,{}),size:t,children:i,"data-test":"flyteSignUpLauncher",...a}),r&&(0,n.jsx)(WorkflowManager,{render:e=>{let{header:t,body:i,currentWorkFlowStep:a}=e;return(0,n.jsxs)(c.Eg,{isOpen:!0,onClose:()=>x(a),children:[(0,n.jsx)(c.Eg.Header,{children:t}),(0,n.jsx)(c.Eg.Body,{children:i},a)]})}}),(0,n.jsx)(s.e,{isOpen:m,onContinue:y,onLeave:p})]})}},76371:function(e,t,i){i.d(t,{t:function(){return MDSaveWorkflow}});var a,r=i(85893),n=i(67294),o=i(79447),l=i(17081),s=i(55632),c=i(9941),d=i(71986),u=i(93773);let m={[u.J.PreEligibility]:{title:(0,r.jsxs)(d.TextPairing,{variant:"textpairing-header-2XL",children:[(0,r.jsx)(d.TextPairing.Label,{color:"text-primary",children:"Let's make sure you're eligible for the FlyteHealth program."}),(0,r.jsx)(d.TextPairing.SubLabel,{color:"text-secondary",children:"To be eligible for the FlyteHealth program through your MDsave benefits, you must meet specific age and Body Mass Index (BMI)* requirements."})]}),bmiEnrollmentDisclaimer:(0,r.jsx)(d.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."})},[u.J.EligibilityUnmet]:{title:(0,r.jsxs)(d.TextPairing,{variant:"textpairing-header-2XL",children:[(0,r.jsx)(d.TextPairing.Label,{color:"text-secondary-negative",children:"Unfortunately, you are not eligible to join FlyteHealth at this time."}),(0,r.jsx)(d.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+."})]})},[u.J.ContactDetails]:{title:(0,r.jsxs)(d.TextPairing,{variant:"textpairing-header-2XL",children:[(0,r.jsx)(d.TextPairing.Label,{color:"text-secondary-negative",children:"Congratulations! You're eligible for the FlyteHealth program"}),(0,r.jsx)(d.TextPairing.SubLabel,{color:"text-secondary",children:"To help us match your information with your employer, tell us about yourself."})]})},[u.J.ApplicationReview]:{title:(0,r.jsxs)(d.TextPairing,{variant:"textpairing-header-2XL",children:[(0,r.jsx)(d.TextPairing.Label,{color:"text-primary",children:"You're almost finished!"}),(0,r.jsx)(d.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."})]})},[u.J.ApplicationDetected]:{title:(0,r.jsx)(d.Text,{variant:"text-header-2XL",color:"text-primary",children:"We found an existing account for:"}),description:(0,r.jsx)(d.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."})}};var g=i(20893),h=i(10265),p=i(52766),x=i(94788),b=i(47243),y=i(30368),v=i(98491),f=i(47190),I=i(97620);(a||(a={})).CreateLead="createLead";let C={...v.a,...a},D=I.aU[h.kT.MDSave],j={formData:{birthdate:"",comorbidity:"",currentWeightInPounds:"",dateOfHighestWeightValue:"",email:"",firstName:"",heightInFoot:"",heightInInch:"",highestWeightInPounds:"",insuranceCoverage:void 0,insuranceMemberID:"",insuranceProviderName:void 0,lastName:"",phone:"",state:void 0,termsAgreement:!1,howDidYouFindUS:""},bmi:void 0},S=(0,x.cY)({types:{},guards:{isPreEligibilityMet:e=>{let{context:{bmi:t,formData:i}}=e;return p.Pq.mdSave({bmi:t,comorbidity:i.comorbidity})},isApplicationDetected:f.Q},actions:{updateFormData:(0,b.a)({formData:e=>{let{context:t,event:i}=e;return{...t.formData,...i.data}}}),assignBMI:(0,b.a)({bmi:e=>{let{context:t}=e,{heightInFoot:i,heightInInch:a,highestWeightInPounds:r}=t.formData;return(0,p.V2)({heightFeet:(0,p.MC)(i),heightInches:(0,p.MC)(a),weightPounds:(0,p.MC)(r)})}}),reset:(0,b.a)({...j})}}).createMachine({context:()=>j,id:"mdSaveMachine",initial:C.PreEligibility,states:{[C.PreEligibility]:{id:C.PreEligibility,initial:C.Idle,states:{[C.Idle]:{on:{SUBMIT:{target:C.Submitting,actions:"updateFormData"}}},[C.Submitting]:{entry:"assignBMI",always:[{target:"#".concat(C.ContactDetails),guard:"isPreEligibilityMet"},{target:"#".concat(C.EligibilityUnmet)}]}}},[C.ContactDetails]:{id:C.ContactDetails,initial:C.Idle,states:{[C.Idle]:{on:{SUBMIT:{actions:"updateFormData",target:C.Submitting}}},[C.Submitting]:{id:C.Submitting,initial:C.CreateLead,states:{[C.CreateLead]:{id:C.CreateLead,invoke:{src:(0,y.p4)(async e=>{let{input:t}=e,i={...t.formData,company:D,evolveOrganization:h.bV.MDsave,leadStatus:h.rl.EligibleWaiting,automateEvolveEnrollment:!1};return await (0,g.$)(i)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(C.ApplicationReview),onError:[{guard:"isApplicationDetected",target:"#".concat(C.ApplicationDetected)},{target:"#".concat(C.Error)}]}}}},[C.Error]:{id:C.Error,on:{SUBMIT:{actions:"updateFormData",target:C.Submitting}}}}},[C.ApplicationReview]:{id:C.ApplicationReview},[C.ApplicationDetected]:{id:C.ApplicationDetected},[C.EligibilityUnmet]:{id:C.EligibilityUnmet,initial:C.Idle,states:{[C.Idle]:{on:{SUBMIT:{target:C.Submitting,actions:"updateFormData"}}},[C.Submitting]:{invoke:{src:(0,y.p4)(async e=>{let{input:t}=e,i={...t,company:D,leadStatus:h.rl.Ineligible,ineligibilityReason:h.ib.BMI,automateEvolveEnrollment:!1};return await (0,g.$)(i)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:C.Success,onError:C.Error}},[C.Success]:{},[C.Error]:{on:{SUBMIT:{target:C.Submitting}}}}}},on:{RESET:{target:"#".concat(C.PreEligibility),actions:"reset"}}});var T=i(90420),k=i(94445),P=i(34e3),E=i(5111),w=i(67989),F=i(15615),M=i(4225),A=i(41209);let L={[u.J.ContactDetails]:{state:{options:A.Fp}}},R=new Map([[u.J.PreEligibility,E.t.get(u.J.PreEligibility)],[u.J.ContactDetails,E.t.get(u.J.ContactDetails)]]),B=F.kT.MDSave,MDSaveWorkflow=e=>{let{render:t}=e,[i,a]=(0,k.eO)(S),g=(0,n.useMemo)(()=>(0,T.k)(i.value),[i.value]);(0,w.R)(g,B);let h=(0,n.useCallback)(e=>{a({type:"SUBMIT",data:e})},[a]),p=(0,n.useCallback)(()=>{switch(g){case v.a.PreEligibility:return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(d.Alert,{variant:"subtle",status:"warning",borderRadius:"none",justifyContent:"center",children:[(0,r.jsx)(d.Alert.Icon,{}),(0,r.jsxs)(d.Alert.Title,{children:["To continue, you must first purchase the MDsave FlyteHealth bundle. To purchase, click"," ",(0,r.jsx)(d.Link,{isExternal:!0,href:"https://www.mdsave.com/p/flyte-weight-loss-and-nutritional-counseling",fontWeight:"bold",children:"here"}),"."]})]}),(0,r.jsx)(l.b,{configuration:{contentResources:m[u.J.PreEligibility]},onSubmit:h})]});case v.a.ContactDetails:return(0,r.jsx)(o.q,{configuration:{contentResources:m[u.J.ContactDetails],fields:L[u.J.ContactDetails]},loading:i.matches({[v.a.ContactDetails]:v.a.Submitting}),onSubmit:h,defaultValues:i.context.formData});case v.a.EligibilityUnmet:return(0,r.jsx)(s.X,{configuration:{contentResources:m[u.J.EligibilityUnmet]},onSubmit:h,loading:i.matches({[v.a.EligibilityUnmet]:v.a.Submitting}),isEmailSent:i.matches({[v.a.EligibilityUnmet]:v.a.Success}),hasError:i.matches({[v.a.EligibilityUnmet]:v.a.Error})});case v.a.ApplicationReview:return(0,r.jsx)(c.G,{...m[u.J.ApplicationReview]});case v.a.ApplicationDetected:return(0,r.jsx)(M.v,{...m[u.J.ApplicationDetected],email:i.context.formData.email});default:return null}},[g,i]);return t({header:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(d.Flex,{gap:"spacer-5",alignItems:"center",children:[(0,r.jsx)(P.E,{partner:F.kT.Flyte}),(0,r.jsx)(d.Divider,{orientation:"vertical",alignSelf:"stretch",height:"auto"}),(0,r.jsx)(P.E,{partner:B})]}),(0,r.jsx)(E.K,{currentStep:g,steps:R})]}),body:p(),currentWorkFlowStep:g})}},9231:function(e,t,i){i.d(t,{u:function(){return PequotWorkflow}});var a,r,n=i(85893),o=i(67294),l=i(79447),s=i(17081),c=i(55632),d=i(21954),u=i(98694),m=i(28588),g=i(9941),h=i(71986),p=i(93773);let x={[p.J.PreEligibility]:{title:(0,n.jsxs)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{color:"text-primary",children:"Let's make sure you're eligible for the FlyteHealth program."}),(0,n.jsx)(h.TextPairing.SubLabel,{color:"text-secondary",children:"To be eligible for the FlyteHealth program through your Pequot HealthCare benefits, you must meet specific age and Body Mass Index (BMI)* requirements."})]}),bmiEnrollmentDisclaimer:(0,n.jsx)(h.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)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{color:"text-secondary-negative",children:"Unfortunately, you are not eligible to join FlyteHealth at this time."}),(0,n.jsx)(h.TextPairing.SubLabel,{color:"text-secondary",children:"The FlyteHealth program requires a minimum BMI of 35, or a weight-related health condition."})]})},[p.J.ContactDetails]:{title:(0,n.jsxs)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{color:"text-secondary-negative",children:"Congratulations! You're eligible for the FlyteHealth program"}),(0,n.jsx)(h.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 Pequot Healthcare membership. Be sure to have your insurance card handy."})]})},[p.J.InsuranceDetails]:{title:(0,n.jsxs)(h.Text,{variant:"text-header-2XL",color:"text-secondary-negative",children:["One more thing:"," ",(0,n.jsx)(h.Text,{as:"span",variant:"text-header-2XL",color:"text-primary",children:"What's your Pequot HealthCare membership number?"})]})},[p.J.InsuranceDetailsReview]:{title:(0,n.jsxs)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{children:"Let's review: Is your info correct?"}),(0,n.jsx)(h.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)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{color:"text-secondary-negative",children:"Welcome aboard! We're so excited you're here."}),(0,n.jsx)(h.TextPairing.SubLabel,{color:"text-secondary",children:"Next, we need to confirm your email. Click the link we sent to:"})]}),description:(0,n.jsx)(h.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)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,n.jsx)(h.TextPairing.Label,{color:"text-primary",children:"You're almost finished!"}),(0,n.jsx)(h.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)(h.Text,{variant:"text-header-2XL",color:"text-primary",children:"We found an existing account for:"}),description:(0,n.jsx)(h.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."})}};var b=i(20893),y=i(10265),v=i(52766),f=i(94788),I=i(47243),C=i(30368),D=i(98491),j=i(3938),S=i(15615);let isEligibleForAutoEnrollment=e=>e===j._.FULL_MATCH||e===j._.ELIGIBLE_MATCH,getLeadStatus=e=>{switch(e){case j._.PERSON_MATCH:case j._.INSURANCE_MATCH:case j._.EXPIRED:case j._.NOT_FOUND:return S.rl.EligibleWaiting;case j._.FULL_MATCH:case j._.ELIGIBLE_MATCH:default:return}};var T=i(76364),k=i(47190),P=i(97620),E=i(4e4);(a=r||(r={})).CheckEligibility="checkEligibility",a.CreateLead="createLead",a.CheckBenefits="checkBenefits";let w={...D.a,...r},F=P.aU[y.kT.PequotHealthCare],M={formData:{birthdate:"",comorbidity:"",currentWeightInPounds:"",dateOfHighestWeightValue:"",email:"",firstName:"",heightInFoot:"",heightInInch:"",highestWeightInPounds:"",insuranceCoverage:void 0,insuranceMemberID:"",insuranceProviderName:void 0,lastName:"",phone:"",state:void 0,termsAgreement:!1,howDidYouFindUS:""},eligibilityCheckMatchType:void 0,bmi:void 0,benefitsCheck:void 0},A=(0,f.cY)({types:{},guards:{isPreEligibilityMet:e=>{let{context:{formData:t,bmi:i}}=e;return v.Pq.pequotHealthCare({bmi:i,comorbidity:t.comorbidity})},isApplicationReviewRequired:e=>{let{context:{eligibilityCheckMatchType:t}}=e;return[y._q.EXPIRED,y._q.INSURANCE_MATCH,y._q.PERSON_MATCH,y._q.NOT_FOUND].includes(t)},isApplicationDetected:k.Q},actions:{updateFormData:(0,I.a)({formData:e=>{let{context:t,event:i}=e;return{...t.formData,...i.data}}}),assignBMI:(0,I.a)({bmi:e=>{let{context:t}=e,{heightInFoot:i,heightInInch:a,highestWeightInPounds:r}=t.formData;return(0,v.V2)({heightFeet:(0,v.MC)(i),heightInches:(0,v.MC)(a),weightPounds:(0,v.MC)(r)})}}),reset:(0,I.a)({...M}),resetBenefitsCheck:(0,I.a)({benefitsCheck:void 0})}}).createMachine({context:()=>M,id:"pequotMachine",initial:w.PreEligibility,states:{[w.PreEligibility]:{id:w.PreEligibility,initial:w.Idle,states:{[w.Idle]:{on:{SUBMIT:{target:w.Submitting,actions:"updateFormData"}}},[w.Submitting]:{entry:"assignBMI",always:[{target:"#".concat(w.ContactDetails),guard:"isPreEligibilityMet"},{target:"#".concat(w.EligibilityUnmet)}]}}},[w.ContactDetails]:{id:w.ContactDetails,initial:w.Idle,states:{[w.Idle]:{on:{SUBMIT:{target:"#".concat(w.InsuranceDetails),actions:"updateFormData"}}}}},[w.InsuranceDetails]:{id:w.InsuranceDetails,initial:w.Idle,states:{[w.Idle]:{on:{BACK:{target:"#".concat(w.ContactDetails)},SUBMIT:{target:"#".concat(w.InsuranceDetailsReview),actions:"updateFormData"}}}}},[w.InsuranceDetailsReview]:{id:w.InsuranceDetailsReview,initial:w.Idle,states:{[w.Idle]:{on:{SUBMIT:{actions:"updateFormData",target:w.Submitting}}},[w.Submitting]:{id:w.Submitting,initial:w.CheckEligibility,states:{[w.CheckEligibility]:{id:w.CheckEligibility,invoke:{src:(0,C.p4)(async e=>{let{input:t}=e,i={...t,insuranceProviderName:P.Er[y.kT.PequotHealthCare],benefitProgram:P.Q1[y.kT.PequotHealthCare]};return await (0,T.m)(i)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:[{actions:(0,I.a)({eligibilityCheckMatchType:e=>{let{event:t}=e;return t.output.data.matchType}}),target:"#".concat(w.CheckBenefits)}],onError:"#".concat(w.Error)}},[w.CheckBenefits]:{id:w.CheckBenefits,invoke:{src:(0,C.p4)(async e=>{let{input:t}=e,i={...t,payerCode:P.qK[y.PF["Pequot HealthCare"]]};return await (0,E.o)(i)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:[{actions:(0,I.a)({benefitsCheck:e=>{let{event:t}=e;return t.output.data}}),target:"#".concat(w.CreateLead)}],onError:"#".concat(w.CreateLead)}},[w.CreateLead]:{id:w.CreateLead,invoke:{src:(0,C.p4)(async e=>{let{input:t}=e,i={...t.formData,...t.formData.insuranceMemberID&&{employmentVerificationCode:t.formData.insuranceMemberID},...t.benefitsCheck&&{benefitsCheck:t.benefitsCheck},eligibilityVerifiedBy:y.Vn.Evolve,company:F,insuranceProviderName:P.KG[y.kT.PequotHealthCare],evolveOrganization:y.bV["Pequot Tribal Family Health Plan"],leadStatus:getLeadStatus(t.eligibilityCheckMatchType),automateEvolveEnrollment:isEligibleForAutoEnrollment(t.eligibilityCheckMatchType)};return await (0,b.$)(i)}),input:e=>{let{context:t}=e;return t},onDone:[{guard:"isApplicationReviewRequired",target:"#".concat(w.ApplicationReview)},{target:"#".concat(w.ApplicationComplete)}],onError:[{guard:"isApplicationDetected",target:"#".concat(w.ApplicationDetected)},{target:"#".concat(w.Error)}]}}}},[w.Error]:{id:w.Error,on:{SUBMIT:{actions:["updateFormData","resetBenefitsCheck"],target:w.Submitting}}}}},[w.ApplicationReview]:{id:w.ApplicationReview},[w.ApplicationComplete]:{id:w.ApplicationComplete},[w.ApplicationDetected]:{id:w.ApplicationDetected},[w.EligibilityUnmet]:{id:w.EligibilityUnmet,initial:w.Idle,states:{[w.Idle]:{on:{SUBMIT:{target:w.Submitting,actions:"updateFormData"}}},[w.Submitting]:{invoke:{src:(0,C.p4)(async e=>{let{input:t}=e,i={...t,company:F,leadStatus:y.rl.Ineligible,ineligibilityReason:y.ib.BMI,automateEvolveEnrollment:!1};return await (0,b.$)(i)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:w.Success,onError:w.Error}},[w.Success]:{},[w.Error]:{on:{SUBMIT:{actions:"updateFormData",target:w.Submitting}}}}}},on:{RESET:{target:"#".concat(w.PreEligibility),actions:"reset"}}});var L=i(90420),R=i(94445),B=i(34e3),U=i(5111),J=i(67989),N=i(41209);let H={[p.J.ContactDetails]:{state:{options:N.Fp}},[p.J.InsuranceDetails]:{insuranceMemberID:{}},[p.J.InsuranceDetailsReview]:{insuranceMemberID:{}}};var O=i(4225);let W=S.kT.PequotHealthCare,PequotWorkflow=e=>{let{render:t}=e,[i,a]=(0,R.eO)(A),r=(0,o.useMemo)(()=>(0,L.k)(i.value),[i.value]);(0,J.R)(r,W);let b=(0,o.useCallback)(e=>{a({type:"SUBMIT",data:e})},[a]),y=(0,o.useCallback)(()=>{a({type:"BACK"})},[a]),v=(0,o.useCallback)(()=>{switch(r){case D.a.PreEligibility:return(0,n.jsx)(s.b,{configuration:{contentResources:x[p.J.PreEligibility]},onSubmit:b});case D.a.ContactDetails:return(0,n.jsx)(l.q,{configuration:{contentResources:x[p.J.ContactDetails],fields:H[p.J.ContactDetails]},onSubmit:b,defaultValues:i.context.formData});case D.a.EligibilityUnmet:return(0,n.jsx)(c.X,{configuration:{contentResources:x[p.J.EligibilityUnmet]},onSubmit:b,loading:i.matches({[D.a.EligibilityUnmet]:D.a.Submitting}),isEmailSent:i.matches({[D.a.EligibilityUnmet]:D.a.Success}),hasError:i.matches({[D.a.EligibilityUnmet]:D.a.Error})});case D.a.InsuranceDetails:return(0,n.jsx)(d.v,{configuration:{contentResources:x[p.J.InsuranceDetails],fields:H[p.J.InsuranceDetails]},onSubmit:b,onBack:y});case D.a.InsuranceDetailsReview:return(0,n.jsx)(u.b,{configuration:{contentResources:x[p.J.InsuranceDetailsReview],fields:H[p.J.InsuranceDetailsReview]},onSubmit:b,loading:i.matches({[D.a.InsuranceDetailsReview]:D.a.Submitting}),hasError:i.matches({[D.a.InsuranceDetailsReview]:D.a.Error}),defaultValues:i.context.formData});case D.a.ApplicationComplete:return(0,n.jsx)(m.J,{...x[p.J.ApplicationComplete],email:i.context.formData.email});case D.a.ApplicationReview:return(0,n.jsx)(g.G,{...x[p.J.ApplicationReview]});case D.a.ApplicationDetected:return(0,n.jsx)(O.v,{...x[p.J.ApplicationDetected],email:i.context.formData.email});default:return null}},[r,i]);return t({header:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(h.Flex,{gap:"spacer-5",alignItems:"center",children:[(0,n.jsx)(B.E,{partner:S.kT.Flyte}),(0,n.jsx)(h.Divider,{orientation:"vertical",alignSelf:"stretch",height:"auto"}),(0,n.jsx)(B.E,{partner:W})]}),(0,n.jsx)(U.K,{currentStep:r})]}),body:v(),currentWorkFlowStep:r})}},54638:function(e,t,i){i.d(t,{u:function(){return PyleWorkflow}});var a,r=i(85893),n=i(67294),o=i(79447),l=i(17081),s=i(55632),c=i(9941),d=i(71986),u=i(93773);let m={[u.J.PreEligibility]:{title:(0,r.jsxs)(d.TextPairing,{variant:"textpairing-header-2XL",children:[(0,r.jsx)(d.TextPairing.Label,{color:"text-primary",children:"Let's make sure you're eligible for the FlyteHealth program."}),(0,r.jsx)(d.TextPairing.SubLabel,{color:"text-secondary",children:"To be eligible for the FlyteHealth program through your A-Duie Pyle benefits, you must meet specific age and Body Mass Index (BMI)* requirements."})]}),bmiEnrollmentDisclaimer:(0,r.jsx)(d.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."})},[u.J.EligibilityUnmet]:{title:(0,r.jsxs)(d.TextPairing,{variant:"textpairing-header-2XL",children:[(0,r.jsx)(d.TextPairing.Label,{color:"text-secondary-negative",children:"Unfortunately, you are not eligible to join FlyteHealth at this time."}),(0,r.jsx)(d.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+."})]})},[u.J.ContactDetails]:{title:(0,r.jsxs)(d.TextPairing,{variant:"textpairing-header-2XL",children:[(0,r.jsx)(d.TextPairing.Label,{color:"text-secondary-negative",children:"Congratulations! You're eligible for the FlyteHealth program"}),(0,r.jsx)(d.TextPairing.SubLabel,{color:"text-secondary",children:"To help us match your information with your employer, tell us about yourself."})]})},[u.J.ApplicationReview]:{title:(0,r.jsxs)(d.TextPairing,{variant:"textpairing-header-2XL",children:[(0,r.jsx)(d.TextPairing.Label,{color:"text-primary",children:"You're almost finished!"}),(0,r.jsx)(d.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."})]}),note:(0,r.jsx)(d.Text,{variant:"text-body-large-regular",color:"text-secondary",children:"There is a one-time $235 FlyteHealth program fee for eligible employees collected during scheduling. A portion of this fee ($150) will be reimbursed by A-Duie Pyle upon confirmation of eligibility and program start. Please contact Pyle HR for instructions on how to obtain this reimbursement."})},[u.J.ApplicationDetected]:{title:(0,r.jsx)(d.Text,{variant:"text-header-2XL",color:"text-primary",children:"We found an existing account for:"}),description:(0,r.jsx)(d.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."})}};var g=i(20893),h=i(10265),p=i(52766),x=i(94788),b=i(47243),y=i(30368),v=i(98491),f=i(47190),I=i(97620);(a||(a={})).CreateLead="createLead";let C={...v.a,...a},D=I.aU[h.kT.PyleFamilyInsurance],j={formData:{birthdate:"",comorbidity:"",currentWeightInPounds:"",dateOfHighestWeightValue:"",email:"",firstName:"",heightInFoot:"",heightInInch:"",highestWeightInPounds:"",insuranceCoverage:void 0,insuranceMemberID:"",insuranceProviderName:void 0,lastName:"",phone:"",state:void 0,termsAgreement:!1,howDidYouFindUS:""},bmi:void 0},S=(0,x.cY)({types:{},guards:{isPreEligibilityMet:e=>{let{context:{bmi:t}}=e;return p.Pq.pyleFamilyInsurance({bmi:t})},isApplicationDetected:f.Q},actions:{updateFormData:(0,b.a)({formData:e=>{let{context:t,event:i}=e;return{...t.formData,...i.data}}}),assignBMI:(0,b.a)({bmi:e=>{let{context:t}=e,{heightInFoot:i,heightInInch:a,highestWeightInPounds:r}=t.formData;return(0,p.V2)({heightFeet:(0,p.MC)(i),heightInches:(0,p.MC)(a),weightPounds:(0,p.MC)(r)})}}),reset:(0,b.a)({...j})}}).createMachine({context:()=>j,id:"pyleMachine",initial:C.PreEligibility,states:{[C.PreEligibility]:{id:C.PreEligibility,initial:C.Idle,states:{[C.Idle]:{on:{SUBMIT:{target:C.Submitting,actions:"updateFormData"}}},[C.Submitting]:{entry:"assignBMI",always:[{target:"#".concat(C.ContactDetails),guard:"isPreEligibilityMet"},{target:"#".concat(C.EligibilityUnmet)}]}}},[C.ContactDetails]:{id:C.ContactDetails,initial:C.Idle,states:{[C.Idle]:{on:{SUBMIT:{actions:"updateFormData",target:C.Submitting}}},[C.Submitting]:{id:C.Submitting,initial:C.CreateLead,states:{[C.CreateLead]:{id:C.CreateLead,invoke:{src:(0,y.p4)(async e=>{let{input:t}=e,i={...t.formData,company:D,evolveOrganization:h.bV["A Duie Pyle"],leadStatus:h.rl.EligibleWaiting,automateEvolveEnrollment:!1};return await (0,g.$)(i)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(C.ApplicationReview),onError:[{guard:"isApplicationDetected",target:"#".concat(C.ApplicationDetected)},{target:"#".concat(C.Error)}]}}}},[C.Error]:{id:C.Error,on:{SUBMIT:{actions:"updateFormData",target:C.Submitting}}}}},[C.ApplicationReview]:{id:C.ApplicationReview},[C.ApplicationDetected]:{id:C.ApplicationDetected},[C.EligibilityUnmet]:{id:C.EligibilityUnmet,initial:C.Idle,states:{[C.Idle]:{on:{SUBMIT:{target:C.Submitting,actions:"updateFormData"}}},[C.Submitting]:{invoke:{src:(0,y.p4)(async e=>{let{input:t}=e,i={...t,company:D,leadStatus:h.rl.Ineligible,ineligibilityReason:h.ib.BMI,automateEvolveEnrollment:!1};return await (0,g.$)(i)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:C.Success,onError:C.Error}},[C.Success]:{},[C.Error]:{on:{SUBMIT:{target:C.Submitting}}}}}},on:{RESET:{target:"#".concat(C.PreEligibility),actions:"reset"}}});var T=i(90420),k=i(94445),P=i(34e3),E=i(5111),w=i(67989),F=i(15615),M=i(4225),A=i(41209);let L={[u.J.ContactDetails]:{state:{options:A.Fp}}},R=new Map([[u.J.PreEligibility,E.t.get(u.J.PreEligibility)],[u.J.ContactDetails,E.t.get(u.J.ContactDetails)]]),B=F.kT.PyleFamilyInsurance,PyleWorkflow=e=>{let{render:t}=e,[i,a]=(0,k.eO)(S),g=(0,n.useMemo)(()=>(0,T.k)(i.value),[i.value]);(0,w.R)(g,B);let h=(0,n.useCallback)(e=>{a({type:"SUBMIT",data:e})},[a]),p=(0,n.useCallback)(()=>{switch(g){case v.a.PreEligibility:return(0,r.jsx)(l.b,{configuration:{contentResources:m[u.J.PreEligibility]},onSubmit:h});case v.a.ContactDetails:return(0,r.jsx)(o.q,{configuration:{contentResources:m[u.J.ContactDetails],fields:L[u.J.ContactDetails]},loading:i.matches({[v.a.ContactDetails]:v.a.Submitting}),onSubmit:h,defaultValues:i.context.formData});case v.a.EligibilityUnmet:return(0,r.jsx)(s.X,{configuration:{contentResources:m[u.J.EligibilityUnmet]},onSubmit:h,loading:i.matches({[v.a.EligibilityUnmet]:v.a.Submitting}),isEmailSent:i.matches({[v.a.EligibilityUnmet]:v.a.Success}),hasError:i.matches({[v.a.EligibilityUnmet]:v.a.Error})});case v.a.ApplicationReview:return(0,r.jsx)(c.G,{...m[u.J.ApplicationReview]});case v.a.ApplicationDetected:return(0,r.jsx)(M.v,{...m[u.J.ApplicationDetected],email:i.context.formData.email});default:return null}},[g,i]);return t({header:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(d.Flex,{gap:"spacer-5",alignItems:"center",children:[(0,r.jsx)(P.E,{partner:F.kT.Flyte}),(0,r.jsx)(d.Divider,{orientation:"vertical",alignSelf:"stretch",height:"auto"}),(0,r.jsx)(P.E,{partner:B})]}),(0,r.jsx)(E.K,{currentStep:g,steps:R})]}),body:p(),currentWorkFlowStep:g})}},80702:function(e,t,i){i.d(t,{l:function(){return RiverspringWorkflow}});var a,r,n,o,l=i(85893),s=i(67294),c=i(79447),d=i(17081),u=i(98694),m=i(28588),g=i(9941),h=i(71986),p=i(93773),x=i(75887);let b={[p.J.PreEligibility]:{title:(0,l.jsxs)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,l.jsx)(h.TextPairing.Label,{color:"text-primary",children:"Let's make sure you're eligible for the FlyteHealth program."}),(0,l.jsxs)(h.TextPairing.SubLabel,{color:"text-secondary",children:["All employees are eligible to access the ",(0,l.jsx)("b",{children:"Self-Guided"})," program through the RiverSpring Living benefits.",(0,l.jsx)("br",{}),"To be eligible for the ",(0,l.jsx)("b",{children:"Physician-Guided"})," program, you must meet specific age and Body Mass Index (BMI)* requirements."]})]}),bmiEnrollmentDisclaimer:(0,l.jsx)(h.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.ContactDetails]:(e,t)=>({title:(0,l.jsxs)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,l.jsxs)(h.TextPairing.Label,{color:"text-primary",children:[(0,l.jsxs)(h.Text,{display:{base:"inline",lg:"block"},as:"label",variant:"text-header-2XL",color:"text-secondary-negative",children:["Congratulations!"," "]}),"You're eligible for the ",x.P.riverSpringLiving({bmi:e,comorbidity:t})?"Physician":"Self","-Guided FlyteHealth program"]}),(0,l.jsx)(h.TextPairing.SubLabel,{color:"text-secondary",children:"To help us match your information with your employer, please tell us a bit more about yourself."})]})}),[p.J.InsuranceDetails]:{title:(0,l.jsxs)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,l.jsxs)(h.TextPairing.Label,{color:"text-secondary-negative",children:["Almost done:"," ",(0,l.jsx)(h.Text,{as:"span",variant:"text-header-2XL",color:"text-primary",children:"Select your program and let us know if you have health insurance"})]}),(0,l.jsxs)(h.TextPairing.SubLabel,{color:"text-secondary",children:["Before selecting your program, review summaries below. ",(0,l.jsx)("br",{}),(0,l.jsx)("br",{}),(0,l.jsx)("b",{children:"Physician-Guided:"})," Access to the entire FlyteHealth care team and our patient app.",(0,l.jsx)("br",{}),(0,l.jsx)("br",{}),(0,l.jsx)("b",{children:"Self-Guided:"})," Access to the FlyteHealth patient app only."]})]})},[p.J.InsuranceDetailsReview]:{title:(0,l.jsxs)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,l.jsx)(h.TextPairing.Label,{children:"Let's review: Is your info correct?"}),(0,l.jsx)(h.TextPairing.SubLabel,{color:"text-secondary",children:"Please double-check the information you provided to make sure everything is correct."})]})},[p.J.ApplicationComplete]:{title:(0,l.jsxs)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,l.jsx)(h.TextPairing.Label,{color:"text-secondary-negative",children:"Welcome aboard! We're so excited you're here."}),(0,l.jsx)(h.TextPairing.SubLabel,{color:"text-secondary",children:"Next, we need to confirm your email. Click the link we sent to:"})]}),description:(0,l.jsxs)(h.Text,{color:"text-secondary",mt:"spacer-8",variant:"text-body-meta-regular",children:["Please note that for Physician-Guided users, clinical encounters and prescription costs are covered by RiverSpring Living insurance (either Aetna or 1199SEIU), and out-of-pocket costs will vary based on your plan coverage, deductibles, co-pays, and limits. For more information, please contact the RiverSpring Living Benefits Department or your insurance company.",(0,l.jsx)("br",{}),(0,l.jsx)("br",{}),"If you don't have RiverSpring Living insurance, FlyteHealth also accepts a number of other plans. Please check with a FlyteHealth Patient Coordinator about whether your insurance is accepted.",(0,l.jsx)("br",{}),(0,l.jsx)("br",{}),"For Self-Guided users, there is no cost for RiverSpring Living employees."]})},[p.J.ApplicationReview]:{title:(0,l.jsxs)(h.TextPairing,{variant:"textpairing-header-2XL",children:[(0,l.jsx)(h.TextPairing.Label,{color:"text-primary",children:"You're almost finished!"}),(0,l.jsx)(h.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."})]}),note:(0,l.jsxs)(h.Text,{color:"text-secondary",variant:"text-body-meta-regular",children:["Please note that for Guided users, clinical encounters and prescription costs are covered by RiverSpring Living insurance (either Aetna or 1199SEIU), and out-of-pocket costs will vary based on your plan coverage, deductibles, co-pays, and limits. For more information, please contact the RiverSpring Living Benefits Department or your insurance company. ",(0,l.jsx)("br",{}),(0,l.jsx)("br",{}),"If you don't have RiverSpring Living insurance, FlyteHealth also accepts a number of other plans. Please check with a FlyteHealth Patient Coordinator about whether your insurance is accepted."]})},[p.J.ApplicationDetected]:{title:(0,l.jsx)(h.Text,{variant:"text-header-2XL",color:"text-primary",children:"We found an existing account for:"}),description:(0,l.jsx)(h.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."})}};var y=i(20893),v=i(10265),f=i(52766),I=i(94788),C=i(47243),D=i(30368),j=i(98491),S=i(15615);let T={Guided:S.bV["RiverSpring Living - Guided"],"Self-Guided":S.bV["RiverSpring Living - Self Guided"]},isEligibleForAutoEnrollment=(e,t,i)=>{if(i===S.bV["RiverSpring Living - Self Guided"])return!0;switch(e){case S.PF["1199SEIU"]:return!0;case S.PF.Aetna:return[S.i$["New York"],S.i$["New Jersey"],S.i$.Connecticut].includes(t);default:return!1}},getLeadStatus=(e,t,i)=>{if(!isEligibleForAutoEnrollment(e,t,i))return S.rl.EligibleWaiting};var k=i(47190),P=i(97620),E=i(4e4),w=i(87536);let F="evolveProgram";(a=n||(n={})).Guided="Guided",a.SelfGuided="Self-Guided";let ProgramField=()=>{let{register:e}=(0,w.Gc)();return(0,l.jsxs)(h.Flex,{direction:"column",gap:"spacer-4",children:[(0,l.jsx)(h.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",children:"Program selection"}),(0,l.jsxs)(h.RadioGroup,{display:"flex",gap:"spacer-8","data-test":F,children:[(0,l.jsx)(h.Radio,{value:"Guided",size:"m",...e(F,{required:!0}),children:"Physician-guided"}),(0,l.jsx)(h.Radio,{value:"Self-Guided",size:"m",...e(F),children:"Self-guided"})]})]})};(r=o||(o={})).CreateLead="createLead",r.CheckBenefits="checkBenefits",r.DecisionGate="decisionGate";let M={...j.a,...o},A=P.aU[v.kT.RiverSpringLiving],L={formData:{birthdate:"",comorbidity:"",currentWeightInPounds:"",dateOfHighestWeightValue:"",email:"",firstName:"",heightInFoot:"",heightInInch:"",highestWeightInPounds:"",insuranceCoverage:void 0,insuranceMemberID:"",insuranceProviderName:void 0,lastName:"",phone:"",state:void 0,termsAgreement:!1,howDidYouFindUS:"",participantDepartmentorOrg:"",evolveProgram:void 0},evolveOrganization:void 0,bmi:void 0,benefitsCheck:void 0},R=(0,I.cY)({types:{},guards:{isApplicationReviewRequired:e=>{let{context:{formData:t,evolveOrganization:i}}=e;return!isEligibleForAutoEnrollment(t.insuranceProviderName,t.state,i)},isApplicationDetected:k.Q,isInsurerSelected:e=>{let{context:{formData:t}}=e;return!!t.insuranceProviderName}},actions:{updateFormData:(0,C.a)({formData:e=>{let{context:t,event:i}=e;return{...t.formData,...i.data}}}),assignBMI:(0,C.a)({bmi:e=>{let{context:t}=e,{heightInFoot:i,heightInInch:a,highestWeightInPounds:r}=t.formData;return(0,f.V2)({heightFeet:(0,f.MC)(i),heightInches:(0,f.MC)(a),weightPounds:(0,f.MC)(r)})}}),assignEvolveOrganization:(0,C.a)({evolveOrganization:e=>{let{context:t}=e;return T[t.formData.evolveProgram||n.SelfGuided]}}),reset:(0,C.a)({...L}),resetBenefitsCheck:(0,C.a)({benefitsCheck:void 0})}}).createMachine({context:()=>L,id:"riverspringMachine",initial:M.PreEligibility,states:{[M.PreEligibility]:{id:M.PreEligibility,initial:M.Idle,states:{[M.Idle]:{on:{SUBMIT:{target:M.Submitting,actions:"updateFormData"}}},[M.Submitting]:{entry:["assignBMI"],always:"#".concat(M.ContactDetails)}}},[M.ContactDetails]:{id:M.ContactDetails,initial:M.Idle,states:{[M.Idle]:{on:{SUBMIT:{target:"#".concat(M.InsuranceDetails),actions:"updateFormData"}}}}},[M.InsuranceDetails]:{id:M.InsuranceDetails,initial:M.Idle,states:{[M.Idle]:{on:{BACK:{target:"#".concat(M.ContactDetails)},SUBMIT:{target:"#".concat(M.InsuranceDetailsReview),actions:["updateFormData","assignEvolveOrganization"]}}}}},[M.InsuranceDetailsReview]:{id:M.InsuranceDetailsReview,initial:M.Idle,states:{[M.Idle]:{on:{SUBMIT:{actions:"updateFormData",target:M.Submitting}}},[M.Submitting]:{id:M.Submitting,initial:M.DecisionGate,states:{[M.DecisionGate]:{id:M.DecisionGate,always:[{guard:"isInsurerSelected",target:"#".concat(M.CheckBenefits)},{target:"#".concat(M.CreateLead)}]},[M.CheckBenefits]:{id:M.CheckBenefits,invoke:{src:(0,D.p4)(async e=>{let{input:t}=e,i={...t,payerCode:P.qK[t.insuranceProviderName]};return await (0,E.o)(i)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:[{actions:(0,C.a)({benefitsCheck:e=>{let{event:t}=e;return t.output.data}}),target:"#".concat(M.CreateLead)}],onError:"#".concat(M.CreateLead)}},[M.CreateLead]:{id:M.CreateLead,invoke:{src:(0,D.p4)(async e=>{let{input:t}=e,i={...t.formData,evolveOrganization:t.evolveOrganization,...t.formData.insuranceMemberID&&{employmentVerificationCode:t.formData.insuranceMemberID},...t.benefitsCheck&&{benefitsCheck:t.benefitsCheck},company:A,leadStatus:getLeadStatus(t.formData.insuranceProviderName,t.formData.state,t.evolveOrganization),automateEvolveEnrollment:isEligibleForAutoEnrollment(t.formData.insuranceProviderName,t.formData.state,t.evolveOrganization),evolveProgram:t.formData.evolveProgram||n.SelfGuided};return await (0,y.$)(i)}),input:e=>{let{context:t}=e;return t},onDone:[{guard:"isApplicationReviewRequired",target:"#".concat(M.ApplicationReview)},{target:"#".concat(M.ApplicationComplete)}],onError:[{guard:"isApplicationDetected",target:"#".concat(M.ApplicationDetected)},{target:"#".concat(M.Error)}]}}}},[M.Error]:{id:M.Error,on:{SUBMIT:{actions:["updateFormData","resetBenefitsCheck"],target:M.Submitting}}}}},[M.ApplicationReview]:{id:M.ApplicationReview},[M.ApplicationComplete]:{id:M.ApplicationComplete},[M.ApplicationDetected]:{id:M.ApplicationDetected}},on:{RESET:{target:"#".concat(M.PreEligibility),actions:"reset"}}});var B=i(90420),U=i(94445),J=i(34e3),N=i(5111),H=i(67989),O=i(41209);let W={[p.J.ContactDetails]:{state:{options:O.Fp}},[p.J.InsuranceDetails]:e=>({insuranceProviderName:{insuranceCarriers:[S.PF.Aetna,S.PF["1199SEIU"]]},insuranceMemberID:{},evolveProgram:e?{}:void 0}),[p.J.InsuranceDetailsReview]:{insuranceProviderName:{insuranceCarriers:[S.PF.Aetna,S.PF["1199SEIU"]]}}};var q=i(4225),_=i(57087),V=i(91176),G=i(42575);let X="participantDepartmentorOrg",Y=["Hebrew Home at Riverdale","RiverSpring Services Corp","RiverSpring Licensed Home Care Services Agency","RiverSpring Health Plans (ElderServe Health, Inc.)"],ParticipantDepartmentSelector=()=>{let{register:e,watch:t}=(0,w.Gc)();return(0,l.jsxs)(h.Flex,{direction:"column",gap:"spacer-2",children:[(0,l.jsx)(h.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:X,children:"Participating organization"}),(0,l.jsx)(h.Select,{"data-test":X,id:X,size:"l",variant:"flushed",placeholder:"Select organization",...e(X,{required:!0}),value:t(X),children:Y.map(e=>(0,l.jsx)("option",{value:e,children:e},e))})]})},RiverspringInsuranceDetailsForm=e=>{let{configuration:t,loading:i=!1,onSubmit:a,onBack:r}=e,{contentResources:n,fields:o}=t,s=(0,w.cI)({mode:"onBlur",defaultValues:{insuranceMemberID:"",insuranceProviderName:void 0,evolveProgram:void 0}}),c=(0,G.d)(),renderFormActions=()=>(0,l.jsxs)(h.Flex,{gap:{base:"spacer-8",md:"spacer-16"},alignItems:"center",flex:{base:1,lg:"unset"},children:[(0,l.jsx)(h.Button,{size:{base:"m",lg:"l"},isLoading:i,variant:"link","aria-label":"Back",leadingIcon:(0,l.jsx)(h.IconArrowLeft,{}),onClick:r,children:"Back"}),(0,l.jsx)(h.Button,{type:"submit",size:{base:"m",lg:"l"},isDisabled:!s.formState.isValid,flex:1,isLoading:i,trailingIcon:(0,l.jsx)(h.IconArrowRight,{}),"aria-label":"Continue",children:"Continue"})]});return(0,l.jsx)(w.RV,{...s,children:(0,l.jsxs)(_.S,{as:"form",onSubmit:s.handleSubmit(a),noValidate:!0,children:[(0,l.jsx)(_.S.Side,{gap:0,flex:{base:"none",lg:1},children:n.title}),(0,l.jsxs)(_.S.Form,{children:[(null==o?void 0:o.evolveProgram)&&(0,l.jsx)(ProgramField,{}),(0,l.jsx)(ParticipantDepartmentSelector,{}),(null==o?void 0:o.insuranceProviderName)&&(0,l.jsx)(V.vu,{isDisabled:i,isRequired:!0,...null==o?void 0:o.insuranceProviderName}),(0,l.jsx)(V.nB,{isDisabled:i,isRequired:!0,pb:{base:"spacer-24",lg:0},...null==o?void 0:o.insuranceMemberID}),c?(0,l.jsx)(O.D2,{children:renderFormActions()}):renderFormActions()]})]})})},z=S.kT.RiverSpringLiving,RiverspringWorkflow=e=>{let{render:t}=e,[i,a]=(0,U.eO)(R),r=(0,s.useMemo)(()=>(0,B.k)(i.value),[i.value]);(0,H.R)(r,z);let n=(0,s.useCallback)(e=>{a({type:"SUBMIT",data:e})},[a]),o=(0,s.useCallback)(()=>{a({type:"BACK"})},[a]),y=(0,s.useCallback)(()=>{switch(r){case j.a.PreEligibility:return(0,l.jsx)(d.b,{configuration:{contentResources:b[p.J.PreEligibility]},onSubmit:n});case j.a.ContactDetails:return(0,l.jsx)(c.q,{configuration:{contentResources:b[p.J.ContactDetails](i.context.bmi,i.context.formData.comorbidity),fields:W[p.J.ContactDetails]},onSubmit:n,defaultValues:i.context.formData});case j.a.InsuranceDetails:return(0,l.jsx)(RiverspringInsuranceDetailsForm,{configuration:{contentResources:b[p.J.InsuranceDetails],fields:W[p.J.InsuranceDetails](x.P.riverSpringLiving({bmi:i.context.bmi,comorbidity:i.context.formData.comorbidity}))},onSubmit:n,onBack:o});case j.a.InsuranceDetailsReview:return(0,l.jsx)(u.b,{configuration:{contentResources:b[p.J.InsuranceDetailsReview],fields:W[p.J.InsuranceDetailsReview]},onSubmit:n,loading:i.matches({[j.a.InsuranceDetailsReview]:j.a.Submitting}),hasError:i.matches({[j.a.InsuranceDetailsReview]:j.a.Error}),defaultValues:i.context.formData});case j.a.ApplicationComplete:return(0,l.jsx)(m.J,{...b[p.J.ApplicationComplete],email:i.context.formData.email});case j.a.ApplicationReview:return(0,l.jsx)(g.G,{...b[p.J.ApplicationReview]});case j.a.ApplicationDetected:return(0,l.jsx)(q.v,{...b[p.J.ApplicationDetected],email:i.context.formData.email});default:return null}},[r,i]);return t({header:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(h.Flex,{gap:"spacer-5",alignItems:"center",children:[(0,l.jsx)(J.E,{partner:S.kT.Flyte}),(0,l.jsx)(h.Divider,{orientation:"vertical",alignSelf:"stretch",height:"auto"}),(0,l.jsx)(J.E,{partner:z})]}),(0,l.jsx)(N.K,{currentStep:r})]}),body:y(),currentWorkFlowStep:r})}},42575:function(e,t,i){i.d(t,{d:function(){return useIsMobile}});var a=i(71986);let useIsMobile=()=>{let e=(0,a.useBreakpointValue)({base:!0,lg:!1},{ssr:!1});return e}},67989:function(e,t,i){i.d(t,{R:function(){return useWorkflowTracker}});var a=i(67294),r=i(3183),n=i(95875);let useWorkflowTracker=(e,t)=>{let{track:i}=(0,r.useAnalytics)(),o=(0,a.useRef)(null);(0,a.useEffect)(()=>{o.current!==e&&(i(n.U[e],{partner:t}),o.current=e)},[e,i])}},97620:function(e,t,i){i.d(t,{Q1:function(){return r},Er:function(){return n},qK:function(){return s},aU:function(){return l},KG:function(){return o}});var a=i(10265);let r={[a.kT.Aetna]:"State of Connecticut - Retirees",[a.kT.CareCompass]:"State of Connecticut - Employees",[a.kT.PequotHealthCare]:"PEQUOT - EMPLOYEES",[a.kT.DGA]:"DIRECTORS GUILD OF AMERICA - EMPLOYEES"},n={[a.kT.Aetna]:"Aetna",[a.kT.CareCompass]:"Anthem",[a.kT.PequotHealthCare]:"PEQUOT",[a.kT.DGA]:"DIRECTORS GUILD OF AMERICA"},o={[a.kT.Aetna]:"Aetna",[a.kT.CareCompass]:"SoCT",[a.kT.PequotHealthCare]:"Pequot Healthcare",[a.kT.DGA]:"DGA Health Plan",[a.kT.ChristianaCare]:"Highmark"},l={[a.kT.Flyte]:"Flyte Direct",[a.kT.CareCompass]:"State of Connecticut (Flyte)",[a.kT.Aetna]:"State of Connecticut Retirees (Flyte)",[a.kT.RiverSpringLiving]:"RiverSpring Living (Flyte)",[a.kT.PequotHealthCare]:"Pequot Tribal Family Health Plan (Flyte)",[a.kT.PyleFamilyInsurance]:"A. Duie Pyle (Flyte)",[a.kT.DGA]:"Director Guild of America (Flyte)",[a.kT.MDSave]:"MDsave (Flyte)",[a.kT.ChristianaCare]:"ChristianaCare - Caregivers (Flyte)"},s={[a.PF["1199SEIU"]]:"00634",[a.PF.BCBS]:"S001",[a.PF.BCBSPPO]:"S001",[a.PF.Aetna]:"00001",[a.PF.Cigna]:"00004",[a.PF.United]:"00192",[a.PF.Anthem]:"S001",[a.PF["Pequot HealthCare"]]:"00192",[a.PF["Aetna Medicare"]]:"00001",[a.PF.Highmark]:"01015"}},47190:function(e,t,i){i.d(t,{Q:function(){return isApplicationDetected}}),i(78260);let isApplicationDetected=e=>{var t,i;let{event:a}=e;return(null==a?void 0:null===(i=a.error)||void 0===i?void 0:null===(t=i.response)||void 0===t?void 0:t.status)===409}},98491:function(e,t,i){i.d(t,{a:function(){return o}});var a,r,n=i(93773);(a=r||(r={})).Idle="idle",a.Submitting="submitting",a.Error="error",a.Success="success";let o={...n.J,...r}},3938:function(e,t,i){var a,r,n,o;i.d(t,{V:function(){return r},_:function(){return a}}),(n=a||(a={})).FULL_MATCH="FULL_MATCH",n.EXPIRED="EXPIRED",n.PERSON_MATCH="PERSON_MATCH",n.INSURANCE_MATCH="INSURANCE_MATCH",n.NOT_FOUND="NOT_FOUND",n.ELIGIBLE_MATCH="ELIGIBLE_MATCH",(o=r||(r={})).Evolve="Evolve",o.Pverify="Pverify"},10265:function(e,t,i){i.d(t,{JJ:function(){return n.J},PF:function(){return r.PF},Vn:function(){return a.V},_q:function(){return a._},bV:function(){return r.bV},ib:function(){return r.ib},kT:function(){return r.kT},rl:function(){return r.rl}});var a=i(3938),r=i(15615),n=i(93773)},15615:function(e,t,i){var a,r,n,o,l,s,c,d,u,m,g,h,p,x;i.d(t,{PF:function(){return s},bV:function(){return n},eF:function(){return l},i$:function(){return o},ib:function(){return a},kT:function(){return c},rl:function(){return r}}),(d=a||(a={})).Insurance="Insurance",d.CashPay="Cash Pay",d.BMI="BMI",d.Expired="Expired",(u=r||(r={})).EligibleWaiting="Eligible Waiting",u.Ineligible="Ineligible",u.Review="Review",(m=n||(n={})).SIA="SIA Medical PC",m.Flyte="Flyte Medical PC",m["State of Connecticut"]="State of Connecticut",m["State of Connecticut Retirees"]="State of Connecticut Retirees",m["RiverSpring Living - Self Guided"]="RiverSpring Living - Self Guided",m["RiverSpring Living - Guided"]="RiverSpring Living - Guided",m["Pequot Tribal Family Health Plan"]="Pequot Tribal Family Health Plan",m["A Duie Pyle"]="A Duie Pyle",m["Directors Guild of America – Producer Health Plan"]="Directors Guild of America – Producer Health Plan",m.MDsave="MDsave",m["ChristianaCare - Caregivers"]="ChristianaCare - Caregivers",(g=o||(o={})).Alabama="AL",g.Alaska="AK",g.Arizona="AZ",g.Arkansas="AR",g.California="CA",g.Colorado="CO",g.Connecticut="CT",g.Delaware="DE",g.Florida="FL",g.Georgia="GA",g.Hawaii="HI",g.Idaho="ID",g.Illinois="IL",g.Indiana="IN",g.Iowa="IA",g.Kansas="KS",g.Kentucky="KY",g.Louisiana="LA",g.Maine="ME",g.Maryland="MD",g.Massachusetts="MA",g.Michigan="MI",g.Minnesota="MN",g.Mississippi="MS",g.Missouri="MO",g.Montana="MT",g.Nebraska="NE",g.Nevada="NV",g["New Hampshire"]="NH",g["New Jersey"]="NJ",g["New Mexico"]="NM",g["New York"]="NY",g["North Carolina"]="NC",g["North Dakota"]="ND",g.Ohio="OH",g.Oklahoma="OK",g.Oregon="OR",g.Pennsylvania="PA",g["Rhode Island"]="RI",g["South Carolina"]="SC",g["South Dakota"]="SD",g.Tennessee="TN",g.Texas="TX",g.Utah="UT",g.Vermont="VT",g.Virginia="VA",g.Washington="WA",g["Washington D.C."]="DC",g["West Virginia"]="WV",g.Wisconsin="WI",g.Wyoming="WY",(h=l||(l={})).Insured="yes",h.SelfPay="no",(p=s||(s={}))["1199SEIU"]="1199SEIU",p.Aetna="Aetna",p.Anthem="Anthem",p.Cigna="Cigna",p.BCBS="BCBS",p.BCBSPPO="BCBS Bluecard - PPO Briefcase",p.United="United",p.Other="Other",p.SelfPay="Self-Pay",p["Pequot HealthCare"]="Pequot HealthCare",p["Aetna Medicare"]="Aetna Medicare",p.Highmark="Highmark",(x=c||(c={})).Flyte="flyte",x.CareCompass="careCompass",x.PequotHealthCare="pequotHealthCare",x.RiverSpringLiving="riverSpringLiving",x.PyleFamilyInsurance="pyleFamilyInsurance",x.Aetna="aetna",x.DGA="dga",x.MDSave="mdSave",x.ChristianaCare="christianaCare"},93773:function(e,t,i){var a,r;i.d(t,{J:function(){return a}}),(r=a||(a={})).WorkflowSelector="workflowSelector",r.PreEligibility="preEligibility",r.ContactDetails="contactDetails",r.InsuranceDetails="insuranceDetails",r.InsuranceDetailsReview="insuranceDetailsReview",r.ApplicationReview="applicationReview",r.ApplicationComplete="applicationComplete",r.ApplicationDetected="applicationDetected",r.EligibilityUnmet="eligibilityUnmet"},48527:function(e,t,i){i.d(t,{F:function(){return calculateAge}});let calculateAge=e=>{let t=new Date,i=new Date(e),a=t.getFullYear()-i.getFullYear(),r=t.getMonth()-i.getMonth();return(r<0||0===r&&t.getDate(){let{heightFeet:t,heightInches:i,weightPounds:a}=e;if(t<0||i<0||a<=0)throw Error("Invalid input: Negative values are not allowed.");let r=12*t+i;return a/(r*r)*703}},47209:function(e,t,i){i.d(t,{T:function(){return checkFieldErrors}});let checkFieldErrors=(e,t,i)=>{if(!t[e])return!1;let a=Array.isArray(i)?i:[i];return a.some(i=>{var a;return(null===(a=t[e])||void 0===a?void 0:a.type)===i})}},75887:function(e,t,i){i.d(t,{P:function(){return o}});var a=i(76089),r=i(15615),n=i(52766);let o={[r.kT.Flyte]:e=>{let{bmi:t,comorbidity:i}=e;return t>=30||t>=27&&i===a.IQ.Yes},[r.kT.CareCompass]:e=>{let{birthdate:t,bmi:i,comorbidity:r}=e,o=(0,n.Fw)(t);return o>=18&&(i>=30||i>=27&&r===a.IQ.Yes)},[r.kT.Aetna]:e=>{let{birthdate:t,bmi:i,comorbidity:r}=e,o=(0,n.Fw)(t);return o>=18&&(i>=30||i>=27&&r===a.IQ.Yes)},[r.kT.RiverSpringLiving]:e=>{let{bmi:t,comorbidity:i}=e;return t>=30||t>=27&&i===a.IQ.Yes},[r.kT.PequotHealthCare]:e=>{let{bmi:t,comorbidity:i}=e;return t>=35||i===a.IQ.Yes},[r.kT.PyleFamilyInsurance]:e=>{let{bmi:t}=e;return t>=30},[r.kT.DGA]:e=>{let{bmi:t,comorbidity:i}=e;return t>=30||t>=27&&i===a.IQ.Yes},[r.kT.MDSave]:e=>{let{bmi:t,comorbidity:i}=e;return t>=30||t>=27&&i===a.IQ.Yes},[r.kT.ChristianaCare]:e=>{let{birthdate:t,bmi:i,comorbidity:r}=e,o=(0,n.Fw)(t);return o>=18&&(i>=30||i>=27&&r===a.IQ.Yes)}}},29262:function(e,t,i){i.d(t,{f:function(){return convertDateToISO}});let convertDateToISO=e=>{let t=e.match(/^(\d{2})[-\/](\d{2})[-\/](\d{4})$/);if(t)return"".concat(t[3],"-").concat(t[1],"-").concat(t[2]);throw Error("convertDateToISO was given an invalid date format, expected MM/DD/YYYY")}},40188:function(e,t,i){i.d(t,{M:function(){return extractNumericValue}});let extractNumericValue=e=>{let t=null==e?void 0:e.match(/\d+(\.\d+)?/);return t?parseFloat(t[0]):null}},90420:function(e,t,i){i.d(t,{k:function(){return getParentStateValue}});let getParentStateValue=e=>"string"==typeof e?e:Object.keys(e)[0]},52766:function(e,t,i){i.d(t,{Fw:function(){return a.F},V2:function(){return r.V},Pq:function(){return n.P},f1:function(){return o.f},MC:function(){return l.M}});var a=i(48527),r=i(59893),n=i(75887),o=i(29262),l=i(40188)}}]);