"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[933],{533:(e,t,a)=>{a.d(t,{f:()=>l,n:()=>s});var i=a(37876),r=a(37477),n=a(40917),o=a(80072);a(14232);let s=new Map([[o.C.PreEligibility,{label:"Age & BMI",icon:r.IconScaleOutline}],[o.C.ContactDetails,{label:"Personal Details",icon:r.IconId}],[o.C.InsuranceDetails,{label:"Insurance Info",icon:r.IconClipboardPlus}]]),l=e=>{var t;let{currentStep:a,steps:r=s}=e,o=null==(t=r.get(a))?void 0:t.label,l=Array.from(r.values());return(0,i.jsx)(n.s,{currentStep:o,steps:l})}},1188:(e,t,a)=>{a.d(t,{s:()=>i});let i=e=>{let t=null==e?void 0:e.match(/\d+(\.\d+)?/);return t?Number.parseFloat(t[0]):null}},6770:(e,t,a)=>{a.d(t,{x:()=>h});var i=a(37876),r=a(37477),n=a(82393),o=a(92087),s=a(82492),l=a(88992),c=a(18699);let d=e=>{let{isDisabled:t,...a}=e,{register:d,setValue:S,formState:{errors:u}}=(0,l.xW)(),C=(0,s.Q)("ssn",u,["minLength","maxLength"]);return(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",...a,children:[(0,i.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:"ssn",children:"Social Security Number"}),(0,i.jsx)(r.Text,{variant:"text-body-meta-regular",color:"text-secondary",children:"Last 4 Digits of your Social Security Number"}),(0,i.jsx)(c.p,{"data-test":"ssn",id:"ssn",isInvalid:C,isDisabled:t,onInput:e=>S("ssn",e.currentTarget.value),...d("ssn",{required:!0,minLength:{value:4,message:o.i.ssn.minLength},maxLength:{value:4,message:o.i.ssn.maxLength}})}),C&&(0,i.jsx)(n.gO,{errors:u,name:"ssn"})]})};var S=a(45383),u=a(19847),C=a(84441),m=a(15986),p=a(48496);let h=e=>{let{configuration:t,loading:a=!1,onSubmit:o,defaultValues:s}=e,{contentResources:c,fields:h}=t,g=(0,l.mN)({mode:"onBlur",defaultValues:s}),x=(0,u.a)(),b=()=>(0,i.jsx)(r.Button,{type:"submit",size:{base:"m",lg:"l"},isDisabled:!g.formState.isValid,width:"100%",isLoading:a,trailingIcon:(0,i.jsx)(r.IconArrowRight,{}),"aria-label":"Continue",children:"Continue"});return(0,i.jsx)(l.Op,{...g,children:(0,i.jsxs)(S.X,{as:"form",onSubmit:g.handleSubmit(o),noValidate:!0,children:[(0,i.jsx)(S.X.Side,{gap:0,children:c.title}),(0,i.jsxs)(S.X.Form,{children:[(0,i.jsx)(n.d5,{isDisabled:a}),(null==h?void 0:h.ssn)&&(0,i.jsx)(d,{isDisabled:a}),(0,i.jsx)(n.LP,{inputProps:{isDisabled:a}}),(0,i.jsxs)(r.Flex,{direction:{base:"column",lg:"row"},gap:"spacer-9",children:[(0,i.jsx)(C.PV,{isDisabled:a,flex:1}),(null==h?void 0:h.state)&&(0,i.jsx)(p.X,{isDisabled:a,flex:1,options:h.state.options})]}),(0,i.jsx)(m.h,{isDisabled:a,options:h.howDidYouFindUs.options}),(0,i.jsx)(C.Ci,{isDisabled:a,pb:{base:"spacer-24",lg:0}}),x?(0,i.jsx)(n.cI,{children:b()}):b()]})]})})}},10758:(e,t,a)=>{a.d(t,{v:()=>r});var i=a(12342);let r=async e=>await i.A.post("/api/auth/request-otp",e)},11427:(e,t,a)=>{a.d(t,{C:()=>c});var i=a(37876),r=a(37477),n=a(45383),o=a(20058),s=a(54587),l=a.n(s);let c=()=>(0,i.jsxs)(n.s,{gap:{lg:"spacer-20"},alignItems:"center",direction:"column",height:"100%",pt:{base:"spacer-16",md:"spacer-20",lg:"spacer-20"},children:[(0,i.jsxs)(r.Flex,{direction:"column",alignItems:"center",gap:"spacer-6",children:[(0,i.jsx)(l(),{alt:"Application Complete",width:180,height:180,src:"/static/assets/onboarding-error.png"}),(0,i.jsxs)(r.Text,{color:"text-primary",variant:{base:"text-header-L",md:"text-header-XL"},textAlign:"center",children:["Sorry, there was an error",(0,i.jsx)("br",{}),"submitting your information"]})]}),(0,i.jsxs)(r.Box,{position:{base:"fixed",lg:"unset"},bottom:0,pb:{base:"spacer-9",md:"spacer-12",lg:"0"},px:{md:"spacer-20",lg:"0"},children:[(0,i.jsx)(r.Text,{color:"text-secondary",variant:"text-body-bold",textAlign:"center",children:"Need some help?"}),(0,i.jsxs)(r.Text,{color:"text-secondary",variant:"text-body-regular",mt:"spacer-1",textAlign:"center",children:["Please call"," ",(0,i.jsx)(o.C,{fontWeight:"thin"})," ","to speak with a Care Coordinator."]})]})]})},11969:(e,t,a)=>{a.d(t,{I:()=>n});var i=a(12342),r=function(e){return e.PASSWORD_CHANGE="passwordChange",e}({});let n=async(e,t)=>{let a={action:r.PASSWORD_CHANGE,createPassword:!0,token:e,value:t};return i.A.post("/api/authmanagement",a)}},12342:(e,t,a)=>{a.d(t,{A:()=>i});let i=a(91040).A.create({timeout:18e4})},13533:(e,t,a)=>{a.d(t,{H:()=>r});var i=a(66952);let r=e=>{let{heightFeet:t,heightInches:a,weightPounds:r}=e;if(t<0||a<0||r<=0)throw new i.oC("Negative values are not allowed.");let n=12*t+a;return r/(n*n)*703}},13751:(e,t,a)=>{a.d(t,{gQ:()=>s,UH:()=>c,yF:()=>d,rS:()=>m,uN:()=>u,yS:()=>C,AU:()=>o,i_:()=>n,pE:()=>l,n6:()=>S,RW:()=>p});var i=a(68792),r=a(45352);let n={assignLabLocation:(0,r.a)({labLocation:e=>{let{event:t}=e;return t.data}}),assignLabsSkipped:(0,r.a)({labs:"SUBMIT_LATER"}),registerLabsUploaded:(0,r.a)({labs:"LABS_UPLOADED"})},o={updateFormData:(0,r.a)({formData:e=>{let{context:t,event:a}=e;return{...t.formData,...a.data}}})},s={assignBMI:(0,r.a)({bmi:e=>{let{context:t}=e,{heightInFoot:a,heightInInch:r,highestWeightInPounds:n}=t.formData;return(0,i.Hv)({heightFeet:(0,i.sC)(a),heightInches:(0,i.sC)(r),weightPounds:(0,i.sC)(n)})}})},l={assignOtpCode:(0,r.a)({otpData:e=>{let{context:t,event:a}=e;return{...t.otpData,otp:a.data.verificationCode}}})},c={assignConsents:(0,r.a)({consentsData:e=>{let{context:t,event:a}=e;return{...t.consentsData,items:a.output.data}}}),assignUserConsentStatus:(0,r.a)({consentsData:e=>{let{context:t,event:a}=e;return{...t.consentsData,userConsentStatus:Object.entries(a.data).map(e=>{let[t,a]=e;return{formType:t,isAccepted:a}})}}})},d={assignContactData:(0,r.a)({contactData:e=>{var t;let{context:a,event:i}=e;return{...a.contactData,contactId:null==(t=i.output)?void 0:t.contactId}}})},S={assignPasswordData:(0,r.a)({passwordData:e=>{let{context:t,event:a}=e;return{...t.passwordData,...a.data}}})},u={assignNewEmail:(0,r.a)({formData:e=>{let{context:t,event:a}=e;return{...t.formData,email:a.output.email}}})},C={assignError:(0,r.a)({error:e=>{var t,a,i;let{event:r}=e;return{message:(null==r||null==(i=r.error)||null==(a=i.response)||null==(t=a.data)?void 0:t.code)==="PASSWORD_PWNED"?"This password has been exposed in previous data breaches by an unrelated party. To keep your account secure, please choose a different, unique password.":"There was an error submitting. Please try again."}}}),resetError:(0,r.a)({error:void 0})},m=e=>({reset:(0,r.a)(e),resetBenefitsCheck:(0,r.a)({benefitsCheck:void 0})}),p={assignFlyteUserData:(0,r.a)({flyteUserData:e=>{let{event:t}=e;return t.output.data}})}},14901:(e,t,a)=>{a.d(t,{l:()=>S});var i=a(37876),r=a(37477),n=a(45383),o=a(20058),s=a(19847),l=a(80072),c=a(54587),d=a.n(c);let S=e=>{let{title:t,note:a}=e,c=(0,s.a)();return(0,i.jsxs)(n.s,{gap:{lg:"spacer-16",xl:"spacer-18",xxl:"spacer-64"},alignItems:"start","data-test":l.C.ApplicationReview,children:[(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-7",children:[t,(0,i.jsxs)(o.C,{size:"l",leadingIcon:(0,i.jsx)(r.IconPhone,{}),"aria-label":"Contact Us",variant:"primary-alt",isInline:!1,justifyContent:"center",alignSelf:"start",children:["Call"," ",o.F.formatted]}),a]}),!c&&(0,i.jsx)(d(),{alt:"Application Review",width:340,height:340,src:"/static/assets/application-review.png"})]})}},15986:(e,t,a)=>{a.d(t,{h:()=>c,l:()=>l});var i=a(37876),r=a(37477),n=a(34305),o=a(88992);let s=[n.UX.Brochure,n.UX.CompanyIntranet,n.UX.Email,n.UX.CoworkerReferral,n.UX.EpicEHRReferral,n.UX.FrameFertility,n.UX.GoogleAd,n.UX.Mailer,n.UX.NuvanceRhinebeck,n.UX.OnsiteMonitor,n.UX.Poster,n.UX.PrintAd,n.UX.ProfessionalReferral,n.UX.ProviderReferral,n.UX.QuantumHealth,n.UX.SocialMedia,n.UX.TVAd,n.UX.TradeShow,n.UX.UpswingHealth,n.UX.WebSearch,n.UX.Website,n.UX.WordOfMouth,n.UX.Other],l="howDidYouFindUS",c=e=>{let{isDisabled:t,options:a=s}=e,{register:n,watch:c}=(0,o.xW)();return(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",children:[(0,i.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:l,children:"How did you hear about us?"}),(0,i.jsx)(r.Select,{"data-test":l,id:l,size:"l",variant:"flushed",placeholder:"Select",isDisabled:t,...n(l,{required:!0}),value:c(l),children:a.map(e=>(0,i.jsx)("option",{value:e,children:e},e))})]})}},18699:(e,t,a)=>{a.d(t,{p:()=>o});var i=a(37876),r=a(37477),n=a(14232);let o=(0,n.forwardRef)((e,t)=>{let{isDisabled:a,...o}=e,[s,l]=(0,n.useState)(!1),c=s?r.IconEyeOff:r.IconEye;return(0,i.jsx)(r.MaskInput,{type:s?"text":"password",inputMode:"numeric",maskOptions:{mask:[/\d/,/\d/,/\d/,/\d/]},placeholder:"SSN last 4 digits",size:"l",variant:"flushed",ref:t,isDisabled:a,trailingIcon:(0,i.jsx)(r.Box,{userSelect:"none",children:(0,i.jsx)(c,{onClick:()=>{a||l(e=>!e)},cursor:a?"not-allowed":"pointer"})}),...o})})},19847:(e,t,a)=>{a.d(t,{a:()=>r});var i=a(37477);let r=()=>(0,i.useBreakpointValue)({base:!0,lg:!1},{ssr:!1})},20058:(e,t,a)=>{a.d(t,{C:()=>l,F:()=>s});var i=a(37876),r=a(29261),n=a(74161),o=a(37477);let s={formatted:"(844) 359-8363"},l=e=>{let{onClick:t,children:a="(844) 359-8363",...s}=e,{track:l}=(0,n.useAnalytics)();return(0,i.jsx)(o.Link,{isInline:!0,href:"tel:+18443598363",children:a,onClick:e=>{l(r.A.phoneNumberClicked),null==t||t(e)},...s})}},20411:(e,t,a)=>{a.d(t,{R:()=>s});var i=a(12342),r=a(67751);let n={name:"Flyte Medical",npi:"1992372403"},o=e=>{let{payerCode:t,firstName:a,lastName:i,birthdate:o,insuranceMemberID:s,provider:l}=e;return{payer:{payerCode:t},patient:{firstName:a,lastName:i,dateOfBirth:(0,r.S)(o),memberId:s},provider:l||n}},s=async e=>{let t=o(e);return await i.A.post("/api/benefits/check",t)}},27297:(e,t,a)=>{a.d(t,{I:()=>v});var i=a(37876),r=a(37477),n=a(52036),o=a(14232),s=a(61032);function l(e){let{isOpen:t,onRequestLabs:a,onContinue:n,onClose:o,diabetes:l,bariatric:c}=e;if(!t)return null;let d=(0,s.o)({diabetes:l,bariatric:c,labName:"generic"});return(0,i.jsxs)(r.Modal,{isOpen:t,onClose:o,isCentered:!0,autoFocus:!1,closeOnOverlayClick:!0,children:[(0,i.jsx)(r.Modal.Overlay,{}),(0,i.jsxs)(r.Modal.Content,{px:{base:"spacer-6",lg:"spacer-7"},pb:"spacer-6",mx:0,maxWidth:{base:"100%",md:"600px"},mb:{base:0,lg:"auto"},borderTopRadius:{base:"xl",md:"lg"},borderBottomRadius:{base:"0",md:"lg"},maxHeight:"100vh",children:[(0,i.jsxs)(r.Modal.Header,{px:0,children:[(0,i.jsx)(r.Text,{variant:"text-header-M",color:"text-primary",display:{base:"block",md:"none"},children:"Required Lab results"}),(0,i.jsx)(r.Text,{variant:"text-header-M",color:"text-primary",display:{base:"none",md:"block"},children:"Lab Results Upload Requirements"})]}),(0,i.jsxs)(r.Modal.Body,{p:0,overflow:"hidden",display:"flex",flexDirection:"column",children:[(0,i.jsxs)(r.Alert,{status:"info",variant:"subtle",p:{base:"spacer-4",md:"spacer-2"},overflow:"hidden",children:[(0,i.jsx)(r.Alert.Icon,{}),(0,i.jsxs)(r.Alert.Description,{children:["You can only upload lab results if results are dated within the last"," ",(0,i.jsx)("strong",{children:"90 days"})]})]}),(0,i.jsx)(r.Text,{variant:"text-body-large-medium",mt:"spacer-4",mb:"spacer-3",display:{base:"none",md:"block"},children:"Results should include the following:"}),(0,i.jsx)(r.Box,{mt:{base:"spacer-4",md:"spacer-0"},bg:"background-page-01",fontSize:"18px",maxH:"360px",overflowY:"scroll",mb:"spacer-7",borderRadius:"radii-2",children:d.map(e=>(0,i.jsx)(r.Text,{mx:"spacer-4",py:"spacer-2",variant:"text-body-large-regular",fontSize:"18px",color:"text-secondary",children:e},e))})]}),(0,i.jsxs)(r.Modal.Footer,{flexDirection:"column",gap:"spacer-4",p:0,children:[(0,i.jsx)(r.Button,{variant:"primary",size:"l",width:"100%",onClick:n,rightIcon:(0,i.jsx)(r.IconArrowRight,{}),children:"Continue"}),(0,i.jsx)(r.Button,{size:"l",variant:"primary-alt",width:"100%",onClick:a,leftIcon:(0,i.jsx)(r.IconArrowLeft,{}),children:"Request Labs Instead"}),(0,i.jsx)(r.Text,{variant:"text-body-meta-regular",color:"text-secondary",children:"Not sure if your labs meet these requirements? We recommend you to request labs instead."})]})]})]})}function c(e){let{isOpen:t}=e;return t?(0,i.jsx)(r.Box,{position:"fixed",top:0,left:0,right:0,bottom:0,bg:"background-overlay",zIndex:9999,display:"flex",alignItems:"center",justifyContent:"center",children:(0,i.jsxs)(r.Flex,{direction:"column",alignItems:"center",justifyContent:"center",textAlign:"center",px:"spacer-6",children:[(0,i.jsx)(r.Spinner,{size:"s",color:"text-light",thickness:"4px",mb:"spacer-6"}),(0,i.jsx)(r.Text,{variant:"text-header-S",color:"text-light",mb:"spacer-2",fontWeight:"bold",children:"We're requesting your Lab"}),(0,i.jsx)(r.Text,{variant:"text-body-meta-medium",color:"text-light",children:"This may take a few seconds, do not close this window."})]})}):null}let d=e=>{let{name:t,address:a,city:n,state:o,zipCode:s,distance:l,isRecommended:c=!1,isSelected:d=!1,onChange:S,"data-test":u}=e;return(0,i.jsxs)(r.Box,{borderWidth:"1px",borderStyle:"solid",borderColor:d?"primary-default":"border-subtle",borderRadius:"md",p:"spacer-4",mb:"spacer-3",bg:"background-card",position:"relative",_hover:{borderColor:"border-hovered"},cursor:"pointer",onClick:S,"data-test":u,justifyContent:"start",children:[c&&(0,i.jsx)(r.Tooltip,{hasArrow:!0,placement:"top",label:"These labs offer next-day appointments or walk-in options, and your lab results will be sent directly to FlyteHealth—no manual upload needed",bg:"accent-default",color:"text-light",borderRadius:"radii-4",maxW:"320px",textAlign:"center",children:(0,i.jsx)(r.Tag,{position:"absolute",top:"0",size:"s",right:"spacer-12",transform:"translate(0, -50%)",bg:"accent-default",color:"text-light",_hover:{bg:"accent-default"},children:"Recommended"})}),(0,i.jsxs)(r.Flex,{justifyContent:"space-between",alignItems:"center",children:[(0,i.jsxs)(r.Box,{mr:"spacer-3",children:[(0,i.jsxs)(r.Flex,{alignItems:"flex-start",mb:"spacer-2",children:[(0,i.jsx)(r.Text,{variant:"text-header-S",color:"text-primary",fontWeight:"bold",mr:"spacer-3",noOfLines:2,children:t}),(0,i.jsx)(r.Tag,{size:"s",bgColor:"background-static",minWidth:"max-content",children:(0,i.jsxs)(r.Tag.Label,{color:"text-primary",children:[l," ","miles"]})})]}),(0,i.jsx)(r.Text,{fontWeight:400,variant:"text-body-meta-regular",color:"text-primary",children:a}),(0,i.jsxs)(r.Text,{fontWeight:400,variant:"text-body-meta-regular",color:"text-primary",children:[n,",",o," ",s]})]}),(0,i.jsx)(r.Radio,{isChecked:d,onChange:S,colorScheme:"primary",size:"l"})]})]})},S={maxRecommendedLabs:3,maxAdditionalMiles:10,preferredProvider:"quest"};function u(e,t){return e.toLowerCase().includes(t.toLowerCase())}var C=a(12342);async function m(e){return C.A.get("api/find-lab?zipCode=".concat(encodeURIComponent(e.zipCode),"&organizationName=").concat(encodeURIComponent(e.organizationName))).then(e=>e.data)}let p={selectedLabId:null,searchResults:null,isLoading:!1,error:null};function h(e,t){switch(t.type){case"SET_LOADING":return{...e,isLoading:t.payload,error:null};case"SET_RESULTS":return{...e,searchResults:t.payload,isLoading:!1,error:null};case"SET_ERROR":return{...e,error:t.payload,isLoading:!1};case"SELECT_LAB":return{...e,selectedLabId:t.payload};case"RESET_SEARCH":return{...e,searchResults:null,error:null};default:return e}}function g(e){var t;let{organizationName:a,onLabSelected:n,recommendationConfig:s=S}=e,[l,c]=(0,o.useReducer)(h,p),[C,g]=(0,o.useState)(""),[x,b]=(0,o.useState)(null),y=(0,o.useCallback)(async e=>{if(g(e),!e.trim())return void c({type:"RESET_SEARCH"});if(5===e.length){c({type:"SET_LOADING",payload:!0});try{var t;let i=await m({zipCode:e,organizationName:a});if(!i.success)throw Error("Error finding labs. Please try again.");let r=i.data.map(e=>({id:e.id,name:e.name,address:e.address1,city:e.city,state:e.state,zipCode:"",distance:Number(e.distance)})),n=[...(t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S;if(0===e.length)return{recommendedLabs:[],regularLabs:[]};let a=[...e].sort((e,t)=>e.distance-t.distance),i=a.find(e=>!u(e.name,t.preferredProvider)),r=i?i.distance+t.maxAdditionalMiles:1/0,n=new Set(a.filter(e=>u(e.name,t.preferredProvider)&&e.distance<=r).slice(0,t.maxRecommendedLabs).map(e=>e.id)),o=[],s=[];return a.forEach(e=>{let t={...e,isRecommended:n.has(e.id)};n.has(e.id)?o.push(t):s.push(t)}),{recommendedLabs:o,regularLabs:s}}(r,s)).recommendedLabs,...t.regularLabs];c({type:"SET_RESULTS",payload:n})}catch(e){console.error(e),c({type:"SET_ERROR",payload:"Error finding labs. Please try again."})}}},[a,s]),f=(0,o.useCallback)(e=>{g(e),x&&clearTimeout(x),b(setTimeout(()=>{y(e)},500))},[y,x]),H=e=>{c({type:"SELECT_LAB",payload:e.id})};return(0,i.jsxs)(r.Box,{display:"flex",flexDirection:"column",h:{base:"auto",md:"100%"},children:[(0,i.jsx)(r.Box,{bg:"white",position:"sticky",top:-5,zIndex:1,mt:"spacer-2",pt:{base:4,md:0},pb:{base:4,md:4},children:(0,i.jsxs)(r.Box,{py:"spacer-4",px:"spacer-3",bg:"background-dark",borderRadius:"md",flexShrink:0,children:[(0,i.jsx)(r.Text,{variant:"text-header-M",color:"text-light",pb:"spacer-3",children:"Find a Lab Near You"}),(0,i.jsx)(r.Input,{leadingIcon:(0,i.jsx)(r.IconSearch,{}),placeholder:"Enter your zip code to find a lab",value:C,onChange:e=>f(e.target.value),maxLength:5,"data-test":"zipCode"})]})}),(0,i.jsxs)(r.Box,{flexGrow:1,overflowY:"auto",children:[(0,i.jsx)(r.Text,{variant:"text-header-S",fontWeight:400,color:"text-secondary",children:"Your FlyteHealth provider can submit orders to any listed location. Some locations may have out-of-pocket costs. Please check with the lab or your insurance provider for details."}),(0,i.jsxs)(r.Box,{mt:"spacer-6",children:[l.isLoading&&(0,i.jsx)(r.Box,{textAlign:"center",py:"spacer-8",children:(0,i.jsx)(r.Text,{children:"Searching for labs..."})}),l.error&&(0,i.jsx)(r.Box,{textAlign:"center",py:"spacer-8",children:(0,i.jsx)(r.Text,{color:"text-error",children:l.error})}),!l.isLoading&&!l.error&&null!==l.searchResults&&0===l.searchResults.length&&5===C.length&&(0,i.jsx)(r.Box,{textAlign:"center",py:"spacer-8",children:(0,i.jsxs)(r.Text,{children:['No labs found for zip code "',C,'". Please try another zip code.']})}),!l.isLoading&&(null==(t=l.searchResults)?void 0:t.map(e=>(0,i.jsx)(d,{name:e.name,address:e.address,city:e.city,state:e.state,zipCode:e.zipCode,distance:e.distance,isRecommended:e.isRecommended,isSelected:l.selectedLabId===e.id,onChange:()=>H(e),"data-test":"labOption"},e.id)))]})]}),l.selectedLabId?(0,i.jsx)(r.Box,{flexShrink:0,position:"sticky",bottom:-5,bg:"white",pt:{base:"spacer-2",md:0},pb:{base:"spacer-4",md:0},mt:{base:0,md:"spacer-6"},mb:{base:0,md:"spacer-6"},children:(0,i.jsx)(r.Button,{size:{base:"m",md:"l"},variant:"primary",width:"100%",isDisabled:!l.selectedLabId,onClick:()=>{var e;if(!l.selectedLabId)return;let t=null==(e=l.searchResults)?void 0:e.find(e=>e.id===l.selectedLabId);t&&n(t)},"data-test":"selectLabButton",children:"Select Lab"})}):null]})}let x=()=>(0,i.jsxs)(r.Box,{position:"fixed",top:"0",left:"0",width:"100vw",height:"100vh",backgroundColor:"background-overlay",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",zIndex:"overlay",children:[(0,i.jsx)(r.Spinner,{size:"xs",color:"text-light"}),(0,i.jsx)(r.Text,{variant:"text-body-bold",color:"text-light",mt:"spacer-3",children:"We’re requesting your Lab"}),(0,i.jsx)(r.Text,{variant:"text-body-regular",color:"text-light",mt:"spacer-2",textAlign:"center",children:"This may take a few seconds, do not close this window."})]});async function b(e){await C.A.post("/api/select-lab",{clinicalProviderId:e.clinicalProviderId,patientId:e.patientId,note:e.note,labName:e.labName,bariatric:e.bariatricSurgery,diabetes:e.diabetes})}function y(e){let{onLabRequested:t,lab:a,onSubmitLabResults:n,onChooseAnotherLab:s,patientId:l,bariatricSurgery:c,diabetes:d}=e,[S,u]=(0,o.useState)(""),[C,m]=(0,o.useState)(!1),[p,h]=(0,o.useState)(null),g=async()=>{try{m(!0),h(null),await b({patientId:l,clinicalProviderId:a.id,note:S.trim()||void 0,labName:a.name,bariatricSurgery:c,diabetes:d}),t(a)}catch(e){console.error("Error selecting lab:",e),h("There was an error selecting the lab. Please try again.")}finally{m(!1)}};return(0,i.jsxs)(r.Box,{children:[(0,i.jsx)(r.Text,{variant:"text-header-S",color:"text-primary",mt:{base:"spacer-3",md:"spacer-5"},mb:{base:"spacer-4"},children:"Your preferred lab"}),(0,i.jsx)(r.Box,{borderWidth:"1px",borderStyle:"solid",borderColor:"border-subtle",borderRadius:"md",p:"spacer-4",mb:"spacer-3",bg:"background-card",position:"relative",_hover:{borderColor:"border-hovered"},cursor:"pointer",children:(0,i.jsx)(r.Flex,{justifyContent:"space-between",alignItems:"center",children:(0,i.jsxs)(r.Box,{mr:"spacer-3",children:[(0,i.jsxs)(r.Flex,{alignItems:"flex-start",mb:"spacer-2",children:[(0,i.jsx)(r.Text,{variant:"text-header-S",color:"text-primary",fontWeight:"bold",mr:"spacer-3",noOfLines:2,children:a.name}),(0,i.jsx)(r.Tag,{size:"s",bgColor:"background-static",minWidth:"max-content",children:(0,i.jsxs)(r.Tag.Label,{color:"text-primary",children:[a.distance," ","miles"]})})]}),(0,i.jsx)(r.Text,{fontWeight:400,variant:"text-body-meta-regular",color:"text-primary",children:a.address}),(0,i.jsxs)(r.Text,{fontWeight:400,variant:"text-body-meta-regular",color:"text-primary",children:[a.city,",",a.state," ",a.zipCode]})]})})}),(0,i.jsxs)(r.Text,{variant:"text-header-S",color:"text-primary",mt:"spacer-5",mb:"spacer-2",children:["Add a note for the care team"," ",(0,i.jsx)(r.Text,{as:"span",variant:"text-body-regular",color:"text-secondary",mb:"spacer-2",children:"(Optional)"})]}),(0,i.jsx)(r.Textarea,{placeholder:"Write a note here",value:S,onChange:e=>u(e.target.value),mb:"spacer-9",rows:1,variant:"flushed",disabled:C}),(0,i.jsxs)(r.Box,{display:{base:"block",md:"none"},pt:"spacer-2",pb:"spacer-5",mb:"auto",children:[(0,i.jsx)(r.Text,{variant:"text-header-S",children:"Already have lab results?"}),(0,i.jsx)(r.Box,{my:"spacer-3",children:(0,i.jsx)(r.Button,{p:0,size:"s",variant:"text-body-meta-medium",color:"text-link-primary-default",onClick:n,children:"Submit your Lab results"})}),(0,i.jsx)(r.Text,{variant:"text-body-meta-regular",mt:"spacer-6",children:"*Be aware that complete lab results must be submitted to FlyteHealth before you can meet with a provider."})]}),p&&(0,i.jsx)(r.Text,{color:"text-error",mb:"spacer-4",textAlign:"center",children:p}),(0,i.jsx)(r.Button,{variant:"primary",width:"100%",mb:"spacer-6",onClick:g,disabled:C,size:{base:"m",md:"l"},children:"Request Lab"}),(0,i.jsx)(r.Box,{textAlign:"center",children:(0,i.jsx)(r.Link,{variant:"link-primary",size:"m",onClick:s,children:"Choose another Lab"})}),C?(0,i.jsx)(x,{}):null]})}let f={selectedLab:null,isRequesting:!1,showRequirements:!1};function H(e,t){switch(t.type){case"RESET_LAB":return{...e,selectedLab:null};case"SELECT_LAB":return{...e,selectedLab:t.lab};case"SET_REQUESTING":return{...e,isRequesting:t.isRequesting};case"SET_SHOW_REQUIREMENTS":return{...e,showRequirements:t.show};default:return e}}function v(e){let{organizationName:t,patientId:a,onLabRequested:s,onProceedToSubmitLabs:d,formData:S}=e,[u,C]=(0,o.useReducer)(H,f),m=()=>{C({type:"SET_SHOW_REQUIREMENTS",show:!0})};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l,{isOpen:u.showRequirements,onRequestLabs:()=>{C({type:"SET_SHOW_REQUIREMENTS",show:!1})},onContinue:()=>{C({type:"SET_SHOW_REQUIREMENTS",show:!1}),d()},onClose:()=>C({type:"SET_SHOW_REQUIREMENTS",show:!1}),diabetes:"yes"===S.diabetes,bariatric:"yes"===S.bariatricSurgery}),(0,i.jsx)(c,{isOpen:u.isRequesting}),(0,i.jsxs)(n.X,{opacity:+!u.isRequesting,overflow:{base:"auto",md:"hidden"},h:"100%","data-testid":"request-labs-form",gap:{base:"0",lg:"spacer-16",xl:"spacer-28",xxl:"spacer-44"},children:[(0,i.jsxs)(n.X.Side,{flex:{base:0,md:1},children:[(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",mb:{base:"spacer-4"},children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"Request labs"}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"Lab results are essential for creating your personalized care plan. These tests provide key insights into your health, allowing us to guide your journey safely and effectively."})]}),(0,i.jsxs)(r.Box,{display:{base:"none",md:"block"},children:[(0,i.jsx)(r.Text,{variant:"text-header-S",children:"Already have lab results?"}),(0,i.jsx)(r.Box,{mt:"spacer-3",mb:"spacer-5",children:(0,i.jsx)(r.Button,{variant:"link-primary",onClick:m,children:"Submit your Lab results"})}),(0,i.jsx)(r.Text,{variant:"text-body-meta-regular",children:"*Be aware that complete lab results must be submitted to FlyteHealth before you can meet with a provider."})]})]}),(0,i.jsx)(n.X.Form,{children:u.selectedLab?(0,i.jsx)(y,{lab:u.selectedLab,onChooseAnotherLab:()=>{C({type:"RESET_LAB"})},onLabRequested:e=>{s(e)},onSubmitLabResults:()=>{d()},patientId:a,bariatricSurgery:"yes"===S.bariatricSurgery,diabetes:"yes"===S.diabetes}):(0,i.jsxs)(r.Box,{overflowY:{base:"initial",md:"hidden"},children:[(0,i.jsx)(g,{organizationName:t,onLabSelected:e=>{C({type:"SELECT_LAB",lab:e})}}),(0,i.jsxs)(r.Box,{display:{base:"block",md:"none"},pt:"spacer-2",pb:"spacer-5",children:[(0,i.jsx)(r.Text,{variant:"text-header-S",children:"Already have lab results?"}),(0,i.jsx)(r.Box,{my:"spacer-3",children:(0,i.jsx)(r.Button,{p:0,variant:"text-body-meta-medium",color:"text-link-primary-default",onClick:m,children:"Submit your Lab results"})}),(0,i.jsx)(r.Text,{variant:"text-body-meta-regular",mt:"spacer-6",children:"*Be aware that complete lab results must be submitted to FlyteHealth before you can meet with a provider."})]})]})})]})]})}},29261:(e,t,a)=>{a.d(t,{A:()=>r});var i=a(33841);let r={[i.CB.PreEligibility]:"pre_eligibility",[i.CB.ContactDetails]:"contact_details",[i.CB.InsuranceDetails]:"insurance_details",[i.CB.InsuranceDetailsReview]:"insurance_details_review",[i.CB.ApplicationReview]:"application_review",[i.CB.ApplicationComplete]:"application_complete",[i.CB.EligibilityUnmet]:"eligibility_unmet",[i.CB.ApplicationDetected]:"account_already_exists",[i.CB.EmailVerification]:"otp_code",[i.CB.OnboardingChecklist]:"welcome",[i.CB.ReviewConsents]:"agree_to_receive_care",[i.CB.CreatePassword]:"create_password",[i.CB.AppDownload]:"download_the_app",[i.CB.RequestLabs]:"request_labs",[i.CB.SubmitLabs]:"submit_labs",closeWorkflowEvent:"eligibility_signup_closed",openPartnerSelectorEvent:"partner_selector_opened",closeWorkflowConfirmationEvent:"eligibility_signup_cancel_confirmation_screen",abortCloseWorkflow:"eligibility_signup_cancel_aborted",phoneNumberClicked:"contact_phone_clicked",editEmail:"edit_email",patientConsent:"patient_consent",declinePatientConsent:"decline_patient_consent"}},30435:(e,t,a)=>{a.d(t,{d:()=>u});var i=a(37876),r=a(37477),n=a(82393),o=a(45383),s=a(19847),l=a(34305),c=a(14232),d=a(88992),S=a(76692);let u=e=>{let{configuration:t,loading:a=!1,onSubmit:u,onBack:C}=e,{contentResources:m,fields:p}=t,h=(0,d.mN)({mode:"onBlur"}),g=(0,s.a)(),x=h.watch(S.uQ)===l.RS.SelfPay,b=h.watch(S.ag)===l.lk.Other;(0,c.useEffect)(()=>{x&&(h.resetField(S.ag),h.resetField(S.JB))},[x,h]),(0,c.useEffect)(()=>{h.resetField(S.E6)},[h.watch(S.ag),h]);let y=()=>(0,i.jsxs)(r.Flex,{gap:{base:"spacer-8",md:"spacer-16"},alignItems:"center",flex:{base:1,lg:"unset"},children:[(0,i.jsx)(r.Button,{size:{base:"m",lg:"l"},isLoading:a,variant:"link","aria-label":"Back",leadingIcon:(0,i.jsx)(r.IconArrowLeft,{}),onClick:C,children:"Back"}),(0,i.jsx)(r.Button,{type:"submit",size:{base:"m",lg:"l"},isDisabled:!h.formState.isValid,flex:1,isLoading:a,trailingIcon:(0,i.jsx)(r.IconArrowRight,{}),"aria-label":"Continue",children:"Continue"})]});return(0,i.jsx)(d.Op,{...h,children:(0,i.jsxs)(o.X,{as:"form",onSubmit:h.handleSubmit(u),noValidate:!0,children:[(0,i.jsx)(o.X.Side,{gap:0,flex:{base:"none",lg:1},children:m.title}),(0,i.jsxs)(o.X.Form,{children:[(null==p?void 0:p.insuranceCoverage)&&(0,i.jsx)(S.Xq,{isDisabled:a}),(null==p?void 0:p.insurance)&&(0,i.jsx)(S._8,{isDisabled:a||x,isRequired:!x,...null==p?void 0:p.insurance},x.toString()),b&&(0,i.jsx)(S.jP,{isDisabled:a,...null==p?void 0:p.insuranceOther}),(0,i.jsx)(S.kV,{isDisabled:a||x,isRequired:!x,pb:{base:"spacer-24",lg:0},...null==p?void 0:p.insuranceMemberID}),g?(0,i.jsx)(n.cI,{children:y()}):y()]})]})})}},31346:(e,t,a)=>{a.d(t,{i:()=>r});var i=a(12342);let r=async()=>await i.A.get("/api/consents")},32246:(e,t,a)=>{a.d(t,{K:()=>ed});var i=a(37876),r=a(37477),n=a(59004),o=a(91366),s=a(48934),l=a(14901),c=a(44585),d=a(80075),S=a(6770),u=a(39946),C=a(63583),m=a(53154),p=a(30435),h=a(42037),g=a(70587),x=a(11427),b=a(86535),y=a(27297),f=a(43483),H=a(81488),v=a(93511),I=a(34305),R=a(80072),D=a(66885),j=a(62227),E=a(14232),w=a(11969),A=a(10758),L=a(85007),T=a(20411),M=a(31346),k=a(38360),P=a(39648),U=a(77944),B=a(47353),F=a(83928),O=a(33841),z=a(13751),N=a(92323),_=a(86687),W=a(89225),X=a(97793),V=a(68792),q=a(65159),Y=a(39777),K=a(45352),G=a(63826);let Q=e=>e===G.w.FULL_MATCH||e===G.w.ELIGIBLE_MATCH,J=e=>{switch(e){case G.w.PERSON_MATCH:case G.w.INSURANCE_MATCH:case G.w.EXPIRED:case G.w.NOT_FOUND:return I.XN.EligibleWaiting;case G.w.FULL_MATCH:case G.w.ELIGIBLE_MATCH:default:return}};var $=function(e){return e.CreateLead="createLead",e.CreateContact="createContact",e.UpdateContact="updateContact",e.DetermineContactOrLead="determineContactOrLead",e.FetchConsents="fetchConsents",e.UpdateEmail="updateEmail",e.CheckEligibility="checkEligibility",e.CheckBenefits="checkBenefits",e}($||{});let Z={...X.f,...$},ee=W.Ek[O.fz.PequotHealthCare],et={formData:{birthdate:"",comorbidity:"",currentWeightInPounds:"",dateOfHighestWeightValue:"",email:"",firstName:"",heightInFoot:"",heightInInch:"",highestWeightInPounds:"",insuranceCoverage:void 0,insuranceMemberID:"",insurance:void 0,lastName:"",phone:"",state:void 0,termsAgreement:!1,howDidYouFindUS:"",comorbidities:[],diabetes:"",bariatricSurgery:""},eligibilityCheckMatchType:void 0,bmi:void 0,benefitsCheck:void 0,otpData:void 0,consentsData:{items:[],userConsentStatus:[]},contactData:{},passwordData:{password:void 0,confirmPassword:void 0},flyteUserData:void 0,error:void 0,labs:void 0},ea={...z.AU,...z.gQ,...z.pE,...z.UH,...z.yF,...z.n6,...z.uN,...z.yS,...z.RW,...z.i_,...(0,z.rS)(et).reset},ei=(0,q.mj)({types:{},guards:{isPreEligibilityMet:e=>{let{context:{formData:t,bmi:a}}=e;return V.J0.pequotHealthCare({bmi:a,comorbidity:t.comorbidity,birthdate:t.birthdate})},isApplicationReviewRequired:e=>{let{context:{eligibilityCheckMatchType:t,formData:a}}=e;return!F.A.shouldBypassIsApplicationReviewRequired({email:a.email})&&[O.wY.EXPIRED,O.wY.INSURANCE_MATCH,O.wY.PERSON_MATCH,O.wY.NOT_FOUND].includes(t)},isApplicationDetected:_.L,isAthenaRecordCreated:N.z},actions:ea}).createMachine({context:()=>et,id:"pequotMachine",initial:Z.PreEligibility,states:{[Z.PreEligibility]:{id:Z.PreEligibility,initial:Z.Idle,states:{[Z.Idle]:{on:{SUBMIT:{target:Z.Submitting,actions:"updateFormData"}}},[Z.Submitting]:{entry:"assignBMI",always:[{target:"#".concat(Z.ContactDetails),guard:"isPreEligibilityMet"},{target:"#".concat(Z.EligibilityUnmet)}]}}},[Z.ContactDetails]:{id:Z.ContactDetails,initial:Z.Idle,states:{[Z.Idle]:{on:{SUBMIT:{target:"#".concat(Z.InsuranceDetails),actions:"updateFormData"}}}}},[Z.InsuranceDetails]:{id:Z.InsuranceDetails,initial:Z.Idle,states:{[Z.Idle]:{on:{BACK:{target:"#".concat(Z.ContactDetails)},SUBMIT:{target:"#".concat(Z.InsuranceDetailsReview),actions:"updateFormData"}}}}},[Z.InsuranceDetailsReview]:{id:Z.InsuranceDetailsReview,initial:Z.Idle,states:{[Z.Idle]:{on:{SUBMIT:{actions:"updateFormData",target:Z.Submitting}}},[Z.Submitting]:{id:Z.Submitting,initial:Z.CheckEligibility,states:{[Z.CheckEligibility]:{id:Z.CheckEligibility,invoke:{src:(0,Y.Sx)(async e=>{let{input:t}=e,a={...t,insurance:W.w[O.fz.PequotHealthCare],benefitProgram:W.Nl[O.fz.PequotHealthCare]};return await (0,P.w)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:[{actions:(0,K.a)({eligibilityCheckMatchType:e=>{let{event:t}=e;return t.output.data.matchType}}),target:"#".concat(Z.CheckBenefits)}],onError:"#".concat(Z.InsuranceDetailsReview,".").concat(Z.Error)}},[Z.CheckBenefits]:{id:Z.CheckBenefits,invoke:{src:(0,Y.Sx)(async e=>{let{input:t}=e,a={...t,payerCode:W.dT[O.lk["Pequot HealthCare"]]};return await (0,T.R)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:[{actions:(0,K.a)({benefitsCheck:e=>{let{event:t}=e;return t.output.data}}),target:"#".concat(Z.DetermineContactOrLead)}],onError:"#".concat(Z.DetermineContactOrLead)}},[Z.DetermineContactOrLead]:{id:Z.DetermineContactOrLead,always:[{guard:"isApplicationReviewRequired",target:Z.CreateLead},{target:Z.CreateContact}]},[Z.CreateContact]:{id:Z.CreateContact,invoke:{src:(0,Y.Sx)(async e=>{let{input:t}=e,a={...t.formData,...t.formData.insuranceMemberID&&{employmentVerificationCode:t.formData.insuranceMemberID},...t.benefitsCheck&&{benefitsCheck:t.benefitsCheck},eligibilityVerifiedBy:O.h9.Evolve,company:ee,insurance:W.Ft[O.fz.PequotHealthCare],evolveOrganization:O.PM["Pequot Tribal Family Health Plan"],accountId:W.f3[O.fz.PequotHealthCare]};return await (0,k.vY)(a)}),input:e=>{let{context:t}=e;return t},onDone:{actions:"assignContactData",target:"#".concat(Z.EmailVerification)},onError:[{guard:"isApplicationDetected",target:"#".concat(Z.ApplicationDetected)},{target:"#".concat(Z.InsuranceDetailsReview,".").concat(Z.Error)}]}},[Z.CreateLead]:{id:Z.CreateLead,invoke:{src:(0,Y.Sx)(async e=>{let{input:t}=e,a={...t.formData,...t.formData.insuranceMemberID&&{employmentVerificationCode:t.formData.insuranceMemberID},...t.benefitsCheck&&{benefitsCheck:t.benefitsCheck},eligibilityVerifiedBy:O.h9.Evolve,company:ee,insurance:W.Ft[O.fz.PequotHealthCare],evolveOrganization:O.PM["Pequot Tribal Family Health Plan"],leadStatus:J(t.eligibilityCheckMatchType),automateEvolveEnrollment:Q(t.eligibilityCheckMatchType)};return await (0,B.t)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{guard:"isApplicationReviewRequired",target:"#".concat(Z.ApplicationReview)},{target:"#".concat(Z.ApplicationComplete)}],onError:[{guard:"isApplicationDetected",target:"#".concat(Z.ApplicationDetected)},{target:"#".concat(Z.InsuranceDetailsReview,".").concat(Z.Error)}]}}}},[Z.Error]:{id:"".concat(Z.InsuranceDetailsReview,".").concat(Z.Error),on:{SUBMIT:{actions:["updateFormData","resetBenefitsCheck"],target:Z.Submitting}}}}},[Z.EmailVerification]:{id:Z.EmailVerification,initial:Z.Idle,states:{[Z.Idle]:{id:"".concat(Z.EmailVerification,".").concat(Z.Idle),on:{SUBMIT:{actions:"assignOtpCode",target:Z.Submitting},RESEND_EMAIL_VERIFICATION:{target:Z.Idle,reenter:!0},UPDATE_EMAIL:{target:Z.UpdateEmail}},invoke:{input:e=>{var t;let{context:a,event:i}=e;return{email:a.formData.email,firstName:a.formData.firstName,onSuccess:null==i||null==(t=i.data)?void 0:t.onSuccess}},src:(0,Y.Sx)(async e=>{let{input:t}=e,a={email:t.email,firstName:t.firstName};return{token:(await (0,A.v)(a)).data.token,onSuccess:t.onSuccess}}),onDone:{actions:[(0,K.a)({otpData:e=>{let{context:t,event:a}=e;return{...t.otpData,token:a.output.token}}}),e=>{var t;let{event:a}=e;(null==a||null==(t=a.output)?void 0:t.onSuccess)&&a.output.onSuccess()}]},onError:Z.Error}},[Z.Submitting]:{invoke:{src:(0,Y.Sx)(async e=>{let{input:t}=e,a={email:t.formData.email,token:t.otpData.token,otp:t.otpData.otp};return await (0,L.R)(a)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(Z.OnboardingChecklist),onError:Z.Error}},[Z.Error]:{on:{SUBMIT:{actions:"assignOtpCode",target:Z.Submitting},RESEND_EMAIL_VERIFICATION:{target:Z.Idle},UPDATE_EMAIL:{target:Z.UpdateEmail}}},[Z.UpdateEmail]:{initial:Z.Idle,states:{[Z.Idle]:{invoke:{input:e=>{let{context:t,event:a}=e;return{contactId:t.contactData.contactId,email:a.data.email,onSuccess:a.data.onSuccess}},src:(0,Y.Sx)(async e=>{let{input:t}=e,a={contactId:t.contactId,email:t.email};return await (0,k.CI)(a),{email:t.email,onSuccess:t.onSuccess}}),onDone:{actions:["assignNewEmail",e=>{var t;let{event:a}=e;(null==a||null==(t=a.output)?void 0:t.onSuccess)&&a.output.onSuccess()}],target:"#".concat(Z.EmailVerification,".").concat(Z.Idle)},onError:Z.Error}},[Z.Error]:{on:{SUBMIT:{target:"#".concat(Z.EmailVerification,".").concat(Z.Idle)},RESEND_EMAIL_VERIFICATION:{target:"#".concat(Z.EmailVerification,".").concat(Z.Idle)},UPDATE_EMAIL:{target:Z.Idle}}}}}}},[Z.ReviewConsents]:{id:Z.ReviewConsents,initial:Z.FetchConsents,states:{[Z.Idle]:{on:{SUBMIT:{actions:["assignUserConsentStatus"],target:Z.Submitting}}},[Z.FetchConsents]:{invoke:{src:(0,Y.Sx)(async()=>await (0,M.i)()),onDone:{actions:"assignConsents",target:Z.Idle},onError:Z.Error}},[Z.Submitting]:{invoke:{src:(0,Y.Sx)(async e=>{let{input:t}=e,a={patientIdentifier:t.contactData.contactId,firstName:t.formData.firstName,lastName:t.formData.lastName,phone:t.formData.phone,email:t.formData.email,birthDate:t.formData.birthdate,state:t.formData.state,heightInInch:t.formData.heightInInch,heightInFeet:t.formData.heightInFoot,currentWeightInPounds:t.formData.currentWeightInPounds,evolveOrganization:O.PM["Pequot Tribal Family Health Plan"],consents:t.consentsData.userConsentStatus};return await (0,U.Y)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{actions:"assignFlyteUserData",target:Z.UpdateContact}],onError:"#".concat(Z.OnboardingUserError)}},[Z.UpdateContact]:{invoke:{src:(0,Y.Sx)(async e=>{let{input:t}=e,a={contactId:t.contactData.contactId,evolvePatientID:t.flyteUserData.patientId};return await (0,k.CI)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{guard:"isAthenaRecordCreated",target:"#".concat(Z.CreatePassword)},{target:"#".concat(Z.OnboardingUserError)}],onError:"#".concat(Z.OnboardingUserError)}},[Z.Error]:{on:{SUBMIT:{actions:["assignUserConsentStatus"],target:Z.Submitting}}}}},[Z.CreatePassword]:{id:Z.CreatePassword,initial:Z.Idle,states:{[Z.Idle]:{on:{SUBMIT:{actions:"assignPasswordData",target:Z.Submitting}}},[Z.Submitting]:{invoke:{src:(0,Y.Sx)(async e=>{let{input:t}=e,a={email:t.formData.email,password:t.passwordData.password,confirmPassword:t.passwordData.confirmPassword};return await (0,w.I)(t.flyteUserData.verifyToken,a)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(Z.RequestLabs),onError:{target:Z.Error,actions:"assignError"}}},[Z.Error]:{on:{SUBMIT:{actions:["resetError","assignPasswordData"],target:Z.Submitting}}}}},[Z.RequestLabs]:{id:Z.RequestLabs,on:{PROCEED_TO_SUBMIT_LABS:"#".concat(Z.SubmitLabs),LAB_REQUESTED:{target:"#".concat(Z.AppDownload),actions:"assignLabLocation"},SUBMIT_LABS_LATER:{actions:"assignLabsSkipped",target:"#".concat(Z.AppDownload)}}},[Z.SubmitLabs]:{id:Z.SubmitLabs,on:{GO_BACK_TO_REQUEST_LABS:"#".concat(Z.RequestLabs),LAB_SUBMITTED:{actions:"registerLabsUploaded",target:"#".concat(Z.AppDownload)},SUBMIT_LABS_LATER:{actions:"assignLabsSkipped",target:"#".concat(Z.AppDownload)}}},[Z.OnboardingChecklist]:{id:Z.OnboardingChecklist,on:{SUBMIT:{target:"#".concat(Z.ReviewConsents)}}},[Z.AppDownload]:{id:Z.AppDownload},[Z.ApplicationReview]:{id:Z.ApplicationReview},[Z.OnboardingUserError]:{id:Z.OnboardingUserError},[Z.ApplicationComplete]:{id:Z.ApplicationComplete},[Z.ApplicationDetected]:{id:Z.ApplicationDetected},[Z.EligibilityUnmet]:{id:Z.EligibilityUnmet,initial:Z.Idle,states:{[Z.Idle]:{on:{SUBMIT:{target:Z.Submitting,actions:"updateFormData"}}},[Z.Submitting]:{invoke:{src:(0,Y.Sx)(async e=>{let{input:t}=e,a={...t,company:ee,leadStatus:O.XN.Ineligible,ineligibilityReason:O.hT.BMI,automateEvolveEnrollment:!1};return await (0,B.t)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:Z.Success,onError:Z.Error}},[Z.Success]:{},[Z.Error]:{on:{SUBMIT:{actions:"updateFormData",target:Z.Submitting}}}}}},on:{RESET:{target:"#".concat(Z.PreEligibility),actions:"reset"}}});var er=a(69443);let en={[R.C.PreEligibility]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"Let's make sure you're eligible for the FlyteHealth program."}),(0,i.jsx)(r.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,i.jsx)(r.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."})},[R.C.EligibilityUnmet]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-secondary-negative",children:"Unfortunately, you are not eligible to join FlyteHealth at this time."}),(0,i.jsx)(r.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+."})]})},[R.C.ContactDetails]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-secondary-negative",children:"Congratulations! You're eligible for the FlyteHealth program"}),(0,i.jsx)(r.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."})]})},[R.C.InsuranceDetails]:{title:(0,i.jsxs)(r.Text,{variant:"text-header-2XL",color:"text-secondary-negative",children:["One more thing:"," ",(0,i.jsx)(r.Text,{as:"span",variant:"text-header-2XL",color:"text-primary",children:"What's your Pequot HealthCare membership number?"})]})},[R.C.InsuranceDetailsReview]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{children:"Let's review: Is your info correct?"}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"Please double-check the information you provided to make sure everything is correct."})]})},[R.C.ApplicationComplete]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-secondary-negative",children:"Welcome aboard! We're so excited you're here."}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"Next, we need to confirm your email. Click the link we sent to:"})]}),description:(0,i.jsx)(r.Text,{mt:"spacer-8",color:"text-secondary",variant:"text-body-regular",children:"Can’t find the email? Make sure to check your Spam folder."})},[R.C.ApplicationReview]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"You're almost finished!"}),(0,i.jsx)(r.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."})]})},[R.C.ApplicationDetected]:{title:(0,i.jsx)(r.Text,{variant:"text-header-2XL",color:"text-primary",children:"We found an existing account for:"}),description:(0,i.jsx)(r.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."})},[R.C.EmailVerification]:er.M[R.C.EmailVerification],[R.C.OnboardingChecklist]:er.M[R.C.OnboardingChecklist],[R.C.CreatePassword]:er.M[R.C.CreatePassword],[R.C.AppDownload]:er.M[R.C.AppDownload],[R.C.ReviewConsents]:er.M[R.C.ReviewConsents]};var eo=a(82393);let es=[I.UX.BenefitsWebsite,I.UX.ProviderReferral,I.UX.WordOfMouth,I.UX.Other],el={[R.C.ContactDetails]:{state:{options:eo.rI},howDidYouFindUs:{options:es}},[R.C.InsuranceDetails]:{insuranceMemberID:{}},[R.C.InsuranceDetailsReview]:{insuranceMemberID:{}}},ec=I.fz.PequotHealthCare,ed=e=>{let{render:t}=e,[a,w]=(0,j.zl)(ei),A=(0,E.useMemo)(()=>(0,D.r)(a.value),[a.value]);(0,v.t)(A,ec);let L=(0,E.useCallback)(e=>{w({type:"SUBMIT",data:e})},[w]),T=(0,E.useCallback)(()=>{w({type:"BACK"})},[w]),M=(0,E.useCallback)(()=>{var e,t;switch(A){case Z.PreEligibility:return(0,i.jsx)(b.P,{configuration:{contentResources:en[R.C.PreEligibility]},onSubmit:L});case Z.ContactDetails:return(0,i.jsx)(S.x,{configuration:{contentResources:en[R.C.ContactDetails],fields:el[R.C.ContactDetails]},onSubmit:L,defaultValues:a.context.formData});case Z.EligibilityUnmet:return(0,i.jsx)(C.B,{configuration:{contentResources:en[R.C.EligibilityUnmet]},onSubmit:L,loading:a.matches({[Z.EligibilityUnmet]:Z.Submitting}),isEmailSent:a.matches({[Z.EligibilityUnmet]:Z.Success}),hasError:a.matches({[Z.EligibilityUnmet]:Z.Error})});case Z.InsuranceDetails:return(0,i.jsx)(p.d,{configuration:{contentResources:en[R.C.InsuranceDetails],fields:el[R.C.InsuranceDetails]},onSubmit:L,onBack:T});case Z.InsuranceDetailsReview:return(0,i.jsx)(h.h,{configuration:{contentResources:en[R.C.InsuranceDetailsReview],fields:el[R.C.InsuranceDetailsReview]},onSubmit:L,loading:a.matches({[Z.InsuranceDetailsReview]:Z.Submitting}),hasError:a.matches({[Z.InsuranceDetailsReview]:Z.Error}),defaultValues:a.context.formData});case Z.ApplicationComplete:return(0,i.jsx)(o.Q,{...en[R.C.ApplicationComplete],email:a.context.formData.email});case Z.ApplicationReview:return(0,i.jsx)(l.l,{...en[R.C.ApplicationReview]});case Z.ApplicationDetected:return(0,i.jsx)(s.r,{...en[R.C.ApplicationDetected],email:a.context.formData.email});case Z.EmailVerification:return(0,i.jsx)(m.e,{configuration:{contentResources:{title:en[R.C.EmailVerification](a.context.formData.email).title}},email:a.context.formData.email,hasError:a.matches({[Z.EmailVerification]:Z.Error}),loading:a.matches({[Z.EmailVerification]:Z.Submitting}),isUpdateEmailLoading:a.matches({[Z.EmailVerification]:{[Z.UpdateEmail]:Z.Idle}}),hasUpdateEmailError:a.matches({[Z.EmailVerification]:{[Z.UpdateEmail]:Z.Error}}),onSubmit:L,onResendCode:e=>w({type:"RESEND_EMAIL_VERIFICATION",data:{onSuccess:e}}),onEditEmail:(e,t)=>w({type:"UPDATE_EMAIL",data:{email:e,onSuccess:t}})});case Z.OnboardingChecklist:return(0,i.jsx)(g.E,{showLabs:!0,configuration:{contentResources:en[R.C.OnboardingChecklist]},onSubmit:L});case Z.ReviewConsents:return(0,i.jsx)(f.U,{configuration:{contentResources:en[R.C.ReviewConsents]},consents:a.context.consentsData.items,hasError:a.matches({[Z.ReviewConsents]:Z.Error}),loading:a.matches({[Z.ReviewConsents]:Z.FetchConsents})||a.matches({[Z.ReviewConsents]:Z.Submitting})||a.matches({[Z.ReviewConsents]:Z.UpdateContact}),onSubmit:L});case Z.CreatePassword:return(0,i.jsx)(u.i,{configuration:{contentResources:en[R.C.CreatePassword]},loading:a.matches({[Z.CreatePassword]:Z.Submitting}),error:a.context.error,onSubmit:L});case Z.AppDownload:return(0,i.jsx)(n.a,{title:"SUBMIT_LATER"===a.context.labs?en[R.C.AppDownload].titleLabSkipped:"LABS_UPLOADED"===a.context.labs?en[R.C.AppDownload].titleLabSubmitted:en[R.C.AppDownload].titleLabRequested,checklist:en[R.C.AppDownload].checklist});case Z.OnboardingUserError:return(0,i.jsx)(x.C,{});case Z.RequestLabs:return(0,i.jsx)(y.I,{organizationName:"Pequot Tribal Family Health Plan",patientId:null==(e=a.context.flyteUserData)?void 0:e.patientId,onProceedToSubmitLabs:()=>w({type:"PROCEED_TO_SUBMIT_LABS"}),onLabRequested:e=>w({type:"LAB_REQUESTED",data:{lab:e}}),formData:a.context.formData});case Z.SubmitLabs:return(0,i.jsx)(H.x,{onGoBackToRequestLabs:()=>w({type:"GO_BACK_TO_REQUEST_LABS"}),onSubmitLabsLater:()=>w({type:"SUBMIT_LABS_LATER"}),onLabSubmitted:()=>w({type:"LAB_SUBMITTED"}),patientId:null==(t=a.context.flyteUserData)?void 0:t.patientId,diabetes:"yes"===a.context.formData.diabetes,bariatric:"yes"===a.context.formData.bariatricSurgery});default:return null}},[A,a]);return t({header:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.Flex,{gap:"spacer-5",alignItems:"center",children:[(0,i.jsx)(c.E,{partner:I.fz.Flyte}),(0,i.jsx)(r.Divider,{orientation:"vertical",alignSelf:"stretch",height:"auto"}),(0,i.jsx)(c.E,{partner:ec})]}),(0,i.jsx)(d.nV,{currentStep:A})]}),body:M(),currentWorkFlowStep:A})}},33841:(e,t,a)=>{a.d(t,{CB:()=>n.C,PM:()=>r.PM,XN:()=>r.XN,fz:()=>r.fz,h9:()=>i.h,hT:()=>r.hT,lk:()=>r.lk,wY:()=>i.w});var i=a(63826),r=a(34305),n=a(80072)},34305:(e,t,a)=>{a.d(t,{PM:()=>n,RS:()=>s,UX:()=>d,XN:()=>r,fz:()=>c,hT:()=>i,lk:()=>l,yj:()=>o});var i=function(e){return e.Insurance="Insurance",e.CashPay="Cash Pay",e.BMI="BMI",e.Expired="Expired",e}({}),r=function(e){return e.EligibleWaiting="Eligible Waiting",e.Ineligible="Ineligible",e.Review="Review",e}({}),n=function(e){return e.SIA="SIA Medical PC",e.Flyte="Flyte Medical PC",e["State of Connecticut"]="State of Connecticut",e["State of Connecticut Retirees"]="State of Connecticut Retirees",e["RiverSpring Living - Self Guided"]="RiverSpring Living - Self Guided",e["RiverSpring Living - Guided"]="RiverSpring Living - Guided",e["Pequot Tribal Family Health Plan"]="Pequot Tribal Family Health Plan",e["A Duie Pyle"]="A Duie Pyle",e.MDsave="MDsave",e["ChristianaCare - Caregivers"]="ChristianaCare - Caregivers",e["Kaiser Permanente"]="Kaiser Permanente",e.Emory="Emory",e["1199SEIU"]="1199SEIU Benefit Funds",e["SoNE Health"]="SoNE Health",e}({}),o=function(e){return e.Alabama="AL",e.Alaska="AK",e.Arizona="AZ",e.Arkansas="AR",e.California="CA",e.Colorado="CO",e.Connecticut="CT",e.Delaware="DE",e.Florida="FL",e.Georgia="GA",e.Hawaii="HI",e.Idaho="ID",e.Illinois="IL",e.Indiana="IN",e.Iowa="IA",e.Kansas="KS",e.Kentucky="KY",e.Louisiana="LA",e.Maine="ME",e.Maryland="MD",e.Massachusetts="MA",e.Michigan="MI",e.Minnesota="MN",e.Mississippi="MS",e.Missouri="MO",e.Montana="MT",e.Nebraska="NE",e.Nevada="NV",e["New Hampshire"]="NH",e["New Jersey"]="NJ",e["New Mexico"]="NM",e["New York"]="NY",e["North Carolina"]="NC",e["North Dakota"]="ND",e.Ohio="OH",e.Oklahoma="OK",e.Oregon="OR",e.Pennsylvania="PA",e["Rhode Island"]="RI",e["South Carolina"]="SC",e["South Dakota"]="SD",e.Tennessee="TN",e.Texas="TX",e.Utah="UT",e.Vermont="VT",e.Virginia="VA",e.Washington="WA",e["Washington D.C."]="DC",e["West Virginia"]="WV",e.Wisconsin="WI",e.Wyoming="WY",e}({}),s=function(e){return e.Insured="yes",e.SelfPay="no",e}({}),l=function(e){return e["1199SEIU"]="1199SEIU",e.Aetna="Aetna",e.Anthem="Anthem",e.Cigna="Cigna",e.BCBS="BCBS",e.BCBSPPO="BCBS Bluecard - PPO Briefcase",e.United="United",e.Other="Other",e.SelfPay="Self-Pay",e["Pequot HealthCare"]="Pequot HealthCare",e["Aetna Medicare"]="Aetna Medicare",e.Highmark="Highmark",e["Kaiser Colorado"]="Kaiser Permanente - Colorado",e["Kaiser Georgia"]="Kaiser Permanente - Georgia",e["Kaiser Hawaii"]="Kaiser Permanente - Hawaii",e["Kaiser MidAtlantic"]="Kaiser Permanente - Mid-Atlantic (Maryland / Virginia / D.C.)",e["Kaiser Northern California"]="Kaiser Permanente - Northern California",e["Kaiser Northwest"]="Kaiser Permanente - Northwest (Oregon / SW Washington)",e["Kaiser Southern California"]="Kaiser Permanente - Southern California",e["Kaiser Washington"]="Kaiser Permanente - Washington",e["Kaiser Washington Options"]="Kaiser Permanente - Washington Options",e}({}),c=function(e){return e.Flyte="flyte",e.CareCompass="careCompass",e.PequotHealthCare="pequotHealthCare",e.RiverSpringLiving="riverSpringLiving",e.PyleFamilyInsurance="pyleFamilyInsurance",e.Aetna="aetna",e.MDSave="mdSave",e.ChristianaCare="christianaCare",e.Emory="emory",e.KaiserPermanente="kaiserPermanente",e.Sone="sone",e["1199SEIU"]="1199SEIU",e}({}),d=function(e){return e.Brochure="Brochure",e.CompanyIntranet="Company Intranet",e.Email="Email",e.CoworkerReferral="Coworker Referral",e.EpicEHRReferral="Epic EHR Referral",e.FrameFertility="Frame Fertility",e.GoogleAd="Google Ad",e.Mailer="Mailer",e.NuvanceRhinebeck="Nuvance Rhinebeck",e.OnsiteMonitor="Onsite Monitor",e.Poster="Poster",e.PrintAd="Print Ad",e.ProfessionalReferral="Professional Referral",e.ProviderReferral="Provider Referral",e.QuantumHealth="Quantum Health",e.SocialMedia="Social Media",e.TVAd="TV Ad",e.TradeShow="Trade Show",e.UpswingHealth="Upswing Health",e.WebSearch="Web Search",e.WordOfMouth="Word of Mouth",e.Other="Other",e.BenefitsWebsite="Benefits Website",e.PrescriptionDenial="Prescription Denial",e.Website="Website",e.Pharmacy="Pharmacy",e.EmailMailer="Email/Mailer",e}({})},34580:(e,t,a)=>{a.d(t,{I:()=>i});let i=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})},38360:(e,t,a)=>{a.d(t,{vY:()=>d,CI:()=>S});var i=a(12342),r=a(67751),n=a(1188),o=a(34580),s=a(45906);let l="/api/contact",c=e=>{let{birthdate:t,currentWeightInPounds:a,highestWeightInPounds:i,dateOfHighestWeightValue:l,heightInFoot:c,heightInInch:d,phone:S,insuranceCoverage:u,insuranceMemberID:C,state:m,howDidYouFindUS:p,firstName:h,lastName:g,ssn:x,benefitsCheck:b,eligibilityVerifiedBy:y,...f}=e;return{...f,birthdate:(0,r.S)(t),currentWeightInPounds:(0,n.s)(a),highestWeightInPounds:(0,n.s)(i),dateOfHighestWeightValue:"".concat(l,"-01-01"),heightInFoot:(0,n.s)(c),...d&&{heightInInch:(0,n.s)(d)},...C&&{insuranceMemberID:C},...S&&{phone:(0,s.h)(S)},...p&&{howDidYouFindUS:p},...h&&{firstName:h},...g&&{lastName:g},...m&&{state:m},...b&&{...(0,o.I)(b)},...y&&{eligibilityVerifiedBy:y}}},d=async e=>{let t=c(e);return(await i.A.post(l,t)).data},S=async e=>(await i.A.put(l,e)).data},39648:(e,t,a)=>{a.d(t,{w:()=>o});var i=a(12342),r=a(67751);let n=e=>{let{firstName:t,lastName:a,birthdate:i,insuranceMemberID:n,insurance:o,benefitProgram:s}=e;return{firstName:t,lastName:a,dateOfBirth:(0,r.S)(i),memberId:n,insurer:o,employerProgram:s}},o=async e=>{let t=n(e);return await i.A.post("/api/eligibility/check",t)}},39946:(e,t,a)=>{a.d(t,{i:()=>y});var i=a(37876),r=a(37477),n=a(82393),o=a(14232),s=a(88992),l=a(82492);let c=(0,o.forwardRef)((e,t)=>{let{isDisabled:a,...n}=e,[s,l]=(0,o.useState)(!1),c=s?r.IconEyeOff:r.IconEye;return(0,i.jsx)(r.Input,{type:s?"text":"password",inputMode:"text",placeholder:"Enter your password",size:"l",variant:"flushed",ref:t,isDisabled:a,trailingIcon:(0,i.jsx)(r.Box,{userSelect:"none",children:(0,i.jsx)(c,{onClick:()=>{a||l(e=>!e)},cursor:a?"not-allowed":"pointer"})}),...n})}),d=[{key:"LENGTH",regex:/^.{10,}$/,label:"Password must be at least ten characters long"},{key:"LOWERCASE",regex:/[a-z]/,label:"Use at least one lowercase letter"},{key:"UPPERCASE",regex:/[A-Z]/,label:"Use at least one uppercase letter"},{key:"NUMBER",regex:/\d/,label:"Use at least one number"},{key:"SPECIAL_CHAR",regex:/[^a-z0-9\s]/i,label:"Use at least one special character (like !@#$%)"}],S=e=>Object.fromEntries(d.map(t=>[t.key,t.regex.test(e)])),u=e=>({validate:Object.fromEntries(d.map(e=>[e.key.toLowerCase(),t=>e.regex.test(t)||e.label])),...e&&{matchesPassword:t=>t===e||"Passwords do not match"}}),C="password",m=e=>{let{name:t=C,label:a="Create password",showRules:n,checkMatchingPassword:o,isDisabled:m,isInvalid:p,...h}=e,{register:g,watch:x,formState:b,trigger:y}=(0,s.xW)(),{errors:f,touchedFields:H}=b,v=x(t)||"",I=H[t],R=(0,l.Q)(t,f,["matchesPassword"]),D=v?S(v):null,j=!!D&&Object.values(D).every(Boolean);return(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",...h,children:[(0,i.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:t,children:a}),(0,i.jsx)(c,{"data-test":t,id:t,isDisabled:m,isInvalid:p,...g(t,{...u(o),onBlur:()=>y(t)})}),I&&v&&!j&&n&&!R&&(0,i.jsx)(r.Text,{variant:"text-body-meta-regular",color:"text-error",children:"Password does not meet all criteria."}),n&&(0,i.jsx)(r.Flex,{direction:"column",gap:"spacer-1",children:d.map(e=>{let{key:t,label:a}=e;return(0,i.jsxs)(r.Flex,{gap:"spacer-1",alignItems:"center",children:[(null==D?void 0:D[t])?(0,i.jsx)(r.IconCircleCheck,{color:"alert-success-default",size:"s"}):I?(0,i.jsx)(r.IconAlertCircle,{color:"alert-error-default",size:"s"}):(0,i.jsx)(r.IconCircleCheck,{color:"primary-disabled",size:"s"}),(0,i.jsx)(r.Text,{variant:"text-body-meta-regular",color:"text-secondary",children:a})]},a)})})]})},p="confirmPassword",h=e=>{var t;let{name:a=p,label:n="Confirm password",placeholder:l,isDisabled:d,isInvalid:S,...u}=e,{register:m,watch:h,formState:{touchedFields:g,errors:x},trigger:b}=(0,s.xW)(),y=h(C),f=h(a),H=g[a];(0,o.useEffect)(()=>{H&&f&&b(a)},[y,H,f,b,a]);let v=!!(H&&f&&x[a]);return(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",...u,children:[(0,i.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:a,children:n}),(0,i.jsx)(c,{"data-test":a,id:a,isDisabled:d,placeholder:l,isInvalid:v,...m(a,{required:!0,validate:e=>e&&e===y||"Passwords do not match"})}),v&&(0,i.jsx)(r.Text,{variant:"text-body-meta-regular",color:"text-error",children:null==(t=x[a])?void 0:t.message})]})};var g=a(45383),x=a(19847),b=a(80072);let y=e=>{let{configuration:t,loading:a=!1,error:o,onSubmit:l}=e,{contentResources:c}=t,d=(0,s.mN)({mode:"onBlur"}),{handleSubmit:S,formState:{errors:u,isValid:y}}=d,f=(0,x.a)(),H=()=>(0,i.jsx)(r.Button,{type:"submit",size:{base:"m",lg:"l"},width:"100%","aria-label":"Create account",isDisabled:!y&&!a,isLoading:a,children:"Create account"});return(0,i.jsx)(s.Op,{...d,children:(0,i.jsxs)(g.X,{as:"form",onSubmit:S(l),noValidate:!0,"data-test":b.C.CreatePassword,children:[(0,i.jsx)(g.X.Side,{children:c.title}),(0,i.jsxs)(g.X.Form,{children:[o&&(0,i.jsxs)(r.Alert,{status:"error",variant:"subtle",children:[(0,i.jsx)(r.Alert.Icon,{}),(0,i.jsx)(r.Alert.Title,{children:o.message||"There was an error submitting your password. Please try again."})]}),(0,i.jsx)(m,{label:"Create password",isDisabled:a,isInvalid:!!u[C],showRules:!0}),(0,i.jsx)(h,{label:"Confirm password",placeholder:"Retype your password",isDisabled:a,isInvalid:!!u[p],pb:{base:"spacer-24",lg:0}}),f?(0,i.jsx)(n.cI,{children:H()}):H()]})]})})}},40917:(e,t,a)=>{a.d(t,{s:()=>s});var i=a(37876),r=a(37477),n=a(19847),o=a(14232);let s=e=>{let{steps:t,currentStep:a}=e,s=(0,n.a)(),l=t.length,c=t.findIndex(e=>e.label===a),{activeStep:d,setActiveStep:S}=(0,r.useSteps)({index:c,count:l});return((0,o.useEffect)(()=>{-1!==c&&S(c)},[c,S]),-1===c)?null:s?(0,i.jsx)(r.ProgressBar,{value:(d+1)/l*100,size:"xs",position:"absolute",left:0,right:0,bottom:0}):(0,i.jsx)(r.Stepper,{index:d,maxWidth:{base:"21rem",xl:"25rem",xxl:"33rem"},width:"100%",children:t.map((e,t)=>{let a=(0,i.jsx)(e.icon,{"data-testid":"".concat(e.label,"-icon"),size:"m"});return(0,i.jsxs)(r.Stepper.Step,{flexDirection:"column",_horizontal:{alignItems:"start"},gap:"spacer-2",children:[(0,i.jsxs)(r.Flex,{width:"100%",alignItems:"center",children:[(0,i.jsx)(r.Tooltip,{label:e.label,placement:"bottom",display:{base:"block",xxl:"none"},children:(0,i.jsx)(r.Box,{children:(0,i.jsx)(r.Stepper.Step.Indicator,{boxSize:"1.75rem",children:(0,i.jsx)(r.Stepper.Step.Status,{complete:(0,o.cloneElement)(a,{color:"text-light"}),incomplete:(0,o.cloneElement)(a,{color:"background-static"}),active:(0,o.cloneElement)(a,{color:"primary-default"})})})})}),(0,i.jsx)(r.Stepper.Step.Separator,{})]}),(0,i.jsx)(r.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)})})}},42037:(e,t,a)=>{a.d(t,{h:()=>I});var i=a(37876),r=a(37477),n=a(82393),o=a(45383),s=a(19847),l=a(14232),c=a(88992),d=a(92087),S=a(18699),u=a(84441),C=a(82492);let m="firstName",p="lastName",h="birthdate",g="state",x=e=>{let{isDisabled:t,...a}=e,{register:o,formState:{errors:s,defaultValues:l},setValue:x,watch:b}=(0,c.xW)(),y=(0,C.Q)(h,s,["isValid","isOver18YearsOld","isLessThan150YearsOld"]),f=(0,C.Q)("ssn",s,["minLength","maxLength"]);return(0,i.jsxs)(r.Flex,{direction:"column",...a,children:[(0,i.jsx)(r.Text,{as:"label",variant:"text-header-M",color:"text-primary",children:"About you"}),(0,i.jsxs)(r.Flex,{gap:{base:"spacer-4",md:"spacer-8"},mt:"spacer-5",children:[(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",flex:1,children:[(0,i.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:m,children:"Legal First name"}),(0,i.jsx)(n.MU,{id:m,isDisabled:t,...o(m,{required:!0})})]}),(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",flex:1,children:[(0,i.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:p,children:"Legal Last name"}),(0,i.jsx)(n.aB,{id:p,isDisabled:t,...o(p,{required:!0})})]})]}),(0,i.jsxs)(r.Flex,{gap:{base:"spacer-4",md:"spacer-8"},mt:"spacer-5",children:[(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",flex:1,children:[(0,i.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:h,children:"Date of birth"}),(0,i.jsx)(n.ry,{"aria-label":"Date of birth",id:h,isInvalid:y,isDisabled:t,onInput:e=>x(h,e.currentTarget.value),...o(h,{required:!0,validate:{isValid:e=>n.WT.isValid(e)||d.i[h].isValid,isOver18YearsOld:e=>n.WT.isOver18YearsOld(e)||d.i[h].isOver18YearsOld,isLessThan150YearsOld:e=>n.WT.isLessThan150YearsOld(e)||d.i[h].isLessThan150YearsOld}})}),y&&(0,i.jsx)(n.gO,{errors:s,name:h})]}),l[g]&&(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",flex:1,children:[(0,i.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:g,children:"State"}),(0,i.jsx)(n.mF,{"aria-label":"State",id:g,isDisabled:t,...o(g,{required:!0}),value:b(g)})]})]}),l.ssn&&(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",flex:1,mt:"spacer-5",children:[(0,i.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:"ssn",children:"Social Security Number"}),(0,i.jsx)(r.Text,{variant:"text-body-meta-regular",color:"text-secondary",children:"Last 4 Digits of your Social Security Number"}),(0,i.jsx)(S.p,{"data-test":"ssn",id:"ssn",isInvalid:f,isDisabled:t,onInput:e=>x("ssn",e.currentTarget.value),...o("ssn",{required:!0,minLength:{value:4,message:d.i.ssn.minLength},maxLength:{value:4,message:d.i.ssn.maxLength}})}),f&&(0,i.jsx)(n.gO,{errors:s,name:"ssn"})]}),(0,i.jsxs)(r.Flex,{gap:{base:"spacer-4",md:"spacer-8"},mt:"spacer-5",children:[(0,i.jsx)(n.LP,{inputProps:{isDisabled:t},flex:1}),(0,i.jsx)(u.PV,{isDisabled:t,flex:1})]})]})};var b=a(43400),y=a(76692),f=a(34305);let H="insuranceMemberID",v=e=>{let{isDisabled:t,insuranceMemberID:a,insurance:o,...s}=e,{register:d,formState:{defaultValues:S,errors:u},watch:m,setValue:p,resetField:h}=(0,c.xW)(),g=S[y.ag],x=m(y.ag)===f.lk.Other,v=(0,C.Q)(H,u,["minLength","maxLength"]),{registerOptions:I,...R}=a||{};(0,l.useEffect)(()=>{x||h(y.E6,{defaultValue:null})},[h,x]);let D=(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",flex:1,children:[(0,i.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:H,children:(null==a?void 0:a.label)||"Insurance Member ID"}),(0,i.jsx)(b.I,{id:H,isDisabled:t,onInput:e=>{let t=e.currentTarget.value,a=null==R?void 0:R.minLength,i=!a||a&&t.length>=a;p(H,t,{shouldValidate:i})},...R,...d(H,{required:!0,...I})}),v&&(0,i.jsx)(n.gO,{errors:u,name:H})]});return(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-5",...s,children:[(0,i.jsx)(r.Text,{variant:"text-header-M",color:"text-primary",children:"Insurance information"}),(0,i.jsxs)(r.Flex,{direction:"column",gap:{base:"spacer-4",md:"spacer-8"},children:[(0,i.jsxs)(r.Flex,{direction:{base:"column",md:"row"},gap:{base:"spacer-4",md:"spacer-8"},children:[g&&(0,i.jsx)(y._8,{isDisabled:t,isRequired:!0,defaultSelectedItem:g,flex:1,...o}),x?(0,i.jsx)(y.jP,{isDisabled:t,flex:1}):D]}),x&&D]})]})},I=e=>{var t,a;let{configuration:d,defaultValues:S,loading:u=!1,hasError:C=!1,onSubmit:m}=e,{contentResources:p}=d,h=(0,c.mN)({mode:"onBlur",defaultValues:S}),g=(0,s.a)(),[b,y]=(0,l.useState)(!1),f=u||!b,H=S.insurance||S.insuranceMemberID||S.insuranceOther,I=()=>y(e=>!e),R=()=>{h.reset(S),I()},D=()=>(0,i.jsxs)(r.Flex,{gap:{base:"spacer-6"},flex:1,children:[b&&!u&&(0,i.jsx)(r.Button,{size:{base:"m",lg:"l"},variant:"primary-alt","aria-label":"Cancel",onClick:R,children:"Cancel"}),(0,i.jsx)(r.Button,{type:"submit",size:{base:"m",lg:"l"},isDisabled:!h.formState.isValid,flex:1,isLoading:u,leadingIcon:(0,i.jsx)(r.IconCircleCheck,{}),"aria-label":"My information is correct",children:g&&b?"Confirm":"My information is correct"})]});return(0,i.jsx)(c.Op,{...h,children:(0,i.jsxs)(o.X,{as:"form",onSubmit:h.handleSubmit(e=>{y(!1),m(e)}),noValidate:!0,children:[(0,i.jsx)(o.X.Side,{gap:0,children:p.title}),(0,i.jsxs)(o.X.Form,{gap:0,children:[(0,i.jsx)(r.Text,{variant:"text-header-L",color:"text-primary",children:"Please confirm your personal information"}),(0,i.jsx)(r.Button,{mt:"spacer-2",variant:"link-primary",verticalAlign:"initial",onClick:I,alignSelf:"start",isDisabled:u||b,leadingIcon:(0,i.jsx)(r.IconPencil,{}),textDecoration:"underline",_hover:{textDecoration:"underline"},children:"Edit your information"}),b&&(0,i.jsxs)(r.Alert,{status:"warning",variant:"subtle",mt:"spacer-5",children:[(0,i.jsx)(r.Alert.Icon,{}),(0,i.jsx)(r.Alert.Title,{children:"You are editing your personal information"})]}),C&&(0,i.jsxs)(r.Alert,{status:"error",variant:"subtle",mt:"spacer-5",children:[(0,i.jsx)(r.Alert.Icon,{}),(0,i.jsx)(r.Alert.Title,{children:"There was an error submitting your information. Please try again."})]}),(0,i.jsxs)(r.Flex,{direction:"column",mt:"spacer-5",_last:{pb:{base:"spacer-24",lg:0}},children:[(0,i.jsx)(x,{isDisabled:f,mb:{base:H?"spacer-9":0,lg:"spacer-9"}}),H&&(0,i.jsx)(v,{isDisabled:f,insuranceMemberID:null==d||null==(t=d.fields)?void 0:t.insuranceMemberID,insurance:null==d||null==(a=d.fields)?void 0:a.insurance,mb:{base:0,lg:"spacer-9"}}),g?(0,i.jsx)(n.cI,{children:D()}):D()]})]})]})})}},43400:(e,t,a)=>{a.d(t,{I:()=>s});var i=a(37876),r=a(37477),n=a(14232);let o={mask:/^[a-z0-9]*$/i},s=(0,n.forwardRef)((e,t)=>{let{inputMode:a="text",placeholder:n="Insurance Member ID",maskOptions:s=o,...l}=e;return(0,i.jsx)(r.MaskInput,{type:"text",inputMode:a,size:"l",placeholder:n,variant:"flushed",maskOptions:s,ref:t,...l})})},43483:(e,t,a)=>{a.d(t,{U:()=>b});var i=a(37876),r=a(29261),n=a(74161),o=a(37477),s=a(82393),l=a(45383),c=a(20058),d=a(14232);let S=e=>{let{isOpen:t,onClose:a,onDeclineConsent:r,consentTitle:n,isConsentRequired:s=!1}=e;return(0,i.jsxs)(o.Modal,{isOpen:t,onClose:a,autoFocus:!1,isCentered:!0,children:[(0,i.jsx)(o.Modal.Overlay,{}),(0,i.jsxs)(o.Modal.Content,{px:"spacer-7",py:"spacer-6",maxWidth:{base:"342px",md:"460px"},borderRadius:"radii-4",children:[(0,i.jsx)(o.Modal.Header,{p:0,children:(0,i.jsxs)(o.Text,{variant:"text-body-large-bold",children:["Decline the"," ",n,"?"]})}),(0,i.jsx)(o.Modal.Body,{p:0,children:(0,i.jsx)(o.Text,{color:"text-secondary",variant:"text-body-regular",mb:"spacer-7",children:s?"Agreement with this document is required for us to provide care for you. Declining will stop you from joining FlyteHealth.":"To continue, we need to know if you decline or agree to this document."})}),(0,i.jsxs)(o.Modal.Footer,{flexDirection:{base:"column",md:"row-reverse"},gap:"spacer-4",p:0,children:[(0,i.jsx)(o.Button,{variant:"secondary",size:"m",width:{base:"100%",md:"auto"},flex:{base:1,md:"auto"},onClick:a,children:"Go back"}),(0,i.jsx)(o.Button,{variant:"destroy",size:"m",width:{base:"100%",md:"auto"},flex:{base:1,md:"1 0 0"},onClick:r,children:"I decline"})]})]})]})};var u=a(12227);let C=e=>{let{isOpen:t,consent:a,onClose:r,onDeclineConsent:n,onAgreeConsent:s,agreementLink:l,loading:S=!1,hasError:C=!1}=e,m=(0,d.useRef)(null),p=(0,d.useMemo)(()=>u.A.sanitize(a.forms[0]),[a]);return(0,i.jsxs)(o.Modal,{isOpen:t,onClose:r,autoFocus:!1,isCentered:!0,initialFocusRef:m,children:[(0,i.jsx)(o.Modal.Overlay,{}),(0,i.jsxs)(o.Modal.Content,{px:{base:"spacer-6",lg:"spacer-7"},pb:"spacer-6",gap:"spacer-6",mx:0,maxWidth:{lg:"680px"},mb:{base:0,lg:"auto"},height:{base:"calc(100% - 24px)",lg:"100%"},maxHeight:{lg:"80%"},children:[(0,i.jsxs)(o.Modal.Header,{p:0,children:[(0,i.jsx)(o.Text,{variant:"text-body-large-bold",pt:"20px",children:a.title}),(0,i.jsx)(o.Modal.CloseButton,{color:"text-secondary"})]}),(0,i.jsxs)(o.Modal.Body,{p:0,overflow:"hidden",display:"flex",flexDirection:"column",children:[C&&(0,i.jsxs)(o.Alert,{status:"error",variant:"subtle",mb:{base:"spacer-3",lg:"spacer-6"},flex:"none",children:[(0,i.jsx)(o.Alert.Icon,{}),(0,i.jsxs)(o.Alert.Title,{children:["We couldn't process the documents. Please try again or call"," ",(0,i.jsx)(c.C,{size:"m",variant:"link-primary","aria-label":"Contact Us",isInline:!0,children:"(844) 359-8363"})," ","to speak with a Care Coordinator."]})]}),(0,i.jsxs)(o.Text,{color:"text-secondary",variant:"text-body-regular",mb:{base:"spacer-3",lg:"spacer-6"},children:['By selecting "I agree", you agree to the terms of the'," ",(0,i.jsx)(o.Link,{textDecoration:"underline",href:l,target:"_blank",rel:"noopener noreferrer",isInline:!0,children:a.title}),". We will email you a confirmation for your records."]}),(0,i.jsx)(o.Flex,{height:"100%",direction:"column",wordBreak:"break-word",p:"spacer-3",backgroundColor:"background-page-01",borderRadius:"radii-3",overflow:"auto",__css:{ul:{paddingLeft:"2.5rem"},"h1, h2, h3, h4, h5, h6":{fontWeight:"bold",marginY:"0.67em"},"& p":{marginBottom:"1em"}},dangerouslySetInnerHTML:{__html:p}})]}),(0,i.jsxs)(o.Modal.Footer,{flexDirection:"row-reverse",gap:"spacer-2",p:0,children:[(0,i.jsx)(o.Button,{variant:"primary",size:{base:"m",lg:"l"},flex:1,width:"100%",onClick:s,ref:m,isLoading:S,"data-test":"agree-consent",children:"I agree"}),(0,i.jsx)(o.Button,{isDisabled:S,variant:"primary-alt",size:{base:"m",lg:"l"},flex:1,width:"100%",onClick:n,children:"I decline"})]})]})]})};var m=a(19847),p=a(88992);let h={consents:"https://www.joinflyte.com/patient-consent",consentHie:"https://www.joinflyte.com/health-information-exchange-consent"},g=e=>{let{consent:t,isRequired:a,isApproved:r,onReview:n,...s}=e,{register:l}=(0,p.xW)();return(0,i.jsxs)(o.Flex,{onClick:n,cursor:"pointer",py:"spacer-4",px:"spacer-3",backgroundColor:r?"background-success":"background-card",border:"1px solid",borderColor:r?"alert-success-default":"primary-default",borderRadius:"radii-4",alignItems:"center",gap:"spacer-5",...!r&&{_hover:{backgroundColor:"background-action-hover"},_active:{backgroundColor:"background-action-pressed"}},...l(t.formType,{validate:e=>void 0!==e,required:a}),...s,children:[(0,i.jsx)(o.IconFile,{size:"l",color:"text-secondary"}),(0,i.jsxs)(o.Flex,{direction:"column",flex:1,children:[(0,i.jsxs)(o.Flex,{flexDirection:"row",flexWrap:"wrap",gap:"8px",alignItems:"center",children:[(0,i.jsx)(o.Text,{variant:"text-header-S",children:t.title}),a&&!r&&(0,i.jsx)(o.Badge,{variant:"outline",status:"secondary",textTransform:"capitalize",children:"Required"})]}),!r&&(0,i.jsx)(o.Button,{mt:"6px",onClick:e=>{e.stopPropagation(),n()},variant:"link-primary",textDecoration:"underline",alignSelf:"start",_hover:{textDecoration:"underline"},p:0,size:"s","data-test":"review-consent",children:"Review and sign"})]}),(0,i.jsx)(o.IconCircleCheckFilled,{size:"l",color:r?"text-success":"primary-disabled"})]})},x=["consents"],b=e=>{let{consents:t,configuration:a,hasError:u=!1,loading:b=!1,onSubmit:y}=e,{contentResources:f}=a,H=(0,p.mN)({mode:"onBlur"}),{track:v}=(0,n.useAnalytics)(),I=(0,m.a)(),[R,D]=(0,d.useState)(null),[j,E]=(0,d.useState)(!1),w=t.sort((e,t)=>!!x.includes(t.formType)-!!x.includes(e.formType)),A=x.some(e=>!1===H.getValues()[e]),L=()=>(0,i.jsx)(o.Button,{type:"submit",size:{base:"m",lg:"l"},width:"100%","aria-label":"Continue",isDisabled:b||!H.formState.isValid||0===t.length,isLoading:b,trailingIcon:(0,i.jsx)(o.IconArrowRight,{}),children:"Continue"}),T=e=>{D(e),v(r.A.patientConsent)};return(0,i.jsxs)(i.Fragment,{children:[A&&(0,i.jsx)(o.Alert,{status:"warning",variant:"subtle",px:0,children:(0,i.jsx)(o.Flex,{margin:"0 auto",maxWidth:"90rem",width:"100%",px:{base:"spacer-6",md:"spacer-9",lg:"spacer-14",xl:"spacer-20",xxl:"spacer-28"},children:(0,i.jsxs)(o.Flex,{children:[(0,i.jsx)(o.Alert.Icon,{}),(0,i.jsxs)(o.Flex,{direction:"column",children:[(0,i.jsx)(o.Alert.Title,{children:"Patient Consent Form"}),(0,i.jsx)(o.Alert.Description,{children:"Agreement with the Patient Consent document is required for us to provide care for you."})]})]})})}),(0,i.jsx)(p.Op,{...H,children:(0,i.jsxs)(l.X,{as:"form",onSubmit:H.handleSubmit(y),noValidate:!0,gap:{base:"spacer-6",md:"spacer-10"},width:"100%",children:[(0,i.jsx)(l.X.Side,{gap:0,children:f.title}),(0,i.jsxs)(l.X.Form,{width:"100%",gap:"spacer-9",children:[u&&(0,i.jsxs)(o.Alert,{status:"error",variant:"subtle",width:"100%",children:[(0,i.jsx)(o.Alert.Icon,{}),(0,i.jsxs)(o.Alert.Title,{children:["We couldn't process the documents. Please try again or call"," ",(0,i.jsx)(c.C,{size:"m",variant:"link-primary","aria-label":"Contact Us",isInline:!0,fontWeight:"bold",children:"(844) 359-8363"})," ","to speak with a Care Coordinator."]})]}),(0,i.jsx)(o.Flex,{direction:"column",gap:"spacer-5",children:0===t.length?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.Skeleton,{height:"80px",borderRadius:"radii-4"}),(0,i.jsx)(o.Skeleton,{height:"80px",borderRadius:"radii-4"})]}):w.map(e=>(0,i.jsx)(g,{consent:e,isRequired:x.includes(e.formType),isApproved:H.getValues()[e.formType],onReview:()=>T(e)},e.formType))}),I?(0,i.jsx)(s.cI,{children:L()}):L()]})]})}),R&&(0,i.jsx)(C,{isOpen:!!R,onClose:()=>D(null),onAgreeConsent:()=>{H.setValue(R.formType,!0,{shouldValidate:!0}),D(null)},onDeclineConsent:()=>E(!0),consent:R,agreementLink:h[R.formType]}),(0,i.jsx)(S,{isOpen:j,onClose:()=>E(!1),onDeclineConsent:()=>{H.setValue(R.formType,!1,{shouldValidate:!0}),E(!1),D(null),v(r.A.declinePatientConsent)},consentTitle:null==R?void 0:R.title})]})}},44585:(e,t,a)=>{a.d(t,{E:()=>d,k:()=>l});var i=a(37876),r=a(19847),n=a(34305),o=a(54587),s=a.n(o);a(14232);let l={[n.fz.Flyte]:"/static/assets/programs/flyte/flyte-logo.png",[n.fz.CareCompass]:"/static/assets/programs/care-compass/care-compass-logo.png",[n.fz.PequotHealthCare]:"/static/assets/programs/pequot/pequot-logo.png",[n.fz.RiverSpringLiving]:"/static/assets/programs/riverspring/riverspring-logo.png",[n.fz.Aetna]:"/static/assets/programs/aetna/aetna-logo.png",[n.fz.PyleFamilyInsurance]:"/static/assets/programs/pyle/pyle-logo.png",[n.fz.MDSave]:"/static/assets/programs/mdsave/mdsave-logo.png",[n.fz.ChristianaCare]:"/static/assets/programs/christiana-care/christiana-care-logo.png",[n.fz.Emory]:"/static/assets/programs/emory/emory-logo.png",[n.fz.KaiserPermanente]:"/static/assets/kaiser-logo.png",[n.fz.Sone]:"/static/assets/sone-logo.png",[n.fz["1199SEIU"]]:"/static/assets/programs/seiu/seiu-logo.png"},c={[n.fz.Flyte]:{width:{base:95,lg:99},height:{base:27,lg:28}},[n.fz.CareCompass]:{width:{base:44,lg:44},height:{base:44,lg:44}},[n.fz.Aetna]:{width:{base:111,lg:143},height:{base:28,lg:36}},[n.fz.RiverSpringLiving]:{width:{base:184,lg:184},height:{base:23,lg:23}},[n.fz.PequotHealthCare]:{width:{base:103,lg:103},height:{base:40,lg:40}},[n.fz.PyleFamilyInsurance]:{width:{base:118,lg:118},height:{base:36,lg:36}},[n.fz.MDSave]:{width:{base:44,lg:44},height:{base:44,lg:44}},[n.fz.ChristianaCare]:{width:{base:169,lg:169},height:{base:32,lg:32}},[n.fz.Emory]:{width:{base:101,lg:101},height:{base:22,lg:22}},[n.fz["1199SEIU"]]:{width:{base:200,lg:210},height:{base:39,lg:40}}},d=e=>{let{partner:t}=e,a=(0,r.a)(),n=l[t]||l.flyte,o=c[t]||c.flyte;return(0,i.jsx)(s(),{src:n,width:a?o.width.base:o.width.lg,height:a?o.height.base:o.height.lg,alt:"".concat(t," Logo")})}},45383:(e,t,a)=>{a.d(t,{s:()=>n,X:()=>o.X});var i=a(37876),r=a(37477);let n=e=>(0,i.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});var o=a(52036)},45906:(e,t,a)=>{a.d(t,{h:()=>r});var i=a(9969);let r=e=>(0,i.L)(e,"US").nationalNumber},46884:(e,t,a)=>{a.d(t,{j:()=>Y});var i=a(37876),r=a(37477),n=a(91366),o=a(48934),s=a(14901),l=a(44585),c=a(533),d=a(6770),S=a(63583),u=a(30435),C=a(42037),m=a(86535),p=a(93511),h=a(34305),g=a(80072),x=a(97793),b=a(66885),y=a(62227),f=a(14232),H=a(20411),v=a(39648),I=a(47353),R=a(83928),D=a(33841),j=a(86687),E=a(89225),w=a(68792),A=a(65159),L=a(45352),T=a(39777),M=a(63826);let k=e=>e===M.w.FULL_MATCH||e===M.w.ELIGIBLE_MATCH,P=e=>{switch(e){case M.w.PERSON_MATCH:case M.w.INSURANCE_MATCH:case M.w.EXPIRED:case M.w.NOT_FOUND:return h.XN.EligibleWaiting;case M.w.FULL_MATCH:case M.w.ELIGIBLE_MATCH:default:return}};var U=function(e){return e.CheckEligibility="checkEligibility",e.CreateLead="createLead",e.CheckBenefits="checkBenefits",e}(U||{});let B={...x.f,...U},F=E.Ek[D.fz.Aetna],O={formData:{birthdate:"",comorbidity:"",currentWeightInPounds:"",dateOfHighestWeightValue:"",email:"",firstName:"",heightInFoot:"",heightInInch:"",highestWeightInPounds:"",insuranceCoverage:void 0,insuranceMemberID:"",insurance:void 0,lastName:"",phone:"",state:void 0,termsAgreement:!1,howDidYouFindUS:"",comorbidities:[],diabetes:"",bariatricSurgery:""},eligibilityCheckMatchType:void 0,bmi:void 0,benefitsCheck:void 0},z=(0,A.mj)({types:{},guards:{isPreEligibilityMet:e=>{let{context:{formData:t,bmi:a}}=e;return w.J0.aetna({bmi:a,comorbidity:t.comorbidity,birthdate:t.birthdate})},isApplicationReviewRequired:e=>{let{context:{eligibilityCheckMatchType:t,formData:a}}=e;return!R.A.shouldBypassIsApplicationReviewRequired({email:a.email})&&[D.wY.EXPIRED,D.wY.INSURANCE_MATCH,D.wY.PERSON_MATCH,D.wY.NOT_FOUND].includes(t)},isApplicationDetected:j.L},actions:{updateFormData:(0,L.a)({formData:e=>{let{context:t,event:a}=e;return{...t.formData,...a.data}}}),assignBMI:(0,L.a)({bmi:e=>{let{context:t}=e,{heightInFoot:a,heightInInch:i,highestWeightInPounds:r}=t.formData;return(0,w.Hv)({heightFeet:(0,w.sC)(a),heightInches:(0,w.sC)(i),weightPounds:(0,w.sC)(r)})}}),reset:(0,L.a)({...O}),resetBenefitsCheck:(0,L.a)({benefitsCheck:void 0})}}).createMachine({context:()=>O,id:"aetnaMachine",initial:B.PreEligibility,states:{[B.PreEligibility]:{id:B.PreEligibility,initial:B.Idle,states:{[B.Idle]:{on:{SUBMIT:{target:B.Submitting,actions:"updateFormData"}}},[B.Submitting]:{entry:"assignBMI",always:[{target:"#".concat(B.ContactDetails),guard:"isPreEligibilityMet"},{target:"#".concat(B.EligibilityUnmet)}]}}},[B.ContactDetails]:{id:B.ContactDetails,initial:B.Idle,states:{[B.Idle]:{on:{SUBMIT:{target:"#".concat(B.InsuranceDetails),actions:"updateFormData"}}}}},[B.InsuranceDetails]:{id:B.InsuranceDetails,initial:B.Idle,states:{[B.Idle]:{on:{BACK:{target:"#".concat(B.ContactDetails)},SUBMIT:{target:"#".concat(B.InsuranceDetailsReview),actions:"updateFormData"}}}}},[B.InsuranceDetailsReview]:{id:B.InsuranceDetailsReview,initial:B.Idle,states:{[B.Idle]:{on:{SUBMIT:{actions:"updateFormData",target:B.Submitting}}},[B.Submitting]:{id:B.Submitting,initial:B.CheckEligibility,states:{[B.CheckEligibility]:{id:B.CheckEligibility,invoke:{src:(0,T.Sx)(async e=>{let{input:t}=e,a={...t,insurance:E.w[D.fz.Aetna],benefitProgram:E.Nl[D.fz.Aetna]};return await (0,v.w)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:[{actions:(0,L.a)({eligibilityCheckMatchType:e=>{let{event:t}=e;return t.output.data.matchType}}),target:"#".concat(B.CheckBenefits)}],onError:"#".concat(B.Error)}},[B.CheckBenefits]:{id:B.CheckBenefits,invoke:{src:(0,T.Sx)(async e=>{let{input:t}=e,a={...t,payerCode:E.dT[D.lk["Aetna Medicare"]]};return await (0,H.R)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:[{actions:(0,L.a)({benefitsCheck:e=>{let{event:t}=e;return t.output.data}}),target:"#".concat(B.CreateLead)}],onError:"#".concat(B.CreateLead)}},[B.CreateLead]:{id:B.CreateLead,invoke:{src:(0,T.Sx)(async e=>{let{input:t}=e,a={...t.formData,...t.formData.insuranceMemberID&&{employmentVerificationCode:t.formData.insuranceMemberID},...t.benefitsCheck&&{benefitsCheck:t.benefitsCheck},eligibilityVerifiedBy:D.h9.Evolve,company:F,insurance:E.Ft[D.fz.Aetna],evolveOrganization:D.PM["State of Connecticut Retirees"],leadStatus:P(t.eligibilityCheckMatchType),automateEvolveEnrollment:k(t.eligibilityCheckMatchType)};return await (0,I.t)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{guard:"isApplicationReviewRequired",target:"#".concat(B.ApplicationReview)},{target:"#".concat(B.ApplicationComplete)}],onError:[{guard:"isApplicationDetected",target:"#".concat(B.ApplicationDetected)},{target:"#".concat(B.Error)}]}}}},[B.Error]:{id:B.Error,on:{SUBMIT:{actions:["updateFormData","resetBenefitsCheck"],target:B.Submitting}}}}},[B.ApplicationReview]:{id:B.ApplicationReview},[B.ApplicationComplete]:{id:B.ApplicationComplete},[B.ApplicationDetected]:{id:B.ApplicationDetected},[B.EligibilityUnmet]:{id:B.EligibilityUnmet,initial:B.Idle,states:{[B.Idle]:{on:{SUBMIT:{target:B.Submitting,actions:"updateFormData"}}},[B.Submitting]:{invoke:{src:(0,T.Sx)(async e=>{let{input:t}=e,a={...t,company:F,leadStatus:D.XN.Ineligible,ineligibilityReason:D.hT.BMI,automateEvolveEnrollment:!1};return await (0,I.t)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:B.Success,onError:B.Error}},[B.Success]:{},[B.Error]:{on:{SUBMIT:{target:B.Submitting}}}}}},on:{RESET:{target:"#".concat(B.PreEligibility),actions:"reset"}}});var N=a(69443);let _={[g.C.PreEligibility]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"Let's make sure you're eligible for the Flyte program."}),(0,i.jsx)(r.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,i.jsx)(r.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."})},[g.C.EligibilityUnmet]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-secondary-negative",children:"Unfortunately, you are not eligible to join FlyteHealth at this time."}),(0,i.jsx)(r.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+."})]})},[g.C.ContactDetails]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-secondary-negative",children:"Congratulations! You're eligible for the FlyteHealth program"}),(0,i.jsx)(r.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."})]})},[g.C.InsuranceDetails]:{title:(0,i.jsxs)(r.Text,{variant:"text-header-2XL",color:"text-secondary-negative",children:["One more thing:"," ",(0,i.jsx)(r.Text,{as:"span",variant:"text-header-2XL",color:"text-primary",children:"What's your Aetna membership number?"})]})},[g.C.InsuranceDetailsReview]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{children:"Let's review: Is your info correct?"}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"Please double-check the information you provided to make sure everything is correct."})]})},[g.C.ApplicationComplete]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-secondary-negative",children:"Welcome aboard! We're so excited you're here."}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"Next, we need to confirm your email. Click the link we sent to:"})]}),description:(0,i.jsx)(r.Text,{mt:"spacer-8",color:"text-secondary",variant:"text-body-regular",children:"Can’t find the email? Make sure to check your Spam folder."})},[g.C.ApplicationReview]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"You're almost finished!"}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"We've received your application, but we need a little more information from you to move forward. Please call us to complete the application process."})]})},[g.C.ApplicationDetected]:{title:(0,i.jsx)(r.Text,{variant:"text-header-2XL",color:"text-primary",children:"We found an existing account for:"}),description:(0,i.jsx)(r.Text,{variant:"text-body-display-S",color:"text-secondary",children:"It looks like you already have an account with us. To continue or update your registration details, please contact our Care Coordinator team."})},[g.C.OnboardingChecklist]:N.M[g.C.OnboardingChecklist],[g.C.CreatePassword]:N.M[g.C.CreatePassword],[g.C.AppDownload]:N.M[g.C.AppDownload],[g.C.ReviewConsents]:N.M[g.C.ReviewConsents]};var W=a(82393);let X=[h.UX.BenefitsWebsite,h.UX.ProviderReferral,h.UX.WordOfMouth,h.UX.Other],V={[g.C.ContactDetails]:{state:{options:W.rI},howDidYouFindUs:{options:X}},[g.C.InsuranceDetails]:{insuranceMemberID:{tooltip:(0,i.jsxs)(r.Box,{children:[(0,i.jsx)(r.Text,{variant:"text-body-meta-regular",color:"text-light",children:"Where to find my Membership ID Number:"}),(0,i.jsx)(r.Image,{width:"100%",height:"auto",src:"/static/assets/programs/aetna/aetna-insurance-card.png",alt:"Member ID guidance"})]})}},[g.C.InsuranceDetailsReview]:{insuranceMemberID:{}}},q=h.fz.Aetna,Y=e=>{let{render:t}=e,[a,H]=(0,y.zl)(z),v=(0,f.useMemo)(()=>(0,b.r)(a.value),[a.value]);(0,p.t)(v,q);let I=(0,f.useCallback)(e=>{H({type:"SUBMIT",data:e})},[H]),R=(0,f.useCallback)(()=>{H({type:"BACK"})},[H]),D=(0,f.useCallback)(()=>{switch(v){case x.f.PreEligibility:return(0,i.jsx)(m.P,{configuration:{contentResources:_[g.C.PreEligibility]},onSubmit:I});case x.f.ContactDetails:return(0,i.jsx)(d.x,{configuration:{contentResources:_[g.C.ContactDetails],fields:V[g.C.ContactDetails]},onSubmit:I,defaultValues:a.context.formData});case x.f.EligibilityUnmet:return(0,i.jsx)(S.B,{configuration:{contentResources:_[g.C.EligibilityUnmet]},onSubmit:I,loading:a.matches({[x.f.EligibilityUnmet]:x.f.Submitting}),isEmailSent:a.matches({[x.f.EligibilityUnmet]:x.f.Success}),hasError:a.matches({[x.f.EligibilityUnmet]:x.f.Error})});case x.f.InsuranceDetails:return(0,i.jsx)(u.d,{configuration:{contentResources:_[g.C.InsuranceDetails],fields:V[g.C.InsuranceDetails]},onSubmit:I,onBack:R});case x.f.InsuranceDetailsReview:return(0,i.jsx)(C.h,{configuration:{contentResources:_[g.C.InsuranceDetailsReview],fields:V[g.C.InsuranceDetailsReview]},onSubmit:I,loading:a.matches({[x.f.InsuranceDetailsReview]:x.f.Submitting}),hasError:a.matches({[x.f.InsuranceDetailsReview]:x.f.Error}),defaultValues:a.context.formData});case x.f.ApplicationComplete:return(0,i.jsx)(n.Q,{..._[g.C.ApplicationComplete],email:a.context.formData.email});case x.f.ApplicationDetected:return(0,i.jsx)(o.r,{..._[g.C.ApplicationDetected],email:a.context.formData.email});case x.f.ApplicationReview:return(0,i.jsx)(s.l,{..._[g.C.ApplicationReview]});default:return null}},[v,a]);return t({header:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.Flex,{gap:"spacer-5",alignItems:"center",children:[(0,i.jsx)(l.E,{partner:h.fz.Flyte}),(0,i.jsx)(r.Divider,{orientation:"vertical",alignSelf:"stretch",height:"auto"}),(0,i.jsx)(l.E,{partner:q})]}),(0,i.jsx)(c.f,{currentStep:v})]}),body:D(),currentWorkFlowStep:v})}},47353:(e,t,a)=>{a.d(t,{t:()=>l});var i=a(12342),r=a(68792),n=a(34580),o=a(45906);let s=e=>{let{birthdate:t,currentWeightInPounds:a,highestWeightInPounds:i,dateOfHighestWeightValue:s,heightInFoot:l,heightInInch:c,phone:d,insuranceCoverage:S,insuranceMemberID:u,state:C,benefitProgram:m,howDidYouFindUS:p,firstName:h,lastName:g,ssn:x,benefitsCheck:b,eligibilityVerifiedBy:y,insuranceOther:f,...H}=e;return{...H,birthdate:(0,r.S1)(t),currentWeightInPounds:(0,r.sC)(a),highestWeightInPounds:(0,r.sC)(i),dateOfHighestWeightValue:"".concat(s,"-01-01"),heightInFoot:(0,r.sC)(l),...c&&{heightInInch:(0,r.sC)(c)},...u&&{insuranceMemberID:u},...d&&{phone:(0,o.h)(d)},...p&&{howDidYouFindUS:p},...h&&{firstName:h},...g&&{lastName:g},...C&&{state:C},...b&&{...(0,n.I)(b)},...y&&{eligibilityVerifiedBy:y},...f&&{insuranceProviderName:f}}},l=async e=>{let t=s(e);return await i.A.post("/api/lead",t)}},47811:(e,t,a)=>{a.d(t,{D:()=>eb});var i=a(37876),r=a(37477),n=a(59004),o=a(91366),s=a(48934),l=a(14901),c=a(44585),d=a(80075),S=a(6770),u=a(39946),C=a(53154),m=a(42037),p=a(70587),h=a(11427),g=a(86535),x=a(27297),b=a(43483),y=a(81488),f=a(93511),H=a(34305),v=a(80072),I=a(61415),R=a(66885),D=a(62227),j=a(14232),E=a(82393),w=a(45383),A=a(76692),L=a(19847),T=a(88992);let M="participantDepartmentorOrg",k=["Hebrew Home at Riverdale","RiverSpring Services Corp","RiverSpring Licensed Home Care Services Agency","RiverSpring Health Plans (ElderServe Health, Inc.)"],P=()=>{let{register:e,watch:t}=(0,T.xW)();return(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",children:[(0,i.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:M,children:"Participating organization"}),(0,i.jsx)(r.Select,{"data-test":M,id:M,size:"l",variant:"flushed",placeholder:"Select organization",...e(M,{required:!0}),value:t(M),children:k.map(e=>(0,i.jsx)("option",{value:e,children:e},e))})]})};var U=a(58892);let B="evolveProgram";var F=function(e){return e.Guided="Guided",e.SelfGuided="Self-Guided",e}({});let O=()=>{let{register:e}=(0,T.xW)();return(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-4",children:[(0,i.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",children:"Program selection"}),(0,i.jsxs)(r.RadioGroup,{display:"flex",gap:"spacer-3",name:B,flexDirection:{base:"column",md:"row"},"data-test":B,children:[(0,i.jsx)(U.e,{value:"Guided",size:"m",name:B,...e(B,{required:!0}),children:"Physician-guided"}),(0,i.jsx)(U.e,{value:"Self-Guided",size:"m",...e(B),name:B,children:"Self-guided"})]})]})},z=e=>{let{configuration:t,loading:a=!1,onSubmit:n,onBack:o}=e,{contentResources:s,fields:l}=t,c=(0,T.mN)({mode:"onBlur",defaultValues:{insuranceMemberID:"",insurance:void 0,evolveProgram:void 0}}),d=(0,L.a)(),S=()=>(0,i.jsxs)(r.Flex,{gap:{base:"spacer-8",md:"spacer-16"},alignItems:"center",flex:{base:1,lg:"unset"},children:[(0,i.jsx)(r.Button,{size:{base:"m",lg:"l"},isLoading:a,variant:"link","aria-label":"Back",leadingIcon:(0,i.jsx)(r.IconArrowLeft,{}),onClick:o,children:"Back"}),(0,i.jsx)(r.Button,{type:"submit",size:{base:"m",lg:"l"},isDisabled:!c.formState.isValid,flex:1,isLoading:a,trailingIcon:(0,i.jsx)(r.IconArrowRight,{}),"aria-label":"Continue",children:"Continue"})]});return(0,i.jsx)(T.Op,{...c,children:(0,i.jsxs)(w.X,{as:"form",onSubmit:c.handleSubmit(n),noValidate:!0,children:[(0,i.jsx)(w.X.Side,{gap:0,flex:{base:"none",lg:1},children:s.title}),(0,i.jsxs)(w.X.Form,{children:[(null==l?void 0:l.evolveProgram)&&(0,i.jsx)(O,{}),(0,i.jsx)(P,{}),(null==l?void 0:l.insurance)&&(0,i.jsx)(A._8,{isDisabled:a,isRequired:!0,...null==l?void 0:l.insurance}),(0,i.jsx)(A.kV,{isDisabled:a,isRequired:!0,pb:{base:"spacer-24",lg:0},...null==l?void 0:l.insuranceMemberID}),d?(0,i.jsx)(E.cI,{children:S()}):S()]})]})})};var N=a(11969),_=a(10758),W=a(85007),X=a(20411),V=a(31346),q=a(38360),Y=a(77944),K=a(47353),G=a(83928),Q=a(33841),J=a(13751),$=a(92323),Z=a(86687),ee=a(89225),et=a(97793),ea=a(65159),ei=a(45352),er=a(39777);let en={Guided:H.PM["RiverSpring Living - Guided"],"Self-Guided":H.PM["RiverSpring Living - Self Guided"]},eo=(e,t,a)=>{if(a===H.PM["RiverSpring Living - Self Guided"])return!0;switch(e){case H.lk["1199SEIU"]:return!0;case H.lk.Aetna:return[H.yj["New York"],H.yj["New Jersey"],H.yj.Connecticut].includes(t);default:return!1}},es=(e,t,a)=>{if(!eo(e,t,a))return H.XN.EligibleWaiting};var el=function(e){return e.CreateLead="createLead",e.CreateContact="createContact",e.UpdateContact="updateContact",e.CheckBenefits="checkBenefits",e.DetermineContactOrLead="determineContactOrLead",e.FetchConsents="fetchConsents",e.UpdateEmail="updateEmail",e}(el||{});let ec={...et.f,...el},ed=ee.Ek[Q.fz.RiverSpringLiving],eS={formData:{birthdate:"",comorbidity:"",currentWeightInPounds:"",dateOfHighestWeightValue:"",email:"",firstName:"",heightInFoot:"",heightInInch:"",highestWeightInPounds:"",insuranceCoverage:void 0,insuranceMemberID:"",insurance:void 0,lastName:"",phone:"",state:void 0,termsAgreement:!1,howDidYouFindUS:"",participantDepartmentorOrg:"",evolveProgram:void 0,comorbidities:[],diabetes:"",bariatricSurgery:""},evolveOrganization:void 0,bmi:void 0,benefitsCheck:void 0,otpData:void 0,consentsData:{items:[],userConsentStatus:[]},contactData:{},passwordData:{password:void 0,confirmPassword:void 0},flyteUserData:void 0,error:void 0,labs:void 0},eu={...J.AU,...J.gQ,...J.pE,...J.UH,...J.yF,...J.n6,...J.uN,...J.yS,...J.RW,...J.i_,...(0,J.rS)(eS)},eC=(0,ea.mj)({types:{},guards:{isApplicationReviewRequired:e=>{let{context:{formData:t,evolveOrganization:a}}=e;return!G.A.shouldBypassIsApplicationReviewRequired({email:t.email})&&!eo(t.insurance,t.state,a)},isApplicationDetected:Z.L,isAthenaRecordCreated:$.z},actions:{...eu,assignEvolveOrganization:(0,ei.a)({evolveOrganization:e=>{let{context:t}=e;return en[t.formData.evolveProgram||F.SelfGuided]}})}}).createMachine({context:()=>eS,id:"riverspringMachine",initial:ec.PreEligibility,states:{[ec.PreEligibility]:{id:ec.PreEligibility,initial:ec.Idle,states:{[ec.Idle]:{on:{SUBMIT:{target:ec.Submitting,actions:"updateFormData"}}},[ec.Submitting]:{entry:["assignBMI"],always:"#".concat(ec.ContactDetails)}}},[ec.ContactDetails]:{id:ec.ContactDetails,initial:ec.Idle,states:{[ec.Idle]:{on:{SUBMIT:{target:"#".concat(ec.InsuranceDetails),actions:"updateFormData"}}}}},[ec.InsuranceDetails]:{id:ec.InsuranceDetails,initial:ec.Idle,states:{[ec.Idle]:{on:{BACK:{target:"#".concat(ec.ContactDetails)},SUBMIT:{target:"#".concat(ec.InsuranceDetailsReview),actions:["updateFormData","assignEvolveOrganization"]}}}}},[ec.InsuranceDetailsReview]:{id:ec.InsuranceDetailsReview,initial:ec.Idle,states:{[ec.Idle]:{on:{SUBMIT:{actions:"updateFormData",target:ec.Submitting}}},[ec.Submitting]:{initial:ec.CheckBenefits,states:{[ec.CheckBenefits]:{id:ec.CheckBenefits,invoke:{src:(0,er.Sx)(async e=>{let{input:t}=e,a={...t,payerCode:ee.dT[t.insurance]};return await (0,X.R)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:[{actions:(0,ei.a)({benefitsCheck:e=>{let{event:t}=e;return t.output.data}}),target:"#".concat(ec.DetermineContactOrLead)}],onError:"#".concat(ec.DetermineContactOrLead)}},[ec.DetermineContactOrLead]:{id:ec.DetermineContactOrLead,always:[{guard:"isApplicationReviewRequired",target:ec.CreateLead},{target:ec.CreateContact}]},[ec.CreateLead]:{id:ec.CreateLead,invoke:{src:(0,er.Sx)(async e=>{let{input:t}=e,a={...t.formData,evolveOrganization:t.evolveOrganization,...t.formData.insuranceMemberID&&{employmentVerificationCode:t.formData.insuranceMemberID},...t.benefitsCheck&&{benefitsCheck:t.benefitsCheck},company:ed,leadStatus:es(t.formData.insurance,t.formData.state,t.evolveOrganization),automateEvolveEnrollment:eo(t.formData.insurance,t.formData.state,t.evolveOrganization),evolveProgram:t.formData.evolveProgram||F.SelfGuided};return await (0,K.t)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{guard:"isApplicationReviewRequired",target:"#".concat(ec.ApplicationReview)},{target:"#".concat(ec.ApplicationComplete)}],onError:[{guard:"isApplicationDetected",target:"#".concat(ec.ApplicationDetected)},{target:"#".concat(ec.InsuranceDetailsReview,".").concat(ec.Error)}]}},[ec.CreateContact]:{id:ec.CreateContact,invoke:{src:(0,er.Sx)(async e=>{let{input:t}=e,a={...t.formData,evolveOrganization:t.evolveOrganization,...t.formData.insuranceMemberID&&{employmentVerificationCode:t.formData.insuranceMemberID},...t.benefitsCheck&&{benefitsCheck:t.benefitsCheck},company:ed,accountId:ee.f3[Q.fz.RiverSpringLiving],evolveProgram:t.formData.evolveProgram||F.SelfGuided,eligibilityVerifiedBy:Q.h9.Pverify};return await (0,q.vY)(a)}),input:e=>{let{context:t}=e;return t},onDone:{actions:"assignContactData",target:"#".concat(ec.EmailVerification)},onError:[{guard:"isApplicationDetected",target:"#".concat(ec.ApplicationDetected)},{target:"#".concat(ec.InsuranceDetailsReview,".").concat(ec.Error)}]}}}},[ec.Error]:{id:"".concat(ec.InsuranceDetailsReview,".").concat(ec.Error),on:{SUBMIT:{actions:["updateFormData","resetBenefitsCheck"],target:ec.Submitting}}}}},[ec.EmailVerification]:{id:ec.EmailVerification,initial:ec.Idle,states:{[ec.Idle]:{id:"".concat(ec.EmailVerification,".").concat(ec.Idle),on:{SUBMIT:{actions:"assignOtpCode",target:ec.Submitting},RESEND_EMAIL_VERIFICATION:{target:ec.Idle,reenter:!0},UPDATE_EMAIL:{target:ec.UpdateEmail}},invoke:{input:e=>{var t;let{context:a,event:i}=e;return{email:a.formData.email,firstName:a.formData.firstName,onSuccess:null==i||null==(t=i.data)?void 0:t.onSuccess}},src:(0,er.Sx)(async e=>{let{input:t}=e,a={email:t.email,firstName:t.firstName};return{token:(await (0,_.v)(a)).data.token,onSuccess:t.onSuccess}}),onDone:{actions:[(0,ei.a)({otpData:e=>{let{context:t,event:a}=e;return{...t.otpData,token:a.output.token}}}),e=>{var t;let{event:a}=e;(null==a||null==(t=a.output)?void 0:t.onSuccess)&&a.output.onSuccess()}]},onError:ec.Error}},[ec.Submitting]:{invoke:{src:(0,er.Sx)(async e=>{let{input:t}=e,a={email:t.formData.email,token:t.otpData.token,otp:t.otpData.otp};return await (0,W.R)(a)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(ec.OnboardingChecklist),onError:ec.Error}},[ec.Error]:{on:{SUBMIT:{actions:"assignOtpCode",target:ec.Submitting},RESEND_EMAIL_VERIFICATION:{target:ec.Idle},UPDATE_EMAIL:{target:ec.UpdateEmail}}},[ec.UpdateEmail]:{initial:ec.Idle,states:{[ec.Idle]:{invoke:{input:e=>{let{context:t,event:a}=e;return{contactId:t.contactData.contactId,email:a.data.email,onSuccess:a.data.onSuccess}},src:(0,er.Sx)(async e=>{let{input:t}=e,a={contactId:t.contactId,email:t.email};return await (0,q.CI)(a),{email:t.email,onSuccess:t.onSuccess}}),onDone:{actions:["assignNewEmail",e=>{var t;let{event:a}=e;(null==a||null==(t=a.output)?void 0:t.onSuccess)&&a.output.onSuccess()}],target:"#".concat(ec.EmailVerification,".").concat(ec.Idle)},onError:ec.Error}},[ec.Error]:{on:{SUBMIT:{target:"#".concat(ec.EmailVerification,".").concat(ec.Idle)},RESEND_EMAIL_VERIFICATION:{target:"#".concat(ec.EmailVerification,".").concat(ec.Idle)},UPDATE_EMAIL:{target:ec.Idle}}}}}}},[ec.ReviewConsents]:{id:ec.ReviewConsents,initial:ec.FetchConsents,states:{[ec.Idle]:{on:{SUBMIT:{actions:["assignUserConsentStatus"],target:ec.Submitting}}},[ec.FetchConsents]:{invoke:{src:(0,er.Sx)(async()=>await (0,V.i)()),onDone:{actions:"assignConsents",target:ec.Idle},onError:ec.Error}},[ec.Submitting]:{invoke:{src:(0,er.Sx)(async e=>{let{input:t}=e,a={patientIdentifier:t.contactData.contactId,firstName:t.formData.firstName,lastName:t.formData.lastName,phone:t.formData.phone,email:t.formData.email,birthDate:t.formData.birthdate,state:t.formData.state,heightInInch:t.formData.heightInInch,heightInFeet:t.formData.heightInFoot,currentWeightInPounds:t.formData.currentWeightInPounds,evolveOrganization:t.evolveOrganization,consents:t.consentsData.userConsentStatus};return await (0,Y.Y)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{actions:"assignFlyteUserData",target:ec.UpdateContact}],onError:"#".concat(ec.OnboardingUserError)}},[ec.UpdateContact]:{invoke:{src:(0,er.Sx)(async e=>{let{input:t}=e,a={contactId:t.contactData.contactId,evolvePatientID:t.flyteUserData.patientId};return await (0,q.CI)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{guard:"isAthenaRecordCreated",target:"#".concat(ec.CreatePassword)},{target:"#".concat(ec.OnboardingUserError)}],onError:"#".concat(ec.OnboardingUserError)}},[ec.Error]:{on:{SUBMIT:{actions:["assignUserConsentStatus"],target:ec.Submitting}}}}},[ec.CreatePassword]:{id:ec.CreatePassword,initial:ec.Idle,states:{[ec.Idle]:{on:{SUBMIT:{actions:"assignPasswordData",target:ec.Submitting}}},[ec.Submitting]:{invoke:{src:(0,er.Sx)(async e=>{let{input:t}=e,a={email:t.formData.email,password:t.passwordData.password,confirmPassword:t.passwordData.confirmPassword};return await (0,N.I)(t.flyteUserData.verifyToken,a)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(ec.RequestLabs),onError:{target:ec.Error,actions:"assignError"}}},[ec.Error]:{on:{SUBMIT:{actions:["resetError","assignPasswordData"],target:ec.Submitting}}}}},[ec.RequestLabs]:{id:ec.RequestLabs,on:{PROCEED_TO_SUBMIT_LABS:"#".concat(ec.SubmitLabs),LAB_REQUESTED:{target:"#".concat(ec.AppDownload),actions:"assignLabLocation"},SUBMIT_LABS_LATER:{actions:"assignLabsSkipped",target:"#".concat(ec.AppDownload)}}},[ec.SubmitLabs]:{id:ec.SubmitLabs,on:{GO_BACK_TO_REQUEST_LABS:"#".concat(ec.RequestLabs),LAB_SUBMITTED:{actions:"registerLabsUploaded",target:"#".concat(ec.AppDownload)},SUBMIT_LABS_LATER:{actions:"assignLabsSkipped",target:"#".concat(ec.AppDownload)}}},[ec.OnboardingChecklist]:{id:ec.OnboardingChecklist,on:{SUBMIT:{target:"#".concat(ec.ReviewConsents)}}},[ec.AppDownload]:{id:ec.AppDownload},[ec.ApplicationReview]:{id:ec.ApplicationReview},[ec.OnboardingUserError]:{id:ec.OnboardingUserError},[ec.ApplicationComplete]:{id:ec.ApplicationComplete},[ec.ApplicationDetected]:{id:ec.ApplicationDetected}},on:{RESET:{target:"#".concat(ec.PreEligibility),actions:"reset"}}});var em=a(69443);let ep={[v.C.PreEligibility]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"Let's make sure you're eligible for the FlyteHealth program."}),(0,i.jsxs)(r.TextPairing.SubLabel,{color:"text-secondary",children:["All employees are eligible to access the"," ",(0,i.jsx)("b",{children:"Self-Guided"})," ","program through the RiverSpring Living benefits.",(0,i.jsx)("br",{}),"To be eligible for the"," ",(0,i.jsx)("b",{children:"Physician-Guided"})," ","program, you must meet specific age and Body Mass Index (BMI)* requirements."]})]}),bmiEnrollmentDisclaimer:(0,i.jsx)(r.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."})},[v.C.ContactDetails]:(e,t)=>({title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsxs)(r.TextPairing.Label,{color:"text-primary",children:[(0,i.jsxs)(r.Text,{display:{base:"inline",lg:"block"},as:"label",variant:"text-header-2XL",color:"text-secondary-negative",children:["Congratulations!"," "]}),"You're eligible for the"," ",I.J.riverSpringLiving({bmi:e,comorbidity:t})?"Physician":"Self","-Guided FlyteHealth program"]}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"To help us match your information with your employer, please tell us a bit more about yourself."})]})}),[v.C.InsuranceDetails]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsxs)(r.TextPairing.Label,{color:"text-secondary-negative",children:["Almost done:"," ",(0,i.jsx)(r.Text,{as:"span",variant:"text-header-2XL",color:"text-primary",children:"Select your program and let us know if you have health insurance"})]}),(0,i.jsxs)(r.TextPairing.SubLabel,{color:"text-secondary",children:["Before selecting your program, review summaries below."," ",(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),(0,i.jsx)("b",{children:"Physician-Guided:"})," ","Access to the entire FlyteHealth care team and our patient app.",(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),(0,i.jsx)("b",{children:"Self-Guided:"})," ","Access to the FlyteHealth patient app only."]})]})},[v.C.InsuranceDetailsReview]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{children:"Let's review: Is your info correct?"}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"Please double-check the information you provided to make sure everything is correct."})]})},[v.C.ApplicationComplete]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-secondary-negative",children:"Welcome aboard! We're so excited you're here."}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"Next, we need to confirm your email. Click the link we sent to:"})]}),description:(0,i.jsxs)(r.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,i.jsx)("br",{}),(0,i.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,i.jsx)("br",{}),(0,i.jsx)("br",{}),"For Self-Guided users, there is no cost for RiverSpring Living employees."]})},[v.C.ApplicationReview]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"You're almost finished!"}),(0,i.jsx)(r.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,i.jsxs)(r.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,i.jsx)("br",{}),(0,i.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."]})},[v.C.ApplicationDetected]:{title:(0,i.jsx)(r.Text,{variant:"text-header-2XL",color:"text-primary",children:"We found an existing account for:"}),description:(0,i.jsx)(r.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."})},[v.C.EmailVerification]:em.M[v.C.EmailVerification],[v.C.OnboardingChecklist]:em.M[v.C.OnboardingChecklist],[v.C.CreatePassword]:em.M[v.C.CreatePassword],[v.C.AppDownload]:em.M[v.C.AppDownload],[v.C.ReviewConsents]:em.M[v.C.ReviewConsents]},eh=[H.UX.BenefitsWebsite,H.UX.CoworkerReferral,H.UX.OnsiteMonitor,H.UX.Poster,H.UX.ProviderReferral,H.UX.WordOfMouth,H.UX.Other],eg={[v.C.ContactDetails]:{state:{options:E.rI},howDidYouFindUs:{options:eh}},[v.C.InsuranceDetails]:e=>({insurance:{insuranceCarriers:[H.lk.Aetna,H.lk["1199SEIU"]]},insuranceMemberID:{},evolveProgram:e?{}:void 0}),[v.C.InsuranceDetailsReview]:{insurance:{insuranceCarriers:[H.lk.Aetna,H.lk["1199SEIU"]]}}},ex=H.fz.RiverSpringLiving,eb=e=>{let{render:t}=e,[a,E]=(0,D.zl)(eC),w=(0,j.useMemo)(()=>(0,R.r)(a.value),[a.value]);(0,f.t)(w,ex);let A=(0,j.useCallback)(e=>{E({type:"SUBMIT",data:e})},[E]),L=(0,j.useCallback)(()=>{E({type:"BACK"})},[E]),T=(0,j.useCallback)(()=>{var e,t;switch(w){case ec.PreEligibility:return(0,i.jsx)(g.P,{configuration:{contentResources:ep[v.C.PreEligibility]},onSubmit:A});case ec.ContactDetails:return(0,i.jsx)(S.x,{configuration:{contentResources:ep[v.C.ContactDetails](a.context.bmi,a.context.formData.comorbidity),fields:eg[v.C.ContactDetails]},onSubmit:A,defaultValues:a.context.formData});case ec.InsuranceDetails:return(0,i.jsx)(z,{configuration:{contentResources:ep[v.C.InsuranceDetails],fields:eg[v.C.InsuranceDetails](I.J.riverSpringLiving({bmi:a.context.bmi}))},onSubmit:A,onBack:L});case ec.InsuranceDetailsReview:return(0,i.jsx)(m.h,{configuration:{contentResources:ep[v.C.InsuranceDetailsReview],fields:eg[v.C.InsuranceDetailsReview]},onSubmit:A,loading:a.matches({[ec.InsuranceDetailsReview]:ec.Submitting}),hasError:a.matches({[ec.InsuranceDetailsReview]:ec.Error}),defaultValues:a.context.formData});case ec.ApplicationComplete:return(0,i.jsx)(o.Q,{...ep[v.C.ApplicationComplete],email:a.context.formData.email});case ec.ApplicationReview:return(0,i.jsx)(l.l,{...ep[v.C.ApplicationReview]});case ec.ApplicationDetected:return(0,i.jsx)(s.r,{...ep[v.C.ApplicationDetected],email:a.context.formData.email});case ec.EmailVerification:return(0,i.jsx)(C.e,{configuration:{contentResources:{title:ep[v.C.EmailVerification](a.context.formData.email).title}},email:a.context.formData.email,hasError:a.matches({[ec.EmailVerification]:ec.Error}),loading:a.matches({[ec.EmailVerification]:ec.Submitting}),isUpdateEmailLoading:a.matches({[ec.EmailVerification]:{[ec.UpdateEmail]:ec.Idle}}),hasUpdateEmailError:a.matches({[ec.EmailVerification]:{[ec.UpdateEmail]:ec.Error}}),onSubmit:A,onResendCode:e=>E({type:"RESEND_EMAIL_VERIFICATION",data:{onSuccess:e}}),onEditEmail:(e,t)=>E({type:"UPDATE_EMAIL",data:{email:e,onSuccess:t}})});case ec.OnboardingChecklist:return(0,i.jsx)(p.E,{showLabs:!0,configuration:{contentResources:ep[v.C.OnboardingChecklist]},onSubmit:A});case ec.ReviewConsents:return(0,i.jsx)(b.U,{configuration:{contentResources:ep[v.C.ReviewConsents]},consents:a.context.consentsData.items,hasError:a.matches({[ec.ReviewConsents]:ec.Error}),loading:a.matches({[ec.ReviewConsents]:ec.FetchConsents})||a.matches({[ec.ReviewConsents]:ec.Submitting})||a.matches({[ec.ReviewConsents]:ec.UpdateContact}),onSubmit:A});case ec.CreatePassword:return(0,i.jsx)(u.i,{configuration:{contentResources:ep[v.C.CreatePassword]},loading:a.matches({[ec.CreatePassword]:ec.Submitting}),error:a.context.error,onSubmit:A});case ec.AppDownload:return(0,i.jsx)(n.a,{title:"SUBMIT_LATER"===a.context.labs?ep[v.C.AppDownload].titleLabSkipped:"LABS_UPLOADED"===a.context.labs?ep[v.C.AppDownload].titleLabSubmitted:ep[v.C.AppDownload].titleLabRequested,checklist:ep[v.C.AppDownload].checklist});case ec.OnboardingUserError:return(0,i.jsx)(h.C,{});case ec.RequestLabs:return(0,i.jsx)(x.I,{organizationName:a.context.evolveOrganization,patientId:null==(e=a.context.flyteUserData)?void 0:e.patientId,onProceedToSubmitLabs:()=>E({type:"PROCEED_TO_SUBMIT_LABS"}),onLabRequested:e=>E({type:"LAB_REQUESTED",data:{lab:e}}),formData:a.context.formData});case ec.SubmitLabs:return(0,i.jsx)(y.x,{onGoBackToRequestLabs:()=>E({type:"GO_BACK_TO_REQUEST_LABS"}),onSubmitLabsLater:()=>E({type:"SUBMIT_LABS_LATER"}),onLabSubmitted:()=>E({type:"LAB_SUBMITTED"}),patientId:null==(t=a.context.flyteUserData)?void 0:t.patientId,diabetes:"yes"===a.context.formData.diabetes,bariatric:"yes"===a.context.formData.bariatricSurgery});default:return null}},[w,a]);return t({header:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.Flex,{gap:"spacer-5",alignItems:"center",children:[(0,i.jsx)(c.E,{partner:H.fz.Flyte}),(0,i.jsx)(r.Divider,{orientation:"vertical",alignSelf:"stretch",height:"auto"}),(0,i.jsx)(c.E,{partner:ex})]}),(0,i.jsx)(d.nV,{currentStep:w})]}),body:T(),currentWorkFlowStep:w})}},48496:(e,t,a)=>{a.d(t,{X:()=>l,b:()=>s});var i=a(37876),r=a(37477),n=a(49631),o=a(88992);let s="state",l=e=>{let{isDisabled:t,options:a,...l}=e,{register:c,watch:d}=(0,o.xW)();return(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",...l,children:[(0,i.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:s,children:"State"}),(0,i.jsx)(n.m,{"data-test":s,id:s,isDisabled:t,...c(s,{required:!0}),value:d(s),options:a})]})}},48934:(e,t,a)=>{a.d(t,{r:()=>S});var i=a(37876),r=a(37477),n=a(45383),o=a(20058),s=a(19847),l=a(80072),c=a(54587),d=a.n(c);let S=e=>{let{title:t,email:a,description:c}=e,S=(0,s.a)();return(0,i.jsxs)(n.s,{gap:{lg:"spacer-16",xl:"spacer-18",xxl:"spacer-64"},alignItems:"start","data-test":l.C.ApplicationDetected,children:[(0,i.jsxs)(r.Flex,{direction:"column",justifyContent:{lg:"space-between"},height:"100%",children:[(0,i.jsxs)(r.Flex,{gap:"spacer-6",direction:"column",children:[t,(0,i.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,i.jsx)(r.Text,{variant:"text-header-M",children:a})}),c]}),(0,i.jsxs)(o.C,{mt:"spacer-7",size:"l",leadingIcon:(0,i.jsx)(r.IconPhone,{}),"aria-label":"Contact Us",variant:"primary-alt",isInline:!1,justifyContent:"center",alignSelf:"start",children:["Call"," ",o.F.formatted]})]}),!S&&(0,i.jsx)(d(),{alt:"Application Detected",width:340,height:340,src:"/static/assets/application-detected.png"})]})}},49631:(e,t,a)=>{a.d(t,{m:()=>l,r:()=>s});var i=a(37876),r=a(37477),n=a(34305),o=a(14232);let s=Object.entries(n.yj).map(e=>{let[t,a]=e;return{fullName:t,shortCode:a}}),l=(0,o.forwardRef)((e,t)=>{let{options:a=s,...n}=e;return(0,i.jsx)(r.Select,{size:"l",variant:"flushed",placeholder:"Select",ref:t,...n,children:a.map(e=>{let{fullName:t,shortCode:a}=e;return(0,i.jsx)("option",{value:a,children:t},a)})})})},50941:(e,t,a)=>{a.d(t,{Ay:()=>S});var i=a(46512),r=a(91123),n=a.n(r),o=a(99742);let s=()=>({level:o.env.LOG_LEVEL||"info",formatters:{level:e=>({level:e.toUpperCase()})},timestamp:()=>',"time":"'.concat(new Date(Date.now()).toISOString(),'"'),base:{environment:"production",service:"flyte-registration",branch:o.env.AWS_BRANCH||o.env.BRANCH||"local"}});var l=a(99742);class c{run(e,t){let a=this.currentId++;return this.storage.set(a,e),t().finally(()=>this.storage.delete(a))}getContext(){return this.storage.get(this.currentId-1)}setContext(e){this.storage.set(this.currentId-1,e)}constructor(){this.storage=new Map,this.currentId=0}}class d{setContext(e){let t=this.contextStorage.getContext()||{};this.contextStorage.setContext({...t,...e})}async withContext(e,t){return this.contextStorage.run(e,t)}createRequestContext(e,t,a){let r=(0,i.Ak)();a.setHeader("x-request-id",r);let n={host:t.headers.host,referer:t.headers.referer,handler:e,requestId:r,method:t.method,url:t.url,path:t.url?new URL(t.url,"http://".concat(t.headers.host)).pathname:void 0,query:t.query,params:t.query,timestamp:new Date().toISOString(),..."dev"===l.env.NODE&&{body:t.body}};return this.setContext(n),n}createLogEntry(e,t){let a=this.contextStorage.getContext();return{...a,environment:"production",service:(null==a?void 0:a.service)||"flyte-registration",branch:l.env.AWS_BRANCH||l.env.BRANCH||"local",...t,message:e}}error(e,t){this.pinoLogger.error(this.createLogEntry(e,t))}warn(e,t){this.pinoLogger.warn(this.createLogEntry(e,t))}info(e,t){this.pinoLogger.info(this.createLogEntry(e,t))}debug(e,t){this.pinoLogger.debug(this.createLogEntry(e,t))}constructor(){this.pinoLogger=n()(s()),this.contextStorage=new c}}let S=new d},52036:(e,t,a)=>{a.d(t,{X:()=>o});var i=a(37876),r=a(37477),n=a(45383);let o=e=>(0,i.jsx)(n.s,{direction:{base:"column",lg:"row"},gap:{base:"spacer-10",lg:"spacer-16",xl:"spacer-28",xxl:"spacer-44"},...e});o.Side=e=>(0,i.jsx)(r.Flex,{direction:"column",gap:{base:"spacer-6",lg:"spacer-8"},flex:1,...e}),o.Form=e=>(0,i.jsx)(r.Flex,{direction:"column",gap:"spacer-9",flex:1,...e})},52674:(e,t,a)=>{a.d(t,{fq:()=>d});var i=a(37876),r=a(37477),n=a(14232),o=a(87587);class s extends o.e{constructor(e="useFullModalLayoutContext must be used within a FullModalLayoutProvider"){super(e,"FULL_MODAL_CONTEXT_ERROR")}}let l=(0,n.createContext)({onClose:()=>{}}),c=()=>{let e=(0,n.useContext)(l);if(!e)throw new s;return e},d=e=>{let{isOpen:t,onClose:a,children:o}=e,s=n.useMemo(()=>({onClose:a}),[a]);return(0,i.jsx)(l.Provider,{value:s,children:(0,i.jsx)(r.Modal,{isOpen:t,onClose:a,size:"full",autoFocus:!1,children:(0,i.jsx)(r.Modal.Content,{p:0,backgroundColor:"background-page",height:"100%",containerProps:{overflow:"hidden"},motionProps:{initial:{opacity:1},animate:{opacity:1}},children:o})})})};d.Header=e=>{let{children:t}=e,{onClose:a}=c();return(0,i.jsx)(r.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,i.jsxs)(r.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,i.jsx)(r.ButtonIcon,{variant:"ghost","aria-label":"Close",size:"l",icon:(0,i.jsx)(r.IconX,{}),onClick:a})]})})},d.Body=e=>{let{children:t,...a}=e;return(0,i.jsx)(r.Modal.Body,{p:0,backgroundColor:"background-page",display:"flex",mt:{base:"4.25rem",lg:0},mx:"auto",overflow:"auto",borderRadius:"none",width:"100%",...a,children:(0,i.jsx)(r.Fade,{in:!0,style:{width:"100%"},transition:{enter:{duration:.4}},children:t})})}},53100:(e,t,a)=>{a.d(t,{z:()=>ec});var i=a(37876),r=a(37477),n=a(59004),o=a(91366),s=a(48934),l=a(14901),c=a(44585),d=a(80075),S=a(6770),u=a(39946),C=a(63583),m=a(53154),p=a(30435),h=a(42037),g=a(70587),x=a(11427),b=a(86535),y=a(27297),f=a(43483),H=a(81488),v=a(93511),I=a(34305),R=a(80072),D=a(66885),j=a(62227),E=a(14232),w=a(11969),A=a(10758),L=a(85007),T=a(20411),M=a(31346),k=a(38360),P=a(77944),U=a(47353),B=a(83928),F=a(33841),O=a(13751),z=a(92323),N=a(86687),_=a(89225),W=a(97793),X=a(68792),V=a(65159),q=a(39777),Y=a(45352);let K=e=>{let{groupNumber:t,status:a}=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"===a},G=e=>{let{groupNumber:t,status:a}=e;if(!K({groupNumber:t,status:a}))return I.XN.EligibleWaiting};var Q=function(e){return e.CreateLead="createLead",e.CreateContact="createContact",e.UpdateContact="updateContact",e.CheckBenefits="checkBenefits",e.DetermineBenefitsOrLead="determineBenefitsOrLead",e.DetermineContactOrLead="determineContactOrLead",e.FetchConsents="fetchConsents",e.UpdateEmail="updateEmail",e}(Q||{});let J={...W.f,...Q},$=_.Ek[F.fz.ChristianaCare],Z={formData:{birthdate:"",comorbidity:"",currentWeightInPounds:"",dateOfHighestWeightValue:"",email:"",firstName:"",heightInFoot:"",heightInInch:"",highestWeightInPounds:"",insuranceCoverage:void 0,insuranceMemberID:"",insurance:void 0,lastName:"",phone:"",state:void 0,termsAgreement:!1,howDidYouFindUS:"",comorbidities:[],diabetes:"",bariatricSurgery:""},bmi:void 0,benefitsCheck:void 0,otpData:void 0,consentsData:{items:[],userConsentStatus:[]},contactData:{},passwordData:{password:void 0,confirmPassword:void 0},flyteUserData:void 0,error:void 0,labs:void 0},ee={...O.AU,...O.gQ,...O.pE,...O.UH,...O.yF,...O.n6,...O.uN,...O.yS,...O.RW,...O.i_,...(0,O.rS)(Z)},et=(0,V.mj)({types:{},guards:{isPreEligibilityMet:e=>{let{context:{formData:t,bmi:a}}=e;return X.J0.christianaCare({bmi:a,comorbidity:t.comorbidity,birthdate:t.birthdate})},isApplicationReviewRequired:e=>{var t,a;let{context:{benefitsCheck:i,formData:r}}=e;return!B.A.shouldBypassIsApplicationReviewRequired({email:r.email})&&!K({groupNumber:null==i||null==(t=i.coverage)?void 0:t.groupNumber,status:null==i||null==(a=i.coverage)?void 0:a.status})},isApplicationDetected:N.L,isAthenaRecordCreated:z.z},actions:ee}).createMachine({context:()=>Z,id:"christianaCareMachine",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:[{target:"#".concat(J.ContactDetails),guard:"isPreEligibilityMet"},{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.CheckBenefits,states:{[J.CheckBenefits]:{id:J.CheckBenefits,invoke:{src:(0,q.Sx)(async e=>{let{input:t}=e,a={...t,payerCode:_.dT[F.lk.Highmark]};return await (0,T.R)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:[{actions:(0,Y.a)({benefitsCheck:e=>{let{event:t}=e;return t.output.data}}),target:"#".concat(J.DetermineContactOrLead)}],onError:"#".concat(J.DetermineContactOrLead)}},[J.DetermineContactOrLead]:{id:J.DetermineContactOrLead,always:[{guard:"isApplicationReviewRequired",target:J.CreateLead},{target:J.CreateContact}]},[J.CreateContact]:{id:J.CreateContact,invoke:{src:(0,q.Sx)(async e=>{let{input:t}=e,a={...t.formData,...t.benefitsCheck&&{benefitsCheck:t.benefitsCheck},company:$,insurance:_.Ft[F.fz.ChristianaCare],evolveOrganization:F.PM["ChristianaCare - Caregivers"],accountId:_.f3[F.fz.ChristianaCare],eligibilityVerifiedBy:F.h9.Pverify};return await (0,k.vY)(a)}),input:e=>{let{context:t}=e;return t},onDone:{actions:"assignContactData",target:"#".concat(J.EmailVerification)},onError:[{guard:"isApplicationDetected",target:"#".concat(J.ApplicationDetected)},{target:"#".concat(J.InsuranceDetailsReview,".").concat(J.Error)}]}},[J.CreateLead]:{id:J.CreateLead,invoke:{src:(0,q.Sx)(async e=>{var t,a,i,r,n,o,s,l,c,d,S,u;let{input:C}=e,m={...C.formData,...C.formData.insuranceMemberID&&{employmentVerificationCode:C.formData.insuranceMemberID},...C.benefitsCheck&&{benefitsCheck:C.benefitsCheck},...K({groupNumber:null==(a=C.benefitsCheck)||null==(t=a.coverage)?void 0:t.groupNumber,status:null==(r=C.benefitsCheck)||null==(i=r.coverage)?void 0:i.status})&&{eligibilityVerifiedBy:F.h9.Pverify},insurance:_.Ft[F.fz.ChristianaCare],evolveOrganization:F.PM["ChristianaCare - Caregivers"],company:$,leadStatus:G({groupNumber:null==(o=C.benefitsCheck)||null==(n=o.coverage)?void 0:n.groupNumber,status:null==(l=C.benefitsCheck)||null==(s=l.coverage)?void 0:s.status}),automateEvolveEnrollment:K({groupNumber:null==(d=C.benefitsCheck)||null==(c=d.coverage)?void 0:c.groupNumber,status:null==(u=C.benefitsCheck)||null==(S=u.coverage)?void 0:S.status})};return await (0,U.t)(m)}),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.InsuranceDetailsReview,".").concat(J.Error)}]}}}},[J.Error]:{id:"".concat(J.InsuranceDetailsReview,".").concat(J.Error),on:{SUBMIT:{actions:["updateFormData","resetBenefitsCheck"],target:J.Submitting}}}}},[J.EmailVerification]:{id:J.EmailVerification,initial:J.Idle,states:{[J.Idle]:{id:"".concat(J.EmailVerification,".").concat(J.Idle),on:{SUBMIT:{actions:"assignOtpCode",target:J.Submitting},RESEND_EMAIL_VERIFICATION:{target:J.Idle,reenter:!0},UPDATE_EMAIL:{target:J.UpdateEmail}},invoke:{input:e=>{var t;let{context:a,event:i}=e;return{email:a.formData.email,firstName:a.formData.firstName,onSuccess:null==i||null==(t=i.data)?void 0:t.onSuccess}},src:(0,q.Sx)(async e=>{let{input:t}=e,a={email:t.email,firstName:t.firstName};return{token:(await (0,A.v)(a)).data.token,onSuccess:t.onSuccess}}),onDone:{actions:[(0,Y.a)({otpData:e=>{let{context:t,event:a}=e;return{...t.otpData,token:a.output.token}}}),e=>{var t;let{event:a}=e;(null==a||null==(t=a.output)?void 0:t.onSuccess)&&a.output.onSuccess()}]},onError:J.Error}},[J.Submitting]:{invoke:{src:(0,q.Sx)(async e=>{let{input:t}=e,a={email:t.formData.email,token:t.otpData.token,otp:t.otpData.otp};return await (0,L.R)(a)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(J.OnboardingChecklist),onError:J.Error}},[J.Error]:{on:{SUBMIT:{actions:"assignOtpCode",target:J.Submitting},RESEND_EMAIL_VERIFICATION:{target:J.Idle},UPDATE_EMAIL:{target:J.UpdateEmail}}},[J.UpdateEmail]:{initial:J.Idle,states:{[J.Idle]:{invoke:{input:e=>{let{context:t,event:a}=e;return{contactId:t.contactData.contactId,email:a.data.email,onSuccess:a.data.onSuccess}},src:(0,q.Sx)(async e=>{let{input:t}=e,a={contactId:t.contactId,email:t.email};return await (0,k.CI)(a),{email:t.email,onSuccess:t.onSuccess}}),onDone:{actions:["assignNewEmail",e=>{var t;let{event:a}=e;(null==a||null==(t=a.output)?void 0:t.onSuccess)&&a.output.onSuccess()}],target:"#".concat(J.EmailVerification,".").concat(J.Idle)},onError:J.Error}},[J.Error]:{on:{SUBMIT:{target:"#".concat(J.EmailVerification,".").concat(J.Idle)},RESEND_EMAIL_VERIFICATION:{target:"#".concat(J.EmailVerification,".").concat(J.Idle)},UPDATE_EMAIL:{target:J.Idle}}}}}}},[J.ReviewConsents]:{id:J.ReviewConsents,initial:J.FetchConsents,states:{[J.Idle]:{on:{SUBMIT:{actions:["assignUserConsentStatus"],target:J.Submitting}}},[J.FetchConsents]:{invoke:{src:(0,q.Sx)(async()=>await (0,M.i)()),onDone:{actions:"assignConsents",target:J.Idle},onError:J.Error}},[J.Submitting]:{invoke:{src:(0,q.Sx)(async e=>{let{input:t}=e,a={patientIdentifier:t.contactData.contactId,firstName:t.formData.firstName,lastName:t.formData.lastName,phone:t.formData.phone,email:t.formData.email,birthDate:t.formData.birthdate,state:t.formData.state,heightInInch:t.formData.heightInInch,heightInFeet:t.formData.heightInFoot,currentWeightInPounds:t.formData.currentWeightInPounds,evolveOrganization:F.PM["ChristianaCare - Caregivers"],consents:t.consentsData.userConsentStatus};return await (0,P.Y)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{actions:"assignFlyteUserData",target:J.UpdateContact}],onError:"#".concat(J.OnboardingUserError)}},[J.UpdateContact]:{invoke:{src:(0,q.Sx)(async e=>{let{input:t}=e,a={contactId:t.contactData.contactId,evolvePatientID:t.flyteUserData.patientId};return await (0,k.CI)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{guard:"isAthenaRecordCreated",target:"#".concat(J.CreatePassword)},{target:"#".concat(J.OnboardingUserError)}],onError:"#".concat(J.OnboardingUserError)}},[J.Error]:{on:{SUBMIT:{actions:["assignUserConsentStatus"],target:J.Submitting}}}}},[J.CreatePassword]:{id:J.CreatePassword,initial:J.Idle,states:{[J.Idle]:{on:{SUBMIT:{actions:"assignPasswordData",target:J.Submitting}}},[J.Submitting]:{invoke:{src:(0,q.Sx)(async e=>{let{input:t}=e,a={email:t.formData.email,password:t.passwordData.password,confirmPassword:t.passwordData.confirmPassword};return await (0,w.I)(t.flyteUserData.verifyToken,a)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(J.RequestLabs),onError:{target:J.Error,actions:"assignError"}}},[J.Error]:{on:{SUBMIT:{actions:["resetError","assignPasswordData"],target:J.Submitting}}}}},[J.OnboardingChecklist]:{id:J.OnboardingChecklist,on:{SUBMIT:{target:"#".concat(J.ReviewConsents)}}},[J.RequestLabs]:{id:J.RequestLabs,on:{PROCEED_TO_SUBMIT_LABS:"#".concat(J.SubmitLabs),LAB_REQUESTED:{target:"#".concat(J.AppDownload),actions:"assignLabLocation"},SUBMIT_LABS_LATER:{actions:"assignLabsSkipped",target:"#".concat(J.AppDownload)}}},[J.SubmitLabs]:{id:J.SubmitLabs,on:{GO_BACK_TO_REQUEST_LABS:"#".concat(J.RequestLabs),LAB_SUBMITTED:{actions:"registerLabsUploaded",target:"#".concat(J.AppDownload)},SUBMIT_LABS_LATER:{actions:"assignLabsSkipped",target:"#".concat(J.AppDownload)}}},[J.AppDownload]:{id:J.AppDownload},[J.ApplicationReview]:{id:J.ApplicationReview},[J.OnboardingUserError]:{id:J.OnboardingUserError},[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,q.Sx)(async e=>{let{input:t}=e,a={...t,company:$,leadStatus:F.XN.Ineligible,ineligibilityReason:F.hT.BMI,automateEvolveEnrollment:!1};return await (0,U.t)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:J.Success,onError:J.Error}},[J.Success]:{},[J.Error]:{on:{SUBMIT:{actions:"updateFormData",target:J.Submitting}}}}}},on:{RESET:{target:"#".concat(J.PreEligibility),actions:"reset"}}});var ea=a(69443);let ei={[R.C.PreEligibility]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"Let's make sure you're eligible for the FlyteHealth program."}),(0,i.jsx)(r.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,i.jsx)(r.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."})},[R.C.EligibilityUnmet]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-secondary-negative",children:"Unfortunately, you are not eligible to join FlyteHealth at this time."}),(0,i.jsx)(r.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+."})]})},[R.C.ContactDetails]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-secondary-negative",children:"Congratulations! You're eligible for the FlyteHealth program"}),(0,i.jsxs)(r.TextPairing.SubLabel,{color:"text-secondary",children:["To help match your information with the ChristianaCare Caregivers with Highmark insurance plan, tell us about yourself.",(0,i.jsx)("br",{}),(0,i.jsx)("br",{}),"Next, we'll ask about your Highmark membership. Be sure to have your insurance card handy."]})]})},[R.C.InsuranceDetails]:{title:(0,i.jsx)(r.TextPairing,{variant:"textpairing-header-2XL",children:(0,i.jsxs)(r.TextPairing.Label,{color:"text-primary",children:[(0,i.jsxs)(r.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?"]})})},[R.C.InsuranceDetailsReview]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{children:"Let's review: Is your info correct?"}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"Please double-check the information you provided to make sure everything is correct."})]})},[R.C.ApplicationComplete]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-secondary-negative",children:"Welcome aboard! We're so excited you're here."}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"Next, we need to confirm your email. Click the link we sent to:"})]}),description:(0,i.jsx)(r.Text,{mt:"spacer-8",color:"text-secondary",variant:"text-body-regular",children:"Can’t find the email? Make sure to check your Spam folder."})},[R.C.ApplicationReview]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"You're almost finished!"}),(0,i.jsx)(r.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."})]})},[R.C.ApplicationDetected]:{title:(0,i.jsx)(r.Text,{variant:"text-header-2XL",color:"text-primary",children:"We found an existing account for:"}),description:(0,i.jsx)(r.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."})},[R.C.EmailVerification]:ea.M[R.C.EmailVerification],[R.C.OnboardingChecklist]:ea.M[R.C.OnboardingChecklist],[R.C.CreatePassword]:ea.M[R.C.CreatePassword],[R.C.AppDownload]:ea.M[R.C.AppDownload],[R.C.ReviewConsents]:ea.M[R.C.ReviewConsents]};var er=a(82393);let en=[I.UX.BenefitsWebsite,I.UX.CoworkerReferral,I.UX.PrescriptionDenial,I.UX.ProviderReferral,I.UX.WordOfMouth,I.UX.Other],eo={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"},es={[R.C.ContactDetails]:{state:{options:er.rI},howDidYouFindUs:{options:en}},[R.C.InsuranceDetails]:{insuranceMemberID:{...eo,description:(0,i.jsx)(r.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,i.jsxs)(r.Box,{children:[(0,i.jsx)(r.Text,{variant:"text-body-meta-regular",color:"text-light",children:"Where to find my Membership ID Number:"}),(0,i.jsx)(r.Image,{width:"100%",height:"auto",src:"/static/assets/programs/christiana-care/christiana-care-insurance-card.png",alt:"Member ID guidance"})]})}},[R.C.InsuranceDetailsReview]:{insuranceMemberID:eo}},el=I.fz.ChristianaCare,ec=e=>{let{render:t}=e,[a,w]=(0,j.zl)(et),A=(0,E.useMemo)(()=>(0,D.r)(a.value),[a.value]);(0,v.t)(A,el);let L=(0,E.useCallback)(e=>{w({type:"SUBMIT",data:e})},[w]),T=(0,E.useCallback)(()=>{w({type:"BACK"})},[w]),M=(0,E.useCallback)(()=>{switch(A){case J.PreEligibility:return(0,i.jsx)(b.P,{configuration:{contentResources:ei[R.C.PreEligibility]},onSubmit:L});case J.ContactDetails:return(0,i.jsx)(S.x,{configuration:{contentResources:ei[R.C.ContactDetails],fields:es[R.C.ContactDetails]},onSubmit:L,defaultValues:a.context.formData});case J.EligibilityUnmet:return(0,i.jsx)(C.B,{configuration:{contentResources:ei[R.C.EligibilityUnmet]},onSubmit:L,loading:a.matches({[J.EligibilityUnmet]:J.Submitting}),isEmailSent:a.matches({[J.EligibilityUnmet]:J.Success}),hasError:a.matches({[J.EligibilityUnmet]:J.Error})});case J.InsuranceDetails:return(0,i.jsx)(p.d,{configuration:{contentResources:ei[R.C.InsuranceDetails],fields:es[R.C.InsuranceDetails]},onSubmit:L,onBack:T});case J.InsuranceDetailsReview:return(0,i.jsx)(h.h,{configuration:{contentResources:ei[R.C.InsuranceDetailsReview],fields:es[R.C.InsuranceDetailsReview]},onSubmit:L,loading:a.matches({[J.InsuranceDetailsReview]:J.Submitting}),hasError:a.matches({[J.InsuranceDetailsReview]:J.Error}),defaultValues:a.context.formData});case J.ApplicationComplete:return(0,i.jsx)(o.Q,{...ei[R.C.ApplicationComplete],email:a.context.formData.email});case J.ApplicationDetected:return(0,i.jsx)(s.r,{...ei[R.C.ApplicationDetected],email:a.context.formData.email});case J.ApplicationReview:return(0,i.jsx)(l.l,{...ei[R.C.ApplicationReview]});case J.EmailVerification:return(0,i.jsx)(m.e,{configuration:{contentResources:{title:ei[R.C.EmailVerification](a.context.formData.email).title}},email:a.context.formData.email,hasError:a.matches({[J.EmailVerification]:J.Error}),loading:a.matches({[J.EmailVerification]:J.Submitting}),isUpdateEmailLoading:a.matches({[J.EmailVerification]:{[J.UpdateEmail]:J.Idle}}),hasUpdateEmailError:a.matches({[J.EmailVerification]:{[J.UpdateEmail]:J.Error}}),onSubmit:L,onResendCode:e=>w({type:"RESEND_EMAIL_VERIFICATION",data:{onSuccess:e}}),onEditEmail:(e,t)=>w({type:"UPDATE_EMAIL",data:{email:e,onSuccess:t}})});case J.OnboardingChecklist:return(0,i.jsx)(g.E,{showLabs:!0,configuration:{contentResources:ei[R.C.OnboardingChecklist]},onSubmit:L});case J.ReviewConsents:return(0,i.jsx)(f.U,{configuration:{contentResources:ei[R.C.ReviewConsents]},consents:a.context.consentsData.items,hasError:a.matches({[J.ReviewConsents]:J.Error}),loading:a.matches({[J.ReviewConsents]:J.FetchConsents})||a.matches({[J.ReviewConsents]:J.Submitting})||a.matches({[J.ReviewConsents]:J.UpdateContact}),onSubmit:L});case J.CreatePassword:return(0,i.jsx)(u.i,{configuration:{contentResources:ei[R.C.CreatePassword]},loading:a.matches({[J.CreatePassword]:J.Submitting}),error:a.context.error,onSubmit:L});case J.AppDownload:return(0,i.jsx)(n.a,{title:"SUBMIT_LATER"===a.context.labs?ei[R.C.AppDownload].titleLabSkipped:"LABS_UPLOADED"===a.context.labs?ei[R.C.AppDownload].titleLabSubmitted:ei[R.C.AppDownload].titleLabRequested,checklist:ei[R.C.AppDownload].checklist,image:(0,i.jsx)(r.Image,{m:"auto",mt:8,maxWidth:"300px",src:"/static/assets/app-download.png",alt:"app-download"})});case J.OnboardingUserError:return(0,i.jsx)(x.C,{});case J.RequestLabs:var e;return(0,i.jsx)(y.I,{organizationName:"ChristianaCare - Caregivers",patientId:null==(e=a.context.flyteUserData)?void 0:e.patientId,onProceedToSubmitLabs:()=>w({type:"PROCEED_TO_SUBMIT_LABS"}),onLabRequested:e=>w({type:"LAB_REQUESTED",data:{lab:e}}),formData:a.context.formData});case J.SubmitLabs:return(0,i.jsx)(H.x,{onGoBackToRequestLabs:()=>w({type:"GO_BACK_TO_REQUEST_LABS"}),onSubmitLabsLater:()=>w({type:"SUBMIT_LABS_LATER"}),onLabSubmitted:()=>w({type:"LAB_SUBMITTED"}),patientId:a.context.flyteUserData.patientId,diabetes:"yes"===a.context.formData.diabetes,bariatric:"yes"===a.context.formData.bariatricSurgery});default:return null}},[A,a]);return t({header:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.Flex,{gap:"spacer-5",alignItems:"center",children:[(0,i.jsx)(c.E,{partner:I.fz.Flyte}),(0,i.jsx)(r.Divider,{orientation:"vertical",alignSelf:"stretch",height:"auto"}),(0,i.jsx)(c.E,{partner:el})]}),(0,i.jsx)(d.nV,{currentStep:A})]}),body:M(),currentWorkFlowStep:A})}},53154:(e,t,a)=>{a.d(t,{e:()=>h});var i=a(37876),r=a(29261),n=a(74161),o=a(37477),s=a(14232),l=a(88992),c=a(82393);let d=e=>{let{isOpen:t,onClose:a,onSubmit:r,currentEmail:n,loading:d=!1,hasError:S}=e,u=(0,l.mN)({defaultValues:{currentEmail:n},mode:"onBlur"});(0,s.useEffect)(()=>{u.setValue("currentEmail",n)},[n]);let C=()=>{d||(a(),u.reset())};return(0,i.jsxs)(o.Modal,{isOpen:t,onClose:C,isCentered:!0,closeOnEsc:!d,closeOnOverlayClick:!d,children:[(0,i.jsx)(o.Modal.Overlay,{}),(0,i.jsxs)(o.Modal.Content,{borderRadius:"0.75rem",px:"spacer-7",py:"spacer-6",gap:"spacer-7",maxWidth:"26.25rem",mx:{base:"spacer-5",md:0},children:[(0,i.jsxs)(o.Modal.Header,{p:0,children:[(0,i.jsx)(o.Text,{variant:"text-body-large-bold",color:"text-primary",children:"Edit your email address"}),(0,i.jsx)(o.Text,{variant:"text-body-regular",color:"text-secondary",mt:"spacer-4",children:"This email will be used to create your FlyteHealth account. Next, you'll receive an email with a 6-digit code. Use this code to confirm your email."})]}),(0,i.jsx)(o.Modal.CloseButton,{isDisabled:d}),S&&(0,i.jsxs)(o.Alert,{status:"error",variant:"subtle",children:[(0,i.jsx)(o.Alert.Icon,{}),(0,i.jsx)(o.Alert.Title,{children:"There was an error submitting your information. Please call (844) 359-8363 to speak with a Care Coordinator."})]}),(0,i.jsx)(o.Modal.Body,{p:0,children:(0,i.jsx)(l.Op,{...u,children:(0,i.jsxs)(o.Flex,{as:"form",noValidate:!0,direction:"column",gap:"spacer-7",children:[(0,i.jsx)(c.LP,{name:"currentEmail",label:"Current email address",inputProps:{isDisabled:!0}}),(0,i.jsx)(c.LP,{name:"newEmail",label:"Enter your correct email address",inputProps:{isRequired:!0,isDisabled:d}})]})})}),(0,i.jsxs)(o.Modal.Footer,{p:0,gap:"spacer-4",children:[(0,i.jsx)(o.Button,{variant:"primary-alt",onClick:C,size:"m",isDisabled:d,"aria-label":"Cancel",flex:1,width:"100%",children:"Cancel"}),(0,i.jsx)(o.Button,{flex:1,width:"100%","aria-label":"Update email",onClick:u.handleSubmit(r),variant:"primary",isLoading:d,size:"m",isDisabled:!u.formState.isValid,children:"Update email"})]})]})]})},S="verificationCode",u=e=>{let{name:t=S,hasError:a=!1,loading:r=!1,onResendCode:n,onSubmit:c}=e,{control:d,reset:u,watch:C}=(0,l.xW)(),[m,p]=(0,s.useState)(60),h=a&&!C(S);(0,s.useEffect)(()=>{let e;return m>0&&(e=setInterval(()=>{p(t=>t<=1?(clearInterval(e),0):t-1)},1e3)),()=>clearInterval(e)},[m]);let g=e=>{6===e.length&&c(e)};return(0,s.useEffect)(()=>{a&&u({[t]:""})},[a,u,t]),(0,i.jsxs)(o.Flex,{direction:"column",gap:"spacer-2",children:[(0,i.jsxs)(o.Flex,{gap:"spacer-2",direction:"column",children:[(0,i.jsx)(l.xI,{name:t,control:d,rules:{required:!0,minLength:6,maxLength:6},render:e=>{let{field:{onChange:a,value:n}}=e;return(0,i.jsx)(o.PinInput,{"data-test":t,id:t,value:n,onChange:e=>{a(e),g(e)},"aria-label":"Enter the code",otp:!0,size:"l",variant:"outline",type:"number",isDisabled:r,isInvalid:h,children:Array.from({length:6}).map((e,a)=>(0,i.jsx)(o.PinInput.Field,{"data-test":"".concat(t,"-").concat(a),width:{base:"auto",lg:"4rem",xl:"5rem",xxl:"5.25rem"}},"pin-field-position-".concat(a+1)))})}}),h&&(0,i.jsxs)(o.InlineAlert,{status:"error",children:[(0,i.jsx)(o.InlineAlert.Icon,{}),(0,i.jsx)(o.InlineAlert.Message,{children:"Incorrect code. Please try again."})]})]}),(0,i.jsxs)(o.Flex,{gap:"spacer-1",mt:"spacer-2",flexWrap:"wrap",children:[(0,i.jsx)(o.Text,{variant:"text-body-meta-regular",color:"text-secondary",children:"Do you need a new code?"}),m>0?(0,i.jsxs)(o.Text,{variant:"text-body-meta-regular",color:"text-secondary",children:["You can request a new one in"," ",(0,i.jsxs)(o.Text,{as:"span",variant:"text-body-meta-medium",color:"text-secondary",children:[m,"s"]})]}):(0,i.jsx)(o.Button,{variant:"link-primary","aria-label":"Resend code",size:"s",textDecoration:"underline",onClick:()=>{n(),p(60)},isDisabled:r,children:"Resend code"})]})]})};var C=a(45383),m=a(20058),p=a(19847);let h=e=>{let{configuration:t,email:a,hasError:S=!1,loading:h=!1,isUpdateEmailLoading:g,hasUpdateEmailError:x,onResendCode:b,onEditEmail:y,onSubmit:f}=e,H=(0,l.mN)({mode:"onBlur"}),{contentResources:v}=t,[I,R]=(0,s.useState)(!1),[D,j]=(0,s.useState)(!0),E=(0,p.a)(),w=(0,o.useToast)(),{track:A}=(0,n.useAnalytics)(),L=()=>(0,i.jsx)(o.Button,{type:"submit",size:{base:"m",lg:"l"},isDisabled:!H.formState.isValid||h,width:"100%",isLoading:h,"aria-label":"Verify code",children:"Verify code"}),T=(0,s.useCallback)(e=>{D&&(f({verificationCode:e}),j(!1))},[f,D]),M=()=>{R(!1)},k=e=>{y(e,()=>{M(),w({title:"Email address updated",description:"Check your email for a 6-digit code to confirm your email address.",status:"success",titleAlignment:"top",position:"bottom",variant:"subtle",duration:3e3})})};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.Op,{...H,children:(0,i.jsxs)(C.X,{as:"form",onSubmit:H.handleSubmit(f),noValidate:!0,children:[(0,i.jsxs)(C.X.Side,{gap:"spacer-7",children:[v.title,(0,i.jsxs)(o.Flex,{gap:"spacer-1",children:[(0,i.jsx)(o.Text,{variant:"text-body-meta-regular",color:"text-secondary",children:"Not your email?"}),(0,i.jsx)(o.Button,{variant:"link-primary",size:"s",textDecoration:"underline",onClick:()=>{R(!0),A(r.A.editEmail)},isDisabled:h,"aria-label":"Edit email address",children:"Edit email address"})]})]}),(0,i.jsxs)(C.X.Form,{children:[(0,i.jsx)(u,{hasError:S,loading:h,onResendCode:()=>{b(()=>{w({title:"New code sent to your email",status:"success",position:"bottom",variant:"solid",duration:3e3})})},onSubmit:T}),(0,i.jsxs)(o.Flex,{direction:"column",children:[(0,i.jsx)(o.Text,{variant:"text-body-bold",color:"text-secondary",children:"Need some help?"}),(0,i.jsxs)(o.Text,{color:"text-secondary",variant:"text-body-regular",mt:"spacer-1",children:["Please call"," ",(0,i.jsx)(m.C,{fontWeight:"thin"})," ","to speak with a Care Coordinator."]})]}),E?(0,i.jsx)(c.cI,{children:L()}):L()]})]})}),I&&(0,i.jsx)(d,{isOpen:I,onClose:M,onSubmit:e=>{let{newEmail:t}=e;return k(t)},currentEmail:a,loading:g,hasError:x})]})}},53310:(e,t,a)=>{a.d(t,{A:()=>O});var i=a(37876),r=a(37477),n=a(48934),o=a(14901),s=a(44585),l=a(533),c=a(6770),d=a(63583),S=a(86535),u=a(93511),C=a(34305),m=a(80072),p=a(97793),h=a(66885),g=a(62227),x=a(14232),b=a(47353),y=a(33841),f=a(86687),H=a(89225),v=a(68792),I=a(65159),R=a(45352),D=a(39777),j=function(e){return e.CreateLead="createLead",e}(j||{});let E={...p.f,...j},w=H.Ek[y.fz.PyleFamilyInsurance],A={formData:{birthdate:"",comorbidity:"",currentWeightInPounds:"",dateOfHighestWeightValue:"",email:"",firstName:"",heightInFoot:"",heightInInch:"",highestWeightInPounds:"",insuranceCoverage:void 0,insuranceMemberID:"",insurance:void 0,lastName:"",phone:"",state:void 0,termsAgreement:!1,howDidYouFindUS:"",comorbidities:[],diabetes:"",bariatricSurgery:""},bmi:void 0},L=(0,I.mj)({types:{},guards:{isPreEligibilityMet:e=>{let{context:{bmi:t}}=e;return v.J0.pyleFamilyInsurance({bmi:t})},isApplicationDetected:f.L},actions:{updateFormData:(0,R.a)({formData:e=>{let{context:t,event:a}=e;return{...t.formData,...a.data}}}),assignBMI:(0,R.a)({bmi:e=>{let{context:t}=e,{heightInFoot:a,heightInInch:i,highestWeightInPounds:r}=t.formData;return(0,v.Hv)({heightFeet:(0,v.sC)(a),heightInches:(0,v.sC)(i),weightPounds:(0,v.sC)(r)})}}),reset:(0,R.a)({...A})}}).createMachine({context:()=>A,id:"pyleMachine",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:{actions:"updateFormData",target:E.Submitting}}},[E.Submitting]:{id:E.Submitting,initial:E.CreateLead,states:{[E.CreateLead]:{id:E.CreateLead,invoke:{src:(0,D.Sx)(async e=>{let{input:t}=e,a={...t.formData,company:w,evolveOrganization:y.PM["A Duie Pyle"],leadStatus:y.XN.EligibleWaiting,automateEvolveEnrollment:!1};return await (0,b.t)(a)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(E.ApplicationReview),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.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,D.Sx)(async e=>{let{input:t}=e,a={...t,company:w,leadStatus:y.XN.Ineligible,ineligibilityReason:y.hT.BMI,automateEvolveEnrollment:!1};return await (0,b.t)(a)}),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 T=a(69443);let M={[m.C.PreEligibility]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"Let's make sure you're eligible for the FlyteHealth program."}),(0,i.jsx)(r.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,i.jsx)(r.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."})},[m.C.EligibilityUnmet]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-secondary-negative",children:"Unfortunately, you are not eligible to join FlyteHealth at this time."}),(0,i.jsx)(r.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+."})]})},[m.C.ContactDetails]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-secondary-negative",children:"Congratulations! You're eligible for the FlyteHealth program"}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"To help us match your information with your employer, tell us about yourself."})]})},[m.C.ApplicationReview]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"You're almost finished!"}),(0,i.jsx)(r.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,i.jsx)(r.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."})},[m.C.ApplicationDetected]:{title:(0,i.jsx)(r.Text,{variant:"text-header-2XL",color:"text-primary",children:"We found an existing account for:"}),description:(0,i.jsx)(r.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."})},[m.C.OnboardingChecklist]:T.M[m.C.OnboardingChecklist],[m.C.CreatePassword]:T.M[m.C.CreatePassword],[m.C.AppDownload]:T.M[m.C.AppDownload],[m.C.ReviewConsents]:T.M[m.C.ReviewConsents]};var k=a(82393);let P=[C.UX.BenefitsWebsite,C.UX.CoworkerReferral,C.UX.ProviderReferral,C.UX.WordOfMouth,C.UX.Other],U={[m.C.ContactDetails]:{state:{options:k.rI},howDidYouFindUs:{options:P}}},B=new Map([[m.C.PreEligibility,l.n.get(m.C.PreEligibility)],[m.C.ContactDetails,l.n.get(m.C.ContactDetails)]]),F=C.fz.PyleFamilyInsurance,O=e=>{let{render:t}=e,[a,b]=(0,g.zl)(L),y=(0,x.useMemo)(()=>(0,h.r)(a.value),[a.value]);(0,u.t)(y,F);let f=(0,x.useCallback)(e=>{b({type:"SUBMIT",data:e})},[b]),H=(0,x.useCallback)(()=>{switch(y){case p.f.PreEligibility:return(0,i.jsx)(S.P,{configuration:{contentResources:M[m.C.PreEligibility]},onSubmit:f});case p.f.ContactDetails:return(0,i.jsx)(c.x,{configuration:{contentResources:M[m.C.ContactDetails],fields:U[m.C.ContactDetails]},loading:a.matches({[p.f.ContactDetails]:p.f.Submitting}),onSubmit:f,defaultValues:a.context.formData});case p.f.EligibilityUnmet:return(0,i.jsx)(d.B,{configuration:{contentResources:M[m.C.EligibilityUnmet]},onSubmit:f,loading:a.matches({[p.f.EligibilityUnmet]:p.f.Submitting}),isEmailSent:a.matches({[p.f.EligibilityUnmet]:p.f.Success}),hasError:a.matches({[p.f.EligibilityUnmet]:p.f.Error})});case p.f.ApplicationReview:return(0,i.jsx)(o.l,{...M[m.C.ApplicationReview]});case p.f.ApplicationDetected:return(0,i.jsx)(n.r,{...M[m.C.ApplicationDetected],email:a.context.formData.email});default:return null}},[y,a]);return t({header:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.Flex,{gap:"spacer-5",alignItems:"center",children:[(0,i.jsx)(s.E,{partner:C.fz.Flyte}),(0,i.jsx)(r.Divider,{orientation:"vertical",alignSelf:"stretch",height:"auto"}),(0,i.jsx)(s.E,{partner:F})]}),(0,i.jsx)(l.f,{currentStep:y,steps:B})]}),body:H(),currentWorkFlowStep:y})}},56931:(e,t,a)=>{a.d(t,{A:()=>ep});var i=a(37876),r=a(37477),n=a(59004),o=a(91366),s=a(48934),l=a(14901),c=a(44585),d=a(533),S=a(6770),u=a(39946),C=a(63583),m=a(53154),p=a(42037),h=a(70587),g=a(11427),x=a(86535),b=a(43483),y=a(93511),f=a(34305),H=a(80072),v=a(66885),I=a(62227),R=a(14232);Object.values(f.lk).filter(e=>e!==f.lk.SelfPay);var D=a(82393),j=a(45383),E=a(19847),w=a(88992),A=a(76692),L=a(43400),T=a(82492);let M="insuranceMemberID",k=(0,i.jsx)(r.Text,{variant:"text-body-meta-regular",color:"text-secondary",children:"Your Unique ID is your ten-digit Benefit Funds’ Member ID Number. For Eligible dependents, use the guidance below:"}),P=e=>{let{label:t="1199SEIU Unique ID",placeholder:a="Unique ID Number",description:n=k,tooltip:o,type:s,maxLength:l,minLength:c,maskOptions:d,inputMode:S,registerOptions:u,isDisabled:C=!1,isRequired:m=!0,...p}=e,{setValue:h,register:g,formState:{errors:x}}=(0,w.xW)(),b=(0,T.Q)(M,x,["minLength","maxLength","pattern"]);return(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",...p,children:[(0,i.jsxs)(r.Box,{children:[(0,i.jsxs)(r.Flex,{gap:"spacer-2",alignItems:"center",children:[(0,i.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:M,children:t}),o&&(0,i.jsx)(r.Tooltip,{label:o,placement:"auto-end",children:(0,i.jsx)(r.Flex,{children:(0,i.jsx)(r.IconInfoCircle,{size:"m",color:"text-link-primary-default"})})})]}),n]}),(0,i.jsx)(L.I,{"data-test":M,id:M,isInvalid:b,isDisabled:C,placeholder:a,type:s,inputMode:S,maxLength:l,minLength:c,maskOptions:d,onInput:e=>{let t=e.currentTarget.value,a=!c||c&&t.length>=c;h(M,t,{shouldValidate:a})},...g(M,{required:m,...u})}),(0,i.jsxs)(r.Text,{variant:"text-body-regular",fontSize:12,color:"text-secondary",children:[(0,i.jsx)("b",{children:"- For Spouse:"})," ","member’s ID number + first nine characters of spouse’s first name + S."," ",(0,i.jsx)("br",{}),"Example: 1234567890JohnathonS",(0,i.jsx)("br",{}),(0,i.jsx)("b",{children:"- For Child (18 or older)"}),": member’s ID number + first nine characters of dependent’s first name + D. Example: 1234567890MariaD"]}),b&&(0,i.jsx)(D.gO,{errors:x,name:M})]})},U=e=>{let{configuration:t,loading:a=!1,onSubmit:n,onBack:o}=e,{contentResources:s,fields:l}=t,c=(0,w.mN)({mode:"onBlur"}),d=(0,E.a)(),S=c.watch(A.uQ)===f.RS.SelfPay,u=c.watch(A.ag)===f.lk.Other;(0,R.useEffect)(()=>{S&&(c.resetField(A.ag),c.resetField(A.JB))},[S,c]),(0,R.useEffect)(()=>{c.resetField(A.E6)},[c.watch(A.ag),c]);let C=()=>(0,i.jsxs)(r.Flex,{gap:{base:"spacer-8",md:"spacer-16"},alignItems:"center",flex:{base:1,lg:"unset"},children:[(0,i.jsx)(r.Button,{size:{base:"m",lg:"l"},isLoading:a,variant:"link","aria-label":"Back",leadingIcon:(0,i.jsx)(r.IconArrowLeft,{}),onClick:o,children:"Back"}),(0,i.jsx)(r.Button,{type:"submit",size:{base:"m",lg:"l"},isDisabled:!c.formState.isValid,flex:1,isLoading:a,trailingIcon:(0,i.jsx)(r.IconArrowRight,{}),"aria-label":"Continue",children:"Continue"})]});return(0,i.jsx)(w.Op,{...c,children:(0,i.jsxs)(j.X,{as:"form",onSubmit:c.handleSubmit(n),noValidate:!0,children:[(0,i.jsx)(j.X.Side,{gap:0,flex:{base:"none",lg:1},children:s.title}),(0,i.jsxs)(j.X.Form,{children:[(null==l?void 0:l.insuranceCoverage)&&(0,i.jsx)(A.Xq,{isDisabled:a}),(null==l?void 0:l.insurance)&&(0,i.jsx)(A._8,{isDisabled:a||S,isRequired:!S,...null==l?void 0:l.insurance},S.toString()),u&&(0,i.jsx)(A.jP,{isDisabled:a,...null==l?void 0:l.insuranceOther}),(0,i.jsx)(P,{isDisabled:a||S,isRequired:!S,pb:{base:"spacer-24",lg:0},...null==l?void 0:l.insuranceMemberID}),d?(0,i.jsx)(D.cI,{children:C()}):C()]})]})})};var B=a(11969),F=a(10758),O=a(85007),z=a(31346),N=a(38360),_=a(39648),W=a(77944),X=a(47353),V=a(83928),q=a(33841),Y=a(13751),K=a(92323),G=a(86687),Q=a(89225),J=a(97793),$=a(68792),Z=a(65159),ee=a(39777),et=a(45352),ea=a(63826);let ei=e=>e===ea.w.FULL_MATCH||e===ea.w.ELIGIBLE_MATCH||e===ea.w.PERSON_MATCH,er=e=>{switch(e){case ea.w.INSURANCE_MATCH:case ea.w.EXPIRED:case ea.w.NOT_FOUND:return f.XN.EligibleWaiting;case ea.w.PERSON_MATCH:case ea.w.FULL_MATCH:case ea.w.ELIGIBLE_MATCH:default:return}};var en=function(e){return e.CreateLead="createLead",e.CreateContact="createContact",e.UpdateContact="updateContact",e.DetermineContactOrLead="determineContactOrLead",e.FetchConsents="fetchConsents",e.UpdateEmail="updateEmail",e.CheckEligibility="checkEligibility",e}(en||{});let eo={...J.f,...en},es=Q.Ek[q.fz["1199SEIU"]],el={formData:{birthdate:"",comorbidity:"",currentWeightInPounds:"",dateOfHighestWeightValue:"",email:"",ssn:"",firstName:"",heightInFoot:"",heightInInch:"",highestWeightInPounds:"",insuranceCoverage:void 0,insuranceMemberID:"",insurance:void 0,lastName:"",phone:"",termsAgreement:!1,howDidYouFindUS:"",diabetes:"",bariatricSurgery:"",comorbidities:[""]},eligibilityCheckMatchType:void 0,matchingRecord:void 0,bmi:void 0,otpData:void 0,consentsData:{items:[],userConsentStatus:[]},contactData:{},passwordData:{password:void 0,confirmPassword:void 0},flyteUserData:void 0,error:void 0},ec={...Y.AU,...Y.gQ,...Y.pE,...Y.UH,...Y.yF,...Y.n6,...Y.uN,...Y.yS,...Y.RW,...(0,Y.rS)(el).reset},ed=(0,Z.mj)({types:{},guards:{isPreEligibilityMet:e=>{let{context:{formData:t,bmi:a}}=e;return $.J0["1199SEIU"]({bmi:a,comorbidity:t.comorbidity,birthdate:t.birthdate})},isApplicationReviewRequired:e=>{let{context:{eligibilityCheckMatchType:t,formData:a}}=e;return!V.A.shouldBypassIsApplicationReviewRequired({email:a.email})&&!ei(t)},isApplicationDetected:G.L,isAthenaRecordCreated:K.z},actions:ec}).createMachine({context:()=>el,id:"SEIUMachine",initial:eo.PreEligibility,states:{[eo.PreEligibility]:{id:eo.PreEligibility,initial:eo.Idle,states:{[eo.Idle]:{on:{SUBMIT:{target:eo.Submitting,actions:"updateFormData"}}},[eo.Submitting]:{entry:"assignBMI",always:[{target:"#".concat(eo.ContactDetails),guard:"isPreEligibilityMet"},{target:"#".concat(eo.EligibilityUnmet)}]}}},[eo.ContactDetails]:{id:eo.ContactDetails,initial:eo.Idle,states:{[eo.Idle]:{on:{SUBMIT:{target:"#".concat(eo.InsuranceDetails),actions:"updateFormData"}}}}},[eo.InsuranceDetails]:{id:eo.InsuranceDetails,initial:eo.Idle,states:{[eo.Idle]:{on:{BACK:{target:"#".concat(eo.ContactDetails)},SUBMIT:{target:"#".concat(eo.InsuranceDetailsReview),actions:"updateFormData"}}}}},[eo.InsuranceDetailsReview]:{id:eo.InsuranceDetailsReview,initial:eo.Idle,states:{[eo.Idle]:{on:{SUBMIT:{actions:"updateFormData",target:eo.Submitting}}},[eo.Submitting]:{id:eo.Submitting,initial:eo.CheckEligibility,states:{[eo.CheckEligibility]:{id:eo.CheckEligibility,invoke:{src:(0,ee.Sx)(async e=>{let{input:t}=e,a={...t,insurance:Q.w[q.fz["1199SEIU"]],benefitProgram:Q.Nl[q.fz["1199SEIU"]]};return await (0,_.w)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:[{actions:(0,et.a)({eligibilityCheckMatchType:e=>{let{event:t}=e;return t.output.data.matchType},matchingRecord:e=>{let{event:t}=e;return t.output.data.matchingRecord}}),target:"#".concat(eo.DetermineContactOrLead)}],onError:"#".concat(eo.InsuranceDetailsReview,".").concat(eo.Error)}},[eo.DetermineContactOrLead]:{id:eo.DetermineContactOrLead,always:[{guard:"isApplicationReviewRequired",target:eo.CreateLead},{target:eo.CreateContact}]},[eo.CreateContact]:{id:eo.CreateContact,invoke:{src:(0,ee.Sx)(async e=>{var t;let{input:a}=e,i=null==(t=a.matchingRecord)?void 0:t.accountName,r={...a.formData,employmentVerificationCode:a.formData.insuranceMemberID,eligibilityVerifiedBy:q.h9.Evolve,insuranceMemberID:a.formData.insuranceMemberID,company:es,insurance:Q.Ft[q.fz["1199SEIU"]],evolveOrganization:q.PM["1199SEIU"],accountId:Q.f3[q.fz["1199SEIU"]],...i&&{participantDepartmentorOrg:i}};return await (0,N.vY)(r)}),input:e=>{let{context:t}=e;return t},onDone:{actions:"assignContactData",target:"#".concat(eo.EmailVerification)},onError:[{guard:"isApplicationDetected",target:"#".concat(eo.ApplicationDetected)},{target:"#".concat(eo.InsuranceDetailsReview,".").concat(eo.Error)}]}},[eo.CreateLead]:{id:eo.CreateLead,invoke:{src:(0,ee.Sx)(async e=>{var t;let{input:a}=e,i=null==(t=a.matchingRecord)?void 0:t.accountName,r={...a.formData,employmentVerificationCode:a.formData.insuranceMemberID,insuranceMemberID:a.formData.insuranceMemberID,company:es,insurance:Q.Ft[q.fz["1199SEIU"]],evolveOrganization:q.PM["1199SEIU"],leadStatus:er(a.eligibilityCheckMatchType),automateEvolveEnrollment:ei(a.eligibilityCheckMatchType),...i&&{participantDepartmentorOrg:i}};return await (0,X.t)(r)}),input:e=>{let{context:t}=e;return t},onDone:[{guard:"isApplicationReviewRequired",target:"#".concat(eo.ApplicationReview)},{target:"#".concat(eo.ApplicationComplete)}],onError:[{guard:"isApplicationDetected",target:"#".concat(eo.ApplicationDetected)},{target:"#".concat(eo.InsuranceDetailsReview,".").concat(eo.Error)}]}}}},[eo.Error]:{id:"".concat(eo.InsuranceDetailsReview,".").concat(eo.Error),on:{SUBMIT:{actions:"updateFormData",target:eo.Submitting}}}}},[eo.EmailVerification]:{id:eo.EmailVerification,initial:eo.Idle,states:{[eo.Idle]:{id:"".concat(eo.EmailVerification,".").concat(eo.Idle),on:{SUBMIT:{actions:"assignOtpCode",target:eo.Submitting},RESEND_EMAIL_VERIFICATION:{target:eo.Idle,reenter:!0},UPDATE_EMAIL:{target:eo.UpdateEmail}},invoke:{input:e=>{var t;let{context:a,event:i}=e;return{email:a.formData.email,firstName:a.formData.firstName,onSuccess:null==i||null==(t=i.data)?void 0:t.onSuccess}},src:(0,ee.Sx)(async e=>{let{input:t}=e,a={email:t.email,firstName:t.firstName};return{token:(await (0,F.v)(a)).data.token,onSuccess:t.onSuccess}}),onDone:{actions:[(0,et.a)({otpData:e=>{let{context:t,event:a}=e;return{...t.otpData,token:a.output.token}}}),e=>{var t;let{event:a}=e;(null==a||null==(t=a.output)?void 0:t.onSuccess)&&a.output.onSuccess()}]},onError:eo.Error}},[eo.Submitting]:{invoke:{src:(0,ee.Sx)(async e=>{let{input:t}=e,a={email:t.formData.email,token:t.otpData.token,otp:t.otpData.otp};return await (0,O.R)(a)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(eo.OnboardingChecklist),onError:eo.Error}},[eo.Error]:{on:{SUBMIT:{actions:"assignOtpCode",target:eo.Submitting},RESEND_EMAIL_VERIFICATION:{target:eo.Idle},UPDATE_EMAIL:{target:eo.UpdateEmail}}},[eo.UpdateEmail]:{initial:eo.Idle,states:{[eo.Idle]:{invoke:{input:e=>{let{context:t,event:a}=e;return{contactId:t.contactData.contactId,email:a.data.email,onSuccess:a.data.onSuccess}},src:(0,ee.Sx)(async e=>{let{input:t}=e,a={contactId:t.contactId,email:t.email};return await (0,N.CI)(a),{email:t.email,onSuccess:t.onSuccess}}),onDone:{actions:["assignNewEmail",e=>{var t;let{event:a}=e;(null==a||null==(t=a.output)?void 0:t.onSuccess)&&a.output.onSuccess()}],target:"#".concat(eo.EmailVerification,".").concat(eo.Idle)},onError:eo.Error}},[eo.Error]:{on:{SUBMIT:{target:"#".concat(eo.EmailVerification,".").concat(eo.Idle)},RESEND_EMAIL_VERIFICATION:{target:"#".concat(eo.EmailVerification,".").concat(eo.Idle)},UPDATE_EMAIL:{target:eo.Idle}}}}}}},[eo.ReviewConsents]:{id:eo.ReviewConsents,initial:eo.FetchConsents,states:{[eo.Idle]:{on:{SUBMIT:{actions:["assignUserConsentStatus"],target:eo.Submitting}}},[eo.FetchConsents]:{invoke:{src:(0,ee.Sx)(async()=>await (0,z.i)()),onDone:{actions:"assignConsents",target:eo.Idle},onError:eo.Error}},[eo.Submitting]:{invoke:{src:(0,ee.Sx)(async e=>{let{input:t}=e,a={patientIdentifier:t.contactData.contactId,firstName:t.formData.firstName,lastName:t.formData.lastName,phone:t.formData.phone,email:t.formData.email,birthDate:t.formData.birthdate,state:t.formData.state,heightInInch:t.formData.heightInInch,heightInFeet:t.formData.heightInFoot,currentWeightInPounds:t.formData.currentWeightInPounds,evolveOrganization:q.PM["1199SEIU"],consents:t.consentsData.userConsentStatus};return await (0,W.Y)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{actions:"assignFlyteUserData",target:eo.UpdateContact}],onError:"#".concat(eo.OnboardingUserError)}},[eo.UpdateContact]:{invoke:{src:(0,ee.Sx)(async e=>{let{input:t}=e,a={contactId:t.contactData.contactId,evolvePatientID:t.flyteUserData.patientId};return await (0,N.CI)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{guard:"isAthenaRecordCreated",target:"#".concat(eo.CreatePassword)},{target:"#".concat(eo.OnboardingUserError)}],onError:"#".concat(eo.OnboardingUserError)}},[eo.Error]:{on:{SUBMIT:{actions:["assignUserConsentStatus"],target:eo.Submitting}}}}},[eo.CreatePassword]:{id:eo.CreatePassword,initial:eo.Idle,states:{[eo.Idle]:{on:{SUBMIT:{actions:"assignPasswordData",target:eo.Submitting}}},[eo.Submitting]:{invoke:{src:(0,ee.Sx)(async e=>{let{input:t}=e,a={email:t.formData.email,password:t.passwordData.password,confirmPassword:t.passwordData.confirmPassword};return await (0,B.I)(t.flyteUserData.verifyToken,a)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(eo.AppDownload),onError:{target:eo.Error,actions:"assignError"}}},[eo.Error]:{on:{SUBMIT:{actions:["resetError","assignPasswordData"],target:eo.Submitting}}}}},[eo.OnboardingChecklist]:{id:eo.OnboardingChecklist,on:{SUBMIT:{target:"#".concat(eo.ReviewConsents)}}},[eo.AppDownload]:{id:eo.AppDownload},[eo.ApplicationReview]:{id:eo.ApplicationReview},[eo.OnboardingUserError]:{id:eo.OnboardingUserError},[eo.ApplicationComplete]:{id:eo.ApplicationComplete},[eo.ApplicationDetected]:{id:eo.ApplicationDetected},[eo.EligibilityUnmet]:{id:eo.EligibilityUnmet,initial:eo.Idle,states:{[eo.Idle]:{on:{SUBMIT:{target:eo.Submitting,actions:"updateFormData"}}},[eo.Submitting]:{invoke:{src:(0,ee.Sx)(async e=>{let{input:t}=e,a={...t,company:es,leadStatus:q.XN.Ineligible,ineligibilityReason:q.hT.BMI,automateEvolveEnrollment:!1};return await (0,X.t)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:eo.Success,onError:eo.Error}},[eo.Success]:{},[eo.Error]:{on:{SUBMIT:{target:eo.Submitting}}}}}},on:{RESET:{target:"#".concat(eo.PreEligibility),actions:"reset"}}});var eS=a(69443);let eu={[H.C.PreEligibility]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"Let's make sure you're eligible for the FlyteHealth program."}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"To be eligible for the FlyteHealth program through the 1199SEIU Benefit Funds, you must meet specific age and Body Mass Index (BMI)* requirements."})]}),bmiEnrollmentDisclaimer:(0,i.jsx)(r.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."})},[H.C.EligibilityUnmet]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-secondary-negative",children:"Unfortunately, you are not eligible to join FlyteHealth at this time."}),(0,i.jsx)(r.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+."})]})},[H.C.ContactDetails]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-secondary-negative",children:"Next, tell us about yourself"}),(0,i.jsxs)(r.TextPairing.SubLabel,{color:"text-secondary",children:["To help match your information with the 1199SEIU Health Benefits Plan, we need to verify a few personal details.",(0,i.jsx)("br",{})," ",(0,i.jsx)("br",{}),"Be sure to have your member ID card handy for the next step."]})]})},[H.C.InsuranceDetails]:{title:(0,i.jsxs)(r.Text,{variant:"text-header-2XL",color:"text-secondary-negative",children:["One more thing:"," ",(0,i.jsx)(r.Text,{as:"span",variant:"text-header-2XL",color:"text-primary",children:"Do you have health insurance?"})]})},[H.C.InsuranceDetailsReview]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{children:"Let's review: Is your info correct?"}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"Please double-check the information you provided to make sure everything is correct."})]})},[H.C.ApplicationComplete]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-secondary-negative",children:"Welcome aboard! We're so excited you're here."}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"Next, we need to confirm your email. Click the link we sent to:"})]}),description:(0,i.jsx)(r.Text,{mt:"spacer-8",color:"text-secondary",variant:"text-body-regular",children:"Can’t find the email? Make sure to check your Spam folder."})},[H.C.ApplicationReview]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"You're almost finished!"}),(0,i.jsx)(r.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."})]})},[H.C.ApplicationDetected]:{title:(0,i.jsx)(r.Text,{variant:"text-header-2XL",color:"text-primary",children:"We found an existing account for:"}),description:(0,i.jsx)(r.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."})},[H.C.EmailVerification]:eS.M[H.C.EmailVerification],[H.C.OnboardingChecklist]:eS.M[H.C.OnboardingChecklist],[H.C.CreatePassword]:eS.M[H.C.CreatePassword],[H.C.AppDownload]:eS.M[H.C.AppDownload],[H.C.ReviewConsents]:eS.M[H.C.ReviewConsents]},eC=[f.UX.BenefitsWebsite,f.UX.CoworkerReferral,f.UX.PrescriptionDenial,f.UX.ProviderReferral,f.UX.WordOfMouth,f.UX.Other],em={[H.C.ContactDetails]:{state:{options:D.rI},howDidYouFindUs:{options:eC}},[H.C.InsuranceDetails]:{insuranceMemberID:{}},[H.C.InsuranceDetailsReview]:{insuranceMemberID:{}}},ep=e=>{let{render:t}=e,[a,D]=(0,I.zl)(ed),j=(0,R.useMemo)(()=>(0,v.r)(a.value),[a.value]);(0,y.t)(j);let E=(0,R.useCallback)(e=>{D({type:"SUBMIT",data:e})},[D]),w=(0,R.useCallback)(()=>{D({type:"BACK"})},[D]),A=(0,R.useCallback)(()=>{switch(j){case eo.PreEligibility:return(0,i.jsx)(x.P,{configuration:{contentResources:eu[H.C.PreEligibility]},onSubmit:E});case eo.ContactDetails:return(0,i.jsx)(S.x,{configuration:{contentResources:eu[H.C.ContactDetails],fields:em[H.C.ContactDetails]},onSubmit:E,defaultValues:a.context.formData});case eo.EligibilityUnmet:return(0,i.jsx)(C.B,{configuration:{contentResources:eu[H.C.EligibilityUnmet]},onSubmit:E,loading:a.matches({[eo.EligibilityUnmet]:eo.Submitting}),isEmailSent:a.matches({[eo.EligibilityUnmet]:eo.Success}),hasError:a.matches({[eo.EligibilityUnmet]:eo.Error})});case eo.InsuranceDetails:return(0,i.jsx)(U,{configuration:{contentResources:eu[H.C.InsuranceDetails],fields:em[H.C.InsuranceDetails]},onSubmit:E,onBack:w});case eo.InsuranceDetailsReview:return(0,i.jsx)(p.h,{configuration:{contentResources:eu[H.C.InsuranceDetailsReview],fields:em[H.C.InsuranceDetailsReview]},onSubmit:E,loading:a.matches({[eo.InsuranceDetailsReview]:eo.Submitting}),hasError:a.matches({[eo.InsuranceDetailsReview]:eo.Error}),defaultValues:a.context.formData});case eo.ApplicationComplete:return(0,i.jsx)(o.Q,{...eu[H.C.ApplicationComplete],email:a.context.formData.email});case eo.ApplicationDetected:return(0,i.jsx)(s.r,{...eu[H.C.ApplicationDetected],email:a.context.formData.email});case eo.ApplicationReview:return(0,i.jsx)(l.l,{...eu[H.C.ApplicationReview]});case eo.EmailVerification:return(0,i.jsx)(m.e,{configuration:{contentResources:{title:eu[H.C.EmailVerification](a.context.formData.email).title}},email:a.context.formData.email,hasError:a.matches({[eo.EmailVerification]:eo.Error}),loading:a.matches({[eo.EmailVerification]:eo.Submitting}),isUpdateEmailLoading:a.matches({[eo.EmailVerification]:{[eo.UpdateEmail]:eo.Idle}}),hasUpdateEmailError:a.matches({[eo.EmailVerification]:{[eo.UpdateEmail]:eo.Error}}),onSubmit:E,onResendCode:e=>D({type:"RESEND_EMAIL_VERIFICATION",data:{onSuccess:e}}),onEditEmail:(e,t)=>D({type:"UPDATE_EMAIL",data:{email:e,onSuccess:t}})});case eo.OnboardingChecklist:return(0,i.jsx)(h.E,{configuration:{contentResources:eu[H.C.OnboardingChecklist]},onSubmit:E});case eo.ReviewConsents:return(0,i.jsx)(b.U,{configuration:{contentResources:eu[H.C.ReviewConsents]},consents:a.context.consentsData.items,hasError:a.matches({[eo.ReviewConsents]:eo.Error}),loading:a.matches({[eo.ReviewConsents]:eo.FetchConsents})||a.matches({[eo.ReviewConsents]:eo.Submitting})||a.matches({[eo.ReviewConsents]:eo.UpdateContact}),onSubmit:E});case eo.CreatePassword:return(0,i.jsx)(u.i,{configuration:{contentResources:eu[H.C.CreatePassword]},loading:a.matches({[eo.CreatePassword]:eo.Submitting}),error:a.context.error,onSubmit:E});case eo.AppDownload:return(0,i.jsx)(n.a,{title:eu[H.C.AppDownload].title,checklist:eu[H.C.AppDownload].checklist});case eo.OnboardingUserError:return(0,i.jsx)(g.C,{});default:return null}},[j,a]);return t({header:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.Flex,{gap:"spacer-5",alignItems:"center",children:[(0,i.jsx)(c.E,{partner:f.fz.Flyte}),(0,i.jsx)(r.Divider,{orientation:"vertical",alignSelf:"stretch",height:"auto"}),(0,i.jsx)(c.E,{partner:f.fz["1199SEIU"]})]}),(0,i.jsx)(d.f,{currentStep:j})]}),body:A(),currentWorkFlowStep:j})}},58892:(e,t,a)=>{a.d(t,{e:()=>s});var i=a(37876),r=a(37477),n=a(14232),o=a(88992);let s=(0,n.forwardRef)((e,t)=>{let{name:a,"aria-label":s,...l}=e,c=(0,n.useRef)(null),d=(0,r.useMergeRefs)(c,t),{watch:S}=(0,o.xW)(),u=S(a)===l.value;return(0,i.jsx)(r.Flex,{as:"label","aria-label":s,flex:"1",onClick:()=>{var e;return null==(e=c.current)?void 0:e.click()},onKeyDown:e=>{if(" "===e.key||"Enter"===e.key){var t;e.preventDefault(),null==(t=c.current)||t.click()}},tabIndex:0,p:"spacer-3",borderWidth:"1px",borderRadius:"radii-2",cursor:"pointer",_hover:{bg:"background-action-hover"},_focusVisible:{outlineColor:"primary-focus",outlineWidth:"3px"},borderColor:u?"primary-default":"ui-element-outline-default",children:(0,i.jsx)(r.Box,{pointerEvents:"none",children:(0,i.jsx)(r.Radio,{ref:d,_focus:{boxShadow:"none"},...l})})})})},59004:(e,t,a)=>{a.d(t,{a:()=>d});var i=a(37876),r=a(37477),n=a(82393),o=a(45383),s=a(19847),l=a(80072);let c=e=>{let{image:t}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.Flex,{justifyContent:"center",width:"100%",pb:{base:"spacer-24",lg:0},children:t?null:(0,i.jsx)(r.Image,{alt:"Application Complete",src:"/static/assets/application-download.png",width:{base:"200px",md:"254px"},height:{base:"200px",md:"254px"}})}),(0,i.jsx)(n.cI,{children:(0,i.jsx)(r.Link,{variant:"primary",size:"l",justifyContent:"center",width:"100%","aria-label":"Download the app",target:"_blank",href:"/api/app-download",children:"Download the app"})})]})},d=e=>{let{title:t,checklist:a,subTitle:n,image:d}=e,S=(0,s.a)();return(0,i.jsxs)(o.s,{gap:{base:"spacer-10",lg:"spacer-16",xl:"spacer-18",xxl:"spacer-64"},alignItems:"start",flexDirection:{base:"column",lg:"row"},"data-test":l.C.AppDownload,children:[(0,i.jsxs)(r.Flex,{direction:"column",justifyContent:{lg:"space-between"},height:"100%",flex:1,children:[t,n,d]}),S?(0,i.jsx)(c,{image:d}):(0,i.jsxs)(r.Flex,{flexDirection:"column",gap:"spacer-9",flex:1,children:[(0,i.jsx)(r.Text,{variant:"text-body-regular",fontWeight:"700",children:"Get Started by downloading the FlyteHealth app"}),a,(0,i.jsx)(r.Flex,{width:"100%",backgroundColor:"background-page-04",justifyContent:"center",padding:"spacer-5",borderRadius:"radii-2",children:(0,i.jsx)(r.Image,{alt:"QR application download",width:"200px",height:"200px",src:"/static/assets/app-qr-download.png"})})]})]})}},61032:(e,t,a)=>{function i(e){var t={diabetes:e.diabetes,bariatric:e.bariatric};let a=["Complete Blood Count (CBC)","Comprehensive Metabolic Panel (CMP)","Folate/Folic Acid Level (Vitamin B9)","Hemoglobin A1C (HbA1c)","High-Sensitivity C-Reactive Protein (hs-CRP)","Insulin Level","Iron Status Panel (Iron, Ferritin, and TIBC)","Kidney Protein Test (Urine Albumin/Creatinine Ratio or ACR)","Cholesterol Panel (Lipid Panel)","Thyroid Function Test (TSH with FT4 reflex)","Vitamin B12 Level","Vitamin D Level (25-OH, total)"];return t.bariatric&&a.push("Copper Level, Blood","Folate Level (Vitamin B9)","Free T3 Level","Free T4 Level","Magnesium Level","Manganese Level, Blood","Methylmalonic Acid and Homocysteine Levels","Parathyroid Hormone (PTH), Intact Without Calcium","Prothrombin Time (PT-INR)","Selenium Level","Thyroid Stimulating Hormone (TSH)","Vitamin A Level (Retinol)","Vitamin B1 Level (Thiamine)","Vitamin B6 Level, Plasma","Vitamin C Level","Vitamin E Level (Tocopherol)","Vitamin K Level","Zinc Level"),t.diabetes&&a.push("C-Peptide Level"),a.sort((e,t)=>e.localeCompare(t))}a.d(t,{o:()=>i})},61415:(e,t,a)=>{a.d(t,{J:()=>o});var i=a(99221),r=a(34305),n=a(68792);let o={[r.fz.Flyte]:e=>{let{bmi:t,comorbidity:a}=e;return t>=30||t>=27&&a===i.Y9.Yes},[r.fz.CareCompass]:e=>{let{birthdate:t,bmi:a,comorbidity:r}=e;return(0,n.Cb)(t)>=18&&(a>=30||a>=27&&r===i.Y9.Yes)},[r.fz.Aetna]:e=>{let{birthdate:t,bmi:a,comorbidity:r}=e;return(0,n.Cb)(t)>=18&&(a>=30||a>=27&&r===i.Y9.Yes)},[r.fz.RiverSpringLiving]:e=>{let{bmi:t}=e;return t>=27},[r.fz.PequotHealthCare]:e=>{let{birthdate:t,bmi:a,comorbidity:r}=e;return(0,n.Cb)(t)>=18&&(a>=30||a>=27&&r===i.Y9.Yes)},[r.fz.PyleFamilyInsurance]:e=>{let{bmi:t}=e;return t>=30},[r.fz.MDSave]:e=>{let{bmi:t,comorbidity:a}=e;return t>=30||t>=27&&a===i.Y9.Yes},[r.fz.ChristianaCare]:e=>{let{birthdate:t,bmi:a,comorbidity:r}=e;return(0,n.Cb)(t)>=18&&(a>=30||a>=27&&r===i.Y9.Yes)},[r.fz.Emory]:e=>{let{birthdate:t,bmi:a,comorbidity:r}=e;return(0,n.Cb)(t)>=18&&(a>=30||a>=27&&r===i.Y9.Yes)},[r.fz["1199SEIU"]]:e=>{let{birthdate:t,bmi:a,comorbidity:r}=e;return(0,n.Cb)(t)>=18&&(a>=35||a>=27&&r===i.Y9.Yes)}}},62344:(e,t,a)=>{a.d(t,{C:()=>i});let i=e=>{let t=new Date,a=new Date(e),i=t.getFullYear()-a.getFullYear(),r=t.getMonth()-a.getMonth();return(r<0||0===r&&t.getDate(){a.d(t,{B:()=>d});var i=a(37876),r=a(37477),n=a(82393),o=a(45383),s=a(19847),l=a(80072),c=a(88992);let d=e=>{let{configuration:t,loading:a=!1,isEmailSent:d=!1,hasError:S=!1,isMobileFooterSticky:u=!0,onSubmit:C}=e,{contentResources:m}=t,p=(0,c.mN)({mode:"onBlur"}),h=(0,s.a)(),g=()=>(0,i.jsx)(r.Button,{type:"submit",size:{base:"m",lg:"l"},isDisabled:!p.formState.isValid||d,width:"100%",isLoading:a,"aria-label":"Keep me posted",children:"Keep me posted"});return(0,i.jsx)(c.Op,{...p,children:(0,i.jsxs)(o.X,{as:"form",onSubmit:p.handleSubmit(C),noValidate:!0,"data-test":l.C.EligibilityUnmet,children:[(0,i.jsx)(o.X.Side,{children:m.title}),(0,i.jsxs)(o.X.Form,{pb:{base:"spacer-24",lg:0},children:[m.alert,(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-L",children:[(0,i.jsx)(r.TextPairing.Label,{children:"We work hard to try to offer our services to everyone who wants them."}),(0,i.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,i.jsx)(n.d5,{isDisabled:a||d}),(0,i.jsx)(n.LP,{inputProps:{isDisabled:a||d}}),h&&u?(0,i.jsx)(n.cI,{children:g()}):g(),d&&(0,i.jsxs)(r.Alert,{status:"success",variant:"subtle",children:[(0,i.jsx)(r.Alert.Icon,{}),(0,i.jsxs)(r.Box,{children:[(0,i.jsx)(r.Alert.Title,{children:(0,i.jsx)(r.Text,{variant:"text-body-bold",children:"Email received"})}),(0,i.jsx)(r.Alert.Description,{children:(0,i.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."})})]})]}),S&&(0,i.jsxs)(r.Alert,{status:"error",variant:"subtle",children:[(0,i.jsx)(r.Alert.Icon,{}),(0,i.jsx)(r.Alert.Title,{children:"There was an error submitting your information. Please review the email address above and try again."})]})]})]})})}},63826:(e,t,a)=>{a.d(t,{h:()=>r,w:()=>i});var i=function(e){return e.FULL_MATCH="FULL_MATCH",e.EXPIRED="EXPIRED",e.PERSON_MATCH="PERSON_MATCH",e.INSURANCE_MATCH="INSURANCE_MATCH",e.NOT_FOUND="NOT_FOUND",e.ELIGIBLE_MATCH="ELIGIBLE_MATCH",e}({}),r=function(e){return e.Evolve="Evolve",e.Pverify="Pverify",e.EvolveAndPverify="Evolve & Pverify",e}({})},66885:(e,t,a)=>{a.d(t,{r:()=>i});let i=e=>"string"==typeof e?e:Object.keys(e)[0]},66952:(e,t,a)=>{a.d(t,{oC:()=>r,xD:()=>n});var i=a(87587);class r extends i.e{constructor(e){super(e,"INVALID_INPUT")}}class n extends i.e{constructor(e){super(e,"INVALID_DATE_FORMAT")}}i.e},67751:(e,t,a)=>{a.d(t,{S:()=>r});var i=a(66952);let r=e=>{let t=e.match(/^(\d{2})[-/](\d{2})[-/](\d{4})$/);if(t)return"".concat(t[3],"-").concat(t[1],"-").concat(t[2]);throw new i.xD("convertDateToISO was given an invalid date format, expected MM/DD/YYYY")}},68792:(e,t,a)=>{a.d(t,{Cb:()=>n.C,Hv:()=>o.H,J0:()=>s.J,S1:()=>l.S,sC:()=>c.s});var i=a(72881),r=a(87587);r.e,r.e,r.e,r.e,r.e,r.e,r.e,r.e;var n=a(62344),o=a(13533),s=a(61415),l=a(67751),c=a(1188)},69443:(e,t,a)=>{a.d(t,{M:()=>o});var i=a(37876),r=a(37477),n=a(80072);let o={[n.C.OnboardingChecklist]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsxs)(r.TextPairing.Label,{color:"text-primary",children:["Welcome to"," ",(0,i.jsx)(r.Text,{as:"span",variant:"text-header-2XL",color:"text-secondary-negative",children:"FlyteHealth!"})]}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"Before we can connect you to your care team, you'll need to:"})]}),checklist:(0,i.jsxs)(r.Flex,{gap:"spacer-9",pb:{base:"spacer-24",lg:0},flexDirection:"column",children:[(0,i.jsxs)(r.Flex,{direction:"row",gap:"spacer-2",children:[(0,i.jsx)(r.IconCircle1,{color:"text-secondary",size:"l"}),(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-M",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"Complete Care Agreements"}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"These allow us to provide care for you"})]})]}),(0,i.jsxs)(r.Flex,{direction:"row",gap:"spacer-2",children:[(0,i.jsx)(r.IconCircle2,{color:"text-secondary",size:"l"}),(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-M",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"Create a Password"}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"So you can log into FlyteHealth and get support along the way."})]})]}),(0,i.jsxs)(r.Flex,{direction:"row",gap:"spacer-2",children:[(0,i.jsx)(r.IconCircle3,{color:"text-secondary",size:"l"}),(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-M",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"Download the App"}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"The patient app helps you prepare for your first visit with a FlyteHealth provider. Log into FlyteHealth and get support along the way."})]})]})]}),checklistWithLabs:(0,i.jsxs)(r.Flex,{gap:"spacer-9",pb:{base:"spacer-24",lg:0},flexDirection:"column",children:[(0,i.jsxs)(r.Flex,{direction:"row",gap:"spacer-2",children:[(0,i.jsx)(r.IconCircle1,{color:"text-secondary",size:"l"}),(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-M",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"Complete Care Agreements"}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"These allow us to provide care for you"})]})]}),(0,i.jsxs)(r.Flex,{direction:"row",gap:"spacer-2",children:[(0,i.jsx)(r.IconCircle2,{color:"text-secondary",size:"l"}),(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-M",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"Create a Password"}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"So you can log into FlyteHealth and get support along the way."})]})]}),(0,i.jsxs)(r.Flex,{direction:"row",gap:"spacer-2",children:[(0,i.jsx)(r.IconCircle3,{color:"text-secondary",size:"l"}),(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-M",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"Request Labs "}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"Request your lab results for FlyteHealth to accurately assess your treatment plan."})]})]}),(0,i.jsxs)(r.Flex,{direction:"row",gap:"spacer-2",children:[(0,i.jsx)(r.IconCircle4,{color:"text-secondary",size:"l"}),(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-M",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"Download the App"}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"The patient app helps you prepare for your first visit with a FlyteHealth provider. Log into FlyteHealth and get support along the way."})]})]})]})},[n.C.CreatePassword]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsxs)(r.TextPairing.Label,{color:"text-primary",children:["Create a"," ",(0,i.jsxs)(r.Text,{as:"span",variant:"text-header-2XL",color:"text-secondary-negative",children:["password"," "]}),"for your account"]}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"Once created, you will use your email and this password to log into the FlyteHealth mobile app."})]})},[n.C.AppDownload]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsxs)(r.TextPairing.Label,{color:"text-primary",children:["Download the"," ",(0,i.jsxs)(r.Text,{as:"span",color:"text-secondary-negative",variant:"text-header-2XL",children:["FlyteHealth"," "]}),"patient app"]}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"Now that your account is ready, use it to log into the patient app and complete the checklist so you can schedule your first visit."})]}),titleLabRequested:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"You’re all set! Your Lab has been Requested"}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"Please check your email for detailed instructions on next steps."})]}),titleLabSubmitted:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"Your lab results have been successfully submitted"}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"Our team will review them shortly and you'll receive an update by email."})]}),titleLabSkipped:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsxs)(r.TextPairing.Label,{color:"text-primary",children:[(0,i.jsx)(r.Text,{as:"span",color:"text-secondary-negative",variant:"text-header-2XL",children:"You’re all set!"})," ","Now Download the FlyteHealth app"]}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"Your FlyteHealth account has been created. You'll use this to log into the FlyteHealth app to take the next steps towards scheduling your first appointment."})]}),checklist:(0,i.jsxs)(r.Flex,{gap:"spacer-6",pb:{base:"spacer-24",lg:0},flexDirection:"column",children:[(0,i.jsxs)(r.Flex,{direction:"row",gap:"spacer-2",children:[(0,i.jsx)(r.IconCircle1,{color:"text-secondary",size:"l"}),(0,i.jsx)(r.Text,{variant:"text-body-regular",color:"text-secondary",children:"Open the camera app on your phone"})]}),(0,i.jsxs)(r.Flex,{direction:"row",gap:"spacer-2",children:[(0,i.jsx)(r.IconCircle2,{color:"text-secondary",size:"l"}),(0,i.jsx)(r.Text,{variant:"text-body-regular",color:"text-secondary",children:"Scan the QR Code below"})]}),(0,i.jsxs)(r.Flex,{direction:"row",gap:"spacer-2",children:[(0,i.jsx)(r.IconCircle3,{color:"text-secondary",size:"l"}),(0,i.jsx)(r.Text,{variant:"text-body-regular",color:"text-secondary",children:"Follow the steps on your phone to download the app"})]})]})},[n.C.ReviewConsents]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"Agree to Receive Care "}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"To begin your health journey, review the following documents."})]})},[n.C.EmailVerification]:e=>({title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsxs)(r.TextPairing.Label,{children:["Enter the"," ",(0,i.jsx)(r.Text,{color:"text-secondary-negative",as:"span",variant:"text-header-2XL",children:"6 digit code"})," ","we've sent you"]}),(0,i.jsxs)(r.TextPairing.SubLabel,{color:"text-secondary",children:["To confirm your email, enter the code we sent to"," ",(0,i.jsx)("b",{children:e})]})]})})}},70587:(e,t,a)=>{a.d(t,{E:()=>d});var i=a(37876),r=a(37477),n=a(82393),o=a(45383),s=a(19847),l=a(80072),c=a(88992);let d=e=>{let{configuration:t,onSubmit:a,showLabs:d=!1}=e,{contentResources:S}=t,u=(0,c.mN)({mode:"onBlur"}),C=(0,s.a)(),m=()=>(0,i.jsx)(r.Button,{type:"submit",size:{base:"m",lg:"l"},width:"100%","aria-label":"Continue",trailingIcon:(0,i.jsx)(r.IconArrowRight,{}),children:"Continue"});return(0,i.jsx)(c.Op,{...u,children:(0,i.jsxs)(o.X,{as:"form",onSubmit:u.handleSubmit(a),noValidate:!0,"data-test":l.C.OnboardingChecklist,children:[(0,i.jsx)(o.X.Side,{gap:"spacer-4",children:S.title}),(0,i.jsxs)(o.X.Form,{children:[d?S.checklistWithLabs:S.checklist,C?(0,i.jsx)(n.cI,{children:m()}):m()]})]})})}},72881:(e,t,a)=>{a.d(t,{$k:()=>r,BG:()=>n,V5:()=>s,mZ:()=>i,r2:()=>o});let i=400,r=401,n=405,o=409,s=500},76692:(e,t,a)=>{a.d(t,{_8:()=>d,Xq:()=>C,kV:()=>x,jP:()=>y,ag:()=>l,uQ:()=>u,JB:()=>g,E6:()=>b});var i=a(37876),r=a(37477),n=a(34305),o=a(14232),s=a(88992);let l="insurance",c=Object.values(n.lk).filter(e=>e!==n.lk.SelfPay),d=e=>{let{label:t="Name of the insurer",isRequired:a=!0,isDisabled:n=!1,defaultSelectedItem:d,insuranceCarriers:S=c,...u}=e,[C,m]=(0,o.useState)(S),{control:p,watch:h}=(0,s.xW)();return(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",...u,children:[(0,i.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:l,children:t}),(0,i.jsx)(s.xI,{control:p,name:l,rules:{required:a},render:e=>{let{field:{onChange:t,onBlur:a}}=e;return(0,i.jsxs)(r.Autocomplete,{id:"".concat(l,"-autocomplete"),items:C,onInputValueChange:e=>{let{inputValue:a}=e;if(!a){m(S),t(a);return}m(S.filter(e=>null==e?void 0:e.toLowerCase().includes(a.toLowerCase())))},onSelectedItemChange:e=>{let{selectedItem:a}=e;return t(a)},initialSelectedItem:d,selectedItem:h(l)||"",children:[(0,i.jsx)(r.Autocomplete.Input,{"data-test":l,id:l,size:"l",placeholder:"Select your insurance carrier",clearButtonMode:n?"never":"has-value",leadingIcon:(0,i.jsx)(r.IconSearch,{}),variant:"flushed",isDisabled:n,onBlur:a}),(0,i.jsx)(r.Autocomplete.List,{"data-test":"".concat(l,"List"),zIndex:2,renderItem:e=>(0,i.jsx)(r.Text,{variant:"text-body-regular",children:e}),overflowY:"auto",maxHeight:"13.5rem"})]})}})]})};var S=a(58892);let u="insuranceCoverage",C=e=>{let{isDisabled:t}=e,{register:a}=(0,s.xW)();return(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-4",children:[(0,i.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",children:"Do you have insurance coverage?"}),(0,i.jsxs)(r.RadioGroup,{display:"flex",flexDirection:"column",gap:"spacer-3",isDisabled:t,"data-test":u,name:u,children:[(0,i.jsx)(S.e,{name:u,value:n.RS.Insured,size:"m",isDisabled:t,...a(u,{required:!0}),children:"Yes, I'd like to check if my insurance can help cover the cost"}),(0,i.jsx)(S.e,{value:n.RS.SelfPay,size:"m",...a(u),name:u,isDisabled:t,children:"No, I will pay for it myself"})]})]})};var m=a(82393),p=a(43400),h=a(82492);let g="insuranceMemberID",x=e=>{let{label:t="Insurance Member ID",placeholder:a,description:n,tooltip:o,type:l,maxLength:c,minLength:d,maskOptions:S,inputMode:u,registerOptions:C,isDisabled:x=!1,isRequired:b=!0,...y}=e,{setValue:f,register:H,formState:{errors:v}}=(0,s.xW)(),I=(0,h.Q)(g,v,["minLength","maxLength","pattern"]);return(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",...y,children:[(0,i.jsxs)(r.Box,{children:[(0,i.jsxs)(r.Flex,{gap:"spacer-2",alignItems:"center",children:[(0,i.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:g,children:t}),o&&(0,i.jsx)(r.Tooltip,{label:o,placement:"auto-end",children:(0,i.jsx)(r.Flex,{children:(0,i.jsx)(r.IconInfoCircle,{size:"m",color:"text-link-primary-default"})})})]}),n]}),(0,i.jsx)(p.I,{"data-test":g,id:g,isInvalid:I,isDisabled:x,placeholder:a,type:l,inputMode:u,maxLength:c,minLength:d,maskOptions:S,onInput:e=>{let t=e.currentTarget.value,a=!d||d&&t.length>=d;f(g,t,{shouldValidate:a})},...H(g,{required:b,...C})}),I&&(0,i.jsx)(m.gO,{errors:v,name:g})]})},b="insuranceOther",y=e=>{let{label:t="Name of your Insurer",isRequired:a=!0,description:n,isDisabled:o=!1,...l}=e,{register:c}=(0,s.xW)();return(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",...l,children:[(0,i.jsxs)(r.Box,{children:[(0,i.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",children:t}),n]}),(0,i.jsx)(r.Input,{"data-test":b,"aria-label":"Insurer company name",placeholder:"Insurance company name",isRequired:a,type:"text",size:"l",variant:"flushed",isDisabled:o,...c(b,{required:a})})]})}},76803:(e,t,a)=>{a.d(t,{Z:()=>ep});var i=a(37876),r=a(37477),n=a(59004),o=a(91366),s=a(48934),l=a(14901),c=a(44585),d=a(80075),S=a(6770),u=a(39946),C=a(63583),m=a(53154),p=a(30435),h=a(42037),g=a(70587),x=a(11427),b=a(86535),y=a(27297),f=a(43483),H=a(81488),v=a(93511),I=a(34305),R=a(80072),D=a(66885),j=a(62227),E=a(14232),w=a(11969),A=a(10758),L=a(85007),T=a(20411),M=a(31346),k=a(38360),P=a(39648),U=a(87665),B=a(47353),F=a(83928),O=a(33841),z=a(92323),N=a(86687),_=a(89225),W=a(97793),X=a(68792),V=a(13751),q=a(65159),Y=a(39777),K=a(45352),G=a(63826);let Q=["031800000H","031800000S","031800001H","031800001S","031801001A","031801001H","031801001S","031801002A","031801002H","031801002S","031801003A","031801003H","031801003S","031801004H","031801004S","031801005A","031801005H","031801005S","031801006A","031801006H","031801006S","031802000H","031802000S","031802004H","031802004S","031802055H","031802055S","031803000H","031803000S","031804000H","031804000S","031805000A","031805000H","031805000S","031805001A","031805001H","031805001S","031805002A","031805002H","031805002S","031806000H","031806000S","031808000H","031808000S","031808055H","031808055S","031809055H","031809055S","031809056H","031809056S","031809057H","031809057S","031809058H","031809058S","031809059H","031809059S","031810000H","031810000S","031810004H","031810004S","031810055H","031810055S","031811000H","031811000S","031811001H","031811001S","031812000H","031812000S","031812001H","031812001S","031813001H","031813001S","031814000H","031814000S","031815000H","031815000S","031820004H","031820004S","031821000H","031821000S","031822000H","031822000S","031827000H","031827000S","031830000H","031830000S","031830001H","031830001S","031830002H","031830002S","031830003H","031830003S","031831000H","031831000S","031832000H","031832000S","031833000H","031833000S","031835000H","031835000S","031836004H","031836004S","031839000H","031839000S","031843000H","031843000S","031843002H","031843002S","031844000H","031844000S","031844003H","031844003S","031844006H","031844006S","031844007A","031844008A","031845000H","031845000S","031846001H","031846001S","031846002H","031846002S","031847000H","031847000S","031848000H","031848000S","031848003H","031848003S","031849015H","031849015S","031849017H","031849017S","031850001H","031850001S","031851000A","031851000H","031851000S","031851002A","031851002H","031851002S","031851003A","031851003H","031851003S","031851004A","031851004H","031851004S","031851009A","031851009H","031851009S","031851010A","031851010H","031851010S","031851013A","031851013H","031851013S","031851023A","031851023H","031851023S","031853000H","031853000S","031855000H","031855000S","031856000H","031856000S","031856001H","031856001S","031857000H","031857000S","031858000A","031858000H","031858000S","031859002A","031859002H","031859002S","031859008A","031859008H","031859008S","031859011A","031859011H","031859011S","031860000H","031860000S","031860002H","031860002S","031862004H","031862004S","031863011A","031863011H","031863011S","031863016H","031863016S","031863017H","031863017S","031864000A","031864000H","031864000S","031865001H","031865001S","031865002H","031865002S","031867000H","031867000S","031867001H","031867001S","031867002H","031867002S","031867003H","031867003S","031868001A","031869001S","031871000H","031871000S","031871001S","031871002A","031872000H","031872000S","031872001H","031872001S","031872002H","031872002S","031872003H","031872003S","031873001H","031873001S","031874000H","031874000S","031874003H","031874003S","031877000H","031877000S","031877001H","031877001S","031877058A","031877061A","031877065A","031877070A","031877071A","031878000H","031878000S","031879000H","031879000S","031880005H","031880005S","031881000H","031881000S","031881001A","031881001H","031881001S","031881002H","031881002S","031881003H","031881003S","031881004H","031881004S","031882000H","031882000S","031883000H","031883000S","031884000A","031884000H","031884000S","031885000H","031885000S","031886000A","031886000H","031886000S","031888000H","031888000S","031888001H","031888001S","031889043A","031889044H","031889044S","031889046A","031889047A","031889048A","031889143A","031889143B","031889144A","031889144B","031889146A","031889146B","031889147A","031889147B","031889243H","031889243S","031889244A","031889246H","031889246S","031889343H","031889343S","031889346A","031890004H","031890004S","031890010A","031891000H","031891000S","031892000H","031892000S","031894000H","031894000S","031895000H","031895000S","031895001H","031895001S","031895002H","031895002S","031895003H","031895003S","031895004H","031895004S","031895005H","031895005S","031895006H","031895006S","031895102H","031895102S","031895103H","031895103S","031895104H","031895104S","031896000H","031896000S","031896001H","031896001S","031898000H","031898000S","031899000H","031899000S","041800000H","041800000S","041800001H","041800001S","041801001A","041801001H","041801001S","041801002A","041801002H","041801002S","041801003A","041801003H","041801003S","041801004H","041801004S","041801005A","041801005H","041801005S","041801006A","041801006H","041801006S","041802000H","041802000S","041802004H","041802004S","041802055H","041802055S","041803000H","041803000S","041804000H","041804000S","041805000A","041805000H","041805000S","041805001A","041805001H","041805001S","041805002A","041805002H","041805002S","041806000H","041806000S","041808000H","041808000S","041808055H","041808055S","041809055H","041809055S","041809056H","041809056S","041809057H","041809057S","041809058H","041809058S","041809059H","041809059S","041810000H","041810000S","041810004H","041810004S","041810055H","041810055S","041811000H","041811000S","041811001H","041811001S","041812000H","041812000S","041812001H","041812001S","041813001H","041813001S","041814000H","041814000S","041815000H","041815000S","041820004H","041820004S","041821000H","041821000S","041822000H","041822000S","041827000H","041827000S","041830000H","041830000S","041830001H","041830001S","041830002H","041830002S","041830003H","041830003S","041831000H","041831000S","041832000H","041832000S","041833000H","041833000S","041835000H","041835000S","041836004H","041836004S","041839000H","041839000S","041843000H","041843000S","041843002H","041843002S","041844000H","041844000S","041844003H","041844003S","041844006H","041844006S","041844008A","041844408A","041845000H","041845000S","041846001H","041846001S","041846002H","041846002S","041847000H","041847000S","041848000H","041848000S","041848003H","041848003S","041849015H","041849015S","041849017H","041849017S","041850001H","041850001S","041851000A","041851000H","041851000S","041851002A","041851002H","041851002S","041851003A","041851003H","041851003S","041851004A","041851004H","041851004S","041851009A","041851009H","041851009S","041851010A","041851010H","041851010S","041851013A","041851013H","041851013S","041851023A","041851023H","041851023S","041853000H","041853000S","041855000H","041855000S","041856000H","041856000S","041856001H","041856001S","041857000H","041857000S","041858000A","041858000H","041858000S","041859002A","041859002H","041859002S","041859008A","041859008H","041859008S","041859011A","041859011H","041859011S","041860000H","041860000S","041860002H","041860002S","041862004H","041862004S","041863011A","041863011H","041863011S","041863016H","041863016S","041863017H","041863017S","041864000A","041864000H","041864000S","041865001H","041865001S","041865002H","041865002S","041867000H","041867000S","041867001H","041867001S","041867002H","041867002S","041868001A","041869001S","041871000H","041871000S","041871001A","041871002A","041872000H","041872000S","041872001H","041872001S","041872002H","041872002S","041872003H","041872003S","041873001H","041873001S","041874000H","041874000S","041874001H","041874001S","041874003H","041874003S","041877000H","041877000S","041877001H","041877001S","041877050A","041877051A","041877058A","041877059A","041877065A","041877066A","041877070A","041877071A","041877408A","041878000H","041878000S","041879000H","041879000S","041880003H","041880003S","041880005H","041880005S","041881000H","041881000S","041881001A","041881001H","041881001S","041881002H","041881002S","041881003H","041881003S","041881004H","041881004S","041882000H","041882000S","041883000H","041883000S","041884000A","041884000H","041884000S","041885000H","041885000S","041886000A","041886000H","041886000S","041888000H","041888000S","041888001H","041888001S","041889009A","041889010A","041889040A","041889043A","041889044H","041889044S","041889045A","041889046A","041889049A","041889140A","041889140B","041889145A","041889145B","041889146A","041889146B","041889147A","041889147B","041889149A","041889149B","041889244A","041889245H","041889245S","041889249H","041889249S","041889345H","041889345S","041889346A","041890004H","041890004S","041890010A","041890011A","041890410A","041891000H","041891000S","041892000H","041892000S","041894000H","041894000S","041895000H","041895000S","041895001H","041895001S","041895002H","041895002S","041895003H","041895003S","041895004H","041895004S","041895005H","041895005S","041895006H","041895006S","041895102H","041895102S","041895103H","041895103S","041895104H","041895104S","041896000H","041896000S","041896001H","041896001S","041898000H","041898000S","041899000H","041899000S","051800000H","051800000S","051800001H","051800001S","051801001A","051801001H","051801001S","051801002A","051801002H","051801002S","051801003A","051801003H","051801003S","051801004H","051801004S","051801005A","051801005H","051801005S","051801006A","051801006H","051801006S","051802000H","051802000S","051802004H","051802004S","051803000H","051803000S","051804000H","051804000S","051805000A","051805000H","051805000S","051805001A","051805001H","051805001S","051805002A","051805002H","051805002S","051806000H","051806000S","051808000H","051808000S","051808055H","051808055S","051809055H","051809055S","051809056H","051809056S","051809057H","051809057S","051809058H","051809058S","051809059H","051809059S","051810000H","051810000S","051810004H","051810004S","051810055H","051810055S","051811001H","051811001S","051812000H","051812000S","051812001H","051812001S","051813001H","051813001S","051814000H","051814000S","051815000H","051815000S","051820004H","051820004S","051821000H","051821000S","051827000H","051827000S","051830000H","051830000S","051830001H","051830001S","051830002H","051830002S","051830003H","051830003S","051831000H","051831000S","051832000H","051832000S","051833000H","051833000S","051835000H","051835000S","051836004H","051836004S","051839000H","051839000S","051843000H","051843000S","051844000H","051844000S","051844003H","051844003S","051844006H","051844006S","051845000H","051845000S","051846001H","051846001S","051846002H","051846002S","051847000H","051847000S","051848000H","051848000S","051848003H","051848003S","051849015H","051849015S","051849017H","051849017S","051850001H","051850001S","051851000A","051851000H","051851000S","051851002A","051851002H","051851002S","051851003A","051851003H","051851003S","051851004A","051851004H","051851004S","051851009A","051851009H","051851009S","051851010A","051851010H","051851010S","051851013A","051851013H","051851013S","051851023A","051851023H","051851023S","051853000H","051853000S","051855000H","051855000S","051856000H","051856000S","051856001H","051856001S","051857000H","051857000S","051858000A","051858000H","051858000S","051859002A","051859002H","051859002S","051859008A","051859008H","051859008S","051859011A","051859011H","051859011S","051860000H","051860000S","051860002H","051860002S","051862004H","051862004S","051863011A","051863011H","051863011S","051863016H","051863016S","051863017H","051863017S","051864000A","051864000H","051864000S","051865002H","051865002S","051867000H","051867000S","051867001H","051867001S","051869001S","051871000H","051871000S","051872001H","051872001S","051872003H","051872003S","051873001H","051873001S","051874000H","051874000S","051874003H","051874003S","051877000H","051877000S","051877001H","051877001S","051877058A","051877070A","051877071A","051878000H","051878000S","051880005H","051880005S","051881001A","051881001H","051881001S","051881002H","051881002S","051881003H","051881003S","051881004H","051881004S","051882000H","051882000S","051883000H","051883000S","051884000A","051884000H","051884000S","051885000H","051885000S","051886000A","051886000H","051886000S","051888000H","051888000S","051888001H","051888001S","051889008A","051889040A","051889043A","051889044H","051889044S","051889046A","051889047A","051889140A","051889140B","051889143A","051889143B","051889146A","051889146B","051889147A","051889147B","051889243H","051889243S","051889244A","051889246H","051889246S","051889343H","051889343S","051889346A","051890004H","051890004S","051892000H","051892000S","051895000H","051895000S","051895001H","051895001S","051895002H","051895002S","051895003H","051895003S","051895004H","051895004S","051895005H","051895005S","051895006H","051895006S","051895102H","051895102S","051895103H","051895103S","051895104H","051895104S","051896000H","051896000S","051896001H","051896001S","051899000H","051899000S","061800000H","061800000S","061800001H","061800001S","061801001A","061801001H","061801001S","061801002A","061801002H","061801002S","061801003A","061801003H","061801003S","061801004H","061801004S","061801005A","061801005H","061801005S","061801006A","061801006H","061801006S","061802000H","061802000S","061802004H","061802004S","061802055H","061802055S","061803000H","061803000S","061804000H","061804000S","061805000A","061805000H","061805000S","061805001A","061805001H","061805001S","061805002A","061805002H","061805002S","061806000H","061806000S","061808000H","061808000S","061808055H","061808055S","061809055H","061809055S","061809056H","061809056S","061809057H","061809057S","061809058H","061809058S","061809059H","061809059S","061810000H","061810000S","061810004H","061810004S","061810055H","061810055S","061811001H","061811001S","061812000H","061812000S","061812001H","061812001S","061813001H","061813001S","061814000H","061814000S","061815000H","061815000S","061820004H","061820004S","061821000H","061821000S","061822000H","061822000S","061827000H","061827000S","061830000H","061830000S","061830001H","061830001S","061830002H","061830002S","061830003H","061830003S","061831000H","061831000S","061832000H","061832000S","061833000H","061833000S","061835000H","061835000S","061836004H","061836004S","061839000H","061839000S","061843000H","061843000S","061843002H","061843002S","061844000H","061844000S","061844003H","061844003S","061844006H","061844006S","061845000H","061845000S","061846001H","061846001S","061846002H","061846002S","061847000H","061847000S","061848000H","061848000S","061848003H","061848003S","061849015H","061849015S","061849017H","061849017S","061850001H","061850001S","061851000A","061851000H","061851000S","061851002A","061851002H","061851002S","061851003A","061851003H","061851003S","061851004A","061851004H","061851004S","061851009A","061851009H","061851009S","061851010A","061851010H","061851010S","061851013A","061851013H","061851013S","061851023A","061851023H","061851023S","061853000H","061853000S","061855000H","061855000S","061856000H","061856000S","061856001H","061856001S","061857000H","061857000S","061858000A","061858000H","061858000S","061859002A","061859002H","061859002S","061859008A","061859008H","061859008S","061859011A","061859011H","061859011S","061860000H","061860000S","061860002H","061860002S","061862004H","061862004S","061863011A","061863011H","061863011S","061863016H","061863016S","061863017H","061863017S","061864000A","061864000H","061864000S","061865001H","061865001S","061865002H","061865002S","061867000H","061867000S","061867001H","061867001S","061867002H","061867002S","061867003H","061867003S","061868001H","061868001S","061869001H","061869001S","061871000H","061871000S","061871001A","061871002A","061872000H","061872000S","061872001H","061872001S","061872002H","061872002S","061872003H","061872003S","061873001H","061873001S","061874000H","061874000S","061874001H","061874001S","061874003H","061874003S","061877000H","061877000S","061877001H","061877001S","061877058A","061877060A","061877061A","061877070A","061877071A","061877408A","061877410A","061878000H","061878000S","061879000H","061879000S","061880003H","061880003S","061880005H","061880005S","061881000H","061881000S","061881001A","061881001H","061881001S","061881002H","061881002S","061881003H","061881003S","061881004H","061881004S","061882000H","061882000S","061883000H","061883000S","061884000A","061884000H","061884000S","061885000H","061885000S","061886000A","061886000H","061886000S","061888000H","061888000S","061888001H","061888001S","061889008A","061889043A","061889046A","061889143A","061889143B","061889146A","061889146B","061889147A","061889147B","061889243H","061889243S","061889244A","061889246H","061889246S","061889343H","061889343S","061889346A","061890004H","061890004S","061890010A","061891000H","061891000S","061892000H","061892000S","061894000H","061894000S","061895000H","061895000S","061895001H","061895001S","061895002H","061895002S","061895003H","061895003S","061895004H","061895004S","061895005H","061895005S","061895006H","061895006S","061895102H","061895102S","061895103H","061895103S","061895104H","061895104S","061896000H","061896000S","061896001H","061896001S","061898000H","061898000S","061899000H","061899000S","071800000H","071800000S","071800001H","071800001S","071801001A","071801001H","071801001S","071801002A","071801002H","071801002S","071801003A","071801003H","071801003S","071801004H","071801004S","071801005A","071801005H","071801005S","071801006A","071801006H","071801006S","071802000H","071802000S","071802004H","071802004S","071802055H","071802055S","071803000H","071803000S","071804000H","071804000S","071805000A","071805000H","071805000S","071805001A","071805001H","071805001S","071805002A","071805002H","071805002S","071806000H","071806000S","071808000H","071808000S","071808055H","071808055S","071809055H","071809055S","071809056H","071809056S","071809057H","071809057S","071809058H","071809058S","071809059H","071809059S","071810000H","071810000S","071810004H","071810004S","071810055H","071810055S","071811000H","071811000S","071811001H","071811001S","071812000H","071812000S","071812001H","071812001S","071813001H","071813001S","071814000H","071814000S","071815000H","071815000S","071820004H","071820004S","071821000H","071821000S","071822000H","071822000S","071827000H","071827000S","071830000H","071830000S","071830001H","071830001S","071830002H","071830002S","071830003H","071830003S","071831000H","071831000S","071832000H","071832000S","071833000H","071833000S","071835000H","071835000S","071836004H","071836004S","071839000H","071839000S","071843000H","071843000S","071843002H","071843002S","071844000H","071844000S","071844003H","071844003S","071844006H","071844006S","071845000H","071845000S","071846001H","071846001S","071846002H","071846002S","071847000H","071847000S","071848000H","071848000S","071848003H","071848003S","071849015H","071849015S","071849017H","071849017S","071850001H","071850001S","071851000A","071851000H","071851000S","071851002A","071851002H","071851002S","071851003A","071851003H","071851003S","071851004A","071851004H","071851004S","071851009A","071851009H","071851009S","071851010A","071851010H","071851010S","071851013A","071851013H","071851013S","071851023A","071851023H","071851023S","071853000H","071853000S","071855000H","071855000S","071856000H","071856000S","071856001H","071856001S","071857000H","071857000S","071858000A","071858000H","071858000S","071859002A","071859002H","071859002S","071859008A","071859008H","071859008S","071859011A","071859011H","071859011S","071860000H","071860000S","071860002H","071860002S","071862004H","071862004S","071863011A","071863011H","071863011S","071863016H","071863016S","071863017H","071863017S","071864000A","071864000H","071864000S","071865001H","071865001S","071865002H","071865002S","071867000H","071867000S","071867001H","071867001S","071867002H","071867002S","071867003H","071867003S","071868001A","071869001S","071871000H","071871000S","071871001S","071871002A","071872000H","071872000S","071872001H","071872001S","071872002H","071872002S","071872003H","071872003S","071873001H","071873001S","071874000H","071874000S","071874001H","071874001S","071874003H","071874003S","071877000H","071877000S","071877001H","071877001S","071877058A","071877059A","071877060A","071877070A","071877071A","071877408A","071878000H","071878000S","071879000H","071879000S","071879001A","071880003H","071880003S","071880005H","071880005S","071881000H","071881000S","071881001A","071881001H","071881001S","071881002H","071881002S","071881003H","071881003S","071881004H","071881004S","071882000H","071882000S","071883000H","071883000S","071884000A","071884000H","071884000S","071885000H","071885000S","071886000A","071886000H","071886000S","071888000H","071888000S","071888001H","071888001S","071889008A","071889040A","071889043A","071889044H","071889044S","071889046A","071889140A","071889140B","071889143A","071889143B","071889146A","071889146B","071889147A","071889147B","071889243H","071889243S","071889244A","071889246H","071889246S","071889343H","071889343S","071889346A","071890004H","071890004S","071890010A","071890410A","071891000H","071891000S","071892000H","071892000S","071894000H","071894000S","071895000H","071895000S","071895001H","071895001S","071895002H","071895002S","071895003H","071895003S","071895004H","071895004S","071895005H","071895005S","071895006H","071895006S","071895102H","071895102S","071895103H","071895103S","071895104H","071895104S","071896000H","071896000S","071896001H","071896001S","071898000H","071898000S","071899000H","071899000S","081800000H","081800000S","081800001H","081800001S","081801001A","081801001H","081801001S","081801002A","081801002H","081801002S","081801003A","081801003H","081801003S","081801004H","081801004S","081801005A","081801005H","081801005S","081801006A","081801006H","081801006S","081802000H","081802000S","081802004H","081802004S","081802055H","081802055S","081803000H","081803000S","081804000H","081804000S","081805000A","081805000H","081805000S","081805001A","081805001H","081805001S","081805002A","081805002H","081805002S","081806000H","081806000S","081808000H","081808000S","081808055H","081808055S","081809055H","081809055S","081809056H","081809056S","081809057H","081809057S","081809058H","081809058S","081809059H","081809059S","081810000H","081810000S","081810004H","081810004S","081810055H","081810055S","081811000H","081811000S","081811001H","081811001S","081812000H","081812000S","081812001H","081812001S","081813001H","081813001S","081814000H","081814000S","081815000H","081815000S","081820004H","081820004S","081821000H","081821000S","081822000H","081822000S","081827000H","081827000S","081830000H","081830000S","081830001H","081830001S","081830002H","081830002S","081830003H","081830003S","081831000H","081831000S","081832000H","081832000S","081833000H","081833000S","081835000H","081835000S","081836004H","081836004S","081839000H","081839000S","081843000H","081843000S","081843002H","081843002S","081844000H","081844000S","081844003H","081844003S","081844006H","081844006S","081845000H","081845000S","081846001H","081846001S","081846002H","081846002S","081847000H","081847000S","081848000H","081848000S","081848003H","081848003S","081849015H","081849015S","081849017H","081849017S","081850001H","081850001S","081851000A","081851000H","081851000S","081851002A","081851002H","081851002S","081851003A","081851003H","081851003S","081851004A","081851004H","081851004S","081851009A","081851009H","081851009S","081851010A","081851010H","081851010S","081851013A","081851013H","081851013S","081851023A","081851023H","081851023S","081853000H","081853000S","081855000H","081855000S","081856000H","081856000S","081856001H","081856001S","081857000H","081857000S","081858000A","081858000H","081858000S","081859002A","081859002H","081859002S","081859008A","081859008H","081859008S","081859011A","081859011H","081859011S","081860000H","081860000S","081860002H","081860002S","081862004H","081862004S","081863011A","081863011H","081863011S","081863016H","081863016S","081863017H","081863017S","081864000A","081864000H","081864000S","081865001H","081865001S","081865002H","081865002S","081867000H","081867000S","081867001H","081867001S","081867002H","081867002S","081867003H","081867003S","081868001A","081869001S","081871000H","081871000S","081871001S","081871002A","081872000H","081872000S","081872001H","081872001S","081872002H","081872002S","081872003H","081872003S","081873001H","081873001S","081874000H","081874000S","081874001H","081874001S","081874003H","081874003S","081877000H","081877000S","081877001H","081877001S","081877058A","081877059A","081877060A","081877070A","081877071A","081877408A","081878000H","081878000S","081879000H","081879000S","081879001A","081880003H","081880003S","081880005H","081880005S","081881000H","081881000S","081881001A","081881001H","081881001S","081881002H","081881002S","081881003H","081881003S","081881004H","081881004S","081882000H","081882000S","081883000H","081883000S","081884000A","081884000H","081884000S","081885000H","081885000S","081886000A","081886000H","081886000S","081888000H","081888000S","081888001H","081888001S","081889008A","081889009A","081889040A","081889043A","081889044H","081889044S","081889046A","081889140A","081889140B","081889143A","081889143B","081889146A","081889146B","081889147A","081889147B","081889243H","081889243S","081889244A","081889246H","081889246S","081889343H","081889343S","081889346A","081890004H","081890004S","081890010A","081890410A","081891000H","081891000S","081892000H","081892000S","081894000H","081894000S","081895000H","081895000S","081895001H","081895001S","081895002H","081895002S","081895003H","081895003S","081895004H","081895004S","081895005H","081895005S","081895006H","081895006S","081895102H","081895102S","081895103H","081895103S","081895104H","081895104S","081896000H","081896000S","081896001H","081896001S","081898000H","081898000S","081899000H","081899000S","CS0001000C","CS0001000H","CS0001M001","CS000200HR","CS0002M001","CS000200SR","CS0002000H","CS0002000S","CS0002000C","CS0004000H","CS0004000S","CS0004M001","CS0004000C","CS0005M001","CS0005000S","CS0005000C","CS0005000H","CS0007004H","CS0007002H","CS0007000H","CS0007003S","CS0007000S","CS0007001H","CS0007004S","CS0007000C","CS0007003H","CS0007002S","CS0007001S","CS0007M001","CS0008000S","CS0008M001","CS0008000H","CS0008000C","CS000902HR","CS0009007H","CS000909HR","CS000901SR","CS0009010H","CS0009006H","CS000902SR","CS000906SR","CS0009001S","CS000905HR","CS000911HR","CS000906HR","CS0009005S","CS000910SR","CS0009004S","CS000901HR","CS0009010S","CS000904HR","CS000910HR","CS0009009H","CS000905SR","CS0009006S","CS0009008H","CS0009004H","CS0009003H","CS000903HR","CS0009002C","CS0009009S","CS000907SR","CS0009002H","CS000903SR","CS0009000C","CS000909SR","CS0009003C","CS0009001H","CS0009011S","CS000908SR","CS0009008S","CS0009005H","CS0009000H","CS0009002S","CS000904SR","CS000908HR","CS000900HR","CS000907HR","CS0009003S","CS0009M001","CS0009001C","CS000911SR","CS0009011H","CS0009007S","CS0009000S","CS000900SR","CS0010000S","CS0010000C","CS0010M001","CS0010000H","CS0011M001","CS0011000H","CS0011000S","CS0011000C","CS0012000S","CS0012M001","CS0012000C","CS0012000H","CS001301SR","CS0013005H","CS0013001H","CS001300HR","CS0013006H","CS0013M001","CS0013002H","CS0013005S","CS0013000C","CS0013001S","CS0013000S","CS0013006S","CS0013003H","CS0013000H","CS0013004S","CS0013004H","CS0013002S","CS001300SR","CS001301HR","CS0013003S","CS0014M001","CS0014000S","CS0014000C","CS0014000H","CS0015013S","CS0015012S","CS0015026S","CS0015004H","CS0015011H","CS0015017S","CS0015022H","CS0015018S","CS001507HR","CS0015018H","CS001500HR","CS0015010S","CS0015013H","CS0015010H","CS0015M001","CS001505SR","CS001507SR","CS001502HR","CS001503HR","CS0015007H","CS0015017H","CS0015012H","CS0015015S","CS0015025S","CS0015005S","CS0015022S","CS0015005H","CS0015003H","CS0015026H","CS0015011S","CS0015025H","CS0015019H","CS0015021S","CS0015016H","CS0015020H","CS0015016S","CS001505HR","CS0015003S","CS0015001H","CS0015023H","CS0015019S","CS001506SR","CS0015009S","CS0015024H","CS001502SR","CS0015015H","CS0015023S","CS001501SR","CS0015008S","CS0015001C","CS0015014H","CS001506HR","CS0015028H","CS0015006H","CS0015002S","CS0015027H","CS0015014S","CS001500SR","CS0015027S","CS0015000H","CS0015021H","CS0015004S","CS0015007S","CS001501HR","CS0015000C","CS001503SR","CS0015020S","CS0015024S","CS0015000S","CS0015008H","CS0015001S","CS0015002H","CS0015006S","CS001504HR","CS0015009H","CS001504SR","CS0016000H","CS0016000C","CS0016M001","CS001600SR","CS0016001S","CS001600HR","CS0016000S","CS0016005S","CS0016004H","CS0016003S","CS0016002H","CS0016005H","CS001601HR","CS0016002S","CS0016003H","CS0016001H","CS0016004S","CS001601SR","CS0017004H","CS0017003S","CS0017002S","CS0017001H","CS0017001S","CS001700SR","CS0017000H","CS0017003H","CS0017000S","CS001700HR","CS0017000C","CS0017004S","CS0017M001","CS0017002H","CS001801HR","CS0018M001","CS001800SR","CS001801SR","CS0018000H","CS001800HR","CS0018000S","CS0018000C","CS0020002S","CS0020M001","CS0020000H","CS0020006H","CS0020000S","CS0020000C","CS002000HR","CS002000SR","CS0020005H","CS0020003H","CS002001SR","CS0020004H","CS0020004S","CS0020006S","CS0020005S","CS0020001H","CS0020003S","CS002001HR","CS0020001S","CS0020002H","CS002130SR","CS002128SR","CS002105SR","CS002127HR","CS0021023S","CS002118HR","CS002128HR","CS002124HR","CS002101HR","CS002104SR","CS002127SR","CS0021011H","CS0021020S","CS0021005H","CS0021008S","CS002108HR","CS002112SR","CS0021021H","CS002100HR","CS0021000H","CS0021002S","CS0021016S","CS0021006H","CS0021014H","CS002120SR","CS002117HR","CS0021026H","CS002113SR","CS002103SR","CS002110HR","CS002126SR","CS002116SR","CS0021016H","CS0021009H","CS0021015S","CS002121HR","CS002130HR","CS0021023H","CS002131HR","CS0021002H","CS0021007S","CS002124SR","CS0021022S","CS002117SR","CS0021020H","CS0021013S","CS0021022H","CS002113HR","CS002107HR","CS002115SR","CS0021010H","CS0021014S","CS0021000S","CS0021012H","CS002108SR","CS002123SR","CS002114SR","CS0021015H","CS002129SR","CS0021011S","CS002102HR","CS002129HR","CS002104HR","CS0021018S","CS002120HR","CS002103HR","CS0021003H","CS0021000C","CS0021003S","CS002118SR","CS002119HR","CS0021006S","CS0021019H","CS0021027H","CS002109HR","CS0021026S","CS0021012S","CS002123HR","CS002116HR","CS002122HR","CS0021027S","CS0021005S","CS0021024H","CS0021017H","CS002111HR","CS002110SR","CS0021001S","CS002126HR","CS002100SR","CS002125SR","CS0021025S","CS002114HR","CS0021010S","CS002109SR","CS002102SR","CS0021025H","CS0021001H","CS002111SR","CS002105HR","CS0021007H","CS0021024S","CS002125HR","CS002115HR","CS002131SR","CS0021017S","CS002112HR","CS002119SR","CS0021019S","CS002101SR","CS0021008H","CS0021004H","CS002107SR","CS0021021S","CS002122SR","CS0021M001","CS0021009S","CS002106SR","CS0021013H","CS002106HR","CS0021018H","CS002121SR","CS0021004S","CS0022000C","CS0022000H","CS0022000S","CS0022M001","CS0023000H","CS0023000S","CS0023000C","CS0023M001","CS0024000C","CS0024000H","CS0024M001","CS0024000S","CS0025002H","CS002501HR","CS0025009S","CS002504HR","CS002501SR","CS002503HR","CS0025007S","CS0025008S","CS002505HR","CS002500HR","CS0025010H","CS002502SR","CS0025000H","CS0025006S","CS0025006H","CS0025000C","CS002507SR","CS0025M001","CS002504SR","CS0025007H","CS002500SR","CS002502HR","CS0025004S","CS0025002S","CS0025011S","CS0025009H","CS0025004H","CS0025011H","CS002505SR","CS0025010S","CS0025005H","CS002506HR","CS0025001H","CS002507HR","CS0025003S","CS0025005S","CS002503SR","CS0025001S","CS0025008H","CS002506SR","CS0025003H","CS0025000S","CS002601HR","CS0026001S","CS002601SR","CS0026000C","CS0026002S","CS0026M001","CS0026000S","CS0026003S","CS0026000H","CS0026001H","CS002600HR","CS0026003H","CS002600SR","CS0026002H","CS0028M001","CS0028000H","CS0028000S","CS0028000C","CS0029000S","CS0029000C","CS0029000H","CS0029M001","CS0032000S","CS0032M001","CS0032000H","CS0032000C","CS0034000H","CS0034000C","CS0034M001","CS0034000S","CS0035010H","CS0035002S","CS0035012S","CS003505SR","CS0035004C","CS003509HR","CS0035013S","CS0035008S","CS003500SR","CS0035000S","CS0035011H","CS003506SR","CS0035007C","CS0035009C","CS003506HR","CS0035006C","CS003502SR","CS0035002C","CS003503HR","CS0035010S","CS003509SR","CS0035003S","CS003504HR","CS003500HR","CS0035006H","CS0035007H","CS0035012H","CS0035005S","CS0035004H","CS003501SR","CS0035010C","CS0035008H","CS0035M001","CS0035005C","CS003507HR","CS0035002H","CS0035000H","CS0035000C","CS0035004S","CS003501HR","CS0035001H","CS003508SR","CS0035003H","CS0035001S","CS0035003C","CS0035008C","CS003504SR","CS0035009S","CS0035013H","CS003505HR","CS0035001C","CS0035005H","CS003507SR","CS0035011C","CS0035007S","CS003503SR","CS003508HR","CS0035006S","CS0035009H","CS0035011S","CS003502HR","CS0037001S","CS0037000C","CS003701SR","CS0037003H","CS0037000S","CS003700SR","CS0037003S","CS0037002H","CS0037002S","CS0037001C","CS0037M001","CS003700HR","CS0037001H","CS003701HR","CS0037000H","CS0038000S","CS0038M001","CS0038000C","CS0038000H","CS003901SR","CS0039000S","CS0039000H","CS0039003S","CS0039000C","CS0039001S","CS003900SR","CS0039001C","CS003900HR","CS0039002S","CS0039M001","CS0039002H","CS0039001H","CS003901HR","CS0039003H","CS004002SR","CS0040000S","CS004000HR","CS0040003S","CS0040001S","CS0040003H","CS0040000H","CS0040002H","CS0040001H","CS004000SR","CS0040002S","CS004002HR","CS0040000C","CS0040M001","CS004104SR","CS004100SR","CS004109SR","CS0041011H","CS0041004H","CS004102HR","CS004101SR","CS004111SR","CS004110SR","CS0041004S","CS0041008S","CS0041005S","CS004107HR","CS0041003H","CS004106SR","CS0041002S","CS004105HR","CS004112SR","CS004101HR","CS0041011S","CS004108HR","CS004108SR","CS0041010H","CS0041000C","CS004109HR","CS0041013H","CS0041007S","CS0041013S","CS004106HR","CS0041007H","CS0041001S","CS004103SR","CS004100HR","CS0041000S","CS0041009S","CS004111HR","CS0041000H","CS0041005H","CS0041006S","CS0041002H","CS0041012H","CS004105SR","CS0041010S","CS004110HR","CS0041009H","CS004112HR","CS0041001H","CS0041006H","CS004103HR","CS0041003S","CS004107SR","CS004102SR","CS0041012S","CS0041008H","CS004104HR","CS0041M001","CS0042M001","CS0042000H","CS0042000C","CS0042000S","CS0043001S","CS004301SR","CS004301HR","CS0043000S","CS0043001H","CS0043M001","CS004300SR","CS0043001C","CS0043003H","CS0043003S","CS0043002S","CS0043000C","CS0043002H","CS0043000H","CS004300HR","CS004400SR","CS004402HR","CS0044005H","CS0044006S","CS0044000H","CS0044007H","CS0044001H","CS0044004S","CS0044000C","CS0044006H","CS0044003H","CS0044001S","CS0044008H","CS0044002S","CS0044M001","CS0044000S","CS004400HR","CS004402SR","CS004403SR","CS0044002H","CS004401HR","CS0044004H","CS004401SR","CS004403HR","CS0044005S","CS0044003S","CS0044008S","CS0044007S","CS0046000S","CS004600SR","CS0046000C","CS004601HR","CS004600HR","CS004601SR","CS0046000H","CS0046M001","CS0048000C","CS0048002H","CS0048000S","CS004801HR","CS0048002S","CS0048003H","CS0048000H","CS004800SR","CS004801SR","CS0048M001","CS0048001S","CS0048003S","CS004800HR","CS0048001C","CS0048001H","CS0049003H","CS0049001S","CS0049003S","CS0049001H","CS004900SR","CS004901SR","CS004900HR","CS0049001C","CS0049000H","CS004901HR","CS0049000C","CS0049002S","CS0049M001","CS0049000S","CS0049002H","CS0050000S","CS0050000C","CS0050M001","CS0050000H","CS0051000C","CS0051000H","CS0051000S","CS0051M001","CS005201SR","CS0052M001","CS0052003H","CS0052002S","CS0052001S","CS0052001C","CS0052000H","CS0052000C","CS005200SR","CS0052003S","CS005200HR","CS0052002H","CS0052001H","CS005201HR","CS0052000S","CS0053001H","CS0053003S","CS0053001S","CS0053004H","CS0053M001","CS0053005H","CS0053006H","CS0053000C","CS005301SR","CS0053000S","CS0053003H","CS0053000H","CS0053002S","CS0053006S","CS0053005S","CS005300SR","CS005300HR","CS0053002H","CS005301HR","CS0053004S","CS0055M001","CS005500SR","CS005500HR","CS0055000H","CS0055000S","CS0055000C","CS0056000H","CS0056000C","CS0056M001","CS0056000S","CS0057001H","CS005700SR","CS0057000H","CS005700HR","CS0057003S","CS0057001C","CS005701SR","CS0057000C","CS0057M001","CS0057002H","CS0057003H","CS0057002S","CS0057001S","CS005701HR","CS0057000S","CS0058001H","CS0058000H","CS0058000S","CS005800SR","CS005800HR","CS0058M001","CS0058000C","CS0058001S","CS0059000S","CS0059M001","CS0059000H","CS0059000C","CS0060000C","CS0060000H","CS0060M001","CS0060000S","CS006100SR","CS0061000C","CS0061001S","CS006100HR","CS0061000S","CS0061001H","CS0061M001","CS0061000H","CS0065M001","CS0065000S","CS0065000C","CS0065000H","CS006601SR","CS0066000S","CS0066000H","CS0066000C","CS0066M001","CS006600HR","CS006600SR","CS006601HR","CS006815SR","CS0068011H","CS006805SR","CS006815HR","CS0068000H","CS0068012H","CS006812SR","CS0068007S","CS006805HR","CS006800SR","CS006811HR","CS006800HR","CS006804HR","CS006819SR","CS0068007H","CS0068004S","CS0068000S","CS006806SR","CS0068005H","CS0068005S","CS006807SR","CS006807HR","CS006817HR","CS0068001S","CS006816HR","CS006816SR","CS006811SR","CS0068013S","CS0068009H","CS006814SR","CS006806HR","CS006810HR","CS0068015S","CS0068002S","CS006809HR","CS0068002H","CS0068014S","CS006809SR","CS006820SR","CS006813SR","CS006820HR","CS006810SR","CS006814HR","CS0068013H","CS0068006H","CS0068003S","CS0068006S","CS006801SR","CS0068014H","CS006804SR","CS0068015H","CS006812HR","CS006803HR","CS006819HR","CS0068009S","CS0068003H","CS0068010S","CS0068011S","CS006803SR","CS006801HR","CS006802HR","CS0068001H","CS006813HR","CS006817SR","CS0068012S","CS0068004H","CS0068010H","CS0068M002","CS006802SR","CS0068M001","CS0068000C","CS0069002H","CS0069M001","CS0069002S","CS0069001C","CS0069000C","CS0069001H","CS0069001S","CS0069000H","CS0069003S","CS0069002C","CS0069000S","CS0069003H","CS0069003C","CS0070000S","CS0070M001","CS007000HR","CS0070000H","CS0070000C","CS007000SR","CS0071M001","CS0071000S","CS0071000C","CS0071001H","CS0071000H","CS0071001S","CS0072000H","CS0072000C","CS0072000S","CS007201HR","CS007200SR","CS0072001S","CS007202HR","CS0072M001","CS007200HR","CS007202SR","CS0072001H","CS007201SR","CS0073000S","CS0073000C","CS0073000H","CS0073M001","CS0074000H","CS0074M001","CS0074000C","CS0074000S","CS0075000S","CS0075M001","CS0075000H","CS0075000C","CS007700HR","CS0077002S","CS0077001H","CS0077002H","CS0077M001","CS0077001S","CS0077000C","CS0077000H","CS0077000S","CS007700SR","CS0080M002","CS008002SR","CS0080000S","CS008002HR","CS0080012H","CS0080002H","CS0080004S","CS0080000C","CS0080011S","CS0080005H","CS0080006S","CS0080M001","CS0080009H","CS0080009S","CS0080007H","CS0080012S","CS0080006H","CS0080004H","CS0080008S","CS008001HR","CS0080005S","CS008001SR","CS0080001C","CS0080000H","CS0080010H","CS0080001S","CS0080010S","CS0080001H","CS0080002S","CS0080003H","CS0080011H","CS0080003S","CS0080008H","CS0080007S","CS008000HR","CS008000SR","CS0081000H","CS0081M001","CS0081000C","CS0081000S","CS0082M001","CS0082000C","CS0082000H","CS0082000S","CS0083006H","CS008302SR","CS0083008S","CS0083001S","CS0083001C","CS0083011H","CS0083005S","CS008300HR","CS008302HR","CS008300SR","CS0083013H","CS008303HR","CS0083012S","CS0083002S","CS0083015H","CS0083004S","CS0083007H","CS0083012H","CS0083006S","CS0083010S","CS0083000H","CS0083014S","CS0083005H","CS0083009H","CS0083016S","CS0083008H","CS0083007S","CS0083002H","CS008301SR","CS0083000S","CS0083011S","CS0083015S","CS0083M001","CS008301HR","CS0083014H","CS0083001H","CS0083013S","CS0083004H","CS0083009S","CS0083M002","CS0083000C","CS0083010H","CS0083016H","CS0083003H","CS008303SR","CS0083003S","CS0084000S","CS0084000C","CS0084000H","CS0084001S","CS0084M001","CS0084001H","CS0088M001","CS0088000S","CS0088000C","CS0088000H","CS0090M001","CS0090000C","CS009000SR","CS0090000H","CS0090000S","CS009000HR","CS0091000C","CS0091M001","CS0091000S","CS0091000H","CS0093000H","CS0093M001","CS0093000S","CS0093000C","CS0095007S","CS009503SR","CS0095005S","CS009513SR","CS009509SR","CS0095000H","CS0095001H","CS0095006H","CS0095004S","CS0095001S","CS009512SR","CS009501HR","CS0095000S","CS0095009H","CS0095002S","CS009506SR","CS0095003S","CS009502HR","CS009510SR","CS009504SR","CS0095003H","CS009500HR","CS009511HR","CS0095008H","CS0095009S","CS009503HR","CS009505HR","CS009512HR","CS0095007H","CS009501SR","CS009507HR","CS0095M001","CS009509HR","CS0095008S","CS0095002H","CS009502SR","CS009513HR","CS009508HR","CS0095000C","CS0095005H","CS009500SR","CS009507SR","CS009504HR","CS009510HR","CS009505SR","CS009506HR","CS0095004H","CS0095006S","CS009511SR","CS009508SR","CS0098003H","CS009800SR","CS0098004S","CS009804SR","CS0098006S","CS0098001H","CS009805HR","CS0098006H","CS009805SR","CS009801HR","CS0098000H","CS0098000C","CS0098002H","CS0098005S","CS0098003S","CS0098005H","CS0098001S","CS009806SR","CS009807HR","CS009803SR","CS0098M001","CS0098000S","CS009800HR","CS0098004H","CS009804HR","CS009802HR","CS0098002S","CS009803HR","CS009806HR","CS009801SR","CS009807SR","CS009802SR","CS0099000H","CS0099000C","CS0099000S","CS0099M001","CS0104M001","CS0104000C","CS0104000H","CS0104000S","CS0105M001","CS0105000H","CS0105000C","CS0105000S","CS0106004S","CS0106002S","CS0106001S","CS0106005S","CS010601HR","CS010600HR","CS0106004H","CS0106008S","CS010602SR","CS0106002H","CS0106000C","CS0106007H","CS0106006H","CS0106008H","CS010601SR","CS0106003S","CS0106003H","CS0106M001","CS0106000H","CS0106006S","CS0106000S","CS0106005H","CS010600SR","CS0106007S","CS0106001H","CS010602HR","CS0108000H","CS0108002S","CS0108000S","CS0108000C","CS0108001S","CS0108001H","CS0108002H","CS0108M001","CS010900HR","CS0109001S","CS010900SR","CS0109003S","CS0109000H","CS0109004S","CS0109000C","CS0109002S","CS0109003H","CS010901SR","CS010901HR","CS0109004H","CS0109002H","CS0109M001","CS0109001H","CS0109000S","CS0111M001","CS0111000H","CS0111000C","CS0111000S","CS0112000S","CS0112000H","CS0112M001","CS0112000C","CS0113000S","CS0113M001","CS0113000C","CS0113000H","CS0114001H","CS0114006S","CS011402HR","CS0114005S","CS0114M001","CS0114000C","CS011402SR","CS0114000S","CS011400HR","CS0114004H","CS0114003S","CS011401SR","CS0114006H","CS0114004S","CS0114002H","CS011401HR","CS0114002S","CS0114005H","CS0114000H","CS0114001S","CS011400SR","CS0114003H","CS0115000H","CS0115001H","CS0115000C","CS0115001S","CS0115000S","CS0115M001","CS011600HR","CS0116000S","CS0116M001","CS011600SR","CS0116000C","CS0116000H","CS0118000S","CS0118000C","CS0118000H","CS0118M001","CS011900SR","CS0119000H","CS0119002H","CS0119002S","CS0119001H","CS011900HR","CS0119000S","CS0119000C","CS0119M001","CS0119001S","CS012000SR","CS012000HR","CS012001HR","CS0120000H","CS0120M001","CS0120000S","CS012001SR","CS0120000C","CS012100HR","CS012100SR","CS0121000S","CS0121M001","CS0121000H","CS0121000C","CS0122000S","CS0122006H","CS0122004S","CS0122004H","CS0122000H","CS0122M001","CS0122001S","CS0122003H","CS0122002H","CS0122005S","CS0122000C","CS0122002S","CS0122001H","CS0122003S","CS0122M002","CS0122005H","CS0122006S","CS0123000S","CS0123M001","CS0123000H","CS0123000C","CS0125000S","CS0125001C","CS0125M001","CS0125001S","CS0125000C","CS0125000H","CS0125001H","CS0126000H","CS0126000C","CS0126000S","CS0126M001","CS012700HR","CS0127000H","CS012700SR","CS0127000C","CS012701HR","CS012701SR","CS0127000S","CS0127M001","CS012801HR","CS0128001C","CS012800HR","CS0128M001","CS012801SR","CS0128000H","CS0128000S","CS012800SR","CS0129000S","CS0129000C","CS0129001H","CS0129000H","CS012900HR","CS0129M001","CS0129001S","CS012900SR","CS013002HR","CS0130000S","CS0130006H","CS013001SR","CS0130003H","CS013002SR","CS013004SR","CS0130001S","CS0130000H","CS0130005S","CS0130005H","CS0130006S","CS013003HR","CS0130004H","CS013004HR","CS0130M001","CS0130001H","CS013001HR","CS0130004S","CS0130002S","CS0130000C","CS0130002H","CS0130003S","CS013003SR","CS0131M001","CS0131000H","CS0131000S","CS0131000C","CS0133M001","CS0133000C","CS0133001P","CS0133000P","CS0134001C","CS0134002S","CS0134000S","CS013400SR","CS013400HR","CS0134002H","CS0134M001","CS0134000C","CS0134000H","CS0134001S","CS0134002C","CS0134001H","CS0135M001","CS0135001P","CS0135000P","CS0135000C","CS0136M001","CS0136M002","CS013600SR","CS0136002S","CS013600HR","CS0136006H","CS0136000C","CS0136002H","CS0136003H","CS0136005S","CS0136000S","CS0136005H","CS0136001S","CS0136004S","CS0136004H","CS0136006S","CS0136000H","CS0136001H","CS0136003S","CS0137000H","CS0137000C","CS0137000S","CS0137M001","CS0138000C","CS0138000S","CS0138000H","CS013801SR","CS013801HR","CS013800HR","CS013800SR","CS0138M001","CS0139000C","CS0139000S","CS0139000H","CS0139M001","CS0140000H","CS0140000S","CS0140000C","CS0140M001","CS0141000C","CS0141007H","CS014101HR","CS0141004H","CS0141000H","CS014101SR","CS0141008S","CS0141005H","CS0141008H","CS0141001S","CS014100SR","CS0141002S","CS0141007S","CS0141005S","CS0141001H","CS0141003H","CS0141M001","CS0141006S","CS0141000S","CS0141002H","CS0141003S","CS0141004S","CS014100HR","CS0141006H","CS0142000H","CS0142000C","CS0142000S","CS014200SR","CS0142001S","CS014200HR","CS0142002H","CS0142001H","CS014201SR","CS0142002S","CS014201HR","CS0142M001","CS0143M001","CS0143000C","CS0143000H","CS0143000S","CS0144000H","CS014401SR","CS0144M001","CS014400HR","CS0144000C","CS014400SR","CS014401HR","CS0144000S","CS0145000H","CS0145M001","CS0145000S","CS0145000C","CS0147000H","CS0147000S","CS0147M001","CS014701SR","CS014702SR","CS014701HR","CS014702HR","CS0147000C","CS014800SR","CS014800HR","CS0148M001","CS0148000S","CS0148000C","CS0148000H","CS014916SR","CS0149004H","CS014905HR","CS0149005S","CS0149005H","CS014918HR","CS0149M001","CS014913SR","CS014908HR","CS0149009S","CS014901HR","CS014918SR","CS014913HR","CS014903SR","CS0149001S","CS014902HR","CS014907SR","CS0149002S","CS014910SR","CS0149020H","CS014919HR","CS014910HR","CS014911HR","CS014915HR","CS014914HR","CS014909HR","CS0149004S","CS014901SR","CS0149010H","CS0149006S","CS014906HR","CS0149020S","CS014907HR","CS0149011H","CS0149008H","CS014908SR","CS0149001H","CS014917HR","CS014904HR","CS014904SR","CS0149M003","CS014902SR","CS014920HR","CS0149003H","CS014914SR","CS0149012S","CS014917SR","CS0149007S","CS0149011S","CS014916HR","CS0149009H","CS014920SR","CS014912HR","CS0149012H","CS014919SR","CS0149001C","CS0149006H","CS0149010S","CS0149002H","CS014915SR","CS014911SR","CS014912SR","CS014906SR","CS014905SR","CS014903HR","CS0149003S","CS0149008S","CS0149007H","CS014909SR","CS0150000C","CS0150000H","CS0150M001","CS0150000S","CS0151000H","CS0151000C","CS0151000S","CS0151M001","CS0152002H","CS0152001S","CS0152001C","CS0152001H","CS0152M001","CS0152002S","CS0153002S","CS0153003S","CS015302SR","CS015302HR","CS0153003H","CS0153005H","CS0153M001","CS0153004S","CS0153005S","CS0153006S","CS015301SR","CS0153001S","CS0153002H","CS0153001C","CS0153001H","CS0153006H","CS015301HR","CS0153004H","CS0154001H","CS015400SR","CS015408HR","CS0154002S","CS0154008S","CS0154006H","CS0154008H","CS015405SR","CS015406HR","CS015408SR","CS0154000H","CS015405HR","CS015401HR","CS0154000C","CS0154003H","CS015402HR","CS0154M001","CS015404HR","CS0154000S","CS0154005S","CS0154006S","CS015407SR","CS0154004H","CS015402SR","CS0154003S","CS015407HR","CS0154007H","CS015406SR","CS015401SR","CS015403SR","CS0154001S","CS0154005H","CS015400HR","CS0154007S","CS0154002H","CS0154004S","CS015403HR","CS015404SR","CS0155001C","CS015502SR","CS0155M001","CS015501HR","CS0155001S","CS015501SR","CS015502HR","CS0155001H","CS0156001H","CS0156M001","CS015602HR","CS0156001S","CS015603HR","CS015601SR","CS015604HR","CS015602SR","CS015603SR","CS0156M002","CS0156002S","CS015604SR","CS0156002H","CS0156001C","CS015601HR","CS0157M001","CS0157004H","CS0157005S","CS015702HR","CS0157002S","CS0157006S","CS0157004S","CS0157001H","CS0157002H","CS0157007H","CS0157001S","CS015702SR","CS0157003H","CS0157003S","CS0157005H","CS0157007S","CS0157001C","CS015701HR","CS0157006H","CS015701SR","CS0158M001","CS0158003S","CS0158001H","CS0158002H","CS0158001S","CS0158003H","CS0158002S","CS0158001C","CS015902SR","CS0159002H","CS015901SR","CS0159004S","CS015902HR","CS0159005C","CS0159002C","CS0159003S","CS0159003C","CS0159003H","CS0159004H","CS0159M001","CS0159001H","CS0159001C","CS0159002S","CS015901HR","CS0159001S","CS0159004C","CS0161007S","CS0161008H","CS0161M001","CS0161001H","CS0161005S","CS0161002H","CS0161003S","CS0161002S","CS0161010S","CS016102SR","CS016101HR","CS0161010H","CS0161008S","CS0161006S","CS0161006H","CS016102HR","CS0161003H","CS0161007H","CS0161009H","CS0161002C","CS016101SR","CS0161001S","CS0161005H","CS0161M002","CS0161001C","CS0161004H","CS0161009S","CS0161004S","CS0162M001","CS0162000H","CS0162000S","CS0162000C","CS0163001S","CS0163001H","CS0163M001","CS016302SR","CS0163001C","CS016302HR","CS0164001H","CS016403HR","CS016402SR","CS016403SR","CS016402HR","CS0164001S","CS0164001C","CS0164M001","CS0165000C","CS0165000S","CS0165000H","CS0165M001","CS0166M001","CS0166001C","CS0166001H","CS0166001S","CS0167000H","CS0167M001","CS0167000S","CS0167000C","CS016800HR","CS0168M001","CS0168001C","CS0168001H","CS016801SR","CS016801HR","CS016800SR","CS0168001S","CS016901SR","CS0169M001","CS0169001H","CS016901HR","CS016902HR","CS016902SR","CS0169001S","CS0169001C","CS0170M001","CS017000SR","CS017001HR","CS0170001H","CS017000HR","CS0170001C","CS017001SR","CS0170001S","CS017101SR","CS0171M001","CS017100SR","CS0171001S","CS0171001C","CS017100HR","CS017101HR","CS0171001H","CS017200SR","CS017201SR","CS017201HR","CS0172001C","CS017200HR","CS0172M001","CS0172001S","CS0172001H","CS017300SR","CS0173001C","CS017300HR","CS017301SR","CS0173M001","CS0173001S","CS017301HR","CS0173001H","CS0174M001","CS017401SR","CS0174001S","CS0174001C","CS017400HR","CS0174001H","CS017400SR","CS017401HR","CS017500SR","CS0175001H","CS0175001C","CS017501SR","CS017501HR","CS017500HR","CS0175002S","CS0175006S","CS0175003S","CS0175003H","CS0175004H","CS0175005S","CS0175001S","CS0175M001","CS0175007S","CS0175007H","CS0175006H","CS0175005H","CS0175004S","CS0175002H","CS0176001C","CS0176001S","CS0176M001","CS0176001H","CS0177006H","CS0177003H","CS0177002H","CS0177008H","CS0177005S","CS0177008S","CS0177009S","CS017701HR","CS0177009H","CS017701SR","CS0177007S","CS0177004H","CS0177001C","CS017702SR","CS0177003S","CS0177004S","CS0177005H","CS0177M001","CS0177006S","CS0177007H","CS0177002S","CS0177001S","CS017702HR","CS0177001H","CS0178001C","CS0178001S","CS0178001H","CS0178M001","CS0179001H","CS0179M001","CS0179001C","CS0179001S","CS0180001H","CS0180001C","CS0180001S","CS0180M001","CS0181001S","CS018102HR","CS0181M001","CS0181001H","CS0181005H","CS0181003S","CS0181002S","CS018101HR","CS0181004S","CS0181003H","CS0181002H","CS0181000C","CS0181004H","CS0181005S","CS018101SR","CS018102SR","CS0182001S","CS018202SR","CS018201HR","CS0182M001","CS018201SR","CS018202HR","CS0182001H","CS0182000C","CS0183M001","CS0183001H","CS0183000C","CS0183001S","CS0184M001","CS0184000S","CS0184000H","CS0184000C","CS0185001H","CS0185000C","CS0185001S","CS0185M001","CS0186000S","CS0186M001","CS0186000H","CS0186000C","CS0187000H","CS0187000C","CS0187000S","CS0187M001","CS0188005H","CS018804SR","CS0188007S","CS018801SR","CS0188002H","CS0188003H","CS018806HR","CS0188005S","CS0188001C","CS018803HR","CS0188000C","CS0188006H","CS018807SR","CS0188004S","CS0188001H","CS0188005C","CS018803SR","CS0188M001","CS0188003S","CS018802HR","CS018807HR","CS0188004H","CS0188007C","CS0188002C","CS018801HR","CS018805SR","CS018804HR","CS0188007H","CS0188006C","CS018806SR","CS0188004C","CS018805HR","CS0188001S","CS0188003C","CS018802SR","CS0188006S","CS0188002S","CS0189005H","CS0189M001","CS0189004S","CS0189009H","CS018902SR","CS0189007S","CS0189000C","CS0189010S","CS0189003S","CS0189008H","CS0189007H","CS0189006S","CS0189006H","CS0189001H","CS0189009S","CS0189004H","CS0189002S","CS0189005S","CS0189002H","CS0189001S","CS0189010H","CS0189008S","CS018902HR","CS0189003H","CS018901SR","CS018901HR","CS0190000C","CS0190000H","CS0190M001","CS019001HR","CS0190000S","CS019001SR","CS019000HR","CS019000SR","CS0191000C","CS0191000S","CS0191M001","CS019100SR","CS019100HR","CS0191000H","CS0192001H","CS019201HR","CS0192011H","CS0192009H","CS019202SR","CS0192008S","CS0192007H","CS0192004H","CS0192011S","CS019204SR","CS0192005S","CS019202HR","CS0192004S","CS0192000C","CS0192003H","CS019201SR","CS0192002H","CS0192007S","CS019204HR","CS0192M001","CS0192010H","CS0192008H","CS0192002S","CS0192003S","CS0192009S","CS0192005H","CS0192006S","CS0192010S","CS019203SR","CS019203HR","CS0192001S","CS0192006H","CS019305HR","CS019304SR","CS0193005H","CS019302SR","CS0193002S","CS019304HR","CS0193003S","CS0193004C","CS0193002H","CS0193M001","CS0193005C","CS0193004H","CS019305SR","CS0193003C","CS019303HR","CS0193001H","CS019301SR","CS019301HR","CS0193003H","CS0193000C","CS019303SR","CS0193005S","CS0193004S","CS0193002C","CS0193001C","CS019302HR","CS0193001S","CS0194001C","CS0194000C","CS0194002H","CS0194001H","CS0194M002","CS0194001S","CS0194002S","CS0194M001","CS0195006S","CS019504HR","CS019502SR","CS019503HR","CS0195001H","CS0195002H","CS0195001S","CS0195008S","CS019504SR","CS0195008H","CS0195005S","CS019506SR","CS019503SR","CS0195004S","CS0195002S","CS0195M001","CS0195003S","CS0195007H","CS019501SR","CS0195005H","CS019506HR","CS0195006H","CS0195003H","CS0195004H","CS0195000C","CS019505SR","CS019505HR","CS019501HR","CS0195007S","CS019502HR","CS019601HR","CS019606HR","CS019608HR","CS019607HR","CS019614HR","CS019611SR","CS019603HR","CS0196003S","CS019610SR","CS0196012H","CS0196M001","CS0196006H","CS0196011H","CS0196005H","CS019602SR","CS019611HR","CS0196007H","CS0196002H","CS0196010S","CS0196004S","CS0196011S","CS0196004H","CS0196001S","CS019605SR","CS0196015H","CS019612HR","CS0196010H","CS019610HR","CS019603SR","CS019614SR","CS019601SR","CS0196009H","CS0196013S","CS0196005S","CS019609SR","CS019604HR","CS0196008H","CS019613HR","CS019609HR","CS0196003H","CS0196006S","CS0196007S","CS019602HR","CS0196000C","CS019605HR","CS0196002S","CS0196014S","CS0196008S","CS019612SR","CS0196013H","CS019608SR","CS0196001H","CS0196012S","CS019606SR","CS0196009S","CS0196014H","CS0196015S","CS019607SR","CS019613SR","CS019604SR","CS019702HR","CS0197005H","CS0197M001","CS019701HR","CS0197003S","CS019702SR","CS0197000C","CS0197002S","CS0197001H","CS019701SR","CS0197003H","CS0197002H","CS0197004H","CS0197005S","CS0197001S","CS0197004S","CS0198M001","CS0198000C","CS0198001H","CS0198001S","CS0198002H","CS0198002S","CS0198003H","CS0198003S","CS0198004H","CS0198004S","CS0198005H","CS0198005S","CS0198006H","CS0198006S","CS0198007H","CS0198007S","CT223901HR","CT223900HR","CT223900SR","CT2239005H","CT2239001H","CT2239006H","CT2239004S","CT2239002H","CT2239003H","CT2239004H","CT2239000H","CT223901SR","CT2239M001","CT2239003S","CT2239000S","CT2239002S","CT2239006S","CT2239005S","CT2239001S","CT2239000C","CT2246000S","CT2246000H","CT2246000C","CT2246M001","CT2252000C","CT2252000S","CT2252000H","CT2252M001","L0012501SR","L00125002S","L00125004S","L00125000C","L0012501HR","L00125000H","L00125000S","L00125M001","L00125001S","L0012500SR","L00125002H","L00125003H","L00125004H","L00125005H","L0012500HR","L00125003S","L00125001H","L00125005S","L00268M001","L00268000S","L00268001S","L00268000H","L00268000C","L00268001H","L00283000S","L00283000C","L00283000H","L00283M001","L00284000S","L00284M001","L00284000C","L00284000H","L00285001S","L00285000C","L00285002S","L00285001H","L00285002H","L00285000H","L00285000S","L00285M001","L00334002H","L00334004S","L00334004H","L0033400SR","L0033401HR","L00334003S","L00334000C","L00334001H","L00334002S","L0033401SR","L00334001S","L00334000S","L00334003H","L00334M001","L00334000H","L0033400HR","L00357000S","L00357M001","L00357001H","L00357001S","L00357000H","L0036703SR","L00367002S","L0036702HR","L00367000S","L00367M001","L00367000H","L00367001S","L0036700HR","L00367001H","L00367002H","L0036701SR","L00367000C","L0036703HR","L0036700SR","L0036701HR","L0036702SR"],J=e=>{switch(e){case G.w.FULL_MATCH:case G.w.ELIGIBLE_MATCH:return!0;case G.w.PERSON_MATCH:case G.w.INSURANCE_MATCH:case G.w.EXPIRED:case G.w.NOT_FOUND:default:return!1}},$=e=>{var t,a,i;return!!e&&(null==(t=e.coverage)?void 0:t.status)==="Active"&&(null==(a=e.payer)?void 0:a.payerName)==="BCBS of Connecticut"&&Q.includes(null==(i=e.coverage)?void 0:i.groupNumber)},Z=e=>{let{matchType:t,benefitsCheck:a}=e;return J(t)||$(a)},ee=e=>e.substring(3),et=e=>{let{matchType:t,benefitsCheck:a}=e,i=J(t),r=$(a);return i&&r?G.h.EvolveAndPverify:r?G.h.Pverify:i?G.h.Evolve:void 0};var ea=function(e){return e.CreateLead="createLead",e.CreateContact="createContact",e.UpdateContact="updateContact",e.DetermineContactOrLead="determineContactOrLead",e.FetchConsents="fetchConsents",e.UpdateEmail="updateEmail",e.CheckEligibility="checkEligibility",e.CheckBenefits="checkBenefits",e}(ea||{});let ei={...W.f,...ea},er=_.Ek[O.fz.CareCompass],en={formData:{birthdate:"",comorbidity:"",currentWeightInPounds:"",dateOfHighestWeightValue:"",email:"",firstName:"",heightInFoot:"",heightInInch:"",highestWeightInPounds:"",insuranceCoverage:void 0,insuranceMemberID:"",insurance:void 0,lastName:"",phone:"",state:void 0,termsAgreement:!1,howDidYouFindUS:"",comorbidities:[],diabetes:"",bariatricSurgery:""},eligibilityCheckMatchType:void 0,bmi:void 0,benefitsCheck:void 0,otpData:void 0,consentsData:{items:[],userConsentStatus:[]},contactData:{},passwordData:{password:void 0,confirmPassword:void 0},flyteUserData:void 0,error:void 0,labs:void 0},eo={...V.AU,...V.gQ,...V.pE,...V.UH,...V.yF,...V.n6,...V.uN,...V.yS,...V.RW,...V.i_,...(0,V.rS)(en).reset},es=(0,q.mj)({types:{},guards:{isPreEligibilityMet:e=>{let{context:{formData:t,bmi:a}}=e;return X.J0.careCompass({bmi:a,comorbidity:t.comorbidity,birthdate:t.birthdate})},isApplicationReviewRequired:e=>{let{context:{eligibilityCheckMatchType:t,benefitsCheck:a,formData:i}}=e;return!F.A.shouldBypassIsApplicationReviewRequired({email:i.email})&&!Z({matchType:t,benefitsCheck:a})},isApplicationDetected:N.L,isAthenaRecordCreated:z.z},actions:eo}).createMachine({context:()=>en,id:"careCompassMachine",initial:ei.PreEligibility,states:{[ei.PreEligibility]:{id:ei.PreEligibility,initial:ei.Idle,states:{[ei.Idle]:{on:{SUBMIT:{target:ei.Submitting,actions:"updateFormData"}}},[ei.Submitting]:{entry:"assignBMI",always:[{target:"#".concat(ei.ContactDetails),guard:"isPreEligibilityMet"},{target:"#".concat(ei.EligibilityUnmet)}]}}},[ei.ContactDetails]:{id:ei.ContactDetails,initial:ei.Idle,states:{[ei.Idle]:{on:{SUBMIT:{target:"#".concat(ei.InsuranceDetails),actions:"updateFormData"}}}}},[ei.InsuranceDetails]:{id:ei.InsuranceDetails,initial:ei.Idle,states:{[ei.Idle]:{on:{BACK:{target:"#".concat(ei.ContactDetails)},SUBMIT:{target:"#".concat(ei.InsuranceDetailsReview),actions:"updateFormData"}}}}},[ei.InsuranceDetailsReview]:{id:ei.InsuranceDetailsReview,initial:ei.Idle,states:{[ei.Idle]:{on:{SUBMIT:{actions:"updateFormData",target:ei.Submitting}}},[ei.Submitting]:{type:"parallel",states:{[ei.CheckEligibility]:{id:ei.CheckEligibility,initial:ei.Idle,states:{[ei.Idle]:{invoke:{src:(0,Y.Sx)(async e=>{let{input:t}=e,a={...t,insuranceMemberID:ee(t.insuranceMemberID),insurance:_.w[O.fz.CareCompass],benefitProgram:_.Nl[O.fz.CareCompass]};return await (0,P.w)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:{actions:(0,K.a)({eligibilityCheckMatchType:e=>{let{event:t}=e;return t.output.data.matchType}}),target:ei.Success},onError:ei.Success}},[ei.Success]:{type:"final"}}},[ei.CheckBenefits]:{id:ei.CheckBenefits,initial:ei.Idle,states:{[ei.Idle]:{invoke:{src:(0,Y.Sx)(async e=>{let{input:t}=e,a={...t,payerCode:_.dT[O.lk.Anthem]};return await (0,T.R)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:{actions:(0,K.a)({benefitsCheck:e=>{let{event:t}=e;return t.output.data}}),target:ei.Success},onError:{target:ei.Success}}},[ei.Success]:{type:"final"}}}},onDone:{target:"#".concat(ei.DetermineContactOrLead)}},[ei.DetermineContactOrLead]:{id:ei.DetermineContactOrLead,always:[{guard:"isApplicationReviewRequired",target:ei.CreateLead},{target:ei.CreateContact}]},[ei.CreateLead]:{id:ei.CreateLead,invoke:{src:(0,Y.Sx)(async e=>{let{input:t}=e,a=ee(t.formData.insuranceMemberID),i={...t.formData,...t.formData.insuranceMemberID&&{employmentVerificationCode:a,insuranceMemberID:a},...t.benefitsCheck&&{benefitsCheck:t.benefitsCheck},eligibilityVerifiedBy:et({matchType:t.eligibilityCheckMatchType,benefitsCheck:t.benefitsCheck}),company:er,insurance:_.Ft[O.fz.CareCompass],evolveOrganization:O.PM["State of Connecticut"],leadStatus:O.XN.EligibleWaiting,automateEvolveEnrollment:!1};return await (0,B.t)(i)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(ei.ApplicationReview),onError:[{guard:"isApplicationDetected",target:"#".concat(ei.ApplicationDetected)},{target:"#".concat(ei.InsuranceDetailsReview,".").concat(ei.Error)}]}},[ei.CreateContact]:{id:ei.CreateContact,invoke:{src:(0,Y.Sx)(async e=>{let{input:t}=e,a=ee(t.formData.insuranceMemberID),i={...t.formData,...t.formData.insuranceMemberID&&{employmentVerificationCode:a,insuranceMemberID:a},...t.benefitsCheck&&{benefitsCheck:t.benefitsCheck},eligibilityVerifiedBy:et({matchType:t.eligibilityCheckMatchType,benefitsCheck:t.benefitsCheck}),company:er,insurance:_.Ft[O.fz.CareCompass],evolveOrganization:O.PM["State of Connecticut"],accountId:_.f3[O.fz.CareCompass]};return await (0,k.vY)(i)}),input:e=>{let{context:t}=e;return t},onDone:{actions:"assignContactData",target:"#".concat(ei.EmailVerification)},onError:[{guard:"isApplicationDetected",target:"#".concat(ei.ApplicationDetected)},{target:"#".concat(ei.InsuranceDetailsReview,".").concat(ei.Error)}]}},[ei.Error]:{id:"".concat(ei.InsuranceDetailsReview,".").concat(ei.Error),on:{SUBMIT:{actions:["updateFormData","resetBenefitsCheck"],target:ei.Submitting}}}}},[ei.EmailVerification]:{id:ei.EmailVerification,initial:ei.Idle,states:{[ei.Idle]:{id:"".concat(ei.EmailVerification,".").concat(ei.Idle),on:{SUBMIT:{actions:"assignOtpCode",target:ei.Submitting},RESEND_EMAIL_VERIFICATION:{target:ei.Idle,reenter:!0},UPDATE_EMAIL:{target:ei.UpdateEmail}},invoke:{input:e=>{var t;let{context:a,event:i}=e;return{email:a.formData.email,firstName:a.formData.firstName,onSuccess:null==i||null==(t=i.data)?void 0:t.onSuccess}},src:(0,Y.Sx)(async e=>{let{input:t}=e,a={email:t.email,firstName:t.firstName};return{token:(await (0,A.v)(a)).data.token,onSuccess:t.onSuccess}}),onDone:{actions:[(0,K.a)({otpData:e=>{let{context:t,event:a}=e;return{...t.otpData,token:a.output.token}}}),e=>{var t;let{event:a}=e;(null==a||null==(t=a.output)?void 0:t.onSuccess)&&a.output.onSuccess()}]},onError:ei.Error}},[ei.Submitting]:{invoke:{src:(0,Y.Sx)(async e=>{let{input:t}=e,a={email:t.formData.email,token:t.otpData.token,otp:t.otpData.otp};return await (0,L.R)(a)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(ei.OnboardingChecklist),onError:ei.Error}},[ei.Error]:{on:{SUBMIT:{actions:"assignOtpCode",target:ei.Submitting},RESEND_EMAIL_VERIFICATION:{target:ei.Idle},UPDATE_EMAIL:{target:ei.UpdateEmail}}},[ei.UpdateEmail]:{initial:ei.Idle,states:{[ei.Idle]:{invoke:{input:e=>{let{context:t,event:a}=e;return{contactId:t.contactData.contactId,email:a.data.email,onSuccess:a.data.onSuccess}},src:(0,Y.Sx)(async e=>{let{input:t}=e,a={contactId:t.contactId,email:t.email};return await (0,k.CI)(a),{email:t.email,onSuccess:t.onSuccess}}),onDone:{actions:["assignNewEmail",e=>{var t;let{event:a}=e;(null==a||null==(t=a.output)?void 0:t.onSuccess)&&a.output.onSuccess()}],target:"#".concat(ei.EmailVerification,".").concat(ei.Idle)},onError:ei.Error}},[ei.Error]:{on:{SUBMIT:{target:"#".concat(ei.EmailVerification,".").concat(ei.Idle)},RESEND_EMAIL_VERIFICATION:{target:"#".concat(ei.EmailVerification,".").concat(ei.Idle)},UPDATE_EMAIL:{target:ei.Idle}}}}}}},[ei.ReviewConsents]:{id:ei.ReviewConsents,initial:ei.FetchConsents,states:{[ei.Idle]:{on:{SUBMIT:{actions:["assignUserConsentStatus"],target:ei.Submitting}}},[ei.FetchConsents]:{invoke:{src:(0,Y.Sx)(async()=>await (0,M.i)()),onDone:{actions:"assignConsents",target:ei.Idle},onError:ei.Error}},[ei.Submitting]:{invoke:{src:(0,Y.Sx)(async e=>{let{input:t}=e,a={patientIdentifier:t.contactData.contactId,firstName:t.formData.firstName,lastName:t.formData.lastName,phone:t.formData.phone,email:t.formData.email,birthDate:t.formData.birthdate,state:t.formData.state,heightInInch:t.formData.heightInInch,heightInFeet:t.formData.heightInFoot,currentWeightInPounds:t.formData.currentWeightInPounds,evolveOrganization:O.PM["State of Connecticut"],consents:t.consentsData.userConsentStatus};return await (0,U.Y)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{actions:"assignFlyteUserData",target:ei.UpdateContact}],onError:"#".concat(ei.OnboardingUserError)}},[ei.UpdateContact]:{invoke:{src:(0,Y.Sx)(async e=>{let{input:t}=e,a={contactId:t.contactData.contactId,evolvePatientID:t.flyteUserData.patientId};return await (0,k.CI)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{guard:"isAthenaRecordCreated",target:"#".concat(ei.CreatePassword)},{target:"#".concat(ei.OnboardingUserError)}],onError:"#".concat(ei.OnboardingUserError)}},[ei.Error]:{on:{SUBMIT:{actions:["assignUserConsentStatus"],target:ei.Submitting}}}}},[ei.CreatePassword]:{id:ei.CreatePassword,initial:ei.Idle,states:{[ei.Idle]:{on:{SUBMIT:{actions:"assignPasswordData",target:ei.Submitting}}},[ei.Submitting]:{invoke:{src:(0,Y.Sx)(async e=>{let{input:t}=e,a={email:t.formData.email,password:t.passwordData.password,confirmPassword:t.passwordData.confirmPassword};return await (0,w.I)(t.flyteUserData.verifyToken,a)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(ei.RequestLabs),onError:{target:ei.Error,actions:"assignError"}}},[ei.Error]:{on:{SUBMIT:{actions:["resetError","assignPasswordData"],target:ei.Submitting}}}}},[ei.OnboardingChecklist]:{id:ei.OnboardingChecklist,on:{SUBMIT:{target:"#".concat(ei.ReviewConsents)}}},[ei.RequestLabs]:{id:ei.RequestLabs,on:{PROCEED_TO_SUBMIT_LABS:"#".concat(ei.SubmitLabs),LAB_REQUESTED:{target:"#".concat(ei.AppDownload),actions:"assignLabLocation"},SUBMIT_LABS_LATER:{actions:"assignLabsSkipped",target:"#".concat(ei.AppDownload)}}},[ei.SubmitLabs]:{id:ei.SubmitLabs,on:{GO_BACK_TO_REQUEST_LABS:"#".concat(ei.RequestLabs),LAB_SUBMITTED:{actions:"registerLabsUploaded",target:"#".concat(ei.AppDownload)},SUBMIT_LABS_LATER:{actions:"assignLabsSkipped",target:"#".concat(ei.AppDownload)}}},[ei.AppDownload]:{id:ei.AppDownload},[ei.OnboardingUserError]:{id:ei.OnboardingUserError},[ei.ApplicationReview]:{id:ei.ApplicationReview},[ei.ApplicationComplete]:{id:ei.ApplicationComplete},[ei.ApplicationDetected]:{id:ei.ApplicationDetected},[ei.EligibilityUnmet]:{id:ei.EligibilityUnmet,initial:ei.Idle,states:{[ei.Idle]:{on:{SUBMIT:{target:ei.Submitting,actions:"updateFormData"}}},[ei.Submitting]:{invoke:{src:(0,Y.Sx)(async e=>{let{input:t}=e,a={...t,company:er,leadStatus:O.XN.Ineligible,ineligibilityReason:O.hT.BMI,automateEvolveEnrollment:!1};return await (0,B.t)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:ei.Success,onError:ei.Error}},[ei.Success]:{},[ei.Error]:{on:{SUBMIT:{actions:"updateFormData",target:ei.Submitting}}}}}},on:{RESET:{target:"#".concat(ei.PreEligibility),actions:"reset"}}});var el=a(69443);let ec={[R.C.PreEligibility]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"Let's make sure you're eligible for the FlyteHealth program."}),(0,i.jsx)(r.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,i.jsx)(r.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."})},[R.C.EligibilityUnmet]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-secondary-negative",children:"Unfortunately, you are not eligible to join FlyteHealth at this time."}),(0,i.jsx)(r.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,i.jsx)(()=>(0,i.jsxs)(r.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,i.jsx)(r.Image,{width:"70.56px",height:"auto",src:"/static/assets/insurance-cards.png",alt:"Insurance cards illustration"}),(0,i.jsxs)(r.Flex,{direction:"column",flex:"1",children:[(0,i.jsx)(r.Alert.Title,{textStyle:"text-body-large-bold",mb:"spacer-1",children:"Additional State of Connecticut Benefits"}),(0,i.jsx)(r.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,i.jsx)(r.Link,{href:"https://carecompass.ct.gov/state/medical/",color:"text-link-primary-default",isExternal:!0,trailingIcon:(0,i.jsx)(r.IconArrowRight,{color:"text-link-primary-default"}),children:"Learn More"})]})]}),{})},[R.C.ContactDetails]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-secondary-negative",children:"Congratulations! You're eligible for the FlyteHealth program"}),(0,i.jsx)(r.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."})]})},[R.C.InsuranceDetails]:{title:(0,i.jsxs)(r.Text,{variant:"text-header-2XL",color:"text-secondary-negative",children:["One more thing:"," ",(0,i.jsx)(r.Text,{as:"span",variant:"text-header-2XL",color:"text-primary",children:"What's your Anthem membership number?"})]})},[R.C.InsuranceDetailsReview]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{children:"Let's review: Is your info correct?"}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"Please double-check the information you provided to make sure everything is correct."})]})},[R.C.ApplicationComplete]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-secondary-negative",children:"Welcome aboard! We're so excited you're here."}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"Next, we need to confirm your email. Click the link we sent to:"})]}),description:(0,i.jsx)(r.Text,{mt:"spacer-8",color:"text-secondary",variant:"text-body-regular",children:"Can’t find the email? Make sure to check your Spam folder."})},[R.C.ApplicationReview]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"You're almost finished!"}),(0,i.jsx)(r.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."})]})},[R.C.ApplicationDetected]:{title:(0,i.jsx)(r.Text,{variant:"text-header-2XL",color:"text-primary",children:"We found an existing account for:"}),description:(0,i.jsx)(r.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."})},[R.C.EmailVerification]:el.M[R.C.EmailVerification],[R.C.OnboardingChecklist]:el.M[R.C.OnboardingChecklist],[R.C.CreatePassword]:el.M[R.C.CreatePassword],[R.C.AppDownload]:el.M[R.C.AppDownload],[R.C.ReviewConsents]:el.M[R.C.ReviewConsents]};var ed=a(82393);let eS=[I.UX.EmailMailer,I.UX.CoworkerReferral,I.UX.ProviderReferral,I.UX.QuantumHealth,I.UX.WordOfMouth,I.UX.Pharmacy,I.UX.BenefitsWebsite,I.UX.Other],eu={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-z0-9]+$/i},label:"Anthem Membership ID Number",placeholder:"Insurance ID"},eC={[R.C.ContactDetails]:{state:{options:ed.rI},howDidYouFindUs:{options:eS}},[R.C.InsuranceDetails]:{insuranceMemberID:{...eu,tooltip:(0,i.jsxs)(r.Box,{children:[(0,i.jsx)(r.Text,{variant:"text-body-meta-regular",color:"text-light",children:"Where to find my Membership ID Number:"}),(0,i.jsx)(r.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,i.jsx)(r.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."})}},[R.C.InsuranceDetailsReview]:{insuranceMemberID:eu}},em=I.fz.CareCompass,ep=e=>{let{render:t}=e,[a,w]=(0,j.zl)(es),A=(0,E.useMemo)(()=>(0,D.r)(a.value),[a.value]);(0,v.t)(A,em);let L=(0,E.useCallback)(e=>{w({type:"SUBMIT",data:e})},[w]),T=(0,E.useCallback)(()=>{w({type:"BACK"})},[w]),M=(0,E.useCallback)(()=>{switch(A){case ei.PreEligibility:return(0,i.jsx)(b.P,{configuration:{contentResources:ec[R.C.PreEligibility]},onSubmit:L});case ei.ContactDetails:return(0,i.jsx)(S.x,{configuration:{contentResources:ec[R.C.ContactDetails],fields:eC[R.C.ContactDetails]},onSubmit:L,defaultValues:a.context.formData});case ei.EligibilityUnmet:return(0,i.jsx)(C.B,{configuration:{contentResources:ec[R.C.EligibilityUnmet]},onSubmit:L,loading:a.matches({[ei.EligibilityUnmet]:ei.Submitting}),isEmailSent:a.matches({[ei.EligibilityUnmet]:ei.Success}),hasError:a.matches({[ei.EligibilityUnmet]:ei.Error}),isMobileFooterSticky:!1});case ei.InsuranceDetails:return(0,i.jsx)(p.d,{configuration:{contentResources:ec[R.C.InsuranceDetails],fields:eC[R.C.InsuranceDetails]},onSubmit:L,onBack:T});case ei.InsuranceDetailsReview:return(0,i.jsx)(h.h,{configuration:{contentResources:ec[R.C.InsuranceDetailsReview],fields:eC[R.C.InsuranceDetailsReview]},onSubmit:L,loading:a.matches({[ei.InsuranceDetailsReview]:ei.Submitting})||a.matches({[ei.InsuranceDetailsReview]:ei.CreateLead})||a.matches({[ei.InsuranceDetailsReview]:ei.CreateContact}),hasError:a.matches({[ei.InsuranceDetailsReview]:ei.Error}),defaultValues:a.context.formData});case ei.ApplicationComplete:return(0,i.jsx)(o.Q,{...ec[R.C.ApplicationComplete],email:a.context.formData.email});case ei.ApplicationReview:return(0,i.jsx)(l.l,{...ec[R.C.ApplicationReview]});case ei.ApplicationDetected:return(0,i.jsx)(s.r,{...ec[R.C.ApplicationDetected],email:a.context.formData.email});case ei.EmailVerification:return(0,i.jsx)(m.e,{configuration:{contentResources:{title:ec[R.C.EmailVerification](a.context.formData.email).title}},email:a.context.formData.email,hasError:a.matches({[ei.EmailVerification]:ei.Error}),loading:a.matches({[ei.EmailVerification]:ei.Submitting}),isUpdateEmailLoading:a.matches({[ei.EmailVerification]:{[ei.UpdateEmail]:ei.Idle}}),hasUpdateEmailError:a.matches({[ei.EmailVerification]:{[ei.UpdateEmail]:ei.Error}}),onSubmit:L,onResendCode:e=>w({type:"RESEND_EMAIL_VERIFICATION",data:{onSuccess:e}}),onEditEmail:(e,t)=>w({type:"UPDATE_EMAIL",data:{email:e,onSuccess:t}})});case ei.OnboardingChecklist:return(0,i.jsx)(g.E,{showLabs:!0,configuration:{contentResources:ec[R.C.OnboardingChecklist]},onSubmit:L});case ei.ReviewConsents:return(0,i.jsx)(f.U,{configuration:{contentResources:ec[R.C.ReviewConsents]},consents:a.context.consentsData.items,hasError:a.matches({[ei.ReviewConsents]:ei.Error}),loading:a.matches({[ei.ReviewConsents]:ei.FetchConsents})||a.matches({[ei.ReviewConsents]:ei.Submitting})||a.matches({[ei.ReviewConsents]:ei.UpdateContact}),onSubmit:L});case ei.CreatePassword:return(0,i.jsx)(u.i,{configuration:{contentResources:ec[R.C.CreatePassword]},loading:a.matches({[ei.CreatePassword]:ei.Submitting}),error:a.context.error,onSubmit:L});case ei.AppDownload:return(0,i.jsx)(n.a,{title:"SUBMIT_LATER"===a.context.labs?ec[R.C.AppDownload].titleLabSkipped:"LABS_UPLOADED"===a.context.labs?ec[R.C.AppDownload].titleLabSubmitted:ec[R.C.AppDownload].titleLabRequested,checklist:ec[R.C.AppDownload].checklist});case ei.OnboardingUserError:return(0,i.jsx)(x.C,{});case ei.RequestLabs:var e;return(0,i.jsx)(y.I,{organizationName:"State of Connecticut",patientId:null==(e=a.context.flyteUserData)?void 0:e.patientId,onProceedToSubmitLabs:()=>w({type:"PROCEED_TO_SUBMIT_LABS"}),onLabRequested:e=>w({type:"LAB_REQUESTED",data:{lab:e}}),formData:a.context.formData});case ei.SubmitLabs:return(0,i.jsx)(H.x,{onGoBackToRequestLabs:()=>w({type:"GO_BACK_TO_REQUEST_LABS"}),onSubmitLabsLater:()=>w({type:"SUBMIT_LABS_LATER"}),onLabSubmitted:()=>w({type:"LAB_SUBMITTED"}),patientId:a.context.flyteUserData.patientId,diabetes:"yes"===a.context.formData.diabetes,bariatric:"yes"===a.context.formData.bariatricSurgery});default:return null}},[A,a]);return t({header:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.Flex,{gap:"spacer-5",alignItems:"center",children:[(0,i.jsx)(c.E,{partner:I.fz.Flyte}),(0,i.jsx)(r.Divider,{orientation:"vertical",alignSelf:"stretch",height:"auto"}),(0,i.jsx)(c.E,{partner:em})]}),(0,i.jsx)(d.nV,{currentStep:A})]}),body:M(),currentWorkFlowStep:A})}},77944:(e,t,a)=>{a.d(t,{Y:()=>i.Y});var i=a(87665)},80072:(e,t,a)=>{a.d(t,{C:()=>i});var i=function(e){return e.WorkflowSelector="workflowSelector",e.PreEligibility="preEligibility",e.ContactDetails="contactDetails",e.InsuranceDetails="insuranceDetails",e.InsuranceDetailsReview="insuranceDetailsReview",e.ApplicationReview="applicationReview",e.ApplicationComplete="applicationComplete",e.ApplicationDetected="applicationDetected",e.EligibilityUnmet="eligibilityUnmet",e.EmailVerification="emailVerification",e.OnboardingChecklist="onboardingChecklist",e.CreatePassword="createPassword",e.AppDownload="appDownload",e.ReviewConsents="reviewConsents",e.OnboardingUserError="onboardingUserError",e.RequestLabs="requestLabs",e.SubmitLabs="submitLabs",e}({})},80075:(e,t,a)=>{a.d(t,{nV:()=>c});var i=a(37876),r=a(37477),n=a(40917),o=a(80072);a(14232);let s=[{label:"Age & BMI",icon:r.IconScaleOutline},{label:"Personal Details",icon:r.IconId},{label:"Insurance Info",icon:r.IconClipboardPlus}],l=[{label:"CARE AGREEMENTS",icon:r.IconFile},{label:"CREATE PASSWORD",icon:r.IconLock},{label:"LABS",icon:r.IconPill},{label:"DOWNLOAD APP",icon:r.IconDownload}],c=e=>{let{currentStep:t}=e;switch(t){case o.C.PreEligibility:return(0,i.jsx)(n.s,{currentStep:"Age & BMI",steps:s});case o.C.ContactDetails:return(0,i.jsx)(n.s,{currentStep:"Personal Details",steps:l});case o.C.InsuranceDetails:return(0,i.jsx)(n.s,{currentStep:"Insurance Info",steps:l});case o.C.RequestLabs:case o.C.SubmitLabs:return(0,i.jsx)(n.s,{currentStep:"LABS",steps:l});case o.C.AppDownload:return(0,i.jsx)(n.s,{currentStep:"DOWNLOAD APP",steps:l});default:return null}}},80933:(e,t,a)=>{a.d(t,{h:()=>eJ});var i=a(37876),r=a(29261),n=a(74161),o=a(37477),s=a(52674),l=a(83439),c=a(80072),d=a(14232),S=a(44585),u=a(34305),C=a(1144),m=a(66885),p=a(62227),h=a(46884),g=a(76803),x=a(53100),b=a(59004),y=a(91366),f=a(48934),H=a(14901),v=a(533),I=a(39946),R=a(63583),D=a(53154),j=a(30435),E=a(42037),w=a(70587),A=a(11427),L=a(86535),T=a(43483),M=a(93511),k=a(82393),P=a(45383),U=a(84441),B=a(15986),F=a(48496),O=a(19847),z=a(88992),N=function(e){return e.NotReferred="Not referred",e.AccessHealthcare="Access Healthcare, PC",e.AnandKanjolia="Anand Kanjolia, MD, LLC",e.AnneMarieVilla="Anne Marie Villa, MD, PC",e.ArthurSkalski="Arthur H Skalski, MD Internal Medicine FACSG LLC",e.AvantaClinic="Avanta Clinic, LLC",e.ComprehensiveMedicalGroup="Comprehensive Medical Group, LLC",e.ConnecticutValleyPediatricCenter="Connecticut Valley Pediatric Center, Inc",e.DushyantParikh="Dushyant Parikh, MD",e.EastGranbyFamilyPractice="East Granby Family Practice, LLC",e.EileenComia="Eileen C Comia, MD, LLC",e.EllenMarmer="Ellen L Marmer, MD",e.FeelWellHealthCenter="Feel Well Health Center of Southington, PC dba Confidia Health Institute",e.HRobertSilverstein="H Robert Silverstein MD, FACC, PC",e.IvelisseViruet="Ivelisse Viruet, MD Internal Medicine, LLC",e.JamesHainesAndWilliamBelcastro="James Haines, MD & William Belcastro, MD",e.JudithMascolo="Judith M Mascolo, MD, LLC",e.JulieSacharko="Julie Sacharko, APRN LLC",e.KaiserPermanente="Kaiser Permanente",e.MahmoodYekta="Mahmood Yekta, MD, PC dba Shafa Medical Clinic",e.MeadowsHealthCenter="Meadows Health Center, PC",e.MobileCarePartners="Mobile Care Partners of Connecticut, PLLC",e.MouliAssociates="Mouli Associates LLC",e.OksanaKloyzner="Oksana Kloyzner, MD, LLC",e.OliverDiaz="Oliver B Diaz, MD",e.PeiSun="Pei Sun MD, LLC",e.PersonalPrimaryCare="Personal Primary Care and Weight Management LLC",e.PreferredHealthcareAssociates="Preferred Healthcare Associates, Inc",e.PrimaryPhysicalMedicine="Primary Physical Medicine, LLC",e.QuinonesMedicalGroup="Quinones Medical Group, LLC",e.RamirezMedicalPractice="Ramirez Medical Practice, PLLC",e.ReviveCenterForHealth="REVIVE Center for Health & Wellness, PLLC",e.RobertCarlson="Robert D Carlson, MD, LLC",e.RockyHillMedicalCenter="Rocky Hill Medical Center, LLC",e.RoyKellerman="Roy A Kellerman, MD, LLC",e.SoNEHealthMedicalGroup="SoNE Health Medical Group, PLLC",e.SuffieldMedicalAssociates="Suffield Medical Associates",e.WarrenPediatrics="Warren Pediatrics, LLC",e.WinstedInternalMedicine="Winsted Internal Medicine Associates",e.YounusMasih="Younus Masih, MD",e.Other="Other",e}({});let _="referralProgram",W=Object.values(N),X=e=>{let{options:t=W,isRequired:a,isDisabled:r,defaultSelectedItem:n,placeholder:s}=e,{watch:l,control:c}=(0,z.xW)(),[S,u]=(0,d.useState)(""),C=S?t.filter(e=>e.toLowerCase().includes(S.toLowerCase())):t;return(0,i.jsxs)(o.Flex,{direction:"column",gap:"spacer-2",children:[(0,i.jsxs)(o.Box,{children:[(0,i.jsx)(o.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:_,children:"Were you referred to FlyteHealth?"}),(0,i.jsx)(o.Text,{variant:"text-body-meta-regular",color:"text-secondary",children:"If yes, select the healthcare organization, clinic, or provider."})]}),(0,i.jsx)(z.xI,{control:c,name:_,rules:{required:a},render:e=>{let{field:{onChange:t,onBlur:a}}=e;return(0,i.jsxs)(o.Autocomplete,{id:"".concat(_,"-autocomplete"),items:C,onInputValueChange:e=>{let{inputValue:a}=e;u(a||""),a||t(a)},onSelectedItemChange:e=>{let{selectedItem:a}=e;return t(a)},initialSelectedItem:n,selectedItem:l(_)||"",children:[(0,i.jsx)(o.Autocomplete.Input,{"data-test":_,id:_,size:"l",placeholder:s,clearButtonMode:r?"never":"has-value",leadingIcon:(0,i.jsx)(o.IconSearch,{}),variant:"flushed",isDisabled:r,onBlur:a}),(0,i.jsx)(o.Autocomplete.List,{"data-test":"".concat(_,"List"),zIndex:2,renderItem:e=>(0,i.jsx)(o.Text,{variant:"text-body-regular",children:e}),overflowY:"auto",maxHeight:"13.5rem"})]})}})]})},V=[u.yj.California,u.yj.Connecticut,u.yj.Massachusetts,u.yj["New York"],u.yj["Rhode Island"],u.yj["New Hampshire"],u.yj.Vermont],q=[u.yj.California,u.yj.Colorado,u.yj.Oregon,u.yj.Georgia,u.yj.Hawaii,u.yj.Maryland,u.yj.Virginia,u.yj.Washington,u.yj["Washington D.C."]],Y=e=>q.includes(e)?[N.KaiserPermanente]:Object.values(N).filter(e=>e!==N.KaiserPermanente&&e!==N.Other&&e!==N.NotReferred),K=e=>{let{configuration:t,loading:a=!1,onSubmit:r,defaultValues:n}=e,{contentResources:s,fields:l}=t,c=(0,z.mN)({mode:"onBlur",defaultValues:n,shouldUnregister:!1}),S=(0,d.useRef)(null==n?void 0:n.state),u=(0,d.useRef)(null==n?void 0:n.referralProgram),{watch:C}=c,m=(0,O.a)(),p=C(F.b),h=C(_),g=p&&(V.includes(p)||q.includes(p)),x=!p||a||!g,b=p&&!g?"There are no organizations or clinics in your state":"Select referral location",y=!!h,f=!p||a||g&&!y,H=g&&!y,v="Not referred"===h||""===h?l.howDidYouFindUs.options.notReferrerOptions:l.howDidYouFindUs.options.referrerOptions;(0,d.useEffect)(()=>{h!==u.current&&(c.resetField(B.l,{defaultValue:""}),u.current=h)},[h,c]),(0,d.useEffect)(()=>{p!==S.current&&(c.resetField(_,{defaultValue:""}),c.resetField(B.l,{defaultValue:""}),S.current=p)},[p,c]);let I=()=>(0,i.jsx)(o.Button,{type:"submit",size:{base:"m",lg:"l"},isDisabled:!c.formState.isValid,width:"100%",isLoading:a,trailingIcon:(0,i.jsx)(o.IconArrowRight,{}),"aria-label":"Continue",children:"Continue"});return(0,i.jsx)(z.Op,{...c,children:(0,i.jsxs)(P.X,{as:"form",onSubmit:c.handleSubmit(r),noValidate:!0,children:[(0,i.jsx)(P.X.Side,{gap:0,flex:{base:"none",lg:1},children:s.title}),(0,i.jsxs)(P.X.Form,{children:[(0,i.jsx)(k.d5,{isDisabled:a}),(0,i.jsx)(k.LP,{inputProps:{isDisabled:a}}),(0,i.jsxs)(o.Flex,{direction:{base:"column",lg:"row"},gap:"spacer-9",children:[(0,i.jsx)(U.PV,{isDisabled:a,flex:1}),(null==l?void 0:l.state)&&(0,i.jsx)(F.X,{isDisabled:a,flex:1,options:l.state.options})]}),(0,i.jsx)(X,{isDisabled:x,isRequired:H,placeholder:b,options:Y(p)}),(0,i.jsx)(B.h,{isDisabled:f,options:v}),(0,i.jsx)(U.Ci,{isDisabled:a,pb:{base:"spacer-24",lg:0}}),m?(0,i.jsx)(k.cI,{children:I()}):I()]})]})})};var G=a(11969),Q=a(10758),J=a(85007),$=a(20411),Z=a(31346),ee=a(38360),et=a(77944),ea=a(12342);let ei=e=>{let t={bariatricSurgery:2200,diabetes:2199,comorbidities:2201};return{answers:{[t.bariatricSurgery]:{order:1,answer:e.bariatricSurgery},[t.diabetes]:{order:2,answer:e.diabetes},[t.comorbidities]:{order:3,answer:e.comorbidities}},status:"completed",percentage:100,patientId:e.patientId,slug:"screener-questionnaire"}},er=async e=>{let t=ei(e);return await ea.A.post("/api/hra-questionnaire",t)};var en=a(47353),eo=a(83928),es=a(33841),el=a(13751),ec=a(92323),ed=a(86687),eS=a(89225),eu=a(97793),eC=a(68792),em=a(65159),ep=a(39777),eh=a(45352),eg=a(99221);let ex=e=>e===N.KaiserPermanente?u.PM["Kaiser Permanente"]:u.PM["SoNE Health"],eb=(e,t)=>{if(e===N.KaiserPermanente)return t},ey=(e,t)=>{switch(e){case u.lk["1199SEIU"]:return!0;case u.lk.Aetna:case u.lk.Cigna:return[u.yj["New York"],u.yj["New Jersey"],u.yj.Connecticut].includes(t);case u.lk.BCBS:case u.lk.United:return t===u.yj["New York"];case u.lk.BCBSPPO:case u.lk.Other:case u.lk["Kaiser Colorado"]:case u.lk["Kaiser Georgia"]:case u.lk["Kaiser Hawaii"]:case u.lk["Kaiser MidAtlantic"]:case u.lk["Kaiser Northern California"]:case u.lk["Kaiser Northwest"]:case u.lk["Kaiser Southern California"]:case u.lk["Kaiser Washington"]:case u.lk["Kaiser Washington Options"]:default:return!1}},ef=e=>{let{bmi:t,comorbidity:a,insurance:i,insuranceCoverage:r,state:n}=e;return(!(t>=27)||!(t<=30)||a!==eg.Y9.Yes)&&r!==u.RS.SelfPay&&ey(i,n)},eH=e=>{let{insuranceCoverage:t,insurance:a,state:i}=e;return t===u.RS.SelfPay?u.hT.CashPay:ey(a,i)?void 0:u.hT.Insurance},ev=e=>{let{bmi:t,comorbidity:a,insuranceCoverage:i,insurance:r,state:n}=e;if(!ef({bmi:t,comorbidity:a,insurance:r,insuranceCoverage:i,state:n}))return u.XN.EligibleWaiting},eI=e=>{let{insurance:t,insuranceCoverage:a}=e;return a===u.RS.SelfPay?u.lk.SelfPay:t};var eR=function(e){return e.CreateLead="createLead",e.CreateContact="createContact",e.UpdateContact="updateContact",e.CheckBenefits="checkBenefits",e.DetermineBenefitsOrLead="determineBenefitsOrLead",e.DetermineContactOrLead="determineContactOrLead",e.FetchConsents="fetchConsents",e.UpdateEmail="updateEmail",e.SubmitHRA="submitHRA",e}(eR||{});let eD={...eu.f,...eR},ej=eS.Ek[es.fz.Flyte],eE={formData:{birthdate:"",comorbidity:"",currentWeightInPounds:"",dateOfHighestWeightValue:"",email:"",firstName:"",heightInFoot:"",heightInInch:"",highestWeightInPounds:"",insuranceCoverage:void 0,insuranceMemberID:"",insuranceOther:void 0,insurance:void 0,lastName:"",phone:"",state:void 0,termsAgreement:!1,howDidYouFindUS:"",referralProgram:void 0,comorbidities:[],diabetes:"",bariatricSurgery:""},bmi:void 0,benefitsCheck:void 0,otpData:void 0,consentsData:{items:[],userConsentStatus:[]},contactData:{},passwordData:{password:void 0,confirmPassword:void 0},flyteUserData:void 0,error:void 0},ew={...el.AU,...el.gQ,...el.pE,...el.UH,...el.yF,...el.n6,...el.uN,...el.yS,...el.RW,...(0,el.rS)(eE)},eA=(0,em.mj)({types:{},guards:{isPreEligibilityMet:e=>{let{context:{formData:t,bmi:a}}=e;return eC.J0.flyte({bmi:a,comorbidity:t.comorbidity})},isApplicationReviewRequired:e=>{let{context:{formData:t,bmi:a}}=e;return!eo.A.shouldBypassIsApplicationReviewRequired({email:t.email})&&!ef({bmi:a,comorbidity:t.comorbidity,insuranceCoverage:t.insuranceCoverage,insurance:t.insurance,state:t.state})},isApplicationDetected:ed.L,isInsurerSelected:e=>{let{context:{formData:t}}=e;return!!t.insurance&&t.insurance!==es.lk.Other},isAthenaRecordCreated:ec.z},actions:ew}).createMachine({context:()=>eE,id:"flyteMachine",initial:eD.PreEligibility,states:{[eD.PreEligibility]:{id:eD.PreEligibility,initial:eD.Idle,states:{[eD.Idle]:{on:{SUBMIT:{target:eD.Submitting,actions:"updateFormData"}}},[eD.Submitting]:{entry:"assignBMI",always:[{guard:"isPreEligibilityMet",target:"#".concat(eD.ContactDetails)},{target:"#".concat(eD.EligibilityUnmet)}]}}},[eD.ContactDetails]:{id:eD.ContactDetails,initial:eD.Idle,states:{[eD.Idle]:{on:{SUBMIT:{target:"#".concat(eD.InsuranceDetails),actions:"updateFormData"}}}}},[eD.InsuranceDetails]:{id:eD.InsuranceDetails,initial:eD.Idle,states:{[eD.Idle]:{on:{BACK:{target:"#".concat(eD.ContactDetails)},SUBMIT:{target:"#".concat(eD.InsuranceDetailsReview),actions:"updateFormData"}}}}},[eD.InsuranceDetailsReview]:{id:eD.InsuranceDetailsReview,initial:eD.Idle,states:{[eD.Idle]:{on:{SUBMIT:{actions:"updateFormData",target:eD.Submitting}}},[eD.Submitting]:{initial:eD.DetermineBenefitsOrLead,states:{[eD.DetermineBenefitsOrLead]:{id:eD.DetermineBenefitsOrLead,always:[{guard:"isInsurerSelected",target:eD.CheckBenefits},{target:eD.CreateLead}]},[eD.CheckBenefits]:{id:eD.CheckBenefits,invoke:{src:(0,ep.Sx)(async e=>{let{input:t}=e,a={...t,payerCode:eS.dT[t.insurance]};return await (0,$.R)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:{actions:(0,eh.a)({benefitsCheck:e=>{let{event:t}=e;return t.output.data}}),target:eD.DetermineContactOrLead},onError:eD.DetermineContactOrLead}},[eD.DetermineContactOrLead]:{id:eD.DetermineContactOrLead,always:[{guard:"isApplicationReviewRequired",target:eD.CreateLead},{target:eD.CreateContact}]},[eD.CreateContact]:{id:eD.CreateContact,invoke:{src:(0,ep.Sx)(async e=>{let{input:t}=e,a={...t.formData,referralProgram:t.formData.referralProgram,...t.benefitsCheck&&{benefitsCheck:t.benefitsCheck},company:ej,insurance:eI({insuranceCoverage:t.formData.insuranceCoverage,insurance:t.formData.insurance}),evolveOrganization:ex(t.formData.referralProgram),participantDepartmentorOrg:eb(t.formData.referralProgram,t.formData.insurance),accountId:eS.f3[es.fz.Flyte]};return await (0,ee.vY)(a)}),input:e=>{let{context:t}=e;return t},onDone:{actions:"assignContactData",target:"#".concat(eD.EmailVerification)},onError:[{guard:"isApplicationDetected",target:"#".concat(eD.ApplicationDetected)},{target:"#".concat(eD.InsuranceDetailsReview,".").concat(eD.Error)}]}},[eD.CreateLead]:{id:eD.CreateLead,invoke:{src:(0,ep.Sx)(async e=>{let{input:t}=e,a={...t.formData,referralProgram:t.formData.referralProgram,...t.benefitsCheck&&{benefitsCheck:t.benefitsCheck},company:ej,insurance:eI({insuranceCoverage:t.formData.insuranceCoverage,insurance:t.formData.insurance}),evolveOrganization:ex(t.formData.referralProgram),ineligibilityReason:eH({insuranceCoverage:t.formData.insuranceCoverage,insurance:t.formData.insurance,state:t.formData.state}),leadStatus:ev({bmi:t.bmi,comorbidity:t.formData.comorbidity,insuranceCoverage:t.formData.insuranceCoverage,insurance:t.formData.insurance,state:t.formData.state}),automateEvolveEnrollment:ef({bmi:t.bmi,comorbidity:t.formData.comorbidity,insuranceCoverage:t.formData.insuranceCoverage,insurance:t.formData.insurance,state:t.formData.state}),participantDepartmentorOrg:eb(t.formData.referralProgram,t.formData.insurance)};return await (0,en.t)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{guard:"isApplicationReviewRequired",target:"#".concat(eD.ApplicationReview)},{target:"#".concat(eD.ApplicationComplete)}],onError:[{guard:"isApplicationDetected",target:"#".concat(eD.ApplicationDetected)},{target:"#".concat(eD.InsuranceDetailsReview,".").concat(eD.Error)}]}}}},[eD.Error]:{id:"".concat(eD.InsuranceDetailsReview,".").concat(eD.Error),on:{SUBMIT:{actions:["updateFormData","resetBenefitsCheck"],target:eD.Submitting}}}}},[eD.EmailVerification]:{id:eD.EmailVerification,initial:eD.Idle,states:{[eD.Idle]:{id:"".concat(eD.EmailVerification,".").concat(eD.Idle),on:{SUBMIT:{actions:"assignOtpCode",target:eD.Submitting},RESEND_EMAIL_VERIFICATION:{target:eD.Idle,reenter:!0},UPDATE_EMAIL:{target:eD.UpdateEmail}},invoke:{input:e=>{var t;let{context:a,event:i}=e;return{email:a.formData.email,firstName:a.formData.firstName,onSuccess:null==i||null==(t=i.data)?void 0:t.onSuccess}},src:(0,ep.Sx)(async e=>{let{input:t}=e,a={email:t.email,firstName:t.firstName};return{token:(await (0,Q.v)(a)).data.token,onSuccess:t.onSuccess}}),onDone:{actions:[(0,eh.a)({otpData:e=>{let{context:t,event:a}=e;return{...t.otpData,token:a.output.token}}}),e=>{var t;let{event:a}=e;(null==a||null==(t=a.output)?void 0:t.onSuccess)&&a.output.onSuccess()}]},onError:eD.Error}},[eD.Submitting]:{invoke:{src:(0,ep.Sx)(async e=>{let{input:t}=e,a={email:t.formData.email,token:t.otpData.token,otp:t.otpData.otp};return await (0,J.R)(a)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(eD.OnboardingChecklist),onError:eD.Error}},[eD.Error]:{on:{SUBMIT:{actions:"assignOtpCode",target:eD.Submitting},RESEND_EMAIL_VERIFICATION:{target:eD.Idle},UPDATE_EMAIL:{target:eD.UpdateEmail}}},[eD.UpdateEmail]:{initial:eD.Idle,states:{[eD.Idle]:{invoke:{input:e=>{let{context:t,event:a}=e;return{contactId:t.contactData.contactId,email:a.data.email,onSuccess:a.data.onSuccess}},src:(0,ep.Sx)(async e=>{let{input:t}=e,a={contactId:t.contactId,email:t.email};return await (0,ee.CI)(a),{email:t.email,onSuccess:t.onSuccess}}),onDone:{actions:["assignNewEmail",e=>{var t;let{event:a}=e;(null==a||null==(t=a.output)?void 0:t.onSuccess)&&a.output.onSuccess()}],target:"#".concat(eD.EmailVerification,".").concat(eD.Idle)},onError:eD.Error}},[eD.Error]:{on:{SUBMIT:{target:"#".concat(eD.EmailVerification,".").concat(eD.Idle)},RESEND_EMAIL_VERIFICATION:{target:"#".concat(eD.EmailVerification,".").concat(eD.Idle)},UPDATE_EMAIL:{target:eD.Idle}}}}}}},[eD.ReviewConsents]:{id:eD.ReviewConsents,initial:eD.FetchConsents,states:{[eD.Idle]:{on:{SUBMIT:{actions:["assignUserConsentStatus"],target:eD.Submitting}}},[eD.FetchConsents]:{invoke:{src:(0,ep.Sx)(async()=>await (0,Z.i)()),onDone:{actions:"assignConsents",target:eD.Idle},onError:eD.Error}},[eD.Submitting]:{invoke:{src:(0,ep.Sx)(async e=>{let{input:t}=e,a={patientIdentifier:t.contactData.contactId,firstName:t.formData.firstName,lastName:t.formData.lastName,phone:t.formData.phone,email:t.formData.email,birthDate:t.formData.birthdate,state:t.formData.state,heightInInch:t.formData.heightInInch,heightInFeet:t.formData.heightInFoot,currentWeightInPounds:t.formData.currentWeightInPounds,evolveOrganization:es.PM.Flyte,consents:t.consentsData.userConsentStatus};return await (0,et.Y)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{actions:"assignFlyteUserData",target:eD.SubmitHRA}],onError:"#".concat(eD.OnboardingUserError)}},[eD.SubmitHRA]:{id:eD.SubmitHRA,invoke:{src:(0,ep.Sx)(async e=>{let{input:t}=e,a={bariatricSurgery:t.formData.bariatricSurgery,diabetes:t.formData.diabetes,comorbidities:t.formData.comorbidities,patientId:t.flyteUserData.patientId};return await er(a)}),input:e=>{let{context:t}=e;return t},onDone:{target:eD.UpdateContact},onError:{target:eD.UpdateContact}}},[eD.UpdateContact]:{invoke:{src:(0,ep.Sx)(async e=>{let{input:t}=e,a={contactId:t.contactData.contactId,evolvePatientID:t.flyteUserData.patientId};return await (0,ee.CI)(a)}),input:e=>{let{context:t}=e;return t},onDone:[{guard:"isAthenaRecordCreated",target:"#".concat(eD.CreatePassword)},{target:"#".concat(eD.OnboardingUserError)}],onError:"#".concat(eD.OnboardingUserError)}},[eD.Error]:{on:{SUBMIT:{actions:["assignUserConsentStatus"],target:eD.Submitting}}}}},[eD.CreatePassword]:{id:eD.CreatePassword,initial:eD.Idle,states:{[eD.Idle]:{on:{SUBMIT:{actions:"assignPasswordData",target:eD.Submitting}}},[eD.Submitting]:{invoke:{src:(0,ep.Sx)(async e=>{let{input:t}=e,a={email:t.formData.email,password:t.passwordData.password,confirmPassword:t.passwordData.confirmPassword};return await (0,G.I)(t.flyteUserData.verifyToken,a)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(eD.AppDownload),onError:{target:eD.Error,actions:"assignError"}}},[eD.Error]:{on:{SUBMIT:{actions:["resetError","assignPasswordData"],target:eD.Submitting}}}}},[eD.OnboardingChecklist]:{id:eD.OnboardingChecklist,on:{SUBMIT:{target:"#".concat(eD.ReviewConsents)}}},[eD.AppDownload]:{id:eD.AppDownload},[eD.ApplicationReview]:{id:eD.ApplicationReview},[eD.OnboardingUserError]:{id:eD.OnboardingUserError},[eD.ApplicationComplete]:{id:eD.ApplicationComplete},[eD.ApplicationDetected]:{id:eD.ApplicationDetected},[eD.EligibilityUnmet]:{id:eD.EligibilityUnmet,initial:eD.Idle,states:{[eD.Idle]:{on:{SUBMIT:{target:eD.Submitting,actions:"updateFormData"}}},[eD.Submitting]:{invoke:{src:(0,ep.Sx)(async e=>{let{input:t}=e,a={...t,company:eS.Ek[es.fz.Flyte],leadStatus:es.XN.Ineligible,ineligibilityReason:es.hT.BMI,automateEvolveEnrollment:!1};return await (0,en.t)(a)}),input:e=>{let{context:{formData:t}}=e;return t},onDone:eD.Success,onError:eD.Error}},[eD.Success]:{},[eD.Error]:{on:{SUBMIT:{target:eD.Submitting}}}}}},on:{RESET:{target:"#".concat(eD.PreEligibility),actions:"reset"}}});var eL=a(69443);let eT={[c.C.PreEligibility]:{title:(0,i.jsxs)(o.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsxs)(o.TextPairing.Label,{color:"text-secondary-negative",children:["We're so glad you're here!"," ",(0,i.jsx)(o.Text,{as:"span",variant:"text-header-2XL",color:"text-primary",children:"Let's make sure you're eligible for FlyteHealth."})]}),(0,i.jsx)(o.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,i.jsx)(o.Text,{variant:"text-body-meta-regular",color:"text-secondary",children:"*We acknowledge that Body Mass Index (BMI) is an imperfect way to screen for excess weight. FlyteHealth providers do not use BMI alone as a measure of overall health. Instead, BMI is used as a data point to see if someone is eligible to join the FlyteHealth program. Once someone joins the program, we'll ask each person more about their health to create a personalized treatment plan."})},[c.C.EligibilityUnmet]:{title:(0,i.jsxs)(o.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(o.TextPairing.Label,{color:"text-secondary-negative",children:"Unfortunately, you are not eligible to join FlyteHealth at this time."}),(0,i.jsx)(o.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+"})]})},[c.C.ContactDetails]:{title:(0,i.jsxs)(o.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(o.TextPairing.Label,{color:"text-secondary-negative",children:"Congratulations! You're eligible for the FlyteHealth program"}),(0,i.jsx)(o.TextPairing.SubLabel,{color:"text-secondary",children:"Tell us a little more about yourself."})]})},[c.C.InsuranceDetails]:{title:(0,i.jsxs)(o.Text,{variant:"text-header-2XL",color:"text-secondary-negative",children:["One more thing:"," ",(0,i.jsx)(o.Text,{as:"span",variant:"text-header-2XL",color:"text-primary",children:"Do you have health insurance?"})]})},[c.C.InsuranceDetailsReview]:{title:(0,i.jsxs)(o.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(o.TextPairing.Label,{children:"Let's review: Is your info correct?"}),(0,i.jsx)(o.TextPairing.SubLabel,{color:"text-secondary",children:"Please double-check the information you provided to make sure everything is correct."})]})},[c.C.ApplicationComplete]:{title:(0,i.jsxs)(o.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(o.TextPairing.Label,{color:"text-secondary-negative",children:"Welcome aboard! We're so excited you're here."}),(0,i.jsx)(o.TextPairing.SubLabel,{color:"text-secondary",children:"Next, we need to confirm your email. Click the link we sent to:"})]}),description:(0,i.jsx)(o.Text,{mt:"spacer-8",color:"text-secondary",variant:"text-body-regular",children:"Can’t find the email? Make sure to check your Spam folder."})},[c.C.ApplicationReview]:{title:(0,i.jsxs)(o.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(o.TextPairing.Label,{color:"text-primary",children:"You're almost finished!"}),(0,i.jsx)(o.TextPairing.SubLabel,{color:"text-secondary",children:"We've received your application, but we need a little more information from you to move forward. Please call us to complete the application process."})]})},[c.C.ApplicationDetected]:{title:(0,i.jsx)(o.Text,{variant:"text-header-2XL",color:"text-primary",children:"We found an existing account for:"}),description:(0,i.jsx)(o.Text,{variant:"text-body-display-S",color:"text-secondary",children:"It looks like you already have an account with us. To continue or update your registration details, please contact our Care Coordinator team."})},[c.C.EmailVerification]:eL.M[c.C.EmailVerification],[c.C.OnboardingChecklist]:eL.M[c.C.OnboardingChecklist],[c.C.CreatePassword]:eL.M[c.C.CreatePassword],[c.C.AppDownload]:eL.M[c.C.AppDownload],[c.C.ReviewConsents]:eL.M[c.C.ReviewConsents]},eM=[u.lk["1199SEIU"],u.lk.Aetna,u.lk.BCBS,u.lk.BCBSPPO,u.lk.Cigna,u.lk["Kaiser Colorado"],u.lk["Kaiser Georgia"],u.lk["Kaiser Hawaii"],u.lk["Kaiser MidAtlantic"],u.lk["Kaiser Northern California"],u.lk["Kaiser Northwest"],u.lk["Kaiser Southern California"],u.lk["Kaiser Washington"],u.lk["Kaiser Washington Options"],u.lk.United,u.lk.Other],ek=[u.UX.Brochure,u.UX.Email,u.UX.Mailer,u.UX.OnsiteMonitor,u.UX.Poster,u.UX.ProviderReferral,u.UX.Other],eP=[u.UX.Brochure,u.UX.CoworkerReferral,u.UX.Email,u.UX.GoogleAd,u.UX.Poster,u.UX.PrintAd,u.UX.ProviderReferral,u.UX.SocialMedia,u.UX.TradeShow,u.UX.TVAd,u.UX.WebSearch,u.UX.WordOfMouth,u.UX.Other],eU={[c.C.ContactDetails]:{state:{options:k.rI},howDidYouFindUs:{options:{referrerOptions:ek,notReferrerOptions:eP}}},[c.C.InsuranceDetails]:{insuranceCoverage:{},insurance:{label:"Insurance Company",insuranceCarriers:eM},insuranceOther:{description:(0,i.jsx)(o.Text,{variant:"text-body-meta-regular",color:"text-secondary",children:"Enter the name of your insurance company"})},insuranceMemberID:{}},[c.C.InsuranceDetailsReview]:{insurance:{label:"Insurance Company",insuranceCarriers:eM}}},eB=u.fz.Flyte,eF=e=>{let{render:t}=e,[a,r]=(0,p.zl)(eA),n=(0,d.useMemo)(()=>(0,m.r)(a.value),[a.value]);(0,M.t)(n,eB);let o=(0,d.useCallback)(e=>{r({type:"SUBMIT",data:e})},[r]),s=(0,d.useCallback)(()=>{r({type:"BACK"})},[r]),l=(0,d.useCallback)(()=>{switch(n){case eD.PreEligibility:return(0,i.jsx)(L.P,{configuration:{contentResources:eT[c.C.PreEligibility]},onSubmit:o});case eD.ContactDetails:return(0,i.jsx)(K,{configuration:{contentResources:eT[c.C.ContactDetails],fields:eU[c.C.ContactDetails]},onSubmit:o,defaultValues:a.context.formData});case eD.EligibilityUnmet:return(0,i.jsx)(R.B,{configuration:{contentResources:eT[c.C.EligibilityUnmet]},onSubmit:o,loading:a.matches({[eD.EligibilityUnmet]:eD.Submitting}),isEmailSent:a.matches({[eD.EligibilityUnmet]:eD.Success}),hasError:a.matches({[eD.EligibilityUnmet]:eD.Error})});case eD.InsuranceDetails:return(0,i.jsx)(j.d,{configuration:{contentResources:eT[c.C.InsuranceDetails],fields:eU[c.C.InsuranceDetails]},onSubmit:o,onBack:s});case eD.InsuranceDetailsReview:return(0,i.jsx)(E.h,{configuration:{contentResources:eT[c.C.InsuranceDetailsReview],fields:eU[c.C.InsuranceDetailsReview]},onSubmit:o,loading:a.matches({[eD.InsuranceDetailsReview]:eD.Submitting}),hasError:a.matches({[eD.InsuranceDetailsReview]:eD.Error}),defaultValues:a.context.formData});case eD.ApplicationComplete:return(0,i.jsx)(y.Q,{...eT[c.C.ApplicationComplete],email:a.context.formData.email});case eD.ApplicationReview:return(0,i.jsx)(H.l,{...eT[c.C.ApplicationReview]});case eD.ApplicationDetected:return(0,i.jsx)(f.r,{...eT[c.C.ApplicationDetected],email:a.context.formData.email});case eD.EmailVerification:return(0,i.jsx)(D.e,{configuration:{contentResources:{title:eT[c.C.EmailVerification](a.context.formData.email).title}},email:a.context.formData.email,hasError:a.matches({[eD.EmailVerification]:eD.Error}),loading:a.matches({[eD.EmailVerification]:eD.Submitting}),isUpdateEmailLoading:a.matches({[eD.EmailVerification]:{[eD.UpdateEmail]:eD.Idle}}),hasUpdateEmailError:a.matches({[eD.EmailVerification]:{[eD.UpdateEmail]:eD.Error}}),onSubmit:o,onResendCode:e=>r({type:"RESEND_EMAIL_VERIFICATION",data:{onSuccess:e}}),onEditEmail:(e,t)=>r({type:"UPDATE_EMAIL",data:{email:e,onSuccess:t}})});case eD.OnboardingChecklist:return(0,i.jsx)(w.E,{configuration:{contentResources:eT[c.C.OnboardingChecklist]},onSubmit:o});case eD.ReviewConsents:return(0,i.jsx)(T.U,{configuration:{contentResources:eT[c.C.ReviewConsents]},consents:a.context.consentsData.items,hasError:a.matches({[eD.ReviewConsents]:eD.Error}),loading:a.matches({[eD.ReviewConsents]:eD.FetchConsents})||a.matches({[eD.ReviewConsents]:eD.Submitting})||a.matches({[eD.ReviewConsents]:eD.UpdateContact})||a.matches({[eD.ReviewConsents]:eD.SubmitHRA}),onSubmit:o});case eD.CreatePassword:return(0,i.jsx)(I.i,{configuration:{contentResources:eT[c.C.CreatePassword]},loading:a.matches({[eD.CreatePassword]:eD.Submitting}),error:a.context.error,onSubmit:o});case eD.AppDownload:return(0,i.jsx)(b.a,{title:eT[c.C.AppDownload].title,checklist:eT[c.C.AppDownload].checklist});case eD.OnboardingUserError:return(0,i.jsx)(A.C,{});default:return null}},[n,a]);return t({header:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(S.E,{partner:eB}),(0,i.jsx)(v.f,{currentStep:n})]}),body:l(),currentWorkFlowStep:n})};var eO=a(96079),ez=a(32246),eN=a(53310),e_=a(47811),eW=a(56931),eX=a(20058);let eV={[u.fz.CareCompass]:{asset:{src:S.k[u.fz.CareCompass],width:"64px",height:"64px",alt:"Care Compass Logo"},name:"Care Compass",description:"State of Connecticut Health Plan Members"},[u.fz.Aetna]:{asset:{src:S.k[u.fz.Aetna],width:"141px",height:"32px",alt:"Aetna Logo"},name:"State of Connecticut: Aetna",description:"Aetna MA for State of Connecticut Retirees"},[u.fz.PequotHealthCare]:{asset:{src:S.k[u.fz.PequotHealthCare],width:"103px",height:"40px",alt:"Pequot Health Care Logo"},name:"Mashantucket Pequot Tribal Nation",description:"Pequot Healthy Weight Program"},[u.fz.RiverSpringLiving]:{asset:{src:S.k[u.fz.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"},[u.fz.PyleFamilyInsurance]:{asset:{src:S.k[u.fz.PyleFamilyInsurance],width:"157px",height:"48px",alt:"Pyle Family Insurance Logo"},name:"A. Duie Pyle",description:"Pyle Weight Management Program for Employees"},[u.fz.MDSave]:{asset:{src:S.k[u.fz.MDSave],width:"56px",height:"56px",alt:"MDsave Logo"},name:"MDsave",description:"Patients in partnership with MDsave"},[u.fz["1199SEIU"]]:{asset:{src:S.k[u.fz["1199SEIU"]],width:"211px",height:"122px",alt:"1199SEIU Logo"},name:"1199SEIU",description:"1199SEIU"}},eq=e=>(0,i.jsx)(o.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});eq.Image=e=>(0,i.jsx)(o.Image,{flex:1,objectFit:"contain",...e}),eq.Description=e=>(0,i.jsx)(o.Text,{variant:"text-body-floating-label-regular",color:"text-secondary",textAlign:"center",...e}),eq.Title=e=>(0,i.jsx)(o.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}),eq.Frame=e=>(0,i.jsx)(o.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 eY=e=>{let{onSelectWorkflow:t}=e,{track:a}=(0,n.useAnalytics)(),r=e=>()=>(a("".concat(e,"_selected"),{partner:e}),t(e)),s=Object.entries(eV);return(0,i.jsxs)(P.s,{direction:"column",gap:"spacer-9",children:[(0,i.jsx)(o.Flex,{direction:"column",gap:"spacer-2",children:(0,i.jsxs)(o.Text,{variant:"text-header-XL",color:"text-secondary-negative",children:["Welcome!"," ",(0,i.jsxs)(o.Text,{as:"span",variant:"text-header-XL",color:"text-primary",children:["To get started, please select your benefit program."," "]})]})}),(0,i.jsxs)(o.Flex,{direction:"column",gap:{base:"spacer-9"},children:[(0,i.jsx)(o.Flex,{direction:"column",gap:"spacer-4",flex:1}),(0,i.jsxs)(o.Flex,{direction:"column",gap:"spacer-4",pb:{base:"spacer-9",md:"spacer-6"},flex:1,children:[(0,i.jsx)(o.Flex,{direction:{base:"column",md:"row"},gap:{base:"spacer-6",md:"spacer-3"},justifyContent:{md:"space-between"},alignItems:{md:"end"},children:(0,i.jsxs)(o.Flex,{gap:"spacer-3",alignItems:"center",flex:1,children:[(0,i.jsx)(o.IconArrowRight,{color:"primary-default",size:"l"}),(0,i.jsx)(o.Text,{variant:"text-body-large-medium",color:"text-primary",children:"Available Programs:"})]})}),(0,i.jsxs)(o.Grid,{spacingX:"spacer-4",spacingY:{base:"spacer-4",lg:"spacer-6"},columns:{base:2,md:3,lg:4,xxl:5},children:[s.map(e=>{let[t,{asset:a,description:n,name:o}]=e;return(0,i.jsxs)(eq,{onClick:r(t),children:[(0,i.jsxs)(eq.Frame,{children:[(0,i.jsx)(eq.Image,{...a}),(0,i.jsx)(eq.Description,{children:n})]}),(0,i.jsx)(eq.Title,{children:o})]},t)}),(0,i.jsxs)(eq,{"aria-label":"Provider Referral",onClick:r(u.fz.Flyte),maxWidth:"16rem",children:[(0,i.jsx)(eq.Frame,{p:0,width:"100%",minHeight:{base:"7.5rem",md:"10rem"},children:(0,i.jsx)(eq.Image,{src:S.k[u.fz.KaiserPermanente],width:"123px",height:"40px",alt:"Kaiser Permanente Logo"})}),(0,i.jsx)(eq.Title,{children:"Provider Referral"})]}),(0,i.jsxs)(eq,{onClick:r(u.fz.Flyte),maxWidth:"16rem",children:[(0,i.jsx)(eq.Frame,{p:0,width:"100%",minHeight:{base:"7.5rem",md:"10rem"},children:(0,i.jsx)(eq.Image,{src:S.k[u.fz.Sone],width:"123px",height:"40px",alt:"Sone Logo"})}),(0,i.jsx)(eq.Title,{children:"Provider Referral"})]})]})]})]}),(0,i.jsxs)(o.Flex,{direction:"column",gap:"spacer-1",children:[(0,i.jsx)(o.Text,{color:"text-secondary",variant:"text-body-bold",children:"Need some help?"}),(0,i.jsxs)(o.Text,{color:"text-secondary",variant:"text-body-regular",children:["Please call"," ",(0,i.jsx)(eX.C,{})," ","to speak with a Care Coordinator."]})]})]})},eK={WorkflowSelector:"workflowSelector",...es.fz},eG=(0,em.mj)({types:{},guards:{isCareCompassSelected:e=>{let{event:t}=e;return t.data.workflow===es.fz.CareCompass},isAetnaSelected:e=>{let{event:t}=e;return t.data.workflow===es.fz.Aetna},isRiverspringSelected:e=>{let{event:t}=e;return t.data.workflow===es.fz.RiverSpringLiving},isPequotSelected:e=>{let{event:t}=e;return t.data.workflow===es.fz.PequotHealthCare},isPyleSelected:e=>{let{event:t}=e;return t.data.workflow===es.fz.PyleFamilyInsurance},isMDSaveSelected:e=>{let{event:t}=e;return t.data.workflow===es.fz.MDSave},isChristianaCareSelected:e=>{let{event:t}=e;return t.data.workflow===es.fz.ChristianaCare},is1199SEIUSelected:e=>{let{event:t}=e;return t.data.workflow===es.fz["1199SEIU"]}}}).createMachine({id:"workflowManagerMachine",initial:eK.WorkflowSelector,states:{[eK.WorkflowSelector]:{id:eK.WorkflowSelector,on:{SUBMIT:[{guard:"isCareCompassSelected",target:eK.CareCompass},{guard:"isAetnaSelected",target:eK.Aetna},{guard:"isRiverspringSelected",target:eK.RiverSpringLiving},{guard:"isPequotSelected",target:eK.PequotHealthCare},{guard:"isPyleSelected",target:eK.PyleFamilyInsurance},{guard:"isMDSaveSelected",target:eK.MDSave},{guard:"isChristianaCareSelected",target:eK.ChristianaCare},{guard:"is1199SEIUSelected",target:eK["1199SEIU"]},{target:eK.Flyte}]}},[eK.PequotHealthCare]:{},[eK.RiverSpringLiving]:{},[eK.CareCompass]:{},[eK.Aetna]:{},[eK.Flyte]:{},[eK.PyleFamilyInsurance]:{},[eK.MDSave]:{},[eK.ChristianaCare]:{},[eK["1199SEIU"]]:{}}}),eQ=e=>{let{render:t}=e,[a,r]=(0,p.zl)(eG),n=(0,d.useMemo)(()=>(0,m.r)(a.value),[a.value]),s=(0,d.useCallback)(e=>{r({type:"SUBMIT",data:{workflow:e}})},[r]);return(0,d.useCallback)(()=>{switch(n){case eK.WorkflowSelector:return t({header:(0,i.jsx)(S.E,{partner:u.fz.Flyte}),body:(0,i.jsx)(eY,{onSelectWorkflow:s}),currentWorkFlowStep:n});case eK.Aetna:return(0,i.jsx)(o.ComposerProvider,{theme:C.w4.aetna,children:(0,i.jsx)(h.j,{render:t})});case eK.CareCompass:return(0,i.jsx)(o.ComposerProvider,{theme:C.w4.careCompass,children:(0,i.jsx)(g.Z,{render:t})});case eK.RiverSpringLiving:return(0,i.jsx)(o.ComposerProvider,{theme:C.w4.riverspring,children:(0,i.jsx)(e_.D,{render:t})});case eK.PequotHealthCare:return(0,i.jsx)(o.ComposerProvider,{theme:C.w4.pequot,children:(0,i.jsx)(ez.K,{render:t})});case eK.PyleFamilyInsurance:return(0,i.jsx)(o.ComposerProvider,{theme:C.w4.pyle,children:(0,i.jsx)(eN.A,{render:t})});case eK.MDSave:return(0,i.jsx)(o.ComposerProvider,{theme:C.w4.standard,children:(0,i.jsx)(eO.Y,{render:t})});case eK.ChristianaCare:return(0,i.jsx)(o.ComposerProvider,{theme:C.w4.standard,children:(0,i.jsx)(x.z,{render:t})});case eK["1199SEIU"]:return(0,i.jsx)(o.ComposerProvider,{theme:C.w4.standard,children:(0,i.jsx)(eW.A,{render:t})});case eK.Flyte:default:return(0,i.jsx)(eF,{render:t})}},[n])()},eJ=e=>{let{size:t="l",children:a="Get Started",...S}=e,[u,C]=(0,d.useState)(!1),[m,p]=(0,d.useState)(!1),{track:h}=(0,n.useAnalytics)(),g=(0,d.useCallback)(()=>{p(!1),C(!1),h(r.A.closeWorkflowEvent)},[]),x=(0,d.useCallback)(()=>p(e=>!e),[]),b=(0,d.useCallback)(e=>{[c.C.ApplicationReview,c.C.ApplicationComplete,c.C.ApplicationDetected,c.C.EligibilityUnmet,c.C.AppDownload].includes(e)?C(!1):(h(r.A.closeWorkflowConfirmationEvent),x())},[]),y=(0,d.useCallback)(()=>{h(r.A.abortCloseWorkflow),x()},[x]),f=(0,d.useCallback)(()=>{h(r.A.openPartnerSelectorEvent),C(!0)},[h,C]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.Button,{onClick:f,trailingIcon:(0,i.jsx)(o.IconArrowRight,{}),size:t,children:a,"data-test":"flyteSignUpLauncher",...S}),u&&(0,i.jsx)(eQ,{render:e=>{let{header:t,body:a,currentWorkFlowStep:r}=e;return(0,i.jsxs)(s.fq,{isOpen:!0,onClose:()=>b(r),children:[(0,i.jsx)(s.fq.Header,{children:t}),(0,i.jsx)(s.fq.Body,{children:a},r)]})}}),(0,i.jsx)(l.t,{isOpen:m,onContinue:y,onLeave:g})]})}},81488:(e,t,a)=>{a.d(t,{x:()=>h});var i=a(37876),r=a(37477),n=a(52036),o=a(14232);function s(e){let{name:t,onDelete:a}=e;return(0,i.jsxs)(r.Flex,{justify:"space-between",align:"center",borderBottomWidth:"1px",borderBottomColor:"border-subtle",borderBottomStyle:"solid",width:"100%",children:[(0,i.jsx)(r.Text,{variant:"text-body-regular",color:"text-primary",fontWeight:"normal",children:t}),(0,i.jsx)(r.ButtonIcon,{variant:"ghost",onClick:a,icon:(0,i.jsx)(r.IconTrash,{}),size:"l","aria-label":"delete",borderRadius:"radii-2",p:"spacer-1",m:"spacer-1"})]})}function l(){let{onSubmit:e,isSubmitting:t=!1,onRequestLabOrder:a,onSubmitLater:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[l,c]=(0,o.useState)([]),d=(0,o.useRef)(null),S=(0,r.useToast)(),u=()=>Math.random().toString(36).substring(2,9),C=e=>{c(t=>t.filter(t=>t.id!==e))},m=()=>{if(0===l.length)return void S({title:"Error",description:"Please upload at least one file",status:"error"});let t=l.map(e=>e.file);e?e(t):S({title:"Success",description:"Submitting ".concat(l.length," file(s): ").concat(l.map(e=>e.name).join(", ")),status:"success"})};return(0,i.jsxs)(r.Box,{children:[(0,i.jsxs)(r.Box,{py:"spacer-4",px:"spacer-3",bg:"background-dark",borderRadius:"radii-4",mb:"spacer-4",children:[(0,i.jsx)(r.Text,{variant:"text-header-M",color:"text-light",pb:"spacer-4",children:"Upload Your Lab Results"}),(0,i.jsxs)(r.Button,{borderRadius:"radii-3",as:"label",htmlFor:"input-files",variant:"secondary",w:"full",bg:"white",color:"text-link-secondary-default",_hover:{bg:"background-action-hover"},children:[(0,i.jsx)(r.IconFileUpload,{w:"24px",h:"24px"}),"Add File"]})]}),(0,i.jsx)("input",{id:"input-files",type:"file",ref:d,onChange:e=>{let t=e.target.files;if(!t||0===t.length)return;let a=Array.from(t).map(e=>({id:u(),name:e.name,file:e}));c(e=>[...e,...a]),d.current&&(d.current.value="")},style:{display:"none"},multiple:!0,accept:".pdf,.jpg,.jpeg,.png"}),l.length>0&&(0,i.jsx)(r.Box,{mb:"spacer-6",mt:"spacer-4",children:l.map(e=>(0,i.jsx)(s,{name:e.name,onDelete:()=>C(e.id)},e.id))}),(0,i.jsx)(r.Box,{mt:"spacer-9",display:{base:"none",md:l.length>0?"block":"none"},children:(0,i.jsx)(r.Button,{onClick:m,variant:"primary",w:"full",h:"50px",borderRadius:"3xl",isDisabled:0===l.length||t,isLoading:t,children:"Submit Lab Results"})}),(0,i.jsxs)(r.Box,{display:{base:"block",md:"none"},mt:"spacer-9",children:[(0,i.jsx)(r.Text,{variant:"text-header-S",color:"text-primary",children:"Don't have lab results yet?"}),(0,i.jsx)(r.Box,{my:"spacer-3",children:(0,i.jsx)(r.Button,{size:"s",variant:"link",onClick:a,children:"Request a lab order"})}),(0,i.jsx)(r.Text,{mt:"spacer-6",variant:"text-header-S",color:"text-primary",children:"Not ready?"}),(0,i.jsx)(r.Box,{my:"spacer-3",children:(0,i.jsx)(r.Button,{size:"s",variant:"link",onClick:n,children:"Submit lab results later"})})]}),(0,i.jsx)(r.Box,{h:"70px"}),(0,i.jsx)(r.Box,{display:{base:"block",md:"none"},position:"fixed",bottom:"0",left:"0",right:"0",p:"spacer-4",bg:"white",zIndex:"sticky",border:"none",background:"white",children:(0,i.jsx)(r.Button,{onClick:m,variant:"primary",w:"full",h:"50px",borderRadius:"3xl",isDisabled:0===l.length||t,isLoading:t,children:"Submit Lab Results"})})]})}var c=a(61032);function d(e){let{isOpen:t,onClose:a,diabetes:n,bariatric:o}=e;if(!t)return null;let s=(0,c.o)({diabetes:n,bariatric:o,labName:"generic"});return(0,i.jsx)(r.Box,{position:"fixed",top:0,left:0,right:0,bottom:0,bg:"background-overlay",zIndex:9999,display:"flex",alignItems:"center",justifyContent:"center",p:"spacer-4",children:(0,i.jsxs)(r.Box,{bg:"background-card",borderRadius:"lg",p:"spacer-8",maxW:"500px",w:"100%",children:[(0,i.jsxs)(r.Flex,{alignItems:"center",justifyContent:"space-between",mb:"spacer-6",children:[(0,i.jsx)(r.Text,{variant:"text-header-M",color:"text-primary",children:"Required labs"}),(0,i.jsx)(r.IconX,{color:"text-secondary",cursor:"pointer",onClick:a})]}),(0,i.jsx)(r.Box,{as:"ul",pl:"spacer-6",mb:"spacer-4",maxH:"400px",overflowY:"auto",children:s.map(e=>(0,i.jsx)(r.Text,{as:"li",color:"text-secondary",mb:"spacer-2",children:e},e))})]})})}function S(e){let{isOpen:t,onClose:a,onSubmitLater:n,onRequestLabs:o}=e;return(0,i.jsxs)(r.Modal,{isOpen:t,onClose:a,isCentered:!0,children:[(0,i.jsx)(r.Modal.Overlay,{}),(0,i.jsxs)(r.Modal.Content,{px:{base:"spacer-6",lg:"spacer-8"},pb:"spacer-8",gap:"spacer-6",mx:0,maxWidth:{base:"100%",md:"420px"},mb:{base:0,md:"auto"},borderBottomRadius:0,children:[(0,i.jsxs)(r.Modal.Header,{p:0,children:[(0,i.jsx)(r.Text,{variant:"text-header-M",color:"text-primary",pt:"20px",children:"Submit labs later?"}),(0,i.jsx)(r.Modal.CloseButton,{color:"text-secondary"})]}),(0,i.jsxs)(r.Modal.Body,{p:0,display:"flex",flexDirection:"column",children:[(0,i.jsx)(r.Text,{variant:"text-body-large-regular",color:"text-secondary",mb:"spacer-6",children:'By selecting "Submit later" you acknowledge that you will not be able to schedule a visit with a provider until labs are completed. You can submit labs using the FlyteHealth patient app or you can request new labs below.'}),(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-4",children:[(0,i.jsx)(r.Button,{variant:"primary",onClick:n,borderRadius:"3xl",size:{base:"m",md:"l"},children:"Submit labs later"}),(0,i.jsx)(r.Button,{variant:"primary-alt",onClick:o,borderRadius:"3xl",size:{base:"m",md:"l"},children:"Request Labs"})]})]})]})]})}let u=()=>(0,i.jsxs)(r.Box,{position:"fixed",top:"0",left:"0",width:"100vw",height:"100vh",backgroundColor:"background-overlay",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",zIndex:"overlay",children:[(0,i.jsx)(r.Spinner,{size:"s",color:"text-light"}),(0,i.jsx)(r.Text,{variant:"text-body-bold",color:"text-light",mt:"spacer-3",children:"We're sending your lab results"}),(0,i.jsx)(r.Text,{variant:"text-body-regular",color:"text-light",mt:"spacer-2",maxW:"300px",textAlign:"center",children:"This may take a few seconds, do not close this window."})]});var C=a(12342),m=a(50941);let p={submitLabs:async(e,t)=>{m.Ay.info("Submitting ".concat(e.length," lab PDF(s) to Evolve API for patient ").concat(t));let a=new FormData;return a.append("patientId",t),e.forEach(e=>{a.append("file",e)}),(await C.A.post("api/submit-labs",a,{headers:{"Content-Type":"multipart/form-data"}})).data}};function h(e){let{patientId:t,onSubmitLabsLater:a,onLabSubmitted:s,onGoBackToRequestLabs:c,diabetes:C,bariatric:m}=e,h=(0,r.useToast)(),[g,x]=(0,o.useState)(!1),[b,y]=(0,o.useState)(!1),[f,H]=(0,o.useState)(!1),v=e=>{if(e.length>10)return h({title:"Error",description:"You can only upload up to ".concat(10," files"),status:"error"}),!1;for(let t of e){if(t.size>5242880)return h({title:"Error",description:"File ".concat(t.name," exceeds the maximum size of 5MB"),status:"error"}),!1;if("application/pdf"!==t.type)return h({title:"Error",description:"File ".concat(t.name," must be a PDF"),status:"error"}),!1}return!0},I=async e=>{if(v(e))try{H(!0);let a=await p.submitLabs(e,t);s(),h({title:"Success",description:a.message,status:"success"})}catch(e){h({title:"Error",description:e instanceof Error?e.message:"Failed to submit lab results",status:"error"})}finally{H(!1)}},R=()=>{y(!0)},D=()=>{y(!1),c()};return f?(0,i.jsx)(u,{}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d,{isOpen:g,onClose:()=>{x(!1)},diabetes:C,bariatric:m}),(0,i.jsx)(S,{isOpen:b,onClose:()=>y(!1),onSubmitLater:()=>{y(!1),a()},onRequestLabs:D}),(0,i.jsxs)(n.X,{children:[(0,i.jsxs)(n.X.Side,{children:[(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"Submit Lab Results"}),(0,i.jsxs)(r.TextPairing.SubLabel,{color:"text-secondary",fontSize:"20px",children:["Before uploading, please confirm that your documents:",(0,i.jsxs)(r.Box,{as:"ul",listStyleType:"disc",pl:"spacer-6",ml:"0",mt:"spacer-3",sx:{"& li":{fontSize:"20px",lineHeight:"1",mb:"spacer-2"},"& li::marker":{fontSize:"24px"}},children:[(0,i.jsx)("li",{children:"Are dated within the last 90 days"}),(0,i.jsx)("li",{children:"Include your full name"}),(0,i.jsxs)("li",{children:["Include all"," ",(0,i.jsx)(r.Button,{fontSize:20,variant:"link",fontWeight:"400",onClick:()=>{x(!0)},children:"required labs."})]})]}),"Our team will review uploaded files and will be in touch if there are any issues or if new labs are needed."]})]}),(0,i.jsxs)(r.Box,{display:{base:"none",md:"block"},children:[(0,i.jsx)(r.Text,{variant:"text-header-S",color:"text-primary",children:"Don't have lab results yet?"}),(0,i.jsx)(r.Box,{my:"spacer-3",children:(0,i.jsx)(r.Button,{size:"s",variant:"link",onClick:D,children:"Request a lab order"})}),(0,i.jsx)(r.Text,{mt:"spacer-6",variant:"text-header-S",color:"text-primary",children:"Not ready?"}),(0,i.jsx)(r.Box,{my:"spacer-3",children:(0,i.jsx)(r.Button,{size:"s",variant:"link",onClick:R,children:"Submit lab results later"})})]})]}),(0,i.jsx)(n.X.Form,{children:(0,i.jsx)(l,{onSubmit:I,isSubmitting:f,onRequestLabOrder:D,onSubmitLater:R})})]})]})}},82393:(e,t,a)=>{a.d(t,{ry:()=>l,LP:()=>h,gO:()=>x,MU:()=>b,oE:()=>y,aB:()=>f,cI:()=>H,d5:()=>R,LR:()=>D,mF:()=>j.m,rs:()=>E,WT:()=>s,rI:()=>j.r});var i=a(37876),r=a(37477),n=a(62344),o=a(14232);let s={isValid:e=>10===e.length,isOver18YearsOld:e=>(0,n.C)(e)>=18,isLessThan150YearsOld:e=>150>(0,n.C)(e)},l=(0,o.forwardRef)((e,t)=>(0,i.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=a(92087),d=a(82492);let S=["gmial.com","gmal.com","g-mail.com","gmaill.com","gmail.cm","gmail.co","gmail.con","gmail.comm","gmail.cmo","gmail.copm","gmail.vom","gmail.xom","gmai.com","gamil.com","gmall.com","gmail.c0m","gmaii.com","googlmail.com","gmail.ocm","gmail.om","gmail.net","gamail.com","gmailc.om","gmil.com","gmil.con","gmial.con","gemail.com","gmeil.com","gnail.com","gmail.ca","gmail.fr","gmsil.com","gmail.it","gmail.ru","gmail.de","gmail.jp","gimail.com","gmali.com","gmaul.com","gmaik.com","gmail.dom","gmail.coom","gmail.comn","gmai;.com","gmial.cm","gmail.colm","gmial.co","gmqail.com","gmzail.com","grmail.com","gemail.con","gmial.comm","gmail.xcom","gmail.ccom","hotmial.com","hotmail.cm","hoymail.com","homail.com","hotmai.com","hotmail.co","hotmal.com","hotmil.com","hotmain.com","hatmail.com","hotmail.con","hotmail.cmo","hotmail.vom","hotmail.ocm","hotmail.om","hotmail.comm","hotmaill.com","hootmail.com","hotamail.com","hotnail.com","hormail.com","hotmail.coim","hotmial.con","htmail.com","hotmali.com","homail.con","hotmael.com","hotmailc.om","hotmial.cm","hotmial.co","hotmail.coom","hotmail.colm","hotmali.con","hotmaol.com","hptmail.com","hotmqil.com","hotmzil.com","hotrmail.com","hotmai;.com","hotmakl.com","hotmajl.com","hotmaiil.com","yaho.com","yaoo.com","yahooo.com","yhaoo.com","yahoo.cm","yahoo.co","yahoo.con","yahoo.cmo","yahool.com","yhoo.com","yahoo.vom","yahoo.ocm","yahoo.om","yahoo.comm","yahooo.cm","yhao.com","yahho.com","yaahoo.com","yahocom","yaho0.com","yaboo.com","yahoo.coim","yahoo.net","yahoo.ca","yahoo.de","yahoo.fr","yaho.con","yahoo.coom","yahoo.colm","yahooc.om","yahool.con","yqhoo.com","yzhoo.com","yahool.cm","yahol.com","yahoom.com","yarhoo.com","yahoo.xcom","yahoo.dom","outlok.com","outloo.com","outlook.cm","outlook.co","outlook.con","outlook.cmo","outlook.vom","outlook.ocm","outlook.om","outlook.comm","outlookc.om","outllook.com","outloook.com","outluk.com","outook.com","outloook.com","outlook.coim","outlook.comn","outlook.coom","outlook.colm","outlok.con","outlok.cm","outlookl.com","outlpok.com","oytlook.com","outlookm.com","outllok.com","outlpook.com","qutlook.com","zutlook.com","outlookc.con","aol.cm","aol.co","aol.con","aol.comm","aol.cmo","aol.vom","aol.ocm","aol.om","aoll.com","aaol.com","aool.com","aio.com","apl.com","aolc.om","aoil.com","aol.coom","aol.colm","aolc.con","aol.dom","aol.xcom","aol.coim","qol.com","zol.com","apol.com","aol.net","icloud.cm","icloud.co","icloud.con","icloud.comm","icloud.cmo","icloud.vom","icloud.ocm","icloud.om","icoud.com","iclod.com","icloude.com","icluod.com","iclud.com","icloude.com","aicoud.com","icloud.coom","icloud.colm","icloudl.com","iclpud.com","ucloud.com","ycloud.com","icloyd.com","icloid.com","iclkud.com","iclkoud.com","icloyud.com","comcast.cm","comcast.co","comcast.con","comcast.comm","comcast.cmo","comcast.vom","comcast.ocm","comcast.om","comcastt.com","comcats.com","comast.com","concast.com","comcas.com","comcat.com","comcast.coom","comcast.colm","comcasr.com","comcastr.com","comcaest.com","comcasy.com","comcasg.com","comcazt.com","comcaqt.com","protonmail.con","protonmail.cm","protonmail.co","protonmail.comm","protonmail.cmo","protonmail.vom","protonmail.ocm","protonmail.om","protonmail.coom","protonmail.colm","protonmial.com","protanmail.com","protonmall.com","protonmal.com","protonmil.com","protonmaii.com","proronmail.com","protonmael.com","fastmail.cm","fastmail.co","fastmail.con","fastmail.comm","fastmail.cmo","fastmail.vom","fastmail.ocm","fastmail.om","fastmial.com","fastmall.com","fastmal.com","fastmil.com","fastmaii.com","fastmael.com","fastmail.coom","fastmail.colm","zoho.cm","zoho.co","zoho.con","zoho.comm","zoho.cmo","zoho.vom","zoho.ocm","zoho.om","zoho.coom","zoho.colm","zohoo.com","zoho.co.uk","zoho.co.in","zohomail.com","zohom.com","zohol.com","yandex.con","yandex.cm","yandex.co","yandex.comm","yandex.cmo","yandex.vom","yandex.ocm","yandex.om","yandex.coom","yandex.colm","yandx.com","yandex.ru","yandex.ua","yandex.by","yandex.kz","yandex.tj","yandx.ru","yandax.com","yandeex.com","mail.ru","mail.cm","mail.co","mail.con","mail.comm","mail.cmo","mail.vom","mail.ocm","mail.om","mail.coom","mail.colm","maiil.com","mial.com","mal.com","maill.com","maell.com","live.con","live.cm","live.co","live.comm","live.cmo","live.vom","live.ocm","live.om","live.coom","live.colm","livee.com","liva.com","luve.com","lyve.com","netcape.net","symaptico.ca","vidotron.ca","att.nett","verison.net","verizon.ner","iclould.com","msn.comm","msn.con","msn.cm","msn.co","msn.cmo","msn.vom","msn.ocm","msn.om","msn.coom","msn.colm","mns.com","msnn.com","msn.net"],u=["con","comm","om","cm","co,","c0m","cmo","copm","ocm","xom","vom","comn","com'","comj","coim","cpm","colm","conm","coom","fom","clm","cim","cn","cnn","cp","cpm","dom","cxm","ckom","ckm","ccm","coom","coj","xcom","ccom","cot","cole","coma","coms","con.ar","cons","kom","coom","co9m","c9m","cim","cpm","coom","coml","comu","comy","comi","como","coma","comz","comx","comp","comq","comr","coms","comt","comv","comw","cpon","clon","cgom","cyom","ctom","c0om","c9om","ciom","cpom","colom","conom","cogom","cokm","cojm","coinm","co0m","co9m","coem","cowm","corm","cotm","coym","coum","ogr","otg","ord","orgg","rog","or","ort","oeg","prg","orf","orh","orj","ork","orl","orm","orn","orp","orq","orr","ors","orv","orw","orx","ory","orz","o4g","0rg","9rg","org5","org6","orge","orgr","orgt","orgy","orgu","orgi","orgo","orgp","orga","orgs","orgd","orgf","orgc","orgx","orgz","orgv","orgb","orgn","orgm","nte","ne","nett","ner","netl","nete","not","nnet","ndt","bet","nef","neg","neh","nej","nek","nel","nem","nen","nep","neq","nes","nev","new","nex","ney","nez","n3t","n4t","nrt","nyt","nut","nit","n8t","n9t","n0t","ne5","ne6","nety","netu","neti","neto","netp","neta","nets","netd","netf","netg","neth","netj","netk","netm","netn","netq","netw","netx","netz","netv","netb","netc","ed","eud","due","ecu","eduu","eu","ude","edf","edg","edh","edj","edk","edl","edm","edn","edp","edq","edr","eds","edt","edv","edw","edx","edy","edz","3du","4du","rdu","wdu","sdu","ddu","fdu","edu5","edu6","eduy","edur","edut","edui","eduo","edup","edua","edus","edud","eduf","edug","eduh","eduj","eduk","edul","edum","edun","eduq","eduw","edux","eduz","eduv","edub","educ","co,","uk","gob","gop","goc","coc","govv","gv","go","mil","jp","bz","ca","usus","msc","infp","infk","infol","infl","infi","infom","infon","inf0","inf9","qinfo","zinfo","infor","infot","infoy","infou","biiz","bizl","bizk","bizj","bizh","bizg","bizf","bizd","bizs","biza","bizp","bizo","bizi","bizu","bizy","bizt","bizr","bizw","bizq","bizx","bizc","bizv","bizb","bizn","bizm","local","internal","private","corp","home","lan","domain","localdomain","workgroup","localhost","intranet","mail","dhcp","server","dev","test","invalid","example","temp","tmp","demo","sample","fake","mock","dummy","testing","testsite","localtest","staging","preview","beta","alpha","development","localhost","office","company","business","internal","intranet","private","local","site","website","page","web","www","email","emails","mailbox","inbox","outbox","messages","message","contact","contacts","address","addresses","admin","administrator","root","user","users","account","accounts","profile","profiles","settings","config","configuration","setup","install","installation","system","systems","network","networks","service","services","application","applications","app","apps","software","program","programs","database","databases","data","file","files","folder","folders","directory","directories","path","paths","url","urls","link","links","redirect","redirects","backup","backups","archive","archives","log","logs","report","reports","document","documents","doc","docs"],C=e=>{var t,a;if(!e)return!0;let i=null==(t=e.split("@")[1])?void 0:t.toLowerCase();if(!i)return!0;if(S.includes(i))return'This appears to be a typo. Did you mean to use a different domain than "'.concat(i,'"?');let r=null==(a=i.split(".").pop())?void 0:a.toLowerCase();if(r&&u.includes(r))return'".'.concat(r,'" appears to be a typo. Please check your email domain.');let n=e.split("@")[0];return!(n&&/\.{2,}|-{2,}|_{2,}|\+{2,}/.test(n))||"Email contains consecutive special characters."};var m=a(88992);let p="email",h=e=>{let{name:t=p,label:a="Email address",inputProps:n,...o}=e,{register:s,setValue:l,formState:{errors:S}}=(0,m.xW)(),u=(0,d.Q)(t,S,["maxLength","pattern","validate"]);return(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",...o,children:[(0,i.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:t,children:a}),(0,i.jsx)(r.Input,{"data-test":t,autoComplete:"email",placeholder:"name@email.com",inputMode:"email",type:"email",id:t,size:"l",variant:"flushed",isInvalid:u,...n,...s(t,{required:!0,onChange:e=>{var a;l(t,null==(a=e.target.value)?void 0:a.toLowerCase())},pattern:{value:/^[\w.+-]+@[a-z0-9.-]+\.[a-z]{2,150}$/i,message:c.i[p].pattern},maxLength:{value:150,message:c.i[p].maxLength},validate:C})}),u&&(0,i.jsx)(x,{errors:S,name:t})]})};var g=a(52197);let x=e=>{let{errors:t,name:a}=e;return(0,i.jsx)(g.K,{errors:t,name:a,render:e=>{let{message:t}=e;return(0,i.jsxs)(r.InlineAlert,{status:"error",children:[(0,i.jsx)(r.InlineAlert.Icon,{}),(0,i.jsx)(r.InlineAlert.Message,{children:t})]})}})},b=(0,o.forwardRef)((e,t)=>(0,i.jsx)(r.Input,{autoComplete:"given-name","aria-label":"Legal First name",placeholder:"Legal First name",type:"text",size:"l",variant:"flushed",ref:t,...e})),y=(0,o.forwardRef)((e,t)=>{let{unit:a,...n}=e;return(0,i.jsx)(r.MaskInput,{"aria-label":"Height (".concat(a,")"),placeholder:"Height (".concat(a,")"),inputMode:"numeric",size:"l",variant:"flushed",maskOptions:{mask:/^\d*$/,postfix:" (".concat(a,")")},ref:t,...n})});a(43400);let f=(0,o.forwardRef)((e,t)=>(0,i.jsx)(r.Input,{autoComplete:"family-name","aria-label":"Legal Last name",placeholder:"Legal Last name",type:"text",size:"l",variant:"flushed",ref:t,...e})),H=e=>{let{children:t,...a}=e;return(0,i.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,...a,"data-testid":"mobile-footer",children:t})},v="firstName",I="lastName",R=e=>{let{isDisabled:t}=e,{register:a}=(0,m.xW)();return(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",children:[(0,i.jsxs)(r.Box,{children:[(0,i.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",children:"Tell us about yourself"}),(0,i.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,i.jsxs)(r.Flex,{gap:{base:"spacer-4",md:"spacer-8"},children:[(0,i.jsx)(b,{"data-test":v,id:v,isDisabled:t,...a(v,{required:!0})}),(0,i.jsx)(f,{"data-test":I,id:I,isDisabled:t,...a(I,{required:!0})})]})]})},D=(0,o.forwardRef)((e,t)=>(0,i.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 j=a(49631);let E=(0,o.forwardRef)((e,t)=>(0,i.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}))},82492:(e,t,a)=>{a.d(t,{Q:()=>i});let i=(e,t,a)=>{var i;if(!t[e])return!1;let r=Array.isArray(a)?a:[a],n=null==(i=t[e])?void 0:i.type;return"string"==typeof n&&r.includes(n)}},83439:(e,t,a)=>{a.d(t,{t:()=>o});var i=a(37876),r=a(37477),n=a(14232);let o=e=>{let{isOpen:t,onLeave:a,onContinue:o}=e,s=(0,n.useRef)(null);return(0,i.jsxs)(r.Modal,{isOpen:t,onClose:o,autoFocus:!1,isCentered:!0,initialFocusRef:s,children:[(0,i.jsx)(r.Modal.Overlay,{}),(0,i.jsxs)(r.Modal.Content,{px:"spacer-7",py:"spacer-6",gap:"spacer-7",mx:{base:"spacer-9",md:0},maxWidth:"26.25rem",children:[(0,i.jsxs)(r.Modal.Body,{p:0,children:[(0,i.jsx)(r.Text,{variant:"text-body-large-bold",children:"Are you sure you want to leave?"}),(0,i.jsx)(r.Text,{color:"text-secondary",variant:"text-body-regular",children:"You haven't finished signing up. If you leave, all information will be cleared."})]}),(0,i.jsxs)(r.Modal.Footer,{flexDirection:{base:"column",md:"row-reverse"},gap:"spacer-4",p:0,children:[(0,i.jsx)(r.Button,{variant:"secondary",size:"m",flex:1,width:"100%",onClick:o,ref:s,children:"Continue signing up"}),(0,i.jsx)(r.Button,{variant:"destroy",size:"m",flex:1,width:"100%",onClick:a,children:"Leave now"})]})]})]})}},83928:(e,t,a)=>{a.d(t,{A:()=>i});class i{static shouldBypassIsApplicationReviewRequired(e){return!!(e.email.includes("bypass")&&e.email.includes("@flytehealth.com"))&&(console.warn("Bypassing isApplicationReviewRequired"),!0)}static shouldBypassBenefitsCheck(e){return!!(e.email.includes("bypass")&&e.email.includes("@flytehealth.com"))&&(console.warn("Bypassing benefits check"),!0)}}},84441:(e,t,a)=>{a.d(t,{PV:()=>u,Ci:()=>m});var i=a(37876),r=a(37477),n=a(82393),o=a(92087),s=a(82492),l=a(13764),c=a(37224),d=a(88992);let S="phone",u=e=>{let{isDisabled:t,...a}=e,{register:u,setValue:C,formState:{errors:m}}=(0,d.xW)(),p=(0,s.Q)(S,m,"validate");return(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",...a,children:[(0,i.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:S,children:"Mobile phone"}),(0,i.jsx)(n.LR,{"data-test":S,id:S,isInvalid:p,isDisabled:t,onInput:e=>C(S,e.currentTarget.value),...u(S,{required:!0,validate:e=>(0,l.A)(e,"US",c.A)||o.i[S].validate})}),p&&(0,i.jsx)(n.gO,{errors:m,name:S})]})},C="termsAgreement",m=e=>{let{isDisabled:t,...a}=e,{register:n}=(0,d.xW)();return(0,i.jsxs)(r.Flex,{direction:"row",gap:"spacer-2",...a,children:[(0,i.jsx)(r.Checkbox,{"data-test":C,size:{base:"l",lg:"m"},"aria-label":"I agree to the terms",isDisabled:t,...n(C,{required:!0})}),(0,i.jsxs)(r.Text,{variant:"text-body-regular",color:"text-secondary",children:["I have read and agree to the\xa0",(0,i.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,i.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,i.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"}),"."]})]})}},85007:(e,t,a)=>{a.d(t,{R:()=>r});var i=a(12342);let r=async e=>await i.A.post("/api/auth/verify-otp",e)},86535:(e,t,a)=>{a.d(t,{P:()=>h});var i=a(37876),r=a(37477),n=a(82393),o=a(45383),s=a(19847),l=a(80072),c=a(88992),d=a(99221),S=a(58892);let u="bariatricSurgery",C=e=>{let{isDisabled:t}=e,{register:a}=(0,c.xW)();return(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-4",children:[(0,i.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",children:"Have you had Bariatric surgery?"}),(0,i.jsxs)(r.RadioGroup,{display:"flex",gap:"spacer-3",isDisabled:t,"data-test":u,"data-testid":u,name:u,children:[(0,i.jsx)(S.e,{name:u,value:"yes",size:"m",isDisabled:t,"aria-label":"bariatric-surgery-yes",...a(u,{required:!0}),children:"Yes"}),(0,i.jsx)(S.e,{value:"no",size:"m",...a(u),name:u,isDisabled:t,"aria-label":"bariatric-surgery-no",children:"No"})]})]})},m="diabetes",p=e=>{let{isDisabled:t}=e,{register:a}=(0,c.xW)();return(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-4",children:[(0,i.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",children:"Do you have Type 1 or Type 2 Diabetes?"}),(0,i.jsxs)(r.RadioGroup,{display:"flex",gap:"spacer-3",isDisabled:t,"data-test":m,"data-testid":m,name:m,children:[(0,i.jsx)(S.e,{name:m,value:"yes",size:"m",isDisabled:t,"aria-label":"diabetes-yes",...a(m,{required:!0}),children:"Yes"}),(0,i.jsx)(S.e,{value:"no",size:"m","aria-label":"diabetes-no",...a(m),name:m,isDisabled:t,children:"No"})]})]})},h=e=>{let{configuration:t,loading:a=!1,onSubmit:S}=e,{contentResources:u}=t,m=(0,c.mN)({mode:"onBlur"}),h=(0,s.a)(),g=()=>(0,i.jsx)(r.Button,{type:"submit",size:{base:"m",lg:"l"},isDisabled:!m.formState.isValid,width:"100%",isLoading:a,"aria-label":"Am I eligible?",children:"Am I eligible?"});return(0,i.jsx)(c.Op,{...m,children:(0,i.jsxs)(o.X,{as:"form",onSubmit:m.handleSubmit(e=>{var t;let a=(null==(t=e.comorbidity)?void 0:t.length)>0;S({...e,comorbidities:e.comorbidity,comorbidity:a?d.Y9.Yes:d.Y9.No})}),noValidate:!0,"data-test":l.C.PreEligibility,children:[(0,i.jsxs)(o.X.Side,{children:[u.title,!h&&u.bmiEnrollmentDisclaimer]}),(0,i.jsxs)(o.X.Form,{children:[(0,i.jsx)(d.XU,{isDisabled:a}),(0,i.jsx)(d.YJ,{isDisabled:a,trigger:h?"click":"hover"}),(0,i.jsx)(p,{isDisabled:a}),(0,i.jsx)(C,{isDisabled:a}),(0,i.jsx)(d.Qg,{isDisabled:a}),(0,i.jsx)(d.kQ,{isDisabled:a}),h?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.Flex,{gap:"spacer-10",direction:"column",pb:"spacer-24",children:[u.bmiEnrollmentDisclaimer,(0,i.jsx)(d.Xc,{})]}),(0,i.jsx)(n.cI,{children:g()})]}):(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-5",children:[g(),(0,i.jsx)(d.Xc,{})]})]})]})})}},86687:(e,t,a)=>{a.d(t,{L:()=>r});var i=a(72881);let r=e=>{var t,a;let{event:r}=e;return(null==r||null==(a=r.error)||null==(t=a.response)?void 0:t.status)===i.r2}},87587:(e,t,a)=>{a.d(t,{e:()=>r});var i=a(50941);class r extends Error{constructor(e,t,a){super(e),this.message=e,this.code=t,this.status=a,this.name=this.constructor.name,Object.setPrototypeOf(this,new.target.prototype),i.Ay.error(e,{error_code:t,error_type:this.constructor.name,stack:this.stack})}}},87665:(e,t,a)=>{a.d(t,{Y:()=>x});var i=a(12342);let r=e=>12*e;var n=a(1188),o=a(34305),s=a(67751);let l={coding:[{system:"http://terminology.hl7.org/CodeSystem/observation-category",code:"vital-signs",display:"Vital Signs"}],text:"Vital Signs"},c={coding:[{system:"http://snomed.info/sct",code:"733985002",display:"Reported (qualifier value)"}],text:"Reported"},d={LOINC:"http://loinc.org",UNITS_OF_MEASURE:"http://unitsofmeasure.org",CONSENT_SCOPE:"http://terminology.hl7.org/CodeSystem/consentscope",CONSENT_ACTION:"http://terminology.hl7.org/CodeSystem/consentaction",IDENTIFIER_TYPE:"http://terminology.hl7.org/CodeSystem/v2-0203",PATIENT_IDENTIFIER:"https://intellihealth.salesforce.com/contacts/"},S={HEIGHT:"http://hl7.org/fhir/us/vitals/StructureDefinition/height",BODY_WEIGHT:"http://hl7.org/fhir/us/vitals/StructureDefinition/body-weight"},u=(e,t)=>({resourceType:"Patient",identifier:[{use:"secondary",system:d.PATIENT_IDENTIFIER,value:t,period:{start:new Date().toISOString()}}],name:[{family:e.lastName,given:e.firstName}],telecom:[{system:"phone",value:e.phone,use:"home"},{system:"email",value:e.email},{system:"sms",value:e.phone}],birthDate:(0,s.S)(e.birthDate),address:[{use:"home",type:"both",text:e.addressText||"",line:e.addressLines||[],city:e.city||"",state:e.state,postalCode:e.postalCode||""}],extension:[{url:"http://hl7.org/fhir/StructureDefinition/timezone",valueString:Intl.DateTimeFormat().resolvedOptions().timeZone}]}),C=(e,t,a,i,r,n,o)=>({resourceType:"Observation",id:e,meta:{profile:["weight"===e?S.BODY_WEIGHT:S.HEIGHT]},status:"preliminary",category:[l],code:{coding:[{system:d.LOINC,code:i,display:r}]},subject:{type:"Patient",identifier:{use:"secondary",system:d.PATIENT_IDENTIFIER,value:n,period:{start:o}}},effectiveDateTime:o,valueQuantity:{value:t,unit:a,system:d.UNITS_OF_MEASURE,code:a},method:c}),m=e=>({resourceType:"Organization",name:e.evolveOrganization||o.PM.Flyte,...e.participantDepartmentorOrg&&{contained:[{resourceType:"Organization",name:e.participantDepartmentorOrg}]}}),p=e=>e?"permit":"deny",h=e=>e.map(e=>({resource:{resourceType:"Consent",identifier:{use:"official",type:{coding:[{system:d.IDENTIFIER_TYPE,code:"FILL",display:"Filler Identifier"}],text:"An identifier issued by FlyeHealth."},value:e.formType},status:"active",scope:{coding:[{system:d.CONSENT_SCOPE,code:"patient-privacy"}]},category:[{coding:[{system:d.LOINC,code:"59284-0"}]}],provision:[{action:[{coding:[{system:d.CONSENT_ACTION,code:"disclose"}]}],period:{start:new Date().toISOString(),end:new Date(new Date().getTime()+31536e6).toISOString()}}],decision:p(e.isAccepted)}})),g=e=>{let t=new Date().toISOString(),a=(0,n.s)(e.heightInFeet),i=(0,n.s)(e.heightInInch)+r(a);return{resourceType:"Bundle",identifier:{use:"temp",value:"onboarding-bundle"},type:"collection",timestamp:t,entry:[{resource:u(e,e.patientIdentifier)},{resource:C("height",i,"[in_i]","8302-2","Body height",e.patientIdentifier,t)},{resource:C("weight",(0,n.s)(e.currentWeightInPounds),"[lb_av]","29463-7","Body weight",e.patientIdentifier,t)},{resource:m(e)},...h(e.consents)]}},x=async e=>{let t=g(e);return await i.A.post("/api/fhir/onboard",t)}},89225:(e,t,a)=>{a.d(t,{Nl:()=>r,w:()=>n,dT:()=>l,f3:()=>d,Ek:()=>s,Ft:()=>o});var i=a(33841);let r={[i.fz.Aetna]:"State of Connecticut - Retirees",[i.fz.CareCompass]:"State of Connecticut - Employees",[i.fz.PequotHealthCare]:"PEQUOT - EMPLOYEES",[i.fz["1199SEIU"]]:"1199SEIU BENEFIT FUNDS"},n={[i.fz.Aetna]:"Aetna",[i.fz.CareCompass]:"Anthem",[i.fz.PequotHealthCare]:"PEQUOT",[i.fz["1199SEIU"]]:"1199SEIU BENEFIT FUNDS"},o={[i.fz.Aetna]:"Aetna",[i.fz.CareCompass]:"SoCT",[i.fz.PequotHealthCare]:"Pequot Healthcare",[i.fz.ChristianaCare]:"Highmark",[i.fz.Emory]:"Aetna",[i.fz["1199SEIU"]]:"1199SEIU"},s={[i.fz.Flyte]:"Flyte Direct",[i.fz.CareCompass]:"State of Connecticut (Flyte)",[i.fz.Aetna]:"State of Connecticut Retirees (Flyte)",[i.fz.RiverSpringLiving]:"RiverSpring Living (Flyte)",[i.fz.PequotHealthCare]:"Pequot Tribal Family Health Plan (Flyte)",[i.fz.PyleFamilyInsurance]:"A. Duie Pyle (Flyte)",[i.fz.MDSave]:"MDsave (Flyte)",[i.fz.ChristianaCare]:"ChristianaCare - Caregivers (Flyte)",[i.fz.Emory]:"Emory (Flyte)",[i.fz["1199SEIU"]]:"1199SEIU Benefit Funds (Flyte)"},l={[i.lk["1199SEIU"]]:"00634",[i.lk.BCBS]:"S001",[i.lk.BCBSPPO]:"S001",[i.lk.Aetna]:"00001",[i.lk.Cigna]:"00004",[i.lk.United]:"00192",[i.lk.Anthem]:"S001",[i.lk["Pequot HealthCare"]]:"00192",[i.lk["Aetna Medicare"]]:"00001",[i.lk.Highmark]:"01015",[i.lk["Kaiser Colorado"]]:"00121",[i.lk["Kaiser Georgia"]]:"00126",[i.lk["Kaiser Hawaii"]]:"00122",[i.lk["Kaiser MidAtlantic"]]:"00124",[i.lk["Kaiser Northern California"]]:"00127",[i.lk["Kaiser Northwest"]]:"00125",[i.lk["Kaiser Southern California"]]:"00488",[i.lk["Kaiser Washington"]]:"01340",[i.lk["Kaiser Washington Options"]]:"01341"},c={[i.fz.Flyte]:"0014U00003DawbO",[i.fz.CareCompass]:"0014U000034qD18",[i.fz.Aetna]:"0014U00003LU03D",[i.fz.RiverSpringLiving]:"0014U00002tQPkK",[i.fz.PequotHealthCare]:"0014U00003DCPzp",[i.fz.PyleFamilyInsurance]:"0014U00002ngNsZ",[i.fz.MDSave]:"001VY00000CYbSs",[i.fz.ChristianaCare]:"001VY00000AE6Ny",[i.fz.Emory]:"001VY00000GpdUN",[i.fz["1199SEIU"]]:"001VY00000JEmuvYAD"};i.fz.Flyte,i.fz.CareCompass,i.fz.Aetna,i.fz.RiverSpringLiving,i.fz.PequotHealthCare,i.fz.PyleFamilyInsurance,i.fz.MDSave,i.fz.ChristianaCare,i.fz.Emory,i.fz["1199SEIU"];let d=c},91366:(e,t,a)=>{a.d(t,{Q:()=>S});var i=a(37876),r=a(37477),n=a(45383),o=a(20058),s=a(19847),l=a(80072),c=a(54587),d=a.n(c);let S=e=>{let{title:t,email:a,description:c}=e,S=(0,s.a)();return(0,i.jsxs)(n.s,{gap:{lg:"spacer-16",xl:"spacer-18",xxl:"spacer-64"},alignItems:"start","data-test":l.C.ApplicationComplete,children:[(0,i.jsxs)(r.Flex,{direction:"column",justifyContent:{lg:"space-between"},height:"100%",children:[(0,i.jsxs)(r.Box,{children:[t,(0,i.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,i.jsx)(r.Text,{variant:"text-header-M",children:a})}),c]}),(0,i.jsxs)(r.Box,{children:[(0,i.jsx)(r.Text,{mt:"spacer-16",color:"text-secondary",variant:"text-body-bold",children:"Need some help?"}),(0,i.jsxs)(r.Text,{color:"text-secondary",variant:"text-body-regular",mt:"spacer-1",children:["Please call"," ",(0,i.jsx)(o.C,{fontWeight:"thin"})," ","to speak with a Care Coordinator."]})]})]}),!S&&(0,i.jsx)(d(),{alt:"Application Complete",width:340,height:340,src:"/static/assets/application-complete.png"})]})}},92087:(e,t,a)=>{a.d(t,{i:()=>i});let i={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"}}},92323:(e,t,a)=>{a.d(t,{z:()=>i});let i=e=>{var t;let{context:a}=e;return!!(null==a||null==(t=a.flyteUserData)?void 0:t.verifyToken)}},93511:(e,t,a)=>{a.d(t,{t:()=>o});var i=a(29261),r=a(74161),n=a(14232);let o=(e,t)=>{let{track:a}=(0,r.useAnalytics)(),o=(0,n.useRef)(null);(0,n.useEffect)(()=>{o.current!==e&&(a(i.A[e],{partner:t}),o.current=e)},[e,a])}},96079:(e,t,a)=>{a.d(t,{Y:()=>O});var i=a(37876),r=a(37477),n=a(48934),o=a(14901),s=a(44585),l=a(533),c=a(6770),d=a(63583),S=a(86535),u=a(93511),C=a(34305),m=a(80072),p=a(97793),h=a(66885),g=a(62227),x=a(14232),b=a(47353),y=a(33841),f=a(86687),H=a(89225),v=a(68792),I=a(65159),R=a(45352),D=a(39777),j=function(e){return e.CreateLead="createLead",e}(j||{});let E={...p.f,...j},w=H.Ek[y.fz.MDSave],A={formData:{birthdate:"",comorbidity:"",currentWeightInPounds:"",dateOfHighestWeightValue:"",email:"",firstName:"",heightInFoot:"",heightInInch:"",highestWeightInPounds:"",insuranceCoverage:void 0,insuranceMemberID:"",insurance:void 0,lastName:"",phone:"",state:void 0,termsAgreement:!1,howDidYouFindUS:"",comorbidities:[],diabetes:"",bariatricSurgery:""},bmi:void 0},L=(0,I.mj)({types:{},guards:{isPreEligibilityMet:e=>{let{context:{bmi:t,formData:a}}=e;return v.J0.mdSave({bmi:t,comorbidity:a.comorbidity})},isApplicationDetected:f.L},actions:{updateFormData:(0,R.a)({formData:e=>{let{context:t,event:a}=e;return{...t.formData,...a.data}}}),assignBMI:(0,R.a)({bmi:e=>{let{context:t}=e,{heightInFoot:a,heightInInch:i,highestWeightInPounds:r}=t.formData;return(0,v.Hv)({heightFeet:(0,v.sC)(a),heightInches:(0,v.sC)(i),weightPounds:(0,v.sC)(r)})}}),reset:(0,R.a)({...A})}}).createMachine({context:()=>A,id:"mdSaveMachine",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:{actions:"updateFormData",target:E.Submitting}}},[E.Submitting]:{id:E.Submitting,initial:E.CreateLead,states:{[E.CreateLead]:{id:E.CreateLead,invoke:{src:(0,D.Sx)(async e=>{let{input:t}=e,a={...t.formData,company:w,evolveOrganization:y.PM.MDsave,leadStatus:y.XN.EligibleWaiting,automateEvolveEnrollment:!1};return await (0,b.t)(a)}),input:e=>{let{context:t}=e;return t},onDone:"#".concat(E.ApplicationReview),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.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,D.Sx)(async e=>{let{input:t}=e,a={...t,company:w,leadStatus:y.XN.Ineligible,ineligibilityReason:y.hT.BMI,automateEvolveEnrollment:!1};return await (0,b.t)(a)}),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 T=a(69443);let M={[m.C.PreEligibility]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"Let's make sure you're eligible for the FlyteHealth program."}),(0,i.jsx)(r.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,i.jsx)(r.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."})},[m.C.EligibilityUnmet]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-secondary-negative",children:"Unfortunately, you are not eligible to join FlyteHealth at this time."}),(0,i.jsx)(r.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+."})]})},[m.C.ContactDetails]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-secondary-negative",children:"Congratulations! You're eligible for the FlyteHealth program"}),(0,i.jsx)(r.TextPairing.SubLabel,{color:"text-secondary",children:"To help us match your information with your employer, tell us about yourself."})]})},[m.C.ApplicationReview]:{title:(0,i.jsxs)(r.TextPairing,{variant:"textpairing-header-2XL",children:[(0,i.jsx)(r.TextPairing.Label,{color:"text-primary",children:"You're almost finished!"}),(0,i.jsx)(r.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."})]})},[m.C.ApplicationDetected]:{title:(0,i.jsx)(r.Text,{variant:"text-header-2XL",color:"text-primary",children:"We found an existing account for:"}),description:(0,i.jsx)(r.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."})},[m.C.OnboardingChecklist]:T.M[m.C.OnboardingChecklist],[m.C.CreatePassword]:T.M[m.C.CreatePassword],[m.C.AppDownload]:T.M[m.C.AppDownload],[m.C.ReviewConsents]:T.M[m.C.ReviewConsents]};var k=a(82393);let P=[C.UX.WordOfMouth,C.UX.Other],U={[m.C.ContactDetails]:{state:{options:k.rI},howDidYouFindUs:{options:P}}},B=new Map([[m.C.PreEligibility,l.n.get(m.C.PreEligibility)],[m.C.ContactDetails,l.n.get(m.C.ContactDetails)]]),F=C.fz.MDSave,O=e=>{let{render:t}=e,[a,b]=(0,g.zl)(L),y=(0,x.useMemo)(()=>(0,h.r)(a.value),[a.value]);(0,u.t)(y,F);let f=(0,x.useCallback)(e=>{b({type:"SUBMIT",data:e})},[b]),H=(0,x.useCallback)(()=>{switch(y){case p.f.PreEligibility:return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.Alert,{variant:"subtle",status:"warning",borderRadius:"none",justifyContent:"center",children:[(0,i.jsx)(r.Alert.Icon,{}),(0,i.jsxs)(r.Alert.Title,{children:["To continue, you must first purchase the MDsave FlyteHealth bundle. To purchase, click"," ",(0,i.jsx)(r.Link,{isExternal:!0,href:"https://www.mdsave.com/p/flyte-weight-loss-and-nutritional-counseling",fontWeight:"bold",children:"here"}),"."]})]}),(0,i.jsx)(S.P,{configuration:{contentResources:M[m.C.PreEligibility]},onSubmit:f})]});case p.f.ContactDetails:return(0,i.jsx)(c.x,{configuration:{contentResources:M[m.C.ContactDetails],fields:U[m.C.ContactDetails]},loading:a.matches({[p.f.ContactDetails]:p.f.Submitting}),onSubmit:f,defaultValues:a.context.formData});case p.f.EligibilityUnmet:return(0,i.jsx)(d.B,{configuration:{contentResources:M[m.C.EligibilityUnmet]},onSubmit:f,loading:a.matches({[p.f.EligibilityUnmet]:p.f.Submitting}),isEmailSent:a.matches({[p.f.EligibilityUnmet]:p.f.Success}),hasError:a.matches({[p.f.EligibilityUnmet]:p.f.Error})});case p.f.ApplicationReview:return(0,i.jsx)(o.l,{...M[m.C.ApplicationReview]});case p.f.ApplicationDetected:return(0,i.jsx)(n.r,{...M[m.C.ApplicationDetected],email:a.context.formData.email});default:return null}},[y,a]);return t({header:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.Flex,{gap:"spacer-5",alignItems:"center",children:[(0,i.jsx)(s.E,{partner:C.fz.Flyte}),(0,i.jsx)(r.Divider,{orientation:"vertical",alignSelf:"stretch",height:"auto"}),(0,i.jsx)(s.E,{partner:F})]}),(0,i.jsx)(l.f,{currentStep:y,steps:B})]}),body:H(),currentWorkFlowStep:y})}},97793:(e,t,a)=>{a.d(t,{f:()=>n});var i=a(80072),r=function(e){return e.Idle="idle",e.Submitting="submitting",e.Error="error",e.Success="success",e}({});let n={...i.C,...r}},99221:(e,t,a)=>{a.d(t,{Qg:()=>C,Y9:()=>m,YJ:()=>g,XU:()=>b,Xc:()=>y,kQ:()=>I});var i=a(37876),r=a(37477),n=a(82393),o=a(92087),s=a(82492),l=a(1188),c=a(88992);let d="currentWeightInPounds",S="heightInFoot",u="heightInInch",C=e=>{let{isDisabled:t}=e,{register:a,setValue:C,formState:{errors:m}}=(0,c.xW)(),p=(0,s.Q)(d,m,"validate"),h=(0,s.Q)(S,m,"validate"),g=(0,s.Q)(u,m,"validate");return(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",children:[(0,i.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",children:"What is your current weight and height?"}),(0,i.jsxs)(r.Flex,{direction:{base:"column",md:"row",lg:"column",xl:"row"},gap:{base:"spacer-9",xl:"spacer-12"},children:[(0,i.jsx)(r.Flex,{flex:.6,children:(0,i.jsx)(n.rs,{"data-test":d,isDisabled:t,isInvalid:p,onInput:e=>C(d,e.currentTarget.value),...a(d,{required:!0,validate:e=>{let t=(0,l.s)(e);return t>=1&&t<1e3||o.i[d].validate}})})}),(0,i.jsxs)(r.Flex,{gap:"spacer-4",flex:1,children:[(0,i.jsx)(n.oE,{unit:"ft","data-test":S,isDisabled:t,isInvalid:h,onInput:e=>C(S,e.currentTarget.value),...a(S,{required:!0,validate:e=>{let t=(0,l.s)(e);return t>=4&&t<=7||o.i[S].validate}})}),(0,i.jsx)(n.oE,{"data-test":u,unit:"in",isDisabled:t,isInvalid:g,onInput:e=>C(u,e.currentTarget.value),...a(u,{required:!0,validate:e=>{let t=(0,l.s)(e);return t>=0&&t<=11||o.i[u].validate}})})]})]}),p&&(0,i.jsx)(n.gO,{errors:m,name:d}),h&&(0,i.jsx)(n.gO,{errors:m,name:S}),g&&(0,i.jsx)(n.gO,{errors:m,name:u})]})};var m=function(e){return e.Yes="yes",e.No="no",e}({});let p="comorbidity",h=["Asthma","Binge eating disorder","Chronic obstructive pulmonary disease","Cirrhosis","Congestive heart failure","Coronary artery disease","Fatty liver disease","Heart attack","Hyperlipidemia (high cholesterol)","Hypertension (high blood pressure)","Idiopathic intracranial hypertension","Insulin resistance/Metabolic syndrome","Low Testosterone/Hypogonadism in men","NASH (Non-alcoholic steatohepatitis)","Obstructive sleep apnea","Osteoarthritis","Polycystic ovarian syndrome","Prediabetes","Pseudotumor cerebri","Stress urinary incontinence","Stroke"],g=e=>{let{trigger:t,isDisabled:a}=e,{control:n,setValue:o}=(0,c.xW)();return(0,i.jsxs)(r.Flex,{direction:"column",children:[(0,i.jsxs)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:p,children:["Do you have a weight-related health condition?",(0,i.jsxs)(r.Popover,{trigger:t,closeOnBlur:!0,placement:"auto",children:[(0,i.jsx)(r.Popover.Trigger,{children:(0,i.jsx)(r.Flex,{display:"inline-flex",verticalAlign:"text-top",ml:"spacer-2",children:(0,i.jsx)(r.IconInfoCircle,{size:"m",color:"text-link-primary-default"})})}),(0,i.jsxs)(r.Popover.Content,{children:[(0,i.jsx)(r.Popover.Arrow,{backgroundColor:"text-secondary"}),(0,i.jsx)(r.Popover.Body,{backgroundColor:"text-secondary",borderColor:"transparent",borderRadius:"radii-1",p:"spacer-2",children:(0,i.jsx)(r.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,i.jsx)(r.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,i.jsx)(c.xI,{name:p,control:n,rules:{required:!1},render:e=>{let{field:{onChange:t}}=e;return(0,i.jsxs)(r.AutocompleteMultiSelect,{items:h,useMultipleSelectionProps:{onSelectedItemsChange:e=>{let{selectedItems:a}=e;t(a),o(p,a,{shouldValidate:!0})}},isDisabled:a,children:[(0,i.jsx)(r.AutocompleteMultiSelect.SelectedItems,{renderSelectedItem:e=>{let{selectedItem:t,removeSelectedItem:n}=e;return(0,i.jsxs)(r.Tag,{size:"s",isDisabled:a,onClick:e=>{e.stopPropagation(),n(t)},cursor:"pointer",children:[(0,i.jsx)(r.Tag.Label,{children:t}),(0,i.jsx)(r.Tag.RightIcon,{as:r.IconX})]})}}),(0,i.jsx)(r.AutocompleteMultiSelect.Input,{"data-test":p,placeholder:"Select health condition",variant:"flushed"}),(0,i.jsx)(r.AutocompleteMultiSelect.List,{"data-test":"".concat(p,"List"),renderItem:e=>(0,i.jsx)(i.Fragment,{children:e}),overflowY:"auto",maxHeight:"13.5rem",zIndex:2})]})}})]})},x="birthdate",b=e=>{let{isDisabled:t}=e,{register:a,setValue:l,formState:{errors:d}}=(0,c.xW)(),S=(0,s.Q)(x,d,["isValid","isOver18YearsOld","isLessThan150YearsOld"]);return(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",children:[(0,i.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:x,children:"What is your date of birth?"}),(0,i.jsx)(n.ry,{id:x,isInvalid:S,isDisabled:t,onInput:e=>l(x,e.currentTarget.value),...a(x,{required:!0,validate:{isValid:e=>n.WT.isValid(e)||o.i[x].isValid,isOver18YearsOld:e=>n.WT.isOver18YearsOld(e)||o.i[x].isOver18YearsOld,isLessThan150YearsOld:e=>n.WT.isLessThan150YearsOld(e)||o.i[x].isLessThan150YearsOld}})}),S&&(0,i.jsx)(n.gO,{errors:d,name:x})]})},y=()=>(0,i.jsx)(r.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 f=a(14232);let H="highestWeightInPounds",v="dateOfHighestWeightValue",I=e=>{let{isDisabled:t}=e,{register:a,setValue:S,trigger:u,formState:{errors:C},watch:m}=(0,c.xW)(),p=m(d),h=m(x),g=(0,s.Q)(H,C,["isValid","isLowerThanCurrentWeight"]),b=(0,s.Q)(v,C,["pattern","min","max"]);return(0,f.useEffect)(()=>{u(H)},[p]),(0,i.jsxs)(r.Flex,{direction:"column",gap:"spacer-2",children:[(0,i.jsxs)(r.Box,{children:[(0,i.jsx)(r.Text,{as:"label",variant:"text-body-large-bold",color:"text-primary-negative",htmlFor:H,children:"What was your highest non-pregnancy lifetime weight and when did you reach it?"}),(0,i.jsx)(r.Text,{variant:"text-body-meta-regular",color:"text-secondary",children:"This will help your doctor customize your treatment plan"})]}),(0,i.jsxs)(r.Flex,{gap:"spacer-8",children:[(0,i.jsx)(r.MaskInput,{"data-test":H,"aria-label":"Weight (lbs)",id:H,inputMode:"decimal",size:"l",variant:"flushed",placeholder:"Weight (lbs)",isDisabled:t,isInvalid:g,maskOptions:{mask:/^\d{0,3}(\.\d{0,2})?$/,postfix:" (lbs)"},onInput:e=>S(H,e.currentTarget.value),...a(H,{required:!0,validate:{isValid:e=>{let t=(0,l.s)(e);return t>=1&&t<1e3||o.i[H].isValid},isLowerThanCurrentWeight:e=>{let t=(0,l.s)(p);return(0,l.s)(e)>=t||o.i[H].isLowerThanCurrentWeight}}})}),(0,i.jsx)(r.MaskInput,{"data-test":v,inputMode:"numeric",id:v,size:"l",variant:"flushed",placeholder:"YYYY",isDisabled:t,isInvalid:b,maskOptions:{mask:/^\d{0,4}$/},onInput:e=>{S(v,e.currentTarget.value),4===e.currentTarget.value.length&&u(v)},...a(v,{required:!0,pattern:{value:/^\d{4}$/,message:o.i[v].pattern},min:{value:new Date(h).getFullYear(),message:o.i[v].min},max:{value:new Date().getFullYear(),message:o.i[v].max}})})]}),g&&(0,i.jsx)(n.gO,{errors:C,name:H}),b&&(0,i.jsx)(n.gO,{errors:C,name:v})]})}}}]);