"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[322],{75322:function(e,t,n){n.d(t,{T:function(){return Page}});var l=n(85893),r=n(61563),i=n(71986),a=n(9008),s=n.n(a),o=n(87536),c=n(40188),d=n(58278),u=n(6426),p=n(47209),x=n(59893),h=n(67294);let g="currentWeightInPounds",j="heightInFoot",C="heightInInch";var m=n(78430),b=n(19813),k=n(7351),v=n(93773),y=n(3183),f=n(95875),E=n(4985),U=n(45321),w=n(92900),S=n(76371),A=n(9231),I=n(54638),L=n(80702),B=n(21991);let J={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.",...r}=e,{register:a,formState:s,setValue:m,watch:b}=(0,o.cI)({mode:"onBlur"}),k=(0,c.M)(b(g)),v=(0,c.M)(b(j)),y=(0,c.M)(b(C)),f=null===(t=(0,h.useMemo)(()=>k&&v&&y&&(0,x.V)({weightPounds:k,heightFeet:v,heightInches:y}),[k,v,y]))||void 0===t?void 0:t.toFixed(1),E=(0,p.T)(g,s.errors,"validate"),U=(0,p.T)(j,s.errors,"validate"),w=(0,p.T)(C,s.errors,"validate");return(0,l.jsxs)(i.Flex,{direction:"column",...r,children:[(0,l.jsxs)(i.Flex,{direction:"column",as:"form",children:[(0,l.jsx)(i.Flex,{px:"spacer-8",py:"spacer-4",backgroundColor:"secondary-default",borderTopLeftRadius:"radii-6",borderTopRightRadius:"radii-6",children:(0,l.jsx)(i.Text,{color:"text-light",variant:"text-header-L",children:"BMI Calculator"})}),(0,l.jsxs)(i.Flex,{direction:"column",py:"spacer-8",px:{base:"spacer-5",md:"spacer-8"},backgroundColor:"background-card",borderBottomLeftRadius:"radii-6",borderBottomRightRadius:"radii-6",children:[(0,l.jsxs)(i.Flex,{gap:"spacer-4",children:[(0,l.jsxs)(i.Flex,{direction:"column",gap:"spacer-2",flex:1,children:[(0,l.jsx)(i.Text,{variant:"text-body-medium",color:"text-primary",as:"label",htmlFor:j,children:"Height (ft)"}),(0,l.jsx)(u.lm,{unit:"ft",id:j,isInvalid:U,onInput:e=>m(j,e.currentTarget.value),...a(j,{required:!0,validate:e=>{let t=(0,c.M)(e);return t>=4&&t<=7||d.x[j].validate}})})]}),(0,l.jsxs)(i.Flex,{direction:"column",gap:"spacer-2",flex:1,children:[(0,l.jsx)(i.Text,{variant:"text-body-medium",color:"text-primary",as:"label",htmlFor:C,children:"Height (in)"}),(0,l.jsx)(u.lm,{unit:"in",id:C,isInvalid:w,onInput:e=>m(C,e.currentTarget.value),...a(C,{required:!0,validate:e=>{let t=(0,c.M)(e);return t>=0&&t<=11||d.x[C].validate}})})]})]}),(U||w)&&(0,l.jsxs)(i.Flex,{gap:"spacer-2",direction:"column",mt:"spacer-2",children:[U&&(0,l.jsx)(u.VO,{errors:s.errors,name:j}),w&&(0,l.jsx)(u.VO,{errors:s.errors,name:C})]}),(0,l.jsxs)(i.Box,{mb:{base:"spacer-6",md:"spacer-8"},mt:"spacer-4",children:[(0,l.jsx)(i.Text,{variant:"text-body-medium",color:"text-primary",as:"label",htmlFor:g,children:"Weight (lbs)"}),(0,l.jsx)(u.CZ,{id:g,isInvalid:E,mt:"spacer-2",onInput:e=>m(g,e.currentTarget.value),...a(g,{required:!0,validate:e=>{let t=(0,c.M)(e);return t>=1&&t<1e3||d.x[g].validate}})}),E&&(0,l.jsx)(i.Box,{mt:"spacer-2",children:(0,l.jsx)(u.VO,{errors:s.errors,name:g})})]}),(0,l.jsx)(i.Box,{margin:"0 auto",children:(0,l.jsxs)(i.TextPairing,{variant:{base:"textpairing-body-display-XL",md:"textpairing-body-display-2XL"},children:[(0,l.jsx)(i.TextPairing.Label,{color:"text-primary",children:null!=f?f:"--.--"}),(0,l.jsx)(i.TextPairing.SubLabel,{color:"text-secondary",textAlign:"center",children:"BMI"})]})})]})]}),(0,l.jsx)(i.Tooltip,{label:n,placement:"top",children:(0,l.jsxs)(i.Flex,{gap:"spacer-2",alignItems:"center",mt:"spacer-3",justifyContent:"center",children:[(0,l.jsx)(i.Text,{color:"text-link-accent-default",variant:"text-body-meta-medium",as:"p",children:"Why BMI?"}),(0,l.jsx)(i.IconInfoCircle,{})]})})]})},AetnaSignUpLauncher:e=>{let{size:t="l",children:n="Get Started",...r}=e,[a,s]=(0,h.useState)(!1),[o,c]=(0,h.useState)(!1),{track:d}=(0,y.useAnalytics)(),u=(0,h.useCallback)(()=>{c(!1),s(!1),d(f.U.closeWorkflowEvent)},[]),p=(0,h.useCallback)(e=>{let t=[v.J.ApplicationReview,v.J.ApplicationComplete,v.J.ApplicationDetected,v.J.EligibilityUnmet],n=t.includes(e);n?s(!1):(d(f.U.closeWorkflowConfirmationEvent),x())},[]),x=(0,h.useCallback)(()=>c(e=>!e),[]),g=(0,h.useCallback)(()=>{d(f.U.abortCloseWorkflow),x()},[x,d]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.Button,{onClick:()=>s(!0),trailingIcon:(0,l.jsx)(i.IconArrowRight,{}),size:t,children:n,"data-test":"aetnaSignUpLauncher",...r}),a&&(0,l.jsx)(b.U,{render:e=>{let{header:t,body:n,currentWorkFlowStep:r}=e;return(0,l.jsxs)(k.Eg,{isOpen:!0,onClose:()=>p(r),children:[(0,l.jsx)(k.Eg.Header,{children:t}),(0,l.jsx)(k.Eg.Body,{children:n},r)]})}}),(0,l.jsx)(m.e,{isOpen:o,onContinue:g,onLeave:u})]})},CareCompassSignUpLauncher:e=>{let{size:t="l",children:n="Get Started",...r}=e,[a,s]=(0,h.useState)(!1),[o,c]=(0,h.useState)(!1),{track:d}=(0,y.useAnalytics)(),u=(0,h.useCallback)(()=>{c(!1),s(!1),d(f.U.closeWorkflowEvent)},[]),p=(0,h.useCallback)(e=>{let t=[v.J.ApplicationReview,v.J.ApplicationComplete,v.J.ApplicationDetected,v.J.EligibilityUnmet],n=t.includes(e);n?s(!1):(d(f.U.closeWorkflowConfirmationEvent),x())},[]),x=(0,h.useCallback)(()=>c(e=>!e),[]),g=(0,h.useCallback)(()=>{d(f.U.abortCloseWorkflow),x()},[x,d]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.Button,{onClick:()=>s(!0),trailingIcon:(0,l.jsx)(i.IconArrowRight,{}),size:t,children:n,"data-test":"careCompassSignUpLauncher",...r}),a&&(0,l.jsx)(E.$,{render:e=>{let{header:t,body:n,currentWorkFlowStep:r}=e;return(0,l.jsxs)(k.Eg,{isOpen:!0,onClose:()=>p(r),children:[(0,l.jsx)(k.Eg.Header,{children:t}),(0,l.jsx)(k.Eg.Body,{children:n},r)]})}}),(0,l.jsx)(m.e,{isOpen:o,onContinue:g,onLeave:u})]})},FlyteSignUpLauncher:w.U,RiverspringSignUpLauncher:e=>{let{size:t="l",children:n="Get Started",...r}=e,[a,s]=(0,h.useState)(!1),[o,c]=(0,h.useState)(!1),{track:d}=(0,y.useAnalytics)(),u=(0,h.useCallback)(()=>{c(!1),s(!1),d(f.U.closeWorkflowEvent)},[]),p=(0,h.useCallback)(e=>{let t=[v.J.ApplicationReview,v.J.ApplicationComplete,v.J.ApplicationDetected,v.J.EligibilityUnmet],n=t.includes(e);n?s(!1):(d(f.U.closeWorkflowConfirmationEvent),x())},[]),x=(0,h.useCallback)(()=>c(e=>!e),[]),g=(0,h.useCallback)(()=>{d(f.U.abortCloseWorkflow),x()},[x,d]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.Button,{onClick:()=>s(!0),trailingIcon:(0,l.jsx)(i.IconArrowRight,{}),size:t,children:n,"data-test":"riverspringSignUpLauncher",...r}),a&&(0,l.jsx)(L.l,{render:e=>{let{header:t,body:n,currentWorkFlowStep:r}=e;return(0,l.jsxs)(k.Eg,{isOpen:!0,onClose:()=>p(r),children:[(0,l.jsx)(k.Eg.Header,{children:t}),(0,l.jsx)(k.Eg.Body,{children:n},r)]})}}),(0,l.jsx)(m.e,{isOpen:o,onContinue:g,onLeave:u})]})},PequotSignUpLauncher:e=>{let{size:t="l",children:n="Get Started",...r}=e,[a,s]=(0,h.useState)(!1),[o,c]=(0,h.useState)(!1),{track:d}=(0,y.useAnalytics)(),u=(0,h.useCallback)(()=>{c(!1),s(!1),d(f.U.closeWorkflowEvent)},[]),p=(0,h.useCallback)(e=>{let t=[v.J.ApplicationReview,v.J.ApplicationComplete,v.J.ApplicationDetected,v.J.EligibilityUnmet],n=t.includes(e);n?s(!1):(d(f.U.closeWorkflowConfirmationEvent),x())},[]),x=(0,h.useCallback)(()=>c(e=>!e),[]),g=(0,h.useCallback)(()=>{d(f.U.abortCloseWorkflow),x()},[x,d]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.Button,{onClick:()=>s(!0),trailingIcon:(0,l.jsx)(i.IconArrowRight,{}),size:t,children:n,"data-test":"pequotSignUpLauncher",...r}),a&&(0,l.jsx)(A.u,{render:e=>{let{header:t,body:n,currentWorkFlowStep:r}=e;return(0,l.jsxs)(k.Eg,{isOpen:!0,onClose:()=>p(r),children:[(0,l.jsx)(k.Eg.Header,{children:t}),(0,l.jsx)(k.Eg.Body,{children:n},r)]})}}),(0,l.jsx)(m.e,{isOpen:o,onContinue:g,onLeave:u})]})},PyleSignUpLauncher:e=>{let{size:t="l",children:n="Get Started",...r}=e,[a,s]=(0,h.useState)(!1),[o,c]=(0,h.useState)(!1),{track:d}=(0,y.useAnalytics)(),u=(0,h.useCallback)(()=>{c(!1),s(!1),d(f.U.closeWorkflowEvent)},[]),p=(0,h.useCallback)(e=>{let t=[v.J.ApplicationReview,v.J.ApplicationDetected,v.J.EligibilityUnmet],n=t.includes(e);n?s(!1):(d(f.U.closeWorkflowConfirmationEvent),x())},[]),x=(0,h.useCallback)(()=>c(e=>!e),[]),g=(0,h.useCallback)(()=>{d(f.U.abortCloseWorkflow),x()},[x,d]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.Button,{onClick:()=>s(!0),trailingIcon:(0,l.jsx)(i.IconArrowRight,{}),size:t,children:n,"data-test":"pyleSignUpLauncher",...r}),a&&(0,l.jsx)(I.u,{render:e=>{let{header:t,body:n,currentWorkFlowStep:r}=e;return(0,l.jsxs)(k.Eg,{isOpen:!0,onClose:()=>p(r),children:[(0,l.jsx)(k.Eg.Header,{children:t}),(0,l.jsx)(k.Eg.Body,{children:n},r)]})}}),(0,l.jsx)(m.e,{isOpen:o,onContinue:g,onLeave:u})]})},DGASignUpLauncher:e=>{let{size:t="l",children:n="Get Started",...r}=e,[a,s]=(0,h.useState)(!1),[o,c]=(0,h.useState)(!1),{track:d}=(0,y.useAnalytics)(),u=(0,h.useCallback)(()=>{c(!1),s(!1),d(f.U.closeWorkflowEvent)},[]),p=(0,h.useCallback)(e=>{let t=[v.J.ApplicationReview,v.J.ApplicationComplete,v.J.ApplicationDetected,v.J.EligibilityUnmet],n=t.includes(e);n?s(!1):(d(f.U.closeWorkflowConfirmationEvent),x())},[]),x=(0,h.useCallback)(()=>c(e=>!e),[]),g=(0,h.useCallback)(()=>{d(f.U.abortCloseWorkflow),x()},[x,d]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.Button,{onClick:()=>s(!0),trailingIcon:(0,l.jsx)(i.IconArrowRight,{}),size:t,children:n,"data-test":"dgaSignUpLauncher",...r}),a&&(0,l.jsx)(U.I,{render:e=>{let{header:t,body:n,currentWorkFlowStep:r}=e;return(0,l.jsxs)(k.Eg,{isOpen:!0,onClose:()=>p(r),children:[(0,l.jsx)(k.Eg.Header,{children:t}),(0,l.jsx)(k.Eg.Body,{children:n},r)]})}}),(0,l.jsx)(m.e,{isOpen:o,onContinue:g,onLeave:u})]})},MDSaveSignUpLauncher:e=>{let{size:t="l",children:n="Get Started",...r}=e,[a,s]=(0,h.useState)(!1),[o,c]=(0,h.useState)(!1),{track:d}=(0,y.useAnalytics)(),u=(0,h.useCallback)(()=>{c(!1),s(!1),d(f.U.closeWorkflowEvent)},[]),p=(0,h.useCallback)(e=>{let t=[v.J.ApplicationReview,v.J.ApplicationDetected,v.J.EligibilityUnmet],n=t.includes(e);n?s(!1):(d(f.U.closeWorkflowConfirmationEvent),x())},[]),x=(0,h.useCallback)(()=>c(e=>!e),[]),g=(0,h.useCallback)(()=>{d(f.U.abortCloseWorkflow),x()},[x,d]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.Button,{onClick:()=>s(!0),trailingIcon:(0,l.jsx)(i.IconArrowRight,{}),size:t,children:n,"data-test":"mdSaveSignUpLauncher",...r}),a&&(0,l.jsx)(S.t,{render:e=>{let{header:t,body:n,currentWorkFlowStep:r}=e;return(0,l.jsxs)(k.Eg,{isOpen:!0,onClose:()=>p(r),children:[(0,l.jsx)(k.Eg.Header,{children:t}),(0,l.jsx)(k.Eg.Body,{children:n},r)]})}}),(0,l.jsx)(m.e,{isOpen:o,onContinue:g,onLeave:u})]})},ChristianaCareSignUpLauncher:e=>{let{size:t="l",children:n="Get Started",...r}=e,[a,s]=(0,h.useState)(!1),[o,c]=(0,h.useState)(!1),{track:d}=(0,y.useAnalytics)(),u=(0,h.useCallback)(()=>{c(!1),s(!1),d(f.U.closeWorkflowEvent)},[]),p=(0,h.useCallback)(e=>{let t=[v.J.ApplicationReview,v.J.ApplicationComplete,v.J.ApplicationDetected,v.J.EligibilityUnmet],n=t.includes(e);n?s(!1):(d(f.U.closeWorkflowConfirmationEvent),x())},[]),x=(0,h.useCallback)(()=>c(e=>!e),[]),g=(0,h.useCallback)(()=>{d(f.U.abortCloseWorkflow),x()},[x,d]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.Button,{onClick:()=>s(!0),trailingIcon:(0,l.jsx)(i.IconArrowRight,{}),size:t,children:n,"data-test":"christianaCareSignUpLauncher",...r}),a&&(0,l.jsx)(B.k,{render:e=>{let{header:t,body:n,currentWorkFlowStep:r}=e;return(0,l.jsxs)(k.Eg,{isOpen:!0,onClose:()=>p(r),children:[(0,l.jsx)(k.Eg.Header,{children:t}),(0,l.jsx)(k.Eg.Body,{children:n},r)]})}}),(0,l.jsx)(m.e,{isOpen:o,onContinue:g,onLeave:u})]})}};var W=n(92041);let Page=e=>{let{content:t,title:n,metaConfiguration:a,theme:o}=e,c=Object.values(null!=a?a:{}),d=n||c.length>0;return(0,l.jsxs)(i.ComposerProvider,{theme:{...o,...W.C},children:[d&&(0,l.jsxs)(s(),{children:[(0,l.jsx)("title",{children:n}),c.map(e=>{let t={[e.propertyName]:e.propertyValue,content:e.content};return(0,l.jsx)("meta",{...t},e.propertyValue)})]}),null==t?void 0:t.map((e,t)=>(0,l.jsx)(r._E,{content:e,componentMap:J},t))]})}}}]);