"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[403],{34403:(e,t,n)=>{n.d(t,{Y:()=>D});var r=n(37876),l=n(37477),i=n(17748),a=n(29261),s=n(74161),o=n(52674),c=n(83439),d=n(80072),u=n(14232),p=n(46884),x=n(58361),h=n(53100),C=n(61115),j=n(62847),g=n(85508),m=n(50264),b=n(96079),k=n(32246),f=n(53310),A=n(47811),v=n(56931),w=n(82393),y=n(92087),S=n(13533),I=n(82492),L=n(1188),E=n(88992);let B="currentWeightInPounds",F="heightInFoot",W="heightInInch",q={BMICalculator:e=>{var t;let{tooltip:n="We acknowledge that Body Mass Index (BMI) is an imperfect way to screen for excess weight. FlyteHealth providers do not use BMI alone as a measure of overall health. Instead, BMI is used as a data point to see if someone is eligible to join the FlyteHealth program. Once someone joins the program, we’ll ask each person more about their health to create a personalized treatment plan.",...i}=e,{register:a,formState:s,setValue:o,watch:c}=(0,E.mN)({mode:"onBlur"}),d=(0,L.s)(c(B)),p=(0,L.s)(c(F)),x=(0,L.s)(c(W)),h=null==(t=(0,u.useMemo)(()=>d&&p&&x&&(0,S.H)({weightPounds:d,heightFeet:p,heightInches:x}),[d,p,x]))?void 0:t.toFixed(1),C=(0,I.Q)(B,s.errors,"validate"),j=(0,I.Q)(F,s.errors,"validate"),g=(0,I.Q)(W,s.errors,"validate");return(0,r.jsxs)(l.Flex,{direction:"column",...i,children:[(0,r.jsxs)(l.Flex,{direction:"column",as:"form",children:[(0,r.jsx)(l.Flex,{px:"spacer-8",py:"spacer-4",backgroundColor:"secondary-default",borderTopLeftRadius:"radii-6",borderTopRightRadius:"radii-6",children:(0,r.jsx)(l.Text,{color:"text-light",variant:"text-header-L",children:"BMI Calculator"})}),(0,r.jsxs)(l.Flex,{direction:"column",py:"spacer-8",px:{base:"spacer-5",md:"spacer-8"},backgroundColor:"background-card",borderBottomLeftRadius:"radii-6",borderBottomRightRadius:"radii-6",children:[(0,r.jsxs)(l.Flex,{gap:"spacer-4",children:[(0,r.jsxs)(l.Flex,{direction:"column",gap:"spacer-2",flex:1,children:[(0,r.jsx)(l.Text,{variant:"text-body-medium",color:"text-primary",as:"label",htmlFor:F,children:"Height (ft)"}),(0,r.jsx)(w.oE,{unit:"ft",id:F,isInvalid:j,onInput:e=>o(F,e.currentTarget.value),...a(F,{required:!0,validate:e=>{let t=(0,L.s)(e);return t>=4&&t<=7||y.i[F].validate}})})]}),(0,r.jsxs)(l.Flex,{direction:"column",gap:"spacer-2",flex:1,children:[(0,r.jsx)(l.Text,{variant:"text-body-medium",color:"text-primary",as:"label",htmlFor:W,children:"Height (in)"}),(0,r.jsx)(w.oE,{unit:"in",id:W,isInvalid:g,onInput:e=>o(W,e.currentTarget.value),...a(W,{required:!0,validate:e=>{let t=(0,L.s)(e);return t>=0&&t<=11||y.i[W].validate}})})]})]}),(j||g)&&(0,r.jsxs)(l.Flex,{gap:"spacer-2",direction:"column",mt:"spacer-2",children:[j&&(0,r.jsx)(w.gO,{errors:s.errors,name:F}),g&&(0,r.jsx)(w.gO,{errors:s.errors,name:W})]}),(0,r.jsxs)(l.Box,{mb:{base:"spacer-6",md:"spacer-8"},mt:"spacer-4",children:[(0,r.jsx)(l.Text,{variant:"text-body-medium",color:"text-primary",as:"label",htmlFor:B,children:"Weight (lbs)"}),(0,r.jsx)(w.rs,{id:B,isInvalid:C,mt:"spacer-2",onInput:e=>o(B,e.currentTarget.value),...a(B,{required:!0,validate:e=>{let t=(0,L.s)(e);return t>=1&&t<1e3||y.i[B].validate}})}),C&&(0,r.jsx)(l.Box,{mt:"spacer-2",children:(0,r.jsx)(w.gO,{errors:s.errors,name:B})})]}),(0,r.jsx)(l.Box,{margin:"0 auto",children:(0,r.jsxs)(l.TextPairing,{variant:{base:"textpairing-body-display-XL",md:"textpairing-body-display-2XL"},children:[(0,r.jsx)(l.TextPairing.Label,{color:"text-primary",children:null!=h?h:"--.--"}),(0,r.jsx)(l.TextPairing.SubLabel,{color:"text-secondary",textAlign:"center",children:"BMI"})]})})]})]}),(0,r.jsx)(l.Tooltip,{label:n,placement:"top",children:(0,r.jsxs)(l.Flex,{gap:"spacer-2",alignItems:"center",mt:"spacer-3",justifyContent:"center",children:[(0,r.jsx)(l.Text,{color:"text-link-accent-default",variant:"text-body-meta-medium",as:"p",children:"Why BMI?"}),(0,r.jsx)(l.IconInfoCircle,{})]})})]})},AetnaSignUpLauncher:e=>{let{size:t="l",children:n="Get Started",...i}=e,[x,h]=(0,u.useState)(!1),[C,j]=(0,u.useState)(!1),{track:g}=(0,s.useAnalytics)(),m=(0,u.useCallback)(()=>{j(!1),h(!1),g(a.A.closeWorkflowEvent)},[]),b=(0,u.useCallback)(()=>j(e=>!e),[]),k=(0,u.useCallback)(e=>{[d.C.ApplicationReview,d.C.ApplicationComplete,d.C.ApplicationDetected,d.C.EligibilityUnmet].includes(e)?h(!1):(g(a.A.closeWorkflowConfirmationEvent),b())},[]),f=(0,u.useCallback)(()=>{g(a.A.abortCloseWorkflow),b()},[b,g]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.Button,{onClick:()=>h(!0),trailingIcon:(0,r.jsx)(l.IconArrowRight,{}),size:t,children:n,"data-test":"aetnaSignUpLauncher",...i}),x&&(0,r.jsx)(p.j,{render:e=>{let{header:t,body:n,currentWorkFlowStep:l}=e;return(0,r.jsxs)(o.fq,{isOpen:!0,onClose:()=>k(l),children:[(0,r.jsx)(o.fq.Header,{children:t}),(0,r.jsx)(o.fq.Body,{children:n},l)]})}}),(0,r.jsx)(c.t,{isOpen:C,onContinue:f,onLeave:m})]})},CareCompassSignUpLauncher:x.q,EmorySignUpLauncher:e=>{let{size:t="l",children:n="Get Started",...i}=e,[p,x]=(0,u.useState)(!1),[h,j]=(0,u.useState)(!1),{track:g}=(0,s.useAnalytics)(),m=(0,u.useCallback)(()=>{j(!1),x(!1),g(a.A.closeWorkflowEvent)},[]),b=(0,u.useCallback)(()=>j(e=>!e),[]),k=(0,u.useCallback)(e=>{[d.C.ApplicationReview,d.C.ApplicationComplete,d.C.ApplicationDetected,d.C.EligibilityUnmet,d.C.AppDownload].includes(e)?x(!1):(g(a.A.closeWorkflowConfirmationEvent),b())},[]),f=(0,u.useCallback)(()=>{g(a.A.abortCloseWorkflow),b()},[b,g]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.Button,{onClick:()=>x(!0),trailingIcon:(0,r.jsx)(l.IconArrowRight,{}),size:t,children:n,"data-test":"emorySignUpLauncher",...i}),p&&(0,r.jsx)(C.M,{render:e=>{let{header:t,body:n,currentWorkFlowStep:l}=e;return(0,r.jsxs)(o.fq,{isOpen:!0,onClose:()=>k(l),children:[(0,r.jsx)(o.fq.Header,{children:t}),(0,r.jsx)(o.fq.Body,{children:n},l)]})}}),(0,r.jsx)(c.t,{isOpen:h,onContinue:f,onLeave:m})]})},EmoryVideoInstructionsLauncher:e=>{let{videoSrc:t=j.$,videoTitle:n="Lab Work Instructional Video",buttonText:i="Watch Our Intro Video",size:a="l",variant:s="primary-alt",...o}=e,[c,d]=(0,u.useState)(!1),p=(0,u.useCallback)(()=>{d(!0)},[]),x=(0,u.useCallback)(()=>{d(!1)},[]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.Button,{onClick:p,trailingIcon:(0,r.jsx)(l.IconArrowRight,{}),size:a,variant:s,"data-test":"emoryVideoLauncher",...o,children:i}),(0,r.jsxs)(l.Modal,{isOpen:c,onClose:x,isCentered:!0,children:[(0,r.jsx)(l.Modal.Overlay,{}),(0,r.jsx)(l.Modal.Content,{backgroundColor:"transparent",boxShadow:"none",width:{base:"100%",md:"620px",lg:"687px",xl:"747px",xxl:"804px"},padding:0,margin:0,overflow:"hidden",borderRadius:{base:0,md:"16px"},children:(0,r.jsx)(l.Box,{width:"100%",aspectRatio:"16/9",overflow:"hidden",children:(0,r.jsx)(l.Box,{as:"iframe",width:"100%",height:"100%",src:t,title:n,allow:"fullscreen; picture-in-picture",frameBorder:"0"})})})]})]})},FlyteSignUpLauncher:g.h,FlyteVideoInstructionsLauncher:m.x,RiverspringSignUpLauncher:e=>{let{size:t="l",children:n="Get Started",...i}=e,[p,x]=(0,u.useState)(!1),[h,C]=(0,u.useState)(!1),{track:j}=(0,s.useAnalytics)(),g=(0,u.useCallback)(()=>{C(!1),x(!1),j(a.A.closeWorkflowEvent)},[]),m=(0,u.useCallback)(()=>C(e=>!e),[]),b=(0,u.useCallback)(e=>{[d.C.ApplicationReview,d.C.ApplicationComplete,d.C.ApplicationDetected,d.C.EligibilityUnmet,d.C.AppDownload].includes(e)?x(!1):(j(a.A.closeWorkflowConfirmationEvent),m())},[]),k=(0,u.useCallback)(()=>{j(a.A.abortCloseWorkflow),m()},[m,j]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.Button,{onClick:()=>x(!0),trailingIcon:(0,r.jsx)(l.IconArrowRight,{}),size:t,children:n,"data-test":"riverspringSignUpLauncher",...i}),p&&(0,r.jsx)(A.D,{render:e=>{let{header:t,body:n,currentWorkFlowStep:l}=e;return(0,r.jsxs)(o.fq,{isOpen:!0,onClose:()=>b(l),children:[(0,r.jsx)(o.fq.Header,{children:t}),(0,r.jsx)(o.fq.Body,{children:n},l)]})}}),(0,r.jsx)(c.t,{isOpen:h,onContinue:k,onLeave:g})]})},PequotSignUpLauncher:e=>{let{size:t="l",children:n="Get Started",...i}=e,[p,x]=(0,u.useState)(!1),[h,C]=(0,u.useState)(!1),{track:j}=(0,s.useAnalytics)(),g=(0,u.useCallback)(()=>{C(!1),x(!1),j(a.A.closeWorkflowEvent)},[]),m=(0,u.useCallback)(()=>C(e=>!e),[]),b=(0,u.useCallback)(e=>{[d.C.ApplicationReview,d.C.ApplicationComplete,d.C.ApplicationDetected,d.C.EligibilityUnmet,d.C.AppDownload].includes(e)?x(!1):(j(a.A.closeWorkflowConfirmationEvent),m())},[]),f=(0,u.useCallback)(()=>{j(a.A.abortCloseWorkflow),m()},[m,j]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.Button,{onClick:()=>x(!0),trailingIcon:(0,r.jsx)(l.IconArrowRight,{}),size:t,children:n,"data-test":"pequotSignUpLauncher",...i}),p&&(0,r.jsx)(k.K,{render:e=>{let{header:t,body:n,currentWorkFlowStep:l}=e;return(0,r.jsxs)(o.fq,{isOpen:!0,onClose:()=>b(l),children:[(0,r.jsx)(o.fq.Header,{children:t}),(0,r.jsx)(o.fq.Body,{children:n},l)]})}}),(0,r.jsx)(c.t,{isOpen:h,onContinue:f,onLeave:g})]})},PyleSignUpLauncher:e=>{let{size:t="l",children:n="Get Started",...i}=e,[p,x]=(0,u.useState)(!1),[h,C]=(0,u.useState)(!1),{track:j}=(0,s.useAnalytics)(),g=(0,u.useCallback)(()=>{C(!1),x(!1),j(a.A.closeWorkflowEvent)},[]),m=(0,u.useCallback)(()=>C(e=>!e),[]),b=(0,u.useCallback)(e=>{[d.C.ApplicationReview,d.C.ApplicationDetected,d.C.EligibilityUnmet].includes(e)?x(!1):(j(a.A.closeWorkflowConfirmationEvent),m())},[]),k=(0,u.useCallback)(()=>{j(a.A.abortCloseWorkflow),m()},[m,j]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.Button,{onClick:()=>x(!0),trailingIcon:(0,r.jsx)(l.IconArrowRight,{}),size:t,children:n,"data-test":"pyleSignUpLauncher",...i}),p&&(0,r.jsx)(f.A,{render:e=>{let{header:t,body:n,currentWorkFlowStep:l}=e;return(0,r.jsxs)(o.fq,{isOpen:!0,onClose:()=>b(l),children:[(0,r.jsx)(o.fq.Header,{children:t}),(0,r.jsx)(o.fq.Body,{children:n},l)]})}}),(0,r.jsx)(c.t,{isOpen:h,onContinue:k,onLeave:g})]})},SEIUSignUpLauncher:e=>{let{size:t="l",children:n="Get Started",...i}=e,[p,x]=(0,u.useState)(!1),[h,C]=(0,u.useState)(!1),{track:j}=(0,s.useAnalytics)(),g=(0,u.useCallback)(()=>{C(!1),x(!1),j(a.A.closeWorkflowEvent)},[]),m=(0,u.useCallback)(()=>C(e=>!e),[]),b=(0,u.useCallback)(e=>{[d.C.ApplicationReview,d.C.ApplicationComplete,d.C.ApplicationDetected,d.C.EligibilityUnmet,d.C.AppDownload].includes(e)?x(!1):(j(a.A.closeWorkflowConfirmationEvent),m())},[]),k=(0,u.useCallback)(()=>{j(a.A.abortCloseWorkflow),m()},[m,j]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.Button,{onClick:()=>x(!0),trailingIcon:(0,r.jsx)(l.IconArrowRight,{}),size:t,children:n,"data-test":"seiuSignUpLauncher",...i}),p&&(0,r.jsx)(v.A,{render:e=>{let{header:t,body:n,currentWorkFlowStep:l}=e;return(0,r.jsxs)(o.fq,{isOpen:!0,onClose:()=>b(l),children:[(0,r.jsx)(o.fq.Header,{children:t}),(0,r.jsx)(o.fq.Body,{children:n},l)]})}}),(0,r.jsx)(c.t,{isOpen:h,onContinue:k,onLeave:g})]})},MDSaveSignUpLauncher:e=>{let{size:t="l",children:n="Get Started",...i}=e,[p,x]=(0,u.useState)(!1),[h,C]=(0,u.useState)(!1),{track:j}=(0,s.useAnalytics)(),g=(0,u.useCallback)(()=>{C(!1),x(!1),j(a.A.closeWorkflowEvent)},[]),m=(0,u.useCallback)(()=>C(e=>!e),[]),k=(0,u.useCallback)(e=>{[d.C.ApplicationReview,d.C.ApplicationDetected,d.C.EligibilityUnmet].includes(e)?x(!1):(j(a.A.closeWorkflowConfirmationEvent),m())},[]),f=(0,u.useCallback)(()=>{j(a.A.abortCloseWorkflow),m()},[m,j]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.Button,{onClick:()=>x(!0),trailingIcon:(0,r.jsx)(l.IconArrowRight,{}),size:t,children:n,"data-test":"mdSaveSignUpLauncher",...i}),p&&(0,r.jsx)(b.Y,{render:e=>{let{header:t,body:n,currentWorkFlowStep:l}=e;return(0,r.jsxs)(o.fq,{isOpen:!0,onClose:()=>k(l),children:[(0,r.jsx)(o.fq.Header,{children:t}),(0,r.jsx)(o.fq.Body,{children:n},l)]})}}),(0,r.jsx)(c.t,{isOpen:h,onContinue:f,onLeave:g})]})},ChristianaCareSignUpLauncher:e=>{let{size:t="l",children:n="Get Started",...i}=e,[p,x]=(0,u.useState)(!1),[C,j]=(0,u.useState)(!1),{track:g}=(0,s.useAnalytics)(),m=(0,u.useCallback)(()=>{j(!1),x(!1),g(a.A.closeWorkflowEvent)},[]),b=(0,u.useCallback)(()=>j(e=>!e),[]),k=(0,u.useCallback)(e=>{[d.C.ApplicationReview,d.C.ApplicationComplete,d.C.ApplicationDetected,d.C.EligibilityUnmet,d.C.AppDownload].includes(e)?x(!1):(g(a.A.closeWorkflowConfirmationEvent),b())},[]),f=(0,u.useCallback)(()=>{g(a.A.abortCloseWorkflow),b()},[b,g]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.Button,{onClick:()=>x(!0),trailingIcon:(0,r.jsx)(l.IconArrowRight,{}),size:t,children:n,"data-test":"christianaCareSignUpLauncher",...i}),p&&(0,r.jsx)(h.z,{render:e=>{let{header:t,body:n,currentWorkFlowStep:l}=e;return(0,r.jsxs)(o.fq,{isOpen:!0,onClose:()=>k(l),children:[(0,r.jsx)(o.fq.Header,{children:t}),(0,r.jsx)(o.fq.Body,{children:n},l)]})}}),(0,r.jsx)(c.t,{isOpen:C,onContinue:f,onLeave:m})]})},PartnerLandingNavigation:e=>{let{children:t,...n}=e,i=(0,l.useScrollPosition)(),a=(0,l.useBreakpointValue)({base:!0,md:!1}),s=i>400,o=(0,u.useMemo)(()=>{let e=[],n=null;return u.Children.forEach(t,t=>{(0,u.isValidElement)(t)&&(t.type===l.Image?e.push(t):n||(n=t))}),{images:e,launcher:n}},[t]),[c,d]=o.images;return(0,r.jsx)(l.Flex,{as:"nav",backgroundColor:"background-page",position:"sticky",top:"0",zIndex:10,width:"100%",height:"84px",children:(0,r.jsxs)(l.Flex,{alignItems:"center",justifyContent:"space-between",width:"100%",height:"100%",maxWidth:"1440px",margin:"0 auto",py:{base:"spacer-2",lg:"spacer-4"},px:{base:"spacer-8",lg:"spacer-16",xl:"spacer-24",xxl:"spacer-32"},...n,children:[(0,r.jsxs)(l.Flex,{gap:"spacer-5",alignItems:"center",children:[c,(0,r.jsx)(l.Fade,{in:!a||i<=400,unmountOnExit:!0,children:(0,r.jsxs)(l.Flex,{gap:"spacer-5",alignItems:"center",children:[(0,r.jsx)(l.Divider,{orientation:"vertical",height:"52px"}),d]})})]}),s&&o.launcher&&(0,r.jsx)(l.Fade,{in:s,children:o.launcher})]})})}};var U=n(40941),R=n(77328),O=n.n(R);let D=e=>{let{content:t,title:n,metaConfiguration:a,theme:s}=e,o=Object.values(null!=a?a:{}),c=n||o.length>0;return(0,r.jsxs)(l.ComposerProvider,{theme:{...s,...U.b},children:[c&&(0,r.jsxs)(O(),{children:[(0,r.jsx)("title",{children:n}),o.map(e=>{let t={[e.propertyName]:e.propertyValue,content:e.content};return(0,r.jsx)("meta",{...t},e.propertyValue)})]}),null==t?void 0:t.map((e,t)=>(0,r.jsx)(i.rC,{content:e,componentMap:q},t))]})}},85508:(e,t,n)=>{n.d(t,{h:()=>p});var r=n(37876),l=n(29261),i=n(74161),a=n(37477),s=n(52674),o=n(83439),c=n(80072),d=n(14232),u=n(17206);let p=e=>{let{size:t="l",children:n="Get Started",...p}=e,[x,h]=(0,d.useState)(!1),[C,j]=(0,d.useState)(!1),{track:g}=(0,i.useAnalytics)(),m=(0,d.useCallback)(()=>{j(!1),h(!1),g(l.A.closeWorkflowEvent)},[]),b=(0,d.useCallback)(()=>j(e=>!e),[]),k=(0,d.useCallback)(e=>{[c.C.ApplicationReview,c.C.ApplicationComplete,c.C.ApplicationDetected,c.C.EligibilityUnmet,c.C.AppDownload].includes(e)?h(!1):(g(l.A.closeWorkflowConfirmationEvent),b())},[]),f=(0,d.useCallback)(()=>{g(l.A.abortCloseWorkflow),b()},[b]),A=(0,d.useCallback)(()=>{g(l.A.openPartnerSelectorEvent),h(!0)},[g,h]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.Button,{onClick:A,trailingIcon:(0,r.jsx)(a.IconArrowRight,{}),size:t,children:n,"data-test":"flyteSignUpLauncher",...p}),x&&(0,r.jsx)(u.D,{render:e=>{let{header:t,body:n,currentWorkFlowStep:l}=e;return(0,r.jsxs)(s.fq,{isOpen:!0,onClose:()=>k(l),children:[(0,r.jsx)(s.fq.Header,{children:t}),(0,r.jsx)(s.fq.Body,{children:n},l)]})}}),(0,r.jsx)(o.t,{isOpen:C,onContinue:f,onLeave:m})]})}}}]);