1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4463],{51383:function(e,t,n){"use strict";n.d(t,{CR:function(){return A},GN:function(){return P},LQ:function(){return b},Mf:function(){return S},Ml:function(){return a},On:function(){return N},Or:function(){return k},Pz:function(){return l},SM:function(){return y},TH:function(){return Z},Uj:function(){return m},WX:function(){return j},XH:function(){return h},Zz:function(){return w},aN:function(){return c},bz:function(){return D},cX:function(){return _},dG:function(){return x},eD:function(){return i},ec:function(){return M},fp:function(){return C},hc:function(){return r},i8:function(){return g},jE:function(){return f},js:function(){return q},kC:function(){return v},p:function(){return E},rG:function(){return u},sR:function(){return I},sj:function(){return o},tm:function(){return d},ut:function(){return s},w5:function(){return p},xN:function(){return T},yS:function(){return O}});const r="/assets/images/flow/welcome.png",i="/assets/images/flow/ratings.png",s="/assets/images/flow/medical_start.jpg",o="/assets/images/flow/medical_end.jpg",a="/assets/images/flow/medical_end_mobile.jpg",l="/assets/icons/flow/error.png",d="/assets/icons/flow/success.png",c="/assets/icons/flow/warning.png",u="/assets/icons/flow/upload.png",m="/assets/icons/flow/attachment.png",h="/assets/icons/flow/trash.png",p="/assets/icons/flow/note-yes.png",g="/assets/icons/flow/note-no.png",f="/assets/icons/flow/terms.png",x="/assets/images/flow/treatment_end.jpg",b="/assets/images/flow/treatment_end_mobile.jpg",v="/assets/images/new/end1.png",y="/assets/images/new/end2.png",w="/assets/images/new/end3a.png",j="/assets/images/new/end4.png",N="/assets/images/new/end5.png",O="/assets/images/new/end6.png",S="/assets/images/new/careers.png",D="/assets/images/new/diseaseTagImg.png",C="/assets/images/new/highUMC.png",k="/assets/images/new/highdental.png",I="/assets/images/new/highsexual.png",E="/assets/images/new/highmens.png",T="/assets/images/new/highwomen.png",M="/assets/images/v2/weightLossOral1.png",P="/assets/images/v2/weightLossInjection1.png",_="/assets/images/v2/bottomImgWLMeds.png",Z="/assets/images/flow/stepImage1.png",A="/assets/images/flow/stepImage2.png",q="/assets/images/flow/stepImage3.png"},288:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(59499),i=n(4730),s=n(67294),o=n(77314),a=n(85893);const l=["index","onTransitionEnd","children"];function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const u={height:0,overflow:"hidden"};function m(e){let{index:t,onTransitionEnd:n,children:r}=e,d=(0,i.Z)(e,l);const m=Number(t)||0,{0:h,1:p}=(0,s.useState)(m);return(0,s.useEffect)((()=>{const e=setTimeout((()=>p(m)),800);return()=>clearTimeout(e)}),[m]),(0,a.jsx)(o.ZP,c(c({},d),{},{index:m,onTransitionEnd:function(){p(m),null===n||void 0===n||n()},children:s.Children.map(r,((e,t)=>(0,a.jsx)("div",{style:t===m||t===h?void 0:u,children:e})))}))}},87990:function(e,t,n){"use strict";var r=n(59499),i=n(67294),s=n(51383),o=n(47533),a=n(34289),l=n(87536),d=n(74231),c=n(59551),u=n(70148),m=(n(11163),n(41664)),h=n.n(m),p=n(85893);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEac
1h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const x=d.Ry().shape({email:d.Z_().email("Invalid email").required("Required"),password:d.Z_().min(8,"Too Short!").max(50,"Too Long!").required("Required")});t.Z=e=>{let{setcurrentStep:t,currentStep:n,isSubscribing:r=!1}=e;const d=(0,c.f0)(),{0:m,1:g}=(0,i.useState)(!1),{register:v,handleSubmit:y,formState:{errors:w},control:j}=(0,l.cI)({resolver:(0,o.X)(x)});return(0,p.jsxs)("div",{className:"signupForm",children:[(0,p.jsxs)("h2",{className:"flowHeading mt-4 mb-3",children:["Log in to your ",(0,p.jsx)("span",{children:" account"})]}),(0,p.jsxs)("div",{className:"loginBanner",children:[(0,p.jsxs)("ul",{className:"listOnBanner",children:[(0,p.jsxs)("li",{children:[(0,p.jsx)(b,{}),(0,p.jsx)("p",{children:"Save your progress"})]}),(0,p.jsxs)("li",{children:[(0,p.jsx)(b,{}),(0,p.jsx)("p",{children:"Easy refills"})]}),(0,p.jsxs)("li",{children:[(0,p.jsx)(b,{}),(0,p.jsx)("p",{children:"Track your health"})]})]}),(0,p.jsx)("img",{className:"bannerRating",src:s.eD,width:82,height:75,alt:"website rating"})]}),(0,p.jsxs)("form",{onSubmit:y((async function(e){g(!0);let n=await d(e.email,e.password);g(!1),0==n.success?u.toast.error("Username or Password is incorrect"):(u.toast.success("Login Successfull"),t(1))})),style:{width:"100%",display:"flex",flexDirection:"column"},children:[(0,p.jsxs)("div",{className:"flowField",children:[(0,p.jsx)("label",{children:"Email"}),(0,p.jsx)("input",f({type:"text",placeholder:"Your email"},v("email"))),w.email&&(0,p.jsx)(a.Z.Text,{className:"text-muted error",children:w.email.message})]}),(0,p.jsxs)("div",{className:"flowField",children:[(0,p.jsx)("label",{children:"Password"}),(0,p.jsx)("input",f({type:"password",placeholder:"Your password"},v("password"))),w.password&&(0,p.jsx)(a.Z.Text,{className:"text-muted error",children:w.password.message})]}),(0,p.jsxs)("div",{className:" align-self-end",style:{fontSize:13.5,fontWeight:500},children:[" ",(0,p.jsx)(h(),{href:""+(r?"/subscribe/forgot-password":"/diagnosis/forgot-password"),children:"Forgot password?"})]}),(0,p.jsx)("button",{className:"btnWelcome",style:{width:"100%",marginTop:"4rem"},type:"submit",disabled:m,children:m?(0,p.jsx)("span",{className:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"}):"Log in"}),(0,p.jsx)("button",{className:" tw-bg-transparent tw-text-black tw-w-fit tw-mx-auto tw-border-0 tw-mt-4",type:"button",onClick:()=>t(1),children:"Go back"})]})]})};const b=()=>(0,p.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,p.jsx)("path",{d:"M2.9165 7.58203L5.24984 9.91536L11.0832 4.08203",stroke:"white",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})},45471:function(e,t,n){"use strict";var r=n(59499),i=n(47533),s=n(67294),o=n(34051),a=n(31555),l=n(34289),d=n(87536),c=n(74231),u=n(59551),m=n(70148),h=n(11163),p=n(61901),g=(n(9267),n(85893));function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const b=c.Ry().shape({dob:c.Ry({month:c.Rx().typeError("Month must be a number").min(1,"Invalid month").max(12,"Invalid month").required("Month is required"),day:c.Rx().typeError("Day must be a number").min(1,"Invalid day").max(31,"Invalid day").required("Day is required"),year:c.Rx().typeError("Year must be a number").min(1900,"Year too far in the past").max((new Date).getFullYear()-18,"You must be at least 18 years old to continue.").max((new Date).getFullYear()-18,"You must be at least 18 years old to continue.").required("Year is required")}),gender:c.Z_().required("Gender is Required"),height:c.Ry().shape({feet:c.Rx().typeError("Feet must be a number").required("Feet is required").min(1,"Feet must be at least 1").max(9,"Feet cannot exceed 9").transform(((e,t)=>""===t?null:e)),inches:c.Rx().typeError("Inches must be a number").required("Inches is required").min(0,"Inches cannot be negative").max(11,"Inches must be between 0 and 11").transform(((e,t)=>""===t?null:e))}),weight:c.Rx().transform(((e,t)=>""===t?null:e)).nullable().required("Weight is Required").min(40,"Weight is too low!").max(999,"Weight is too high!")});t.Z=e=>{var t,n,r,c,f,v,y,w,j,N,O;let{setcurrentStep:S,currentStep:D,setPatientData:C,isweightLoss:k,setpreviousIndex:I,isED:E=!1}=e;const T=(0,p.Z)(),{user:M}=(0,u.cO)(),{0:P,1:_}
1=(0,s.useState)(!1),{0:Z,1:A}=(0,s.useState)(0),{register:q,handleSubmit:F,formState:{errors:L},watch:W,setValue:R,getValues:B,control:Y}=(0,d.cI)({defaultValues:{},resolver:(0,i.X)(b)}),z=(0,h.useRouter)(),H=(0,d.qo)({control:Y,name:"weight"}),V=(0,d.qo)({control:Y,name:"height.feet"}),U=(0,d.qo)({control:Y,name:"height.inches"});(0,s.useEffect)((()=>{var e,t,n,r,i;null!==M&&void 0!==M&&(R("dob.month",null===M||void 0===M||null===(e=M.dateObject)||void 0===e?void 0:e.month),R("dob.day",null===M||void 0===M||null===(t=M.dateObject)||void 0===t?void 0:t.day),R("dob.year",null===M||void 0===M||null===(n=M.dateObject)||void 0===n?void 0:n.year),R("gender",null===M||void 0===M?void 0:M.gender),R("weight",null===M||void 0===M?void 0:M.weight),R("height.feet",null===M||void 0===M||null===(r=M.height)||void 0===r?void 0:r.feet),R("height.inches",null===M||void 0===M||null===(i=M.height)||void 0===i?void 0:i.inches))}),[M,R]),(0,s.useEffect)((()=>{if(k)if(isNaN(H)||isNaN(V)||isNaN(U))A(0);else{const e=12*parseFloat(V)+parseFloat(U);if(e>0){const t=parseFloat(H)/e**2*703;A(t.toFixed(1))}}}),[H,V,U,k]);const $=z.query.diseaseID;return z.query.diseaseID,(0,g.jsxs)("div",{className:"flowScreen",children:[(0,g.jsxs)("div",{className:"flowStep",children:[(0,g.jsx)("span",{className:"dot"}),(0,g.jsx)("p",{children:"Eligibility Check"})]}),(0,g.jsx)("div",{className:"tw-flex tw-flex-col tw-gap-y-6",children:(0,g.jsxs)("div",{className:"tw-flex tw-flex-col tw-gap-y-2",children:[(0,g.jsxs)("h2",{className:"tw-m-0 tw-font-semibold tw-text-2xl",children:["Let\u2019s confirm a few basics to get you"," ",(0,g.jsxs)("span",{className:"gradientText",children:["safe",(0,g.jsx)("br",{className:"tw-hidden lg:tw-block"})," treatment"]})]}),(0,g.jsx)("p",{className:"tw-m-0 tw-text-[#5f5f5f] tw-text-sm lg:tw-text-base tw-mb-4",children:"This information helps our licensed medical providers determine whether treatment is safe and appropriate for you."})]})}),(0,g.jsxs)("form",{onSubmit:F((function(e){if("W2dAN9LE3k"!==$||0!=P)if(function(e){const{month:t,day:n,year:r}=e,i=new Date(r,t-1,n),s=new Date,o=s.getFullYear()-i.getFullYear(),a=s.getMonth()<i.getMonth()||s.getMonth()===i.getMonth()&&s.getDate()<i.getDate();return(a?o-1:o)>=18}(e.dob)){if(E){if("male"!==e.gender)return void m.toast.warning("We currently only treat erectile dysfunction in patients who were assigned male at birth.",{position:"top-center"});const t=function(e){let{day:t,month:n,year:r}=e;const i=new Date(r,n-1,t),s=new Date;let o=s.getFullYear()-i.getFullYear();const a=s.getMonth()-i.getMonth();(a<0||0===a&&s.getDate()<i.getDate())&&o--;return o}(e.dob);if(t<21)return void m.toast.warning("You must be at least 21 years old to be eligible for ED treatment.",{position:"top-center"});if(t>85)return void m.toast.warning("We are unable to treat ED in patients over 85 years of age.",{position:"top-center"});t>=75?localStorage.setItem("ed_age_range","75-85"):localStorage.removeItem("ed_age_range")}if(k){if(!function(e){const{month:t,day:n,year:r}=e,i=new Date(r,t-1,n),s=new Date,o=s.getFullYear()-i.getFullYear(),a=s.getMonth()<i.getMonth()||s.getMonth()===i.getMonth()&&s.getDate()<i.getDate();return(a?o-1:o)<=74}(e.dob))return m.toast.warning("Your age must be between 18 and 74 to continue",{position:"top-center"}),I(D),void S(6);if(Z<20)return m.toast.warning("Your BMI must be over 20 to continue",{position:"top-center"}),I(D),void S(6)}C((t=>x(x({},t),{},{phase1:x(x({},e),{},{BMI:Z})}))),S(D+1)}else m.toast.warning("Your age must be over 18 to continue");else T.componentPopup((0,g.jsxs)("div",{style:{display:"flex",flexDirection:"row",alignItems:"flexStart",justifyContent:"space-around",padding:"1.25rem .5rem"},children:[(0,g.jsx)("input",{type:"checkbox",value:P,onChange:()=>_(!P),style:{width:"1.5rem",height:"2.1rem"}}),(0,g.jsx)("p",{style:{width:"95%",paddingLeft:".75rem"},children:"I understand that 24hrdoc does NOT prescribe controlled substances or sedating medications such as muscle relaxants,Opiods, Anabolic Steriods, Testosteron, Clomid or gabapentin stimulants like Ritalin or Adderall"})]}),"Caution Before Proceeding Further","Proceed","#F7B217")})),children:[(0,g.jsxs)("div",{className:"flowField",children:[(0,g.jsx)("label",{children:"Your date of birth"}),(0,g.jsxs)(o.Z,{className:" gx-4",children:[(0,g.jsxs)(a.Z,{xs:3,children:[" ",(0,g.jsx)("input",x({type:"number",placeholder:"MM",inputMode:"numeric",max:12,onInput:e=>e.target.value=e.target.value.slice(0,2),className:"w-16"},q("dob.month",{required:"Month is required",pattern:{value:/^(0[1-9]|1[0-2])$/,message:"Invalid month"}})))]}),(0,g.jsx)(a.Z,{xs:3,children:(0,g.jsx)("input",x({type:"number",placeholder:"DD",max:31,inputMode:"numeric",className:"w-16",onInput:e=>e.target.value=e.target.value.slice(0,2)},q("dob.day",{required:"Day is required",pattern:{value:/^(0[1-9]|[12][0-9]|3[01])$/,message:"Invalid day"}})))}),(0,g.jsxs)(a.Z,{xs:6,children:[" ",(0,g.jsx)("input",x({type:"number",placeholder:"YYYY",inputMode:"numeric",onInput:e=>e.target.value=e.target.value.slice(0,4),className:"w-20"},q("dob.year",{required:"Year is required",pattern:{value:/^\d{4}$/,message:"Invalid year"}})))]})]}),L.dob&&(0,g.jsxs)(l.Z.Text,{className:"text-muted error",children:[null!==(t=L.dob)&&void 0!==t&&t.month?null===(n=L.dob)||void 0===n||null===(r=n.month)||void 0===r?void 0:r.message:null,null!==(c=L.dob)&&void 0!==c&&c.day?(0,g.jsx)("p",{className:" mb-0",children:null===(f=L.dob)||void 0===f||null===(v=f.day)||void 0===v?void 0:v.message}):null,null!==(y=L.dob)&&void 0!==y&&y.year?(0,g.jsx)("p",{className:" mb-0",children:null===(w=L.dob)||void 0===w||null===(j=w.year)||void 0===j?void 0:j.message}):null]})]}),(0,g.jsx)("p",{className:"tw-text-xs tw-text-[#8A8A8A]",children:"Used to confirm eligibility and ensure appropriate dosing."}),(0,g.jsxs)(o.Z,{children:[(0,g.jsxs)(a.Z,{xs:6,children:[(0,g.jsxs)("div",{className:"flowField",children:[(0,g.jsx)("label",{children:"Your current weight"}),(0,g.jsx)("input",x({type:"number",placeholder:"pounds",inputMode:"numeric",onInput:e=>e.target.value=e.target.value.slice(0,3)},q("weight"))),L.weight&&(0,g.jsx)(l.Z.Text,{className:"text-muted error",children:L.weight.message})]}),(0,g.jsx)("p",{className:"tw-text-xs tw-text-[#8A8A8A]",children:"Let\u2019s confirm a few basics to get you safe treatment"})]}),(0,g.jsxs)(a.Z,{xs:6,children:[(0,g.jsxs)("div",{className:"flowField",children:[(0,g.jsx)("label",{children:"Your height"}),(0,g.jsxs)("div",{className:"heightField",children:[(0,g.jsxs)("div",{className:"d-flex flex-column feet",children:[(0,g.jsx)("input",x(x({type:"number",placeholder:"Feet",inputMode:"numeric",max:8,onInput:e=>e.target.value=e.target.value.slice(0,1)},q("height.feet")),{},{min:1})),(null===(N=L.height)||void 0===N?void 0:N.feet)&&(0,g.jsx)(l.Z.Text,{className:"text-muted error",children:L.height.feet.message})]}),(0,g.jsxs)("div",{className:"d-flex flex-column inches",children:[" ",(0,g.jsx)("input",x({type:"number",placeholder:"Inches",inputMode:"numeric",max:12,onInput:e=>e.target.value=e.target.value.slice(0,2)},q("height.inches"))),(null===(O=L.height)||void 0===O?void 0:O.inches)&&(0,g.jsx)(l.Z.Text,{className:"text-muted error",children:L.height.inches.message})]})]})]}),(0,g.jsx)("p",{className:"tw-text-xs tw-text-[#8A8A8A]",children:"Used only to calculate clinical eligibility."})]})]}),(0,g.jsxs)("div",{className:"flowField",children:[(0,g.jsx)("label",{children:"Your gender"}),(0,g.jsx)(d.Qr,{control:Y,rules:{required:!0},name:"gender",render:e=>
1{let{field:{onChange:t,onBlur:n,value:r,name:i,ref:s}}=e;return(0,g.jsxs)(l.Z.Select,{name:i,onChange:t,value:r,children:[(0,g.jsx)("option",{value:"",children:"Select"}),(0,g.jsx)("option",{value:"male",children:"Male"}),(0,g.jsx)("option",{value:"female",children:"Female"}),(0,g.jsx)("option",{value:"trans",children:"Transgender"}),(0,g.jsx)("option",{value:"binary",children:"Non-binary"})]})}}),L.gender&&(0,g.jsx)(l.Z.Text,{className:"text-muted error",children:L.gender.message}),(0,g.jsx)("p",{className:"tw-text-xs tw-text-[#8A8A8A] tw-mt-4",children:"Some treatments differ by sex \u2014 this helps us tailor care safely."})]}),k&&(0,g.jsxs)("div",{style:{width:"100%",marginTop:"5rem",fontWeight:600},children:[(0,g.jsxs)("p",{style:{fontSize:14,marginBottom:"8px"},children:[(0,g.jsx)("span",{children:"BMI (auto-calculated) - "}),(0,g.jsx)("span",{style:{color:"#1B609D"},children:Z})]}),(0,g.jsx)("p",{style:{fontSize:12,color:"#606060",fontWeight:400,marginBottom:"8px"},children:"BMI should be equal or more than 22 to qualify for the program."})]}),(0,g.jsx)("button",{className:"btnWelcome",style:{width:"100%",marginTop:k?"0":"6rem"},type:"submit",children:"Continue"}),void 0==M?(0,g.jsxs)("p",{className:"alreadyHasAccount",children:["Already have an account?"," ",(0,g.jsx)("span",{style:{cursor:"pointer"},onClick:()=>S(k||E?5:4),children:"Log in"})]}):null]})]})}},84199:function(e,t,n){"use strict";var r=n(59499),i=n(47533),s=n(67294),o=n(34289),a=n(34051),l=n(31555),d=n(87536),c=n(74231),u=n(70441),m=n(59551),h=n(11163),p=n(72918),g=n(70148),f=n(85893);function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const v=["Colorado","Hawaii","Kentucky","Missouri","South Carolina","Utah","Alaska","Kansas","Virginia","Arkansas","District of Columbia","Delaware","Mississippi","New Mexico","Rhode Island","West Virginia"],y=["sHHmp3t1Ah"],w=c.Ry().shape({email:c.Z_().email("Invalid email"),zip:c.Z_().matches(/\b\d{5}\b/g,"Must be 5 digit ").required("Field required").required("Zip code is required"),address:c.Z_().required("Address is required"),city:c.Z_().required("City is required"),state:c.Z_().required("State is required")});t.Z=e=>{var t;let{setcurrentStep:n,currentStep:r,setPatientData:c,patientData:x,isweightLoss:j,diseaseID:N,isSubscribing:O=!1,isMicrodosing:S}=e;const{user:D,setContext:C}=(0,m.cO)(),k=(0,h.useRouter)(),{register:I,handleSubmit:E,setValue:T,formState:{errors:M},control:P}=(0,d.cI)({resolver:(0,i.X)(w),defaultValues:{state:(null===u||void 0===u||null===(t=u[0])||void 0===t?void 0:t.name)||""}});return(0,s.useEffect)((()=>{null!==D&&void 0!==D&&(T("address",null===D||void 0===D?void 0:D.address),T("city",null===D||void 0===D?void 0:D.city),T("zip",null===D||void 0===D?void 0:D.postal),T("state",null===D||void 0===D?void 0:D.state))}),[D,T]),(0,f.jsxs)("div",{className:"flowScreen",children:[(0,f.jsxs)("div",{className:"flowStep",children:[(0,f.jsx)("span",{className:"dot"}),(0,f.jsx)("p",{children:"Location Check"})]}),(0,f.jsxs)("div",{className:"tw-flex tw-flex-col tw-gap-y-2 tw-mb-8",children:[" ",(0,f.jsxs)("h2",{className:"tw-m-0 tw-font-semibold tw-text-2xl",children:["Please confirm availability in"," ",(0,f.jsxs)("span",{className:"gradientText",children:["your",(0,f.jsx)("br",{className:"tw-hidden lg:tw-block"})," state"]})]}),(0,f.jsx)("p",{className:"tw-m-0 tw-text-[#5f5f5f] tw-text-sm lg:tw-text-base",children:"We currently support patients in most U.S. states."})]}),(0,f.jsxs)("form",{onSubmit:E((async function(e){if("Louisiana"===e.state&&"WOfo5j3mwb"===N)return void g.toast.error("We are currently not accepting patients from Louisiana due to state regulations.",{position:"bottom-center",theme:"colored"});const t=v.includes(e.state),i=Boolean(null===D||void 0===D?void 0:D.healthie_id),s=t&&!i?"sync_visit":"async_visit",o=S?"microdosing_modality":"mwl_modality";localStorage.setItem(o,s);try{if(null!==D&&void 0!==D){var a;(0,g.toast)("Saving user information");const t=b(b({},x.phase1),e),r=function(e){if(!e||null==e.month||null==e.day||null==e.year)return null;const{month:t,day:n,year:r}=e,i=new Date(r,t-1,n),s=new Date;let o=s.getFullYear()-i.getFullYear();s.getMonth()>i.getMonth()||s.getMonth()===i.getMonth()&&s.getDate()>=i.getDate()||(o-=1);return o}(null===t||void 0===t?void 0:t.dob);if(null===r)return g.toast.error("We still need your date of birth \u2014 please complete that step and try again."),void n(1);const i={gender:null===t||void 0===t?void 0:t.gender,number:null===t||void 0===t?void 0:t.phoneNumber,dateObject:null===t||void 0===t?void 0:t.dob,dob:{__type:"Date",iso:new Date(Number(null===t||void 0===t?void 0:t.dob.year),Number(null===t||void 0===t?void 0:t.dob.month)-1,Number(null===t||void 0===t?void 0:t.dob.day))},gender:null===t||void 0===t?void 0:t.gender,postal:null===t||void 0===t?void 0:t.zip,state:null===t||void 0===t?void 0:t.state,city:null===t||void 0===t?void 0:t.city,weight:(null===t||void 0===t||null===(a=t.weight)||void 0===a?void 0:a.toString())??"",height:null===t||void 0===t?void 0:t.height,address:null===t||void 0===t?void 0:t.address,age:r};if(await(0,p.Rl)(D.objectId,i)){if(C((e=>b(b({},e),{},{user:b(b({},D),i)}))),1==j)return void n((e=>e+1));if(y.includes(N)&&"female"!==i.gender)return void g.toast.warning("Only women can be treated for this condition",{position:"top-center"});if(O)return void k.push("/subscribe/checkout");const e=localStorage.getItem("consent_log_id");e&&null!==D&&void 0!==D&&D.objectId&&fetch("/api/consent/patch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({consentLogId:e,userId:D.objectId})}).then((()=>localStorage.removeItem("consent_log_id"))).catch((()=>{})),k.push("/diagnosis/medical_info")}}else c((t=>b(b({},t),{},{phase2:e}))),n(r+1)}catch(l){g.toast.error("An error has occured in creating your profile, please try again.")}})),children:[(0,f.jsxs)("div",{className:"flowField",children:[(0,f.jsx)("label",{children:"Address"}),(0,f.jsx)("input",b({type:"text",placeholder:"Address"},I("address"))),M.address&&(0,f.jsx)(o.Z.Text,{className:"text-muted error",children:M.address.message})]}),(0,f.jsxs)(a.Z,{children:[(0,f.jsx)(l.Z,{xs:6,children:(0,f.jsxs)("div",{className:"flowField",children:[(0,f.jsx)("label",{children:"City"}),(0,f.jsx)("input",b({type:"text",placeholder:"City"},I("city"))),M.city&&(0,f.jsx)(o.Z.Text,{className:"text-muted error",children:M.city.message})]})}),(0,f.jsx)(l.Z,{xs:6,children:(0,f.jsxs)("div",{className:"flowField",children:[(0,f.jsx)("label",{children:"State"}),(0,f.jsx)(d.Qr,{control:P,name:"state",render:e=>
1{let{field:{onChange:t,value:n}}=e;return(0,f.jsx)(o.Z.Select,{"aria-label":"Default select example",onChange:t,value:n||u[0].name,className:" tw-font-sm",children:(u&&u.length>0?u:States).map((e=>(0,f.jsx)("option",{value:e.name,children:e.name},e.abbreviation)))})}}),M.state&&(0,f.jsx)(o.Z.Text,{className:"text-muted error",children:M.state.message})]})})]}),(0,f.jsxs)(a.Z,{children:[(0,f.jsx)(l.Z,{xs:6,children:(0,f.jsxs)("div",{className:"flowField",children:[(0,f.jsx)("label",{children:"Country"}),(0,f.jsx)("input",{type:"text",value:"United States",disabled:!0})]})}),(0,f.jsx)(l.Z,{xs:6,children:(0,f.jsxs)("div",{className:"flowField",children:[(0,f.jsx)("label",{children:"Zip"}),(0,f.jsx)("input",b(b({type:"text",placeholder:"00000"},I("zip")),{},{inputMode:"numeric",onInput:e=>e.target.value=e.target.value.slice(0,5)},I("zip")))]})})]}),(0,f.jsxs)("div",{className:" d-flex flex-column align-items-center",children:[" ",(0,f.jsx)("button",{className:"btnWelcome ",style:{width:"100%",marginTop:"6rem"},type:"submit",children:"Continue"}),(0,f.jsx)("button",{className:"tw-font-medium tw-text-sm tw-bg-transparent tw-border-none tw-mt-5 mb-1",onClick:()=>n((e=>e-1)),type:"button",children:"Go back"})]}),void 0==D?(0,f.jsxs)("p",{className:"alreadyHasAccount",children:["Already have an account?"," ",(0,f.jsx)("span",{style:{cursor:"pointer"},onClick:()=>n(j?5:4),children:"Log in"})]}):null]})]})}},58066:function(e,t,n){"use strict";var r=n(59499),i=n(47533),s=n(67294),o=n(51383),a=n(34051),l=n(31555),d=n(34289),c=n(87536),u=n(74231),m=n(70148),h=n(59551),p=n(11163),g=n(9669),f=n.n(g),x=n(77314),b=n(25724),v=n(9198),y=n(85893);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const N=u.Ry().shape({fName:u.Z_().required("Required").min(2,"Too Short!").max(50,"Too Long!"),lName:u.Z_().required("Required").min(2,"Too Short!").max(50,"Too Long!"),email:u.Z_().email("Invalid email").required("Required"),phoneNumber:u.Z_().matches(/^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$/,"Phone number is not valid,must be 10 digits only, no dashes or spaces").required("Phone number is required"),password:u.Z_().min(8,"Too Short!").max(50,"Too Long!").required("Required"),ageConfirmed:u.O7().oneOf([!0],"You must be at least 18."),termsAccepted:u.O7().oneOf([!0],"You must agree to the terms."),consentToMessages:u.O7().oneOf([!0],"You must consent to receiving emails and texts.")});t.Z=e=>{let{setcurrentStep:t,currentStep:n,patientData:r,category:u,isweightLoss:g,isSubscribing:w=!1,diseaseID:S}=e;(0,h.T4)();const D=(0,h.f0)(),C=(0,p.useRouter)(),{user:k}=(0,h.cO)(),{0:I,1:E}=(0,s.useState)(0),{0:T,1:M}=(0,s.useState)(null),{0:P,1:_}=(0,s.useState)(""),{0:Z,1:A}=(0,s.useState)(["","","","","",""]),{0:q,1:F}=(0,s.useState)(!1),{0:L,1:W}=(0,s.useState)(30),{0:R,1:B}=(0,s.useState)(!1),{register:Y,handleSubmit:z,formState:{errors:H},getValues:V}=(0,c.cI)({resolver:(0,i.X)(N)}),U=e=>String(e??"").trim().toLowerCase();s.useEffect((()=>{let e;return 1===I&&L>0&&!R&&(e=setInterval((()=>{W((e=>e<=1?(B(!0),0):e-1))}),1e3)),()=>clearInterval(e)}),[I,L,R]);const $=(e,t)=>{var n;const r=String(t??"").replace(/\D/g,"");if(!r)return;const i=[...Z];for(let a=0;a<r.length&&e+a<i.length;a++)i[e+a]=r[a];A(i);const s=Math.min(e+r.length,i.length)-1,o=Math.min(s+1,i.length-1);null===(n=document.getElementById(`digit-${o}`))||void 0===n||n.focus()},G=()=>Z.join("");return(0,y.jsxs)(x.ZP,{disabled:!0,index:I,children:[(0,y.jsxs)("div",{className:"signupForm",children:[(0,y.jsxs)("div",{className:"tw-flex tw-flex-col tw-gap-y-3 tw-mb-4 lg:tw-mb-5",children:[(0,y.jsxs)("h2",{className:"tw-font-semibold tw-text-2xl tw-m-0 tw-text-center lg:tw-text-left",children:["Save your"," ",(0,y.jsx)("span",{className:"gradientText",children:"progress & protect your information"})]}),(0,y.jsx)("p",{className:"tw-m-0 tw-text-sm tw-text-[#5f5f5f] tw-text-center lg:tw-text-left",children:"Creating an account allows us to securely save your answers, protect your medical information, and avoid asking you to repeat details later."})]}),(0,y.jsxs)("div",{className:"signupBanner",children:[(0,y.jsxs)("ul",{className:"listOnBanner",children:[(0,y.jsxs)("li",{children:[(0,y.jsx)(O,{}),(0,y.jsx)("p",{children:"Save your progress"})]}),(0,y.jsxs)("li",{children:[(0,y.jsx)(O,{}),(0,y.jsx)("p",{children:"Easy refills"})]}),(0,y.jsxs)("li",{children:[(0,y.jsx)(O,{}),(0,y.jsx)("p",{children:"Track your health"})]})]}),(0,y.jsx)("img",{className:"bannerRating",src:o.eD,width:82,height:75,alt:"website rating"})]}),(0,y.jsxs)("form",{onSubmit:z((async function(e){try{var t;const n=await f().post("https://api.24hrdoc.com/user/send-signup-code",{email:U(null===e||void 0===e?void 0:e.email),phone:null===e||void 0===e?void 0:e.phoneNumber});m.toast.success("Verification code sent to your email"),M(null===n||void 0===n||null===(t=n.data)||void 0===t?void 0:t.token),(0,b.j)(v.nS.SIGNUP_CODE_SENT,v.E_.COMPLETED,j(j({},(0,b.$k)()),{},{note:"initial"})),E(1)}catch(i){var n,r;m.toast.error((null===i||void 0===i||null===(n=i.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.message)||"Error sending verification code"),console.error("Error sending confirmation mail",i)}})),className:" tw-flex tw-flex-col",children:[(0,y.jsxs)(a.Z,{children:[(0,y.jsx)(l.Z,{xs:6,children:(0,y.jsxs)("div",{className:"flowField",children:[(0,y.jsx)("label",{children:"First Name"}),(0,y.jsx)("input",j({type:"text",placeholder:"John"}
1,Y("fName"))),H.fName&&(0,y.jsx)(d.Z.Text,{className:"text-muted error",children:H.fName.message})]})}),(0,y.jsx)(l.Z,{xs:6,children:(0,y.jsxs)("div",{className:"flowField",children:[(0,y.jsx)("label",{children:"Last Name"}),(0,y.jsx)("input",j({type:"text",placeholder:"Doe"},Y("lName"))),H.lName&&(0,y.jsx)(d.Z.Text,{className:"text-muted error",children:H.lName.message})]})})]}),(0,y.jsxs)("div",{className:"flowField",children:[(0,y.jsx)("label",{children:"Mobile"}),(0,y.jsx)("input",j({type:"text",placeholder:"0123456789"},Y("phoneNumber"))),H.phoneNumber&&(0,y.jsx)(d.Z.Text,{className:"text-muted error",children:H.phoneNumber.message}),(0,y.jsx)("span",{className:"tw-text-[#8A8A8A] tw-text-[0.625rem] lg:tw-text-xs",children:"We need your mobile number to send updates, reminders, and ensure account security. Don't worry, your data is safe with us!"})]}),(0,y.jsxs)("div",{className:"flowField",children:[(0,y.jsx)("label",{children:"Email"}),(0,y.jsx)("input",j({type:"text",placeholder:"[email protected]"},Y("email"))),H.email&&(0,y.jsx)(d.Z.Text,{className:"text-muted error",children:H.email.message}),(0,y.jsx)("span",{className:"tw-text-[#8A8A8A] tw-text-[0.625rem] lg:tw-text-xs",children:"We need your email address to send updates, reminders, and ensure account security. Don't worry, your data is safe with us!"})]}),(0,y.jsxs)("div",{className:"flowField",children:[(0,y.jsx)("label",{children:"Password"}),(0,y.jsx)("input",j({type:"password",placeholder:""},Y("password"))),H.password&&(0,y.jsx)(d.Z.Text,{className:"text-muted error",children:H.password.message})]}),(0,y.jsxs)("div",{className:"signupTerms",children:[(0,y.jsxs)("div",{className:"d-flex",children:[(0,y.jsx)("input",j(j({type:"checkbox"},Y("ageConfirmed")),{},{id:"term1"})),(0,y.jsx)("label",{htmlFor:"term1",children:"I certify that I am at least 18 years of age."})]}),H.ageConfirmed&&(0,y.jsx)("p",{className:"errorTerms",children:H.ageConfirmed.message}),(0,y.jsxs)("div",{className:"d-flex",children:[(0,y.jsx)("input",j(j({type:"checkbox"},Y("termsAccepted")),{},{id:"term2"})),(0,y.jsxs)("label",{htmlFor:"term2",children:["I agree to the"," ",(0,y.jsx)("a",{target:"_blank",href:"/terms-conditions",style:{color:"lightseagreen"},children:"terms of use"}),","," ",(0,y.jsx)("a",{target:"_blank",href:"/privacy-policy",style:{color:"lightseagreen"},children:"privacy policy"}),", and"," ",(0,y.jsx)("a",{target:"_blank",href:"/informed-consent",style:{color:"lightseagreen"},children:"telehealth consent"}),"."]})]}),H.termsAccepted&&(0,y.jsx)("p",{className:"errorTerms",children:H.termsAccepted.message}),(0,y.jsxs)("div",{className:"d-flex",children:[(0,y.jsx)("input",j(j({type:"checkbox"},Y("consentToMessages")),{},{id:"term4"})),(0,y.jsx)("label",{htmlFor:"term4",children:"I consent to 24hrDoc sending me emails and texts about my visits. I understand these messages will not contain protected health information (PHI)."})]}),H.consentToMessages&&(0,y.jsx)("p",{className:"errorTerms",children:H.consentToMessages.message})]}),(0,y.jsx)("button",{className:"btnWelcome",style:{width:"100%",marginTop:"2rem"},type:"submit",children:"Create an account"}),(0,y.jsx)("button",{className:" tw-bg-transparent tw-text-black tw-w-fit tw-mx-auto tw-border-0 tw-mt-4",type:"button",onClick:()=>t(1),children:"Go back"}),(0,y.jsxs)("p",{className:"alreadyHasAccount",children:["Already have an account?"," ",(0,y.jsx)("span",{style:{cursor:"pointer"},onClick:()=>t(g?5:4),children:"Log in"})]})]})]}),(0,y.jsx)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start",padding:"2rem",minHeight:"100vh"},children:(0,y.jsxs)("div",{style:{textAlign:"center",maxWidth:500,width:"100%"},children:[(0,y.jsxs)("h2",{className:"flowHeading",style:{fontSize:"28px",fontWeight:600,marginBottom:"1rem",marginTop:"2.5rem"},children:["Verify your ",(0,y.jsx)("span",{className:" gradientText",children:"email"})]}),(0,y.jsx)("p",{style:{color:"#666",fontSize:"14px",marginBottom:"2rem",lineHeight:1.6},children:"We use this to protect your account and make sure your provider can reach you."}),(0,y.jsxs)("div",{style:{marginBottom:"2rem"},children:[(0,y.jsx)("h3",{style:{fontSize:"16px",fontWeight:600,marginBottom:"0.5rem",color:"#000"},children:"Enter the 6-digit code"}),(0,y.jsxs)("p",{style:{fontSize:"13px",color:"#999",margin:0},children:["A verification code was sent to"," ",(0,y.jsx)("strong",{children:V("email")}),". Can't find it? Check your spam or junk folder."]}
1)]}),(0,y.jsx)("div",{style:{display:"flex",gap:"12px",justifyContent:"center",marginBottom:"2rem",marginTop:"1.5rem"},children:Z.map(((e,t)=>(0,y.jsx)("input",{id:`digit-${t}`,type:"text",inputMode:"numeric",maxLength:"1",autoComplete:0===t?"one-time-code":"off",value:e,onChange:e=>((e,t)=>{if(!/^\d*$/.test(t))return;if(t.length>1)return void $(e,t);const n=[...Z];if(n[e]=t.slice(-1),A(n),t&&e<5){const t=document.getElementById(`digit-${e+1}`);null===t||void 0===t||t.focus()}})(t,e.target.value),onKeyDown:e=>((e,t)=>{if("Backspace"===t.key&&!Z[e]&&e>0){const t=document.getElementById("digit-"+(e-1));null===t||void 0===t||t.focus()}})(t,e),onPaste:e=>((e,t)=>{var n;const r=(null===(n=t.clipboardData)||void 0===n?void 0:n.getData("text"))??"";/\d/.test(r)&&(t.preventDefault(),$(e,r))})(t,e),style:{width:"50px",height:"50px",fontSize:"24px",fontWeight:600,textAlign:"center",border:"1px solid #e0e0e0",borderRadius:"8px",outline:"none",boxSizing:"border-box",backgroundColor:"#f9f9f9",transition:"border-color 0.2s"},onFocus:e=>{e.target.style.borderColor="#20B2AA"},onBlur:e=>{e.target.style.borderColor="#e0e0e0"}},t)))}),(0,y.jsx)("button",{className:"btnWelcome",onClick:async()=>{F(!0);try{var e;(0,m.toast)("Creating your account");const i=V(),s=G(),o=function(e){if(!e||null==e.month||null==e.day||null==e.year)return null;const{month:t,day:n,year:r}=e,i=new Date(r,t-1,n),s=new Date;let o=s.getFullYear()-i.getFullYear();return s.getMonth()>i.getMonth()||s.getMonth()===i.getMonth()&&s.getDate()>=i.getDate()||(o-=1),o}(null===r||void 0===r?void 0:r.dob);if(null===o)return F(!1),m.toast.error("We still need your date of birth \u2014 please complete that step and try again."),void t(1);(0,b.j)(v.nS.SIGNUP_CODE_SUBMITTED,v.E_.COMPLETED,j({},(0,b.$k)()));const a=await f().post("https://api.24hrdoc.com/user/signup",{first_name:null===i||void 0===i?void 0:i.fName,last_name:null===i||void 0===i?void 0:i.lName,email:U(null===i||void 0===i?void 0:i.email),password:null===i||void 0===i?void 0:i.password,gender:null===i||void 0===i?void 0:i.gender,number:null===i||void 0===i?void 0:i.phoneNumber,dateObject:null===r||void 0===r?void 0:r.dob,age:o,address:null===r||void 0===r?void 0:r.address,gender:null===r||void 0===r?void 0:r.gender,postal:null===r||void 0===r?void 0:r.zip,state:null===r||void 0===r?void 0:r.state,city:null===r||void 0===r?void 0:r.city,weight:(null===r||void 0===r||null===(e=r.weight)||void 0===e?void 0:e.toString())??"",height:null===r||void 0===r?void 0:r.height,token:T,code:s});var n;if(200==a.status||201==a.status)window._revoffers_track=window._revoffers_track||[],window._revoffers_track.push("addtocart"),m.toast.success("Account created successfully"),(0,b.j)(v.nS.SIGNUP_ACCOUNT_CREATED,v.E_.COMPLETED,j({},(0,b.$k)())),await(async()=>{const e=localStorage.getItem("consent_log_id");if(e&&null!==k&&void 0!==k&&k.objectId&&fetch("/api/consent/patch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({consentLogId:e,userId:k.objectId})}).then((()=>localStorage.removeItem("consent_log_id"))).catch((()=>{})),D(V("email"),V("password")),g)if(void 0!==C.query.refill_id){const{data:e}=await f().post("/api/weight-loss/check-refill-validity",{id:C.query.refill_id});if(0!=e.refill.has_refilled)return void m.toast.error("You have already refilled, please use the latest link from you email inbox");if(e.refill.user_id.objectId!=k.objectId)return void m.toast.error("User does not match, please login through the same account which was used for earlier weight-loss consultation");setTimeout((()=>{}),500),sessionStorage.setItem("refill_id",C.query.refill_id),C.push("/diagnosis/weight-loss/medical_info/follow_up")}else"WOfo5j3mwb"===S||(null===r||void 0===r?void 0:r.BMI)<22?C.push("/diagnosis/weight-loss/microdosing/medical_info"):C.push("/diagnosis/weight-loss/medical_info");else w?C.push("/subscribe/checkout"):C.push("/diagnosis/medical_info")})();else(0,b.j)(v.nS.SIGNUP_CODE_REJECTED,v.E_.COMPLETED,j(j({},(0,b.$k)()),{},{errorMessage:(null===(n=a.data)||void 0===n?void 0:n.message)||"invalid code"})),m.toast.error(a.data.message||"Invalid code. Please check and try again.")}catch(l){var i,s,o,a;console.log("error",l,null===l||void 0===l?void 0:l.response);const e=String((null===l||void 0===l||null===(i=l.response)||void 0===i||null===(s=i.data)||void 0===s?void 0:s.message)||(null===l||void 0===l?void 0:l.message)||"signup failed");if((0,b.j)(v.nS.SIGNUP_CODE_REJECTED,v.E_.COMPLETED,j(j({},(0,b.$k)()),{},{errorMessage:e.slice(0,120)})),/already\s*(been\s*)?(taken|registered|exists|in use)/i.test(e))return m.toast.info("You already have an account \u2014 please sign in to continue."),F(!1),void t(g?5:4);m.toast.error((null===l||void 0===l||null===(o=l.response)||void 0===o||null===(a=o.data)||void 0===a?void 0:a.message)||"Account creation failed. Please try again.")}F(!1)},disabled:q||6!==Z.join("").length,style:{width:"100%",padding:"12px",backgroundColor:q?"#999":"#000",color:"#fff",border:"none",borderRadius:"30px",fontSize:"16px",fontWeight:600,cursor:q?"not-allowed":"pointer",marginBottom:"1rem"}
1,children:q?"Verifying...":"Verify Code"}),(0,y.jsx)("p",{style:{fontSize:"12px",color:"#999",marginBottom:"2rem"},children:"No spam. We only use this for your care and account security"}),(0,y.jsxs)("div",{style:{marginBottom:"1.5rem",borderTop:"1px solid #e0e0e0",paddingTop:"1.5rem"},children:[(0,y.jsx)("p",{style:{fontSize:"13px",color:"#666",marginBottom:"0.5rem"},children:"Didn't receive an email?"}),(0,y.jsxs)("button",{onClick:async()=>{try{await f().post("https://api.24hrdoc.com/user/send-signup-code",{email:U(V("email")),phone:V("phoneNumber")});m.toast.success("Verification code resent"),(0,b.j)(v.nS.SIGNUP_CODE_SENT,v.E_.COMPLETED,j(j({},(0,b.$k)()),{},{note:"resend"})),B(!1),W(30)}catch(e){console.error(e),m.toast.error("Could not resend code")}},disabled:!R,style:{background:"none",border:"none",color:R?"#20B2AA":"#ccc",cursor:R?"pointer":"not-allowed",fontSize:"14px",fontWeight:600,textDecoration:"underline"},children:["Resend code",R?"":` in ${L}s`]})]}),(0,y.jsx)("button",{onClick:()=>E(0),style:{background:"none",border:"none",color:"#20B2AA",cursor:"pointer",fontSize:"14px",textDecoration:"underline",marginBottom:"2rem"},children:"Change email"})]})})]})};const O=()=>(0,y.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,y.jsx)("path",{d:"M2.9165 7.58203L5.24984 9.91536L11.0832 4.08203",stroke:"white",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})},61901:function(e,t,n){"use strict";n.d(t,{j:function(){return u}});var r=n(59499),i=n(67294),s=n(65530),o=n(35005),a=n(73935),l=n(85893);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=()=>{const e=(0,i.useCallback)(((e,t,n,r)=>{!function(e){let t=document.getElementById("component-popup");t||(t=document.createElement("div"),t.id="component-popup",document.body.appendChild(t)),(0,a.render)((0,l.jsx)(m,c({},e)),t)}({component:e,heading:t,buttonText:n,popColor:r})}),[]),{0:t,1:n}=(0,i.useState)({componentPopup:e});return(0,i.useEffect)((()=>{n({componentPopup:e})}),[e]),t};const u=h,m=e=>{let{component:t,heading:n,buttonText:r,popColor:i}=e;return(0,l.jsxs)(s.Z,{show:!0,onHide:()=>{h()},centered:!0,dialogClassName:"custom-modal attention-popup",children:[(0,l.jsxs)(s.Z.Body,{children:[(0,l.jsx)("div",{className:"tw-relative"}),(0,l.jsxs)(s.Z.Header,{style:{color:i||"#41c9a2",justifyContent:"center",fontSize:"22px",alignItems:"unset",border:"none",padding:"0",fontWeight:"600"},closeButton:!1,children:[""!=n?(0,l.jsx)("p",{children:n}):(0,l.jsx)("p",{children:"24hrDOC"}),(0,l.jsx)("button",{onClick:()=>{h()},className:"tw-absolute tw-cursor-pointer tw-right-2 tw-top-2 tw-bg-transparent tw-w-5 tw-h-5 px-0 tw-border-0",children:(0,l.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M5 15L15 5M5 5L15 15",stroke:"#0F0F0F",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),t]}),(0,l.jsx)(o.Z,{onClick:()=>{h()},className:"tw-rounded-full",style:{backgroundColor:i||"#000",color:"white",fontWeight:"600",border:"none",alignSelf:"center",width:"95%",marginTop:10,textTransform:"uppercase",letterSpacing:"4px",marginBottom:"24px"},children:r||"Done"})]})};function h(){const e=document.getElementById("component-popup");e&&((0,a.unmountComponentAtNode)(e),e.parentNode.removeChild(e))}},97005:function(e,t,n){var r=n(67294);function i(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var s=i(r);!function(e){if(!e||"undefined"===typeof window)return;const t=document.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e,document.head.appendChild(t)}('.rfm-marquee-container {\n overflow-x: hidden;\n display: flex;\n flex-direction: row;\n position: relative;\n width: var(--width);\n transform: var(--transform);\n}\n.rfm-marquee-container:hover div {\n animation-play-state: var(--pause-on-hover);\n}\n.rfm-marquee-container:active div {\n animation-play-state: var(--pause-on-click);\n}\n\n.rfm-overlay {\n position: absolute;\n width: 100%;\n height: 100%;\n}\n.rfm-overlay::before, .rfm-overlay::after {\n background: linear-gradient(to right, var(--gradient-color), rgba(255, 255, 255, 0));\n content: "";\n height: 100%;\n position: absolute;\n width: var(--gradient-width);\n z-index: 2;\n pointer-events: none;\n touch-action: none;\n}\n.rfm-overlay::after {\n right: 0;\n top: 0;\n transform: rotateZ(180deg);\n}\n.rfm-overlay::before {\n left: 0;\n top: 0;\n}\n\n.rfm-marquee {\n flex: 0 0 auto;\n min-width: var(--min-width);\n z-index: 1;\n display: flex;\n flex-direction: row;\n align-items: center;\n animation: scroll var(--duration) linear var(--delay) var(--iteration-count);\n animation-play-state: var(--play);\n animation-delay: var(--delay);\n animation-direction: var(--direction);\n}\n@keyframes scroll {\n 0% {\n transform: translateX(0%);\n }\n 100% {\n transform: translateX(-100%);\n }\n}\n\n.rfm-initial-child-container {\n flex: 0 0 auto;\n display: flex;\n min-width: auto;\n flex-direction: row;\n align-items: center;\n}\n\n.rfm-child {\n transform: var(--transform);\n}');const o=r.forwardRef((function({style:e={},className:t="",autoFill:n=!1,play:i=!0,pauseOnHover:o=!1,pauseOnClick:a=!1,direction:l="left",speed:d=50,delay:c=0,loop:u=0,gradient:m=!1,gradientColor:h="white",gradientWidth:p=200,onFinish:g,onCycleComplete:f,onMount:x,children:b},v){const[y,w]=r.useState(0),[j,N]=r.useState(0),[O,S]=r.useState(1),[D,C]=r.useState(!1),k=r.useRef(null),I=v||k,E=r.useRef(null),T=r.useCallback((()=>
1{if(E.current&&I.current){const e=I.current.getBoundingClientRect(),t=E.current.getBoundingClientRect();let r=e.width,i=t.width;"up"!==l&&"down"!==l||(r=e.height,i=t.height),S(n&&r&&i&&i<r?Math.ceil(r/i):1),w(r),N(i)}}),[n,I,l]);r.useEffect((()=>{if(D&&(T(),E.current&&I.current)){const e=new ResizeObserver((()=>T()));return e.observe(I.current),e.observe(E.current),()=>{e&&e.disconnect()}}}),[T,I,D]),r.useEffect((()=>{T()}),[T,b]),r.useEffect((()=>{C(!0)}),[]),r.useEffect((()=>{"function"===typeof x&&x()}),[]);const M=r.useMemo((()=>n?j*O/d:j<y?y/d:j/d),[n,y,j,O,d]),P=r.useMemo((()=>Object.assign(Object.assign({},e),{"--pause-on-hover":!i||o?"paused":"running","--pause-on-click":!i||o&&!a||a?"paused":"running","--width":"up"===l||"down"===l?"100vh":"100%","--transform":"up"===l?"rotate(-90deg)":"down"===l?"rotate(90deg)":"none"})),[e,i,o,a,l]),_=r.useMemo((()=>({"--gradient-color":h,"--gradient-width":"number"===typeof p?`${p}px`:p})),[h,p]),Z=r.useMemo((()=>({"--play":i?"running":"paused","--direction":"left"===l?"normal":"reverse","--duration":`${M}
1s`,"--delay":`${c}s`,"--iteration-count":u?`${u}`:"infinite","--min-width":n?"auto":"100%"})),[i,l,M,c,u,n]),A=r.useMemo((()=>({"--transform":"up"===l?"rotate(90deg)":"down"===l?"rotate(-90deg)":"none"})),[l]),q=r.useCallback((e=>[...Array(Number.isFinite(e)&&e>=0?e:0)].map(((e,t)=>s.default.createElement(r.Fragment,{key:t},r.Children.map(b,(e=>s.default.createElement("div",{style:A,className:"rfm-child"},e))))))),[A,b]);return D?s.default.createElement("div",{ref:I,style:P,className:"rfm-marquee-container "+t},m&&s.default.createElement("div",{style:_,className:"rfm-overlay"}),s.default.createElement("div",{className:"rfm-marquee",style:Z,onAnimationIteration:f,onAnimationEnd:g},s.default.createElement("div",{className:"rfm-initial-child-container",ref:E},r.Children.map(b,(e=>s.default.createElement("div",{style:A,className:"rfm-child"},e)))),q(O-1)),s.default.createElement("div",{className:"rfm-marquee",style:Z},q(O))):null}));t.Z=o},70441:function(e){"use strict";e.exports=JSON.parse('[{"name":"Arizona","abbreviation":"AZ"},{"name":"Arkansas","abbreviation":"AR"},{"name":"California","abbreviation":"CA"},{"name":"Colorado","abbreviation":"CO"},{"name":"Connecticut","abbreviation":"CT"},{"name":"District of Columbia","abbreviation":"DC"},{"name":"Delaware","abbreviation":"DE"},{"name":"Florida","abbreviation":"FL"},{"name":"Georgia","abbreviation":"GA"},{"name":"Hawaii","abbreviation":"HI"},{"name":"Idaho","abbreviation":"ID"},{"name":"Indiana","abbreviation":"IN"},{"name":"Iowa","abbreviation":"IA"},{"name":"Kentucky","abbreviation":"KY"},{"name":"Louisiana","abbreviation":"LA"},{"name":"Maine","abbreviation":"ME"},{"name":"Maryland","abbreviation":"MD"},{"name":"Michigan","abbreviation":"MI"},{"name":"Minnesota","abbreviation":"MN"},{"name":"Missouri","abbreviation":"MO"},{"name":"Montana","abbreviation":"MT"},{"name":"Nebraska","abbreviation":"NE"},{"name":"Nevada","abbreviation":"NV"},{"name":"New Hampshire","abbreviation":"NH"},{"name":"New Jersey","abbreviation":"NJ"},{"name":"New Mexico","abbreviation":"NM"},{"name":"New York","abbreviation":"NY"},{"name":"North Carolina","abbreviation":"NC"},{"name":"North Dakota","abbreviation":"ND"},{"name":"Ohio","abbreviation":"OH"},{"name":"Oklahoma","abbreviation":"OK"},{"name":"Oregon","abbreviation":"OR"},{"name":"Pennsylvania","abbreviation":"PA"},{"name":"Rhode Island","abbreviation":"RI"},{"name":"South Carolina","abbreviation":"SC"},{"name":"South Dakota","abbreviation":"SD"},{"name":"Tennessee","abbreviation":"TN"},{"name":"Texas","abbreviation":"TX"},{"name":"Utah","abbreviation":"UT"},{"name":"Vermont","abbreviation":"VT"},{"name":"Virginia","abbreviation":"VA"},{"name":"Washington","abbreviation":"WA"},{"name":"West Virginia","abbreviation":"WV"},{"name":"Wisconsin","abbreviation":"WI"},{"name":"Wyoming","abbreviation":"WY"}]')}}]); 2//# sourceMappingURL=4463-1f1d09320cc59981.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.