import{a as Be,q as Me,y as M,r as t,bD as Nn,cd as jn,j as e,H as jt,b1 as wt,ab as Pt,w as ye,e as nt,B as Ie,al as wn,aw as re,fp as Ct,fQ as Pn,bJ as kn,d6 as st,bi as Sn,bI as Xt,fR as In,fS as An,fT as Jt,fU as Dn,fu as Tn,fv as $n,fk as ne,bX as Bn,fV as Fn,fW as Ee,u as En,x as Ye,bx as Ln,af as V,cC as Ue,eV as at,fX as bt,fY as en,fZ as He,f_ as Oe,s as K,X as tn,f$ as Mn,g0 as zn,g1 as Rn,g2 as qn,c as $e,c7 as yt,T as we,S as Qe,g3 as Ve,g4 as it,g5 as Hn,g6 as nn,f9 as On,g7 as sn,ce as Wn,bA as rt,t as kt,aF as an,dm as on,f5 as Un,d9 as St,f6 as rn,f7 as cn,dn as ln,g8 as Gn,fa as It,fb as Yn,fc as Qn,z as dn,g9 as Lt,ga as Mt,C as Vn,n as un,L as mn,gb as Kn,aL as hn,eC as Ge,i as Zn,fg as Xn,fj as At,fq as Jn,an as es,cB as zt,cD as Rt,a4 as pn,eu as qt,gc as Je,gd as ts,cN as ns,cE as ss,eQ as Ht,a6 as as,ge as os,ar as is,cI as Ot,cO as _n,gf as Wt,a0 as xt,gg as rs,gh as cs,et as ls,cF as ds,gi as We,gj as Le,gk as Ut,gl as Gt,a1 as us,ff as ms,ez as Yt,o as et,a$ as hs,cU as ps,eo as _s,gm as gs,l as fs}from"./index-BbiZcFRx.js";import{r as ot}from"./react-router-dom.min-DVdAeQty.js";import{P as xs}from"./index-B9MbtH2j.js";import{C as Cs}from"./index-BJalc56-.js";import{G as bs}from"./getTrustedformCertURL-D1EGlseA.js";import{P as gn}from"./index-07NLwkF5.js";import{A as vt,C as fn}from"./index-DQLCgU1o.js";import{a as Te,S as xn}from"./index-yPdGfEuT.js";import{Z as ys}from"./index-P98bLq_k.js";import{m as Cn}from"./maskPhone-DNQbZbyn.js";import{C as Nt}from"./index-Che0OddO.js";const vs="/assets/image-CnHXqJGR.svg",Ns="_container_1iejh_88",js="_iconContent1_1iejh_95",ws="_signOutLink_1iejh_104",Ps="_spouseContent_1iejh_111",ks="_iconContent_1iejh_95",Ss="_content_1iejh_125",Is="_contentBlock_1iejh_135",As="_okBtn_1iejh_141",Ds="_title_1iejh_149",Ts="_description_1iejh_153",$s="_feedbackCard_1iejh_157",Bs="_imageBlock_1iejh_162",Fs="_iconClass_1iejh_167",Es="_heading_1iejh_176",Ls="_contentDiv_1iejh_179",Ms="_button_1iejh_185",me={container:Ns,iconContent1:js,signOutLink:ws,spouseContent:Ps,iconContent:ks,content:Ss,contentBlock:Is,okBtn:As,title:Ds,description:Ts,feedbackCard:$s,imageBlock:Bs,iconClass:Fs,heading:Es,contentDiv:Ls,button:Ms},zs=()=>{const{isAuthenticated:v,logout:T}=Be(),o=Me(),N=M(h=>h.planTypeDetail.selectedAgentType),i=M(h=>h.planTypeDetail.medicareAgent),j=M(h=>h.planTypeDetail.finalExpenseAgent),S=t.useMemo(()=>N===Nn?i:N===jn?j:i,[N,i,j]),s=async()=>{re(Ct),re(Pn),re(kn),re(st),re(Sn),re(Xt),re(In),re(An),re(Jt),re(Dn),re(Tn),re($n),re("ProfilePurlAgentFinalExpenseData"),re("ProfilePurlAgentMedicareData"),T({logoutParams:{returnTo:`${window.location.origin+ne}`}})},C=()=>{o.push(ne)};return e.jsxs(e.Fragment,{children:[e.jsx(jt,{children:e.jsx("title",{children:"Quick Profile"})}),e.jsxs("div",{className:me.container,children:[!v&&e.jsx(wt,{className:me.feedbackCard,severity:"success",text:"Please open your email inbox and confirm your profile within 72 hours to complete registration.",hideClose:!0}),e.jsxs("div",{className:me.content,children:[e.jsx("div",{className:me.imageBlock,children:e.jsx(Pt,{className:me.iconClass,image:vs})}),e.jsxs("div",{className:me.contentBlock,children:[e.jsx(ye,{className:me.title,text:"You're All Set"}),e.jsx(nt,{className:me.description,text:`Confirm your profile and ${(S==null?void 0:S.agentFirstName)??""} will be in touch with you soon.`}),e.jsx(Ie,{className:me.okBtn,onClick:()=>{o.push(v?wn:"/")},label:"Ok"})]})]}),e.jsxs("div",{className:me.spouseContent,children:[e.jsx(nt,{className:me.iconContent1,text:"Need to complete these steps for a spouse or family member as well?"}),v?e.jsxs("p",{className:me.iconContent,children:["If so please"," ",e.jsx("a",{className:me.signOutLink,href:"#",onClick:()=>s(),children:"sign out of your profile"})," ","and start over with their information"]}):e.jsxs("p",{className:me.iconContent,children:[e.jsx("a",{className:me.signOutLink,href:"#",onClick:()=>C(),children:"Click here"})," ","and start over with their information"]})]})]})]})},bn="750px",Rs="1200px",qs="_container_f6ju8_93",Hs="_progressContainer_f6ju8_97",Os="_progressStepLabelIconGap_f6ju8_112",Ws="_activeStepConnector_f6ju8_116",Us="_iconInactive_f6ju8_124",Gs="_iconActive_f6ju8_128",Ys="_iconCompleted_f6ju8_132",Qs="_iconSkipped_f6ju8_136",Vs="_iconContainer_f6ju8_140",Ks="_stepper_f6ju8_145",Zs="_stepperLine_f6ju8_153",Xs="_stepperLineActive_f6ju8_161",je={mobileWidth:bn,tabletWidth:Rs,container:qs,progressContainer:Hs,progressStepLabelIconGap:Os,activeStepConnector:Ws,iconInactive:Us,iconActive:Gs,iconCompleted:Ys,iconSkipped:Qs,iconContainer:Vs,stepper:Ks,stepperLine:Zs,stepperLineActive:Xs},Js=Bn(Fn)(({theme:v})=>({left:"calc(-50% + 15px)",right:"calc(50% + 15px)",[`&.${Ee.alternativeLabel}`]:{top:14},[`&.${Ee.active}`]:{[`& .${Ee.line}`]:{backgroundColor:"#1157ee"}},[`&.${Ee.completed}`]:{[`& .${Ee.line}`]:{backgroundColor:"#1157ee"}},[`& .${Ee.line}`]:{height:3,border:0,backgroundColor:"#a8c5ee",borderRadius:1}})),Qt=({step:v,currentStep:T,index:o,isProfilePage:N})=>{const{isSkipped:i,isCompleted:j,icon:S,enabled:s,isVisited:C}=v,h=qn[S],z=`${je.iconInactive} ${T===o?je.iconActive:j?je.iconCompleted:C&&i?je.iconSkipped:""}`;return e.jsx("div",{className:s?je.iconContainer:"",children:e.jsx(h,{className:z,id:S})})},ze=({className:v="",isProfilePage:T=!1})=>{En();const o=Ye(),[N,i]=Ln.useState(!1),j=M(w=>w.quickProfileStepper.quickProfileSteps),S=M(w=>w.quickProfileStepper.currentQuickProfileStep),s=j,C=S,h=M(w=>w.pharmacyDetails.pharmacyNames),z=V(Ue,!1),H=V(at),m=M(w=>w.doctorDetails.doctorNames),I=M(w=>w.prescriptionDetails.drugNames),Z=V("selectedPrescriptions"),c=V("selectedDoctorNames"),$=V("selectedPharmacyNames"),a=V("updateStatus"),d=M(w=>w.prescriptionDetails.hasNoPrescriptions),U=V(bt);t.useEffect(()=>{const w={personalInformation:0,pharmacy:1,doctors:2,prescription:3,coverage:4,rsa:5},B=window.location.href.substring(window.location.href.indexOf("#")+1);B&&o(en(w[B]))},[]);const r=t.useRef(!0);return t.useEffect(()=>{(r.current||a)&&(r.current=!1,H&&(H!=null&&H.phoneNumber)?o(He(0)):o(Oe(0)),(h==null?void 0:h.length)>0||z||($==null?void 0:$.length)>0?o(He(1)):o(Oe(1)),(m==null?void 0:m.length)>0||(c==null?void 0:c.length)>0?o(He(2)):o(Oe(2)),(I==null?void 0:I.length)>0||(Z==null?void 0:Z.length)>0||d?o(He(3)):o(Oe(3)),(U==null?void 0:U.length)>0?o(He(4)):o(Oe(4)),K("updateStatus",!1))},[H,h,m,c,$,I,Z,d,U,r]),e.jsxs(e.Fragment,{children:[e.jsx(tn,{queries:{mobile:{maxWidth:bn}},onChange:w=>{i(w.mobile)}}),N?e.jsx("div",{className:je.stepper,children:s.map((w,B)=>e.jsxs(e.Fragment,{children:[B!==0&&e.jsx("div",{className:`${je.stepperLine} ${B<=C?je.stepperLineActive:""}`}),e.jsx(Qt,{step:w,index:B,currentStep:C,isProfilePage:T})]}))}):e.jsx(Mn,{activeStep:C,alternativeLabel:!0,className:`${je.progressContainer} ${v}`,connector:e.jsx(Js,{}),children:s.map((w,B)=>e.jsx(zn,{children:e.jsx(Rn,{className:je.progressStepLabelIconGap,StepIconComponent:()=>e.jsx(Qt,{currentStep:C,index:B,isProfilePage:T,step:w}),children:e.jsx("span",{id:`label_${w.label}`,children:w.label})})},w.label))})]})},tt=["I am enrolled in a Medicare plan","I currently have coverage through my employer","I am currently on Medicaid","I qualify for the Medicare Part D Extra Help Program","I have a plan through the Health Insurance Marketplace","I am currently covered by COBRA","I am not enrolled in a health insurance plan"],ea="_container_145td_88",ta="_header_145td_96",na="_coverageContent_145td_103",sa="_checkboxGroup_145td_109",aa="_coverageDiv_145td_119",oa="_allApply_145td_123",ia="_heading_145td_132",ra="_subHeading_145td_136",ca="_headerContent_145td_145",la="_content_145td_154",da="_contentDiv_145td_165",ua="_manageAccountForm_145td_172",ma="_submitButtonContainer_145td_180",ha="_twoColumns_145td_188",pa="_submitButton_145td_180",_a="_dobContainer_145td_202",ga="_ageContainer_145td_209",fa="_ageField_145td_213",xa="_text_145td_217",Ca="_error_145td_227",ba="_stateDropdown_145td_231",ya="_zipCodeContainer_145td_247",va="_requiredFields_145td_251",Na="_countyDropdown_145td_257",ja="_countyClass_145td_258",wa="_backButton_145td_262",Pa="_divider_145td_266",ka="_labelClass_145td_272",Sa="_active_145td_277",Ia="_checkboxInput_145td_284",Aa="_borderLabelClass_145td_294",Da="_skipWithSubmit_145td_298",Ta="_userName_145td_315",$a="_pharmacyContent_145td_325",ee={container:ea,header:ta,coverageContent:na,checkboxGroup:sa,coverageDiv:aa,allApply:oa,heading:ia,subHeading:ra,headerContent:ca,content:la,contentDiv:da,manageAccountForm:ua,submitButtonContainer:ma,twoColumns:ha,submitButton:pa,dobContainer:_a,ageContainer:ga,ageField:fa,text:xa,error:Ca,stateDropdown:ba,zipCodeContainer:ya,requiredFields:va,countyDropdown:Na,countyClass:ja,backButton:wa,divider:Pa,labelClass:ka,active:Sa,checkboxInput:Ia,borderLabelClass:Aa,skipWithSubmit:Da,userName:Ta,pharmacyContent:$a},Ba=()=>{const v=Me(),T=Ye(),[o,N]=t.useState(!1),i=M(r=>r.userProfile.userProfile),j=M(r=>r.userDetails.userData),S=M(r=>r.planTypeDetail.selectedPlanType),[s,C]=t.useState(V(bt)||[]),h=()=>{v.push({pathname:ne,search:"#prescription"})},z=r=>{const{checked:w,value:B}=r.target;let D=[];w===!0?D=[...new Set([...s,B])]:D=[...s].filter(te=>te!==B),C(D)},H=tt.map(r=>({label:r,id:r,name:"coverageOptions",defaultChecked:tt.length===1||s.indexOf(r)>-1,value:r,onChange:z})),{user:m,getAccessTokenSilently:I}=Be(),Z=async()=>m?await I():"";M(r=>r.planTypeDetail.medicareAgent);const{Put:c}=$e("https://ae-api.medicarecenter.com/ae-consumer-service/api/v1.0/Account/Update"),{Get:$}=$e(`${yt}/${m==null?void 0:m.consumerid}`),a=V(at),d=async()=>{N(!0),K(bt,s);const r=await Hn({coverages:s,consumerId:i.consumerId,email:a==null?void 0:a.email,authToken:await Z()});K(nn,r);const w=s.includes(tt[2])?1:void 0,B=s.includes(tt[3])?"Yes":On;await c({...i,hasMedicAid:w,subsidyLevel:B});const D=await $().catch(te=>console.error(te));T(sn({...j,hasMedicAid:w,subsidyLevel:B})),T(Wn({...D})),N(!1),v.push({pathname:ne,search:"#rsa"})},U=()=>{v.push({pathname:ne,search:"#rsa"})};return e.jsx(e.Fragment,{children:e.jsx("div",{className:ee.quickProfile,children:e.jsxs("div",{className:ee.container,children:[e.jsx("div",{className:ee.header,children:e.jsxs("div",{className:ee.headerContent,children:[e.jsx(ye,{className:ee.heading,text:"Tell us about your current coverage."}),e.jsx(ye,{className:ee.subHeading,text:"Depending on your situation, you might be eligible for special types of plans that could benefit you."}),e.jsx(ze,{selectedPlanType:S})]})}),e.jsxs("div",{className:ee.contentDiv,children:[e.jsxs("div",{className:ee.coverageDiv,children:[e.jsx(we,{className:ee.allApply,text:"Select all that apply."}),e.jsx("div",{className:ee.coverageContent,children:e.jsx(Cs,{checkboxes:H,className:ee.checkboxGroup,labelClass:ee.labelClass,borderLabelClass:ee.borderLabelClass,activeClass:ee.active,checkboxInput:ee.checkboxInput})})]}),e.jsx("div",{className:ee.divider}),e.jsx("div",{className:ee.submitButtonContainer,children:o?e.jsx(Qe,{}):e.jsxs(e.Fragment,{children:[" ",e.jsx(Ve,{className:ee.backButton,disabled:!1,onClick:h,label:"Back"}),e.jsxs("div",{className:ee.skipWithSubmit,children:[e.jsx(it,{skipButtonClicked:U}),e.jsx(Ie,{className:ee.submitButton,disabled:s.length===0,onClick:d,label:"Continue",type:"submit"})]})]})})]})]})})})},Fa="_button_juqtz_88",Ea="_container_juqtz_95",La="_disclaimer_juqtz_104",Ma="_disclaimerContext_juqtz_118",za="_HealthDisclaimer_juqtz_122",Ra="_content_juqtz_126",qa="_contentDiv_juqtz_136",Ha="_quickProfileCreate_juqtz_143",Oa="_heading_juqtz_152",Wa="_createAccountContainer_juqtz_162",Ua="_createAccountContent_juqtz_173",Ga="_submitButtonContainer_juqtz_192",Ya="_submitButton_juqtz_192",Qa="_requiredText_juqtz_205",he={button:Fa,container:Ea,disclaimer:La,disclaimerContext:Ma,HealthDisclaimer:za,content:Ra,contentDiv:qa,quickProfileCreate:Ha,heading:Oa,createAccountContainer:Wa,createAccountContent:Ua,submitButtonContainer:Ga,submitButton:Ya,requiredText:Qa},Va=()=>{const v=Me(),T="Please provide a password to securely store your information and sync with your agent for continued planning.",[o,N]=t.useState(!1),[i,j]=t.useState(""),{Post:S}=$e("https://ae-api.medicarecenter.com/ae-consumer-service/api/v1.0/Account/Register",!0),{purlAgentData:s}=t.useContext(rt),C=M(a=>a.userDetails.userData),h=M(a=>a.healthInfoDetails.healthInfoData),z=M(a=>a.planTypeDetail.selectedPlanType),{formState:{errors:H,isDirty:m},handleSubmit:I,register:Z,setError:c}=kt(),$=async a=>{var le;N(!0);const d=await ln(a==null?void 0:a.email);let U=!0;((le=d==null?void 0:d.email)==null?void 0:le.status)==="invalid"&&(c("email",{type:"pattern"}),U=!1);const{leadId:r,leadIdGuid:w,firstName:B,lastName:D,phoneNumber:te,zip:X,county:se,stateCode:ae,countyFips:Pe,streetAddress:ge,aptSuiteNumber:F,city:pe,subsidyLevel:Ce}=C,_e=V(nn);a.firstName=B,a.lastName=D,a.zip=X||"",a.county=se||"",a.phone=te,a.streetAddress=ge,a.aptSuiteNumber=F||"",a.leadIdGuid=w,a.leadId=r,a.dateOfBirth=h!=null&&h.dateOfBirth?new Date(h.dateOfBirth):null,V(Gn),a.hasMedicAid=_e==null?void 0:_e.hasMedicAid;const G=bs();if(a.trustedformUrl=G,a.subsidyLevel=Ce,h&&(a.height=Number(h.heightInFT)*12+Number(h.heightIn),a.weight=h.weight?Number(h.weight):0,a.gender=h.gender,a.isTobaccoUser=h.tobaccoUse==="Yes",a.productType=z),s){const n=s==null?void 0:s.virtualNumber,_=n==null?void 0:n.substring(2);a.Purl=s.agentPurlCode,a.agentNPN=s.agentNpn,a.AgentPhoneNumber=_,a.isMedicareAgent=s.isMedicareAgent,a.isFinalExpenseAgent=s.isFinalExpenseAgent}const ce=s?{agentPurlCode:s.agentPurlCode,agentNPN:s.agentNpn,agentLastName:s.agentLastName,agentFirstName:s.agentFirstName,agentMiddleName:s.agentMiddleName,isPurlToggledOn:s.isPurlToggledOn,email:s.email,virtualNumber:s.virtualNumber,caLicense:s.caLicense}:{};if(a.agentPurlDetails=ce,X&&se&&(a.countyFips=Pe,a.statecode=ae,a.city=pe),U){const n=await S(a,!0),_=await It(n);if(n.status>=200&&n.status<300){const O=V(Xt,[]);O.length>0&&await Yn({consumerId:_.consumerId,authToken:"",stateCode:V(Qn),healthConditionData:O,leadId:_.leadId}),localStorage.setItem("verifyEmail",a.email),localStorage.setItem("verifyEmailUserId",_.userId),v.push({pathname:ne,search:"#complete"})}else j(_.value)}N(!1)};return e.jsxs(e.Fragment,{children:[e.jsx(jt,{children:e.jsx("title",{children:"Quick Profile"})}),e.jsxs("div",{className:he.quickProfileCreate,children:[e.jsxs("div",{className:he.container,children:[e.jsx(an,{className:he.heading,text:"A Profile Has Been Created For You"}),e.jsx("div",{className:he.contentDiv,children:e.jsx(we,{className:he.content,text:T})})]}),e.jsx("div",{className:he.createAccountContainer,children:e.jsx("form",{onSubmit:I(a=>$(a)),id:"theForm",children:e.jsxs("div",{className:he.createAccountContent,children:[i&&(i==null?void 0:i.length)>0&&m?e.jsx(wt,{severity:"success",text:i.replace("User Name already Exists","Email address already in use"),onClose:()=>j("")}):null,e.jsx(on,{defaultValue:C==null?void 0:C.email,error:H.email,id:"email",labelText:"Email Address*",register:Z,required:!0}),e.jsxs("div",{style:{width:"100%"},children:[e.jsx(Un,{error:H.password,id:"password",labelText:"Password*",register:Z,required:!0}),e.jsx(St,{className:he.requiredText,text:"* Required fields"})]}),e.jsx("div",{className:he.disclaimerContext,children:e.jsx("div",{className:he.disclaimer,children:e.jsxs(e.Fragment,{children:[e.jsx("p",{className:he.HealthDisclaimer,children:"This is a solicitation for insurance and I understand by providing my phone number and information and clicking Complete Profile, I am giving permission to contact me for the purpose of marketing insurance products and services. I also understand I may be contacted by a properly licensed insurance agent who can answer my questions and provide information about Medicare Supplement, Medicare Advantage, Prescription Drug (Part D), or life insurance products and services. The licensed insurance agents who might contact me are not connected with or endorsed by any government agency or program. By completing the contact form above you will be directed to a licensed sales agent who can answer your questions and provide information about Medicare options, such as Medicare Advantage, Prescription Drug (Part D), and Medicare Supplement insurance plans. This is a solicitation for insurance. The communications consented to above include marketing of insurance products. Licensed insurance agents are not connected with or endorsed by the U.S. government or the federal Medicare program. Submitting this form does NOT affect your current enrollment, nor will it enroll you in a Medicare Advantage Plan, Prescription Drug Plan, or other Medicare plan. A Medicare Advantage Plan is a health insurance plan provided through a private insurer and delivers Medicare Part A and Part B benefits. A Part D Drug Plan is a prescription drug insurance plan provided through a private insurer and delivers Medicare Part D benefits."}),e.jsxs("p",{children:["By clicking the Complete Profile button, I expressly consent by electronic signature to receive communications by telephone, by email, or by text message from PlanEnroll at the telephone number above (even if my number is currently listed on any state, federal, local, or corporate Do Not Call list) including my wireless number if provided. Carrier message and data rates may apply. I understand that my consent is not required as a condition of purchasing any goods or services and that I may revoke my consent at any time. I also acknowledge that I have read and agree to the"," ",e.jsx(rn,{className:he.disclaimerLink})," ","and"," ",e.jsx(cn,{className:he.disclaimerLink}),". If you do not want to share your information, please click on Do Not Sell My Information for more details."]})]})})}),e.jsx("div",{className:he.submitButtonContainer,children:e.jsx(Ie,{className:he.submitButton,disabled:o,label:"Complete Profile",type:"submit",id:"submitButton"})})]})})})]})]})},Ka="_welcome_1o2qi_88",Za="_button_1o2qi_92",Xa="_welcomeHeader_1o2qi_99",Ja="_container_1o2qi_104",eo="_content_1o2qi_114",to="_contentDiv_1o2qi_125",no="_quickProfile_1o2qi_132",so="_heading_1o2qi_141",ao="_disclaimer_1o2qi_150",Ne={welcome:Ka,button:Za,welcomeHeader:Xa,container:Ja,content:eo,contentDiv:to,quickProfile:no,heading:so,disclaimer:ao},oo=()=>e.jsx(e.Fragment,{children:e.jsxs("div",{className:Ne.disclaimer,children:[e.jsx("p",{children:"By providing and submitting my personal contact information to PlanEnroll, I agree to be contacted by a PlanEnroll licensed insurance agent who can answer my questions and provide information about available Medicare coverage options, such as Medicare Advantage, Prescription Drug (Part D) and Medicare Supplement insurance plans. This is a solicitation for insurance. The communications consented to above include marketing of insurance products. Licensed insurance agents are not connected with or endorsed by the U.S. government or the federal Medicare program. I understand that submitting this form does NOT affect my current enrollment, nor will it enroll me in a Medicare Advantage Plan, Prescription Drug Plan, or other Medicare plan. A Medicare Advantage Plan is a health insurance plan provided through a private insurer and delivers Medicare Part A and Part B benefits. A Part D Drug Plan is a prescription drug insurance plan provided through a private insurer and delivers Medicare Part D benefits."}),e.jsx("br",{}),e.jsxs("p",{children:["By clicking the Submit button, I expressly consent by electronic signature to the sharing of my personal beneficiary information with PlanEnroll and its licensed agents and to receive informational and marketing communications via automatic telephone dialing system or by artificial/pre-recorded message, email, or by text message from this website (operated by Integrity Marketing Group) and PlanEnroll licensed agents at the telephone number above (even if my number is currently listed on any state, federal, local or corporate Do Not Call list) including my wireless number if provided. Carrier message and data rates may apply. I understand that my consent is not required as a condition of purchasing any goods or services and that I may revoke my consent at any time. I understand that I will be able to separately consent to the use of my personal beneficiary information with any other licensed agent affiliated with PlanEnroll from whom I may request further assistance. I also acknowledge that I have read and agree to the ",e.jsx(rn,{className:Ne.disclaimerLink})," ","and ",e.jsx(cn,{className:Ne.disclaimerLink}),". If you do not want to share your information, please click on Do Not Sell My Information located in the footer for more details."]})]})}),io="_container_11lda_88",ro="_header_11lda_96",co="_heading_11lda_103",lo="_headerContent_11lda_107",uo="_content_11lda_113",mo="_contentDiv_11lda_124",ho="_manageAccountForm_11lda_138",po="_submitButtonContainer_11lda_146",_o="_twoColumns_11lda_153",go="_submitButton_11lda_146",fo="_dobContainer_11lda_167",xo="_ageContainer_11lda_174",Co="_ageField_11lda_178",bo="_text_11lda_182",yo="_error_11lda_192",vo="_inputField_11lda_196",No="_zipCodeContainer_11lda_198",jo="_countyDropdown_11lda_203",wo="_stateDropdown_11lda_207",Po="_requiredFields_11lda_227",ko="_countyClass_11lda_234",So="_backButton_11lda_238",Io="_divider_11lda_242",Ao="_optional_11lda_247",Do="_userName_11lda_261",L={container:io,header:ro,heading:co,headerContent:lo,content:uo,contentDiv:mo,manageAccountForm:ho,submitButtonContainer:po,twoColumns:_o,submitButton:go,dobContainer:fo,ageContainer:xo,ageField:Co,text:bo,error:yo,inputField:vo,zipCodeContainer:No,countyDropdown:jo,stateDropdown:wo,requiredFields:Po,countyClass:ko,backButton:So,divider:Io,optional:Ao,userName:Do},To=()=>{var Ke;const v=ot.useHistory(),T=Ye(),{loginWithRedirect:o}=Be(),[N,i]=t.useState([]),[j,S]=t.useState(!1),[s,C]=t.useState(!1),h=M(u=>u.userProfile.userProfile),z=ot.useLocation(),H=new URLSearchParams(z.search),m=M(u=>u.userDetails.userData),{purlAgentData:I}=t.useContext(rt),{Post:Z}=$e("https://ae-api.medicarecenter.com/ae-consumer-service/api/v1.0/Consumer/Lead","https://ae-api.medicarecenter.com/ae-consumer-service/api/v1.0/Account/Register",!0),c=new URLSearchParams(decodeURIComponent(H==null?void 0:H.toString().replace(/\+/g," "))),[$,a]=t.useState(""),[d,U]=t.useState(""),[r,w]=t.useState(!1),[B,D]=t.useState(!0),{getCounties:te,setZipCode:X,county:se,counties:ae,setCounty:Pe}=t.useContext(dn),ge=M(u=>u.planTypeDetail.selectedPlanType),F=t.useState(V(at)||{}),{firstName:pe,lastName:Ce,email:_e,phoneNumber:G,address:ce,address1:le,city:n,zipVal:_,stateVal:O,stateCodeVal:P}=F[0],{register:b,handleSubmit:p,formState:{errors:g,isDirty:oe,dirtyFields:fe},reset:f,setError:k,getValues:R,setValue:E,watch:Y,clearErrors:Q}=kt({defaultValues:{}}),A=Y("zip"),x=Y("phoneNumber"),q=Y("firstName"),y=Y("lastName"),J=Y("email"),ve=Y("city"),Se=Y("address"),Fe=t.useRef(!0);t.useEffect(()=>{q&&q.length>1&&!Lt(q)?(S(!1),k("firstName",{type:"pattern"})):Q("firstName")},[q]),t.useEffect(()=>{y&&y.length>1&&!Mt(y)?(S(!1),k("lastName",{type:"pattern"})):Q("lastName")},[y]);const Re=encodeURIComponent(J),{Get:ct}=$e(`https://ae-api.medicarecenter.com/ae-consumer-service/api/v1.0/Account/ContinueLeadCreationIfNotExists?consumerEmail=${Re}`,!0),lt=async()=>{try{await o(),es()}catch(u){console.error("sign in error: ",u)}},qe=async u=>{if(Q("zip"),Q("stateCode"),a(""),E("stateCode",""),X(u),i([]),u&&u.length!==5){X(u),k("zip",{type:"pattern"});return}if(u&&u.length===5)if(hn(u)){const W=await te(u);if(!W||W.length===0)k("zip",{type:"pattern"});else{const de=[];if(W.map(xe=>(de.indexOf(xe.state)===-1&&de.push(xe.state),xe)),de.length===1){const xe=Te.filter(ke=>ke.value===W[0].state);E("stateCode",W[0].state,{shouldDirty:!0}),a(W[0].state),i([...xe])}else{const xe=Te.filter(ke=>de.indexOf(ke.value)>-1);i(xe),k("stateCode",{type:"required"})}}}else k("zip",{type:"pattern"})};t.useEffect(()=>{if(se&&ae.length){let u=se,[W]=ae.filter(de=>de.countyFIPS===u);W&&(U(W.countyName),K(Vn,W.countyFIPS))}},[se,ae]),t.useEffect(()=>{if(fe.zip){let u=A.replace(/[^0-9]/g,"");A!==u&&E("zip",u),qe(A)}},[A]),t.useEffect(()=>{f({})},[f]),t.useEffect(()=>(m!=null&&m.leadId&&(E("zip",m.zip),qe(m.zip)),()=>{f({})}),[m]),t.useEffect(()=>{en(0)},[]);const dt=async u=>{var $t,Bt,Ft,Et;S(!0),re(Ct);const{firstName:W,lastName:de,email:xe,phoneNumber:ke,address:Ze,address1:Xe,city:ht,stateCode:Dt,zip:pt}=u,Ae={consumerId:0,leadId:0,firstName:W,lastName:de,inactive:0,email:xe,phoneNumber:ke.replaceAll("-",""),zip:pt,county:d,stateCode:Dt,countyFips:se,streetAddress:Ze,aptSuiteNumber:Xe,city:ht};I&&(Ae.purl=I.agentPurlCode,Ae.agentNPN=I.agentNpn);const be=await ln(xe,ke);if((($t=be==null?void 0:be.email)==null?void 0:$t.status)==="invalid"&&(S(!1),k("email",{type:"pattern"})),((Bt=be==null?void 0:be.phone)==null?void 0:Bt.status)==="invalid"&&(S(!1),k("phoneNumber",{type:"pattern"})),pt&&!$){S(!1),k("stateCode",{type:"required"}),ae.length===0&&k("zip",{type:"pattern"});return}if(((Ft=be==null?void 0:be.email)==null?void 0:Ft.status)!=="invalid"&&((Et=be==null?void 0:be.phone)==null?void 0:Et.status)!=="invalid"){f({...u}),X(Ae.zip);try{const _t=await ct();if(Ae.leadIdGuid=Ge(),K(at,{firstName:W,lastName:de,email:xe,phoneNumber:ke,address:Ze,address1:Xe,city:ht,stateCodeVal:Dt,stateVal:$,zipVal:pt,county:se,leadIdGuid:Ae.leadIdGuid}),_t){re(Ct);const gt=await Z(Ae,!0),ft=await It(gt);Zn(ft.leadId),T(sn(ft)),gt.status>=200&&gt.status<300?v.push({pathname:ne,search:"#pharmacy"}):C(ft.value)}else{var Tt=V(st);Tt&&K(Xn,Tt),K(At,"true"),K(Jn,Ae),lt()}}catch(_t){console.error(_t)}}S(!1)};t.useEffect(()=>{const u=Te.filter(W=>W.value===h.stateCode);i(u),a(h.stateCode),E("stateCode",h.stateCode,{shouldDirty:!1})},[h.stateCode]),t.useEffect(()=>{if(x){let u=Cn(x),W=u==null?void 0:u.replace(/[^0-9-]/g,"");x.length<5&&x.indexOf("-")===3&&x.length<9&&x.lastIndexOf("-")===6||E("phoneNumber",W)}},[x]);const ut=u=>{Q("stateCode"),a(u),E("stateCode",u,{shouldDirty:!0})};t.useEffect(()=>{w(!1)},[oe]);const mt=()=>{const u=g.stateCode||(g==null?void 0:g.phoneNumber)||(g==null?void 0:g.email)||!(q!=null&&q.trim())||!(y!=null&&y.trim())||!(J!=null&&J.trim())||!A||!(ve!=null&&ve.trim())||!(Se!=null&&Se.trim())||!(x!=null&&x.trim())||!se||!Lt(q)||!Mt(y)||!!(g!=null&&g.zip);D(u)};return t.useEffect(()=>{mt()},[oe,r,g,q,y,J,A,ve,Se,x,se]),t.useEffect(()=>{c.get("zip_code")&&X(c.get("zip_code")),c.get("zip_code")&&qe(c.get("zip_code"))},[]),t.useEffect(()=>{if(Fe.current&&F[0]){Fe.current=!1;const u=!(pe!=null&&pe.trim())||!(Ce!=null&&Ce.trim())||!(_e!=null&&_e.trim())||!(G!=null&&G.trim())||!(ce!=null&&ce.trim())||!(n!=null&&n.trim())||!(_!=null&&_.trim())||!(O!=null&&O.trim())||!se;D(u)}},[]),document.addEventListener("keydown",function(u){var W;if(u.key==="Enter"){const de=document.activeElement;de.tagName==="INPUT"&&de.form&&(u.preventDefault(),!B&&((W=document.getElementById("submitButton"))==null||W.click()))}}),e.jsx(e.Fragment,{children:e.jsx("div",{className:L.quickProfile,children:e.jsxs("div",{className:L.container,children:[e.jsx("div",{className:L.header,children:e.jsxs("div",{className:L.headerContent,children:[e.jsx(ye,{className:L.heading,text:"Let's get a few details"}),e.jsx(ze,{selectedPlanType:ge,isProfilePage:!0})]})}),e.jsx("div",{className:L.contentDiv,children:e.jsxs("form",{onSubmit:p(u=>dt(u)),className:L.manageAccountForm,children:[(s==null?void 0:s.length)>0?e.jsx(wt,{severity:"success",text:s,onClose:()=>C("")}):null,e.jsxs("div",{className:`${L.twoColumns} ${L.userName}`,children:[e.jsx(un,{className:L.inputField,id:"firstName",defaultValue:pe||(c==null?void 0:c.get("first_name")),register:b,error:g.firstName,labelText:"First Name",required:!0,setError:k,clearErrors:Q,disablePattern:!0}),e.jsx(mn,{className:L.inputField,error:g.lastName,defaultValue:Ce||(c==null?void 0:c.get("last_name")),id:"lastName",labelText:"Last Name",register:b,required:!0,setError:k,clearErrors:Q})]}),e.jsx(on,{className:L.inputField,disabled:!1,defaultValue:_e||(c==null?void 0:c.get("email")),disablePattern:!0,error:g.email,id:"email",labelText:"Email",register:b,required:!0}),e.jsx(gn,{className:L.inputField,disablePattern:!0,defaultValue:G||((Ke=c==null?void 0:c.get("phone_number"))==null?void 0:Ke.replace(/(\d{3})(\d{3})(\d{4})/,"$1-$2-$3")),error:g==null?void 0:g.phoneNumber,id:"phoneNumber",labelText:"Phone Number",register:b,required:!0,setError:k,clearErrors:Q,value:R("phoneNumber")}),e.jsxs(e.Fragment,{children:[e.jsx(vt,{className:L.inputField,id:"address",defaultValue:ce||(c==null?void 0:c.get("street_address")),register:b,error:g.address,labelText:"Street Address",required:!0}),e.jsx(vt,{className:L.inputField,id:"address1",register:b,defaultValue:le||(c==null?void 0:c.get("apt_no")),error:g.address,labelText:e.jsxs(e.Fragment,{children:["Apt, Suite Number"," ",e.jsx(we,{text:"(Optional)",className:L.optional})]}),required:!1})]}),e.jsxs("div",{className:L.twoColumns,children:[e.jsx(ys,{disablePattern:!0,defaultValue:A||c.get("zip_code"),id:"zip",labelText:"Zip Code",register:b,error:g==null?void 0:g.zip,required:!0,className:L.zipCodeContainer}),e.jsx(Kn,{labelName:"County *",className:L.countyDropdown,id:"county",onChange:u=>{Pe(u.target.value)}})]}),e.jsxs("div",{className:L.twoColumns,children:[e.jsx(fn,{id:"city",register:b,defaultValue:n||(c==null?void 0:c.get("city")),error:g.city,labelText:"City",required:!0,className:L.inputField}),e.jsx(xn,{label:"State *",error:{...g.stateCode,message:"Please select state"},required:!0,state:$||(c==null?void 0:c.get("state")),setState:ut,className:L.stateDropdown,dropdownClassName:L.dropdownWidth,stateList:N,renderValue:u=>{var W;return u?(W=Te.find(de=>de.value===u))==null?void 0:W.label:"Select one"}})]}),e.jsx(St,{className:L.requiredFields,text:"* Required Fields"}),e.jsx("div",{className:L.divider}),e.jsx(oo,{}),e.jsx("div",{className:L.divider}),e.jsx("div",{className:L.submitButtonContainer,children:j?e.jsx(Qe,{}):e.jsxs(e.Fragment,{children:[e.jsx(Ve,{className:L.backButton,disabled:!1,onClick:u=>{u.preventDefault(),v.push(ne)},label:"Back",type:"button"}),e.jsx(Ie,{className:L.submitButton,disabled:B,label:"Continue",type:"submit",id:"submitButton"})]})})]})})]})})})},$o="You may select up to 3 pharmacies, including physical and online options",Bo=" You have reached the maximum limit of 3. Remove a pharmacy to add a new one.",Fo="_container_wmxig_88",Eo="_countText_wmxig_96",Lo="_infoBanner_wmxig_100",Mo="_header_wmxig_111",zo="_banner_wmxig_119",Ro="_heading_wmxig_132",qo="_subHeading_wmxig_136",Ho="_headerContent_wmxig_145",Oo="_content_wmxig_154",Wo="_contentDiv_wmxig_165",Uo="_manageAccountForm_wmxig_184",Go="_submitButtonContainer_wmxig_192",Yo="_twoColumns_wmxig_200",Qo="_submitButton_wmxig_192",Vo="_dobContainer_wmxig_214",Ko="_ageContainer_wmxig_221",Zo="_ageField_wmxig_225",Xo="_text_wmxig_229",Jo="_error_wmxig_239",ei="_stateDropdown_wmxig_243",ti="_zipCodeContainer_wmxig_259",ni="_requiredFields_wmxig_263",si="_countyDropdown_wmxig_269",ai="_countyClass_wmxig_270",oi="_backButton_wmxig_274",ii="_divider_wmxig_278",ri="_skipWithSubmit_wmxig_284",ci="_userName_wmxig_301",li="_pharmacyContent_wmxig_311",ue={container:Fo,countText:Eo,infoBanner:Lo,header:Mo,banner:zo,heading:Ro,subHeading:qo,headerContent:Ho,content:Oo,contentDiv:Wo,manageAccountForm:Uo,submitButtonContainer:Go,twoColumns:Yo,submitButton:Qo,dobContainer:Vo,ageContainer:Ko,ageField:Zo,text:Xo,error:Jo,stateDropdown:ei,zipCodeContainer:ti,requiredFields:ni,countyDropdown:si,countyClass:ai,backButton:oi,divider:ii,skipWithSubmit:ri,userName:ci,pharmacyContent:li},di=()=>{const v=Me(),{user:T,getAccessTokenSilently:o}=Be(),N=Ye(),[i,j]=t.useState([]),[S,s]=t.useState(!1),[C,h]=t.useState([]),[z,H]=t.useState(0),[m,I]=t.useState([]),[Z,c]=t.useState(!1),[$,a]=t.useState(V(Ue,!1)),d=Ge(),U=M(n=>n.planTypeDetail.selectedPlanType),[r,w]=t.useState(V(zt,null)),[B,D]=t.useState(V(Rt,"")),te=M(n=>n.userProfile.userProfile.syncId),X=async()=>T?await o():"",se=(n,_)=>{let O=[],P=[];if(_)P=[...C,n==null?void 0:n.pharmacyID],O=[...i,n];else{const b=i.filter(g=>(g==null?void 0:g.pharmacyID)!==(n==null?void 0:n.pharmacyID)),p=C.filter(g=>g!==(n==null?void 0:n.pharmacyID));O=b,P=p}j([...O]),h([...P]),N(Je(P))},ae=t.useCallback(async()=>{c(!0);const n=await X(),_=await pn(n);a(!!(_!=null&&_.length)),K(Ue,!!(_!=null&&_.length)),await(_==null?void 0:_.sort(function(P,b){var p=P.name.toUpperCase(),g=b.name.toUpperCase();return p<g?-1:p>g?1:0})),await(_==null?void 0:_.sort(function(P,b){var p=P.isPrimary,g=b.isPrimary;return p>g?-1:p<g?1:0}));const O=(_==null?void 0:_.map(P=>P.name))||[];if(N(qt(O||[])),I(_||[]),_){const P=_.map(b=>b.pharmacyId);j(_),h(P),N(Je(P))}re(At),c(!1)},[]),Pe=async n=>{c(!0),s(!0),a(!0),K(Ue,!0);const _=n.some(P=>P.isPrimary);await(n==null?void 0:n.forEach(P=>(P!=null&&P.pharmacyRecordID||(P.pharmacyRecordID=0),P)));const O=n.map((P,b)=>{const p={...P};return!_&&b===0&&(p.isPrimary=!0,N(as(p==null?void 0:p.pharmacyID))),p});w(n),K(zt,n),await os({data:O,syncId:te,authToken:await X()}),await ae(),c(!1),s(!1)},ge=async()=>{var n;!$&&i?((n=document.getElementById("subHeading"))==null||n.scrollIntoView(),await Pe(i)):v.push({pathname:ne,search:"#doctors"})},F=n=>{K(Rt,n),D(n)},pe=n=>{F(""),j([]),N(Je([]))};t.useRef(!0);const Ce=async()=>{v.push({pathname:ne,search:"#personalInformation"})},_e=async n=>{if($){const _=m.filter(P=>(P==null?void 0:P.pharmacyId)!==(n==null?void 0:n.pharmacyId)),O=C.filter(P=>P!==(n==null?void 0:n.pharmacyId));await ns({id:n==null?void 0:n.pharmacyRecordID,syncId:te,authToken:await X()}),await ae(),c(!1),(_==null?void 0:_.length)===0?(a(!1),j([]),h([]),K(Ue,!1),pe(),K(ss,[]),qt([])):(j(_),h(O),N(Je(O)),!_.some(b=>b.isPrimary)&&await G(_[0],_))}else v.push({pathname:ne,search:"#personalInformation"})},G=async(n,_=m)=>{const O=_.filter(p=>(p==null?void 0:p.pharmacyId)!==(n==null?void 0:n.pharmacyId)&&p.isPrimary===!0);if(O!=null&&O.length){const p=[...O].map(g=>{let oe={...g};return oe.isPrimary=!1,oe});await Ht({data:p[0],syncId:te,authToken:await X()})}let P={...n};P.isPrimary=!0,await Ht({data:P,syncId:te,authToken:await X()});const b=_.map(p=>((p==null?void 0:p.pharmacyId)!==(n==null?void 0:n.pharmacyId)?p.isPrimary=!1:p.isPrimary=!0,p));b==null||b.sort(function(p,g){var oe=p.name.toUpperCase(),fe=g.name.toUpperCase();return oe<fe?-1:oe>fe?1:0}),b==null||b.sort(function(p,g){var oe=p.isPrimary,fe=g.isPrimary;return oe>fe?-1:oe<fe?1:0}),I([...b])},ce=()=>e.jsxs("span",{className:ue.countText,children:[3-(i==null?void 0:i.length)," additional Pharmacies."]});t.useEffect(()=>{ae()},[d,ae]);const le=()=>{v.push({pathname:ne,search:"#doctors"})};return e.jsx(e.Fragment,{children:e.jsx("div",{className:ue.quickProfile,children:e.jsxs("div",{className:ue.container,children:[e.jsx("div",{className:ue.header,children:e.jsxs("div",{className:ue.headerContent,children:[e.jsx(ye,{className:ue.heading,text:"What is your preferred pharmacy?"}),e.jsx(ye,{className:ue.subHeading,id:"subHeading",text:"Enter your pharmacy info below to ensure it is included in your plan’s formulary."}),e.jsx(ze,{selectedPlanType:U})]})}),e.jsxs("div",{className:ue.contentDiv,children:[((i==null?void 0:i.length)===3||(m==null?void 0:m.length)===3)&&e.jsx(we,{className:ue.banner,id:"showMaxReached",children:$?Bo:$o}),(i==null?void 0:i.length)>=1&&(i==null?void 0:i.length)<3&&e.jsxs(we,{className:ue.infoBanner,id:"showMaxReached",children:["You may select a maximum of 3 Pharmacies, including physical and online options. Add up to  ",e.jsx(ce,{})]}),e.jsx("div",{className:ue.pharmacyContent,children:e.jsx(ts,{defaultValue:B,handleDeletePharmacy:_e,handleSelectedPharmacy:se,loading:!1,selectedPharmacies:C,onChange:F,onClear:pe,pharmacyDetails:r,pharmacyList:m,pharmacyListPage:$,PER_PAGE:4,isFromQuickProfile:!0,tab:z,setTab:H,addPharmacy:()=>a(!1),setAsPrimary:G})}),e.jsx("div",{className:ue.divider}),e.jsx("div",{className:ue.submitButtonContainer,children:S?e.jsx(Qe,{}):e.jsxs(e.Fragment,{children:[e.jsx(Ve,{className:ue.backButton,disabled:!1,onClick:Ce,label:"Back"}),e.jsxs("div",{className:ue.skipWithSubmit,children:[e.jsx(it,{skipButtonClicked:le}),e.jsx(Ie,{className:ue.submitButton,disabled:$?(m==null?void 0:m.length)===0:!(i!=null&&i.length),onClick:ge,label:$?"Continue":"Add and Continue",type:"submit"})]})]})})]})]})})})},ui="_container_1ddm2_88",mi="_header_1ddm2_96",hi="_heading_1ddm2_103",pi="_subHeading_1ddm2_107",_i="_headerContent_1ddm2_116",gi="_content_1ddm2_125",fi="_contentDiv_1ddm2_136",xi="_manageAccountForm_1ddm2_143",Ci="_submitButtonContainer_1ddm2_151",bi="_twoColumns_1ddm2_159",yi="_submitButton_1ddm2_151",vi="_dobContainer_1ddm2_173",Ni="_ageContainer_1ddm2_180",ji="_ageField_1ddm2_184",wi="_text_1ddm2_188",Pi="_error_1ddm2_198",ki="_stateDropdown_1ddm2_202",Si="_zipCodeContainer_1ddm2_218",Ii="_requiredFields_1ddm2_222",Ai="_countyDropdown_1ddm2_228",Di="_countyClass_1ddm2_229",Ti="_backButton_1ddm2_233",$i="_divider_1ddm2_237",Bi="_userName_1ddm2_255",Fi="_pharmacyContent_1ddm2_265",De={container:ui,header:mi,heading:hi,subHeading:pi,headerContent:_i,content:gi,contentDiv:fi,manageAccountForm:xi,submitButtonContainer:Ci,twoColumns:bi,submitButton:yi,dobContainer:vi,ageContainer:Ni,ageField:ji,text:wi,error:Pi,stateDropdown:ki,zipCodeContainer:Si,requiredFields:Ii,countyDropdown:Ai,countyClass:Di,backButton:Ti,divider:$i,userName:Bi,pharmacyContent:Fi},Ei=()=>{const v=M(T=>T.planTypeDetail.selectedPlanType);return e.jsx(e.Fragment,{children:e.jsx("div",{className:De.quickProfile,children:e.jsxs("div",{className:De.container,children:[e.jsx("div",{className:De.header,children:e.jsxs("div",{className:De.headerContent,children:[e.jsx(ye,{className:De.heading,text:" What prescriptions do you currently take?"}),e.jsx(ye,{className:De.subHeading,id:"subHeading",text:"Prescription drug coverage and costs can vary widely. Add your prescriptions for more accurate coverage estimates."}),e.jsx(ze,{selectedPlanType:v})]})}),e.jsx("div",{className:De.contentDiv,children:e.jsx(is,{PER_PAGE:4})})]})})})},Li="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M29.6298%2028C29.7851%2028%2029.8822%2027.8333%2029.8045%2027.7L16.1747%204.3C16.0971%204.16667%2015.9029%204.16667%2015.8253%204.3L2.19548%2027.7C2.11782%2027.8333%202.2149%2028%202.37022%2028H29.6298ZM17.7474%203C16.9708%201.66667%2015.0292%201.66667%2014.2526%203L0.273335%2027C-0.503291%2028.3333%200.467492%2030%202.02074%2030H29.9793C31.5325%2030%2032.5033%2028.3333%2031.7267%2027L17.7474%203Z'%20fill='%23333333'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16%2010C16.5523%2010%2017%2010.4477%2017%2011L17%2021C17%2021.5523%2016.5523%2022%2016%2022C15.4477%2022%2015%2021.5523%2015%2021L15%2011C15%2010.4477%2015.4477%2010%2016%2010Z'%20fill='%23333333'/%3e%3ccircle%20cx='16'%20cy='24'%20r='1'%20fill='%23333333'/%3e%3c/svg%3e",Mi="Continue",zi="Add Doctors",Ri="Update Doctor",qi="_container_34001_88",Hi="_header_34001_96",Oi="_heading_34001_103",Wi="_subHeading_34001_107",Ui="_headerContent_34001_116",Gi="_content_34001_125",Yi="_contentDiv_34001_136",Qi="_submitButtonContainer_34001_143",Vi="_submitButton_34001_143",Ki="_text_34001_157",Zi="_error_34001_167",Xi="_backButton_34001_171",Ji="_divider_34001_175",er="_banner_34001_181",tr="_countText_34001_189",nr="_warningIcon_34001_193",sr="_skipWithSubmit_34001_199",ar="_manageAccountForm_34001_213",or="_userName_34001_216",ir="_pharmacyContent_34001_226",ie={container:qi,header:Hi,heading:Oi,subHeading:Wi,headerContent:Ui,content:Gi,contentDiv:Yi,submitButtonContainer:Qi,submitButton:Vi,text:Ki,error:Zi,backButton:Xi,divider:Ji,banner:er,countText:tr,warningIcon:nr,skipWithSubmit:sr,manageAccountForm:ar,userName:or,pharmacyContent:ir},rr=({onChange:v=()=>null,handleAddDoctor:T})=>{const o=Ye(),N=Me(),i=M(f=>f.userProfile.userProfile.syncId),[j,S]=t.useState([]),[s,C]=t.useState(!1),[h,z]=t.useState(!1),{user:H,getAccessTokenSilently:m}=Be(),[I,Z]=t.useState(0),c=M(f=>f.planTypeDetail.selectedPlanType),$=async()=>H?await m():"",a=M(f=>f.doctorDetails.doctorNames),d=M(f=>f.doctorDetails.selectedDoctor),U=M(f=>f.doctorDetails.isSearchDoctor),[r,w]=t.useState(V(Ot,"")),B=()=>e.jsxs("span",{className:ie.countText,children:[10-I," additional locations."]}),[D,te]=t.useState([]),[X,se]=t.useState(!1),[ae,Pe]=t.useState(!1),ge=t.useCallback(async()=>{const f=Y=>{const Q=Y.map(A=>{const{presentationName:x,NPI:q}=A;return{presentationName:x,NPI:q}});cs(a,Q)&&o(ls(Q||[])),K(ds,Q)},k=await $(),R=await _n(k);o(R?Wt(!1):Wt(!0));const E=(R==null?void 0:R.providers)??[];o(xt((E==null?void 0:E.length)===0)),f(E),te(E)},[o,a]);t.useEffect(()=>{ge()},[]);const F=async()=>{const f=await $(),k=[],R=j.reduce((E,Y)=>{const{NPI:Q,selectedAddresses:A}=Y;return k.push({addressId:A[0],isPrimary:!1,npi:String(Q)}),E},[]);await Promise.all(R),await Ut(k,i,f),await ge(),T&&T()},pe=f=>{o(We(null)),o(us(null)),b()},Ce=()=>{d?o(We(null)):U&&D.length?o(xt(!1)):N.push({pathname:ne,search:"#pharmacy"}),b()},_e=()=>{!d&&!U&&pe(),v(!0)},G=async f=>{var k,R;se(!0),C(!0),U?((k=document.getElementById("subHeading"))==null||k.scrollIntoView(),o(Le(!0)),await F(),o(Le(!1)),o(xt(!1)),S([])):d?((R=document.getElementById("subHeading"))==null||R.scrollIntoView(),await n(),o(We(null)),_e()):N.push({pathname:ne,search:"#prescription"}),se(!1),C(!1)},ce=async()=>{const{NPI:f,selectedAddresses:k,addresses:R}=d,Y=R.filter(y=>!k.includes(y.id)).reduce((y,{id:J})=>(y.push({addressId:J,npi:String(f)}),y),[]);Y.length&&await Gt(Y,i);const Q=R.map(y=>y.id),x=k.filter(y=>!Q.includes(y)).reduce((y,J)=>(y.push({addressId:J,isPrimary:!1,npi:String(f)}),y),[]),q=await $();x.length&&await Ut(x,i,q)},le=async()=>{const{NPI:f,addresses:k}=d,R=k.reduce((E,{id:Y})=>(E.push({addressId:Y,npi:String(f)}),E),[]);await Gt(R,i)},n=async()=>{o(Le(!0)),await ce(),await ge(),o(We(null)),o(Le(!1))},_=async()=>{o(Le(!0)),await le(),await ge(),o(We(null)),o(Le(!1))},O=f=>{p("")},P=async(f,k)=>{let R=j.filter(E=>E.NPI!==f.NPI);k.length?(f.selectedAddresses=k,S([...R,f])):S([...R])};t.useEffect(()=>{Pe(!!j.length);const f=D.reduce((E,Y)=>E+Y.addresses.length,0),k=j.reduce((E,Y)=>E+Y.selectedAddresses.length,0),R=f+k;Z(R),R>=10?z(!0):z(!1)},[j]),t.useEffect(()=>{var f;if(d){const R=D.filter(Q=>Q.NPI!==d.NPI).reduce((Q,A)=>Q+A.addresses.length,0),E=((f=d.selectedAddresses)==null?void 0:f.length)||0;R+E>=10?z(!0):z(!1)}},[d]);const b=()=>{const f=D.reduce((k,R)=>k+R.addresses.length,0);Z(f),f>=10?z(!0):z(!1)};t.useEffect(()=>{b()},[D]);const p=f=>{K(Ot,f),w(f)},g=t.useMemo(()=>!!(U&&!ae),[ae,U]),oe=()=>U?zi:d?Ri:Mi,fe=()=>{N.push({pathname:ne,search:"#prescription"})};return e.jsx(e.Fragment,{children:e.jsx("div",{className:ie.quickProfile,children:e.jsxs("div",{className:ie.container,children:[e.jsx("div",{className:ie.header,children:e.jsxs("div",{className:ie.headerContent,children:[e.jsx(ye,{className:ie.heading,text:" Let’s get a list of your doctors."}),e.jsx(ye,{className:ie.subHeading,id:"subHeading",text:"Add your doctors so we can make sure your doctors are in network."}),e.jsx(ze,{selectedPlanType:c})]})}),e.jsxs("div",{className:ie.contentDiv,children:[h&&e.jsxs(we,{className:ie.banner,id:"maxReached",children:[e.jsx(Pt,{className:ie.warningIcon,image:Li}),"You have reached the maximum of 10 locations selected."]}),!h&&I>0&&e.jsxs(we,{className:ie.banner,id:"selectedAddressCount",children:["You may select a maximum of 10 locations. Add up to  ",e.jsx(B,{})]}),e.jsx("div",{className:ie.pharmacyContent,children:e.jsx(rs,{defaultValue:r,doctorsList:D,handleDeleteDoctor:_,handleDoctor:P,onChange:p,onClear:O,maxReached:h,showAdd:!0,PER_PAGE:4,isFromQuickProfile:!0})}),e.jsx("div",{className:ie.divider}),e.jsx("div",{className:ie.submitButtonContainer,children:s?e.jsx(Qe,{}):e.jsxs(e.Fragment,{children:[e.jsx(Ve,{className:ie.backButton,disabled:!1,onClick:Ce,label:"Back"}),e.jsxs("div",{className:ie.skipWithSubmit,children:[e.jsx(it,{skipButtonClicked:fe}),e.jsx(Ie,{className:ie.submitButton,disabled:g,onClick:G,label:oe(),type:"submit"})]})]})})]})]})})})},cr="data:image/svg+xml,%3csvg%20id='Info'%20xmlns='http://www.w3.org/2000/svg'%20width='23'%20height='23'%20viewBox='0%200%2023%2023'%3e%3cg%20id='Group_185'%20data-name='Group%20185'%20transform='translate(6.5%20-3.499)'%3e%3cg%20id='Group_3012'%20data-name='Group%203012'%3e%3cpath%20id='Path_2814'%20data-name='Path%202814'%20d='M8,15.5H8A7.5,7.5,0,1,1,15.5,8,7.5,7.5,0,0,1,8,15.5Z'%20transform='translate(-3%206.999)'%20fill='%23fff'%20stroke='%231157ee'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='1'/%3e%3cg%20id='Group_3014'%20data-name='Group%203014'%20transform='translate(-2.713%20-15.505)'%3e%3cpath%20id='Path_881'%20data-name='Path%20881'%20d='M5.712,11.108a.453.453,0,0,1,.466-.449H7.192V6.974h-.9a.453.453,0,1,1,0-.905H7.7c.323,0,.5.224.5.565v4.025H9.213a.455.455,0,1,1,0,.91H6.178a.454.454,0,0,1-.466-.461'%20transform='translate(0%2023.5)'%20fill='%231157ee'/%3e%3cpath%20id='Path_882'%20data-name='Path%20882'%20d='M6.576,3.887a.869.869,0,1,1,.869.869.872.872,0,0,1-.869-.869'%20transform='translate(0%2023.5)'%20fill='%231157ee'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",lr="I am only permitted to discuss health-related topics you select from the list below. If a box isn’t checked, we cannot discuss it at this meeting. To ensure I cover all the information that is important to you, please check the products you would like to talk about with me, or simply select all.",dr="I am enrolling myself (or helping the enrollee complete this form).",ur="I am an authorized legal representative (including valid power of of attorney or Legal Guardian) and I am authorized to act on behalf of the individual listed on this enrollment form under the laws of the State where the individual resides. ",Vt="By checking this box, I have read and understand the contents of the Scope of Appointment form, and that I confirm that the information I have provided is accurate. If submitted by an authorized individual (as described above), this submission certifies that 1) this person is authorized under State law to complete the Scope of Appointment form, and 2) documentation of this authority is available upon request by Medicare.",mr="The Centers for Medicare and Medicaid Services requires agents to document the scope of a marketing appointment prior to any face-to-face sales meeting to ensure understanding of what will be discussed between the agent and the Medicare beneficiary (or their authorized representative). All information provided on this form is confidential and should be completed by each person with Medicare or his/her authorized representative. By completing and acknowledging this form, you agree to a meeting with a sales agent to discuss the types of products you indicated above. Please note, the person who will discuss the products is either employed or contracted by a Medicare plan. They do not work directly for the federal government. This individual may also be paid based on your enrollment in a plan. Signing this form does NOT obligate you to enroll in a plan, affect your current enrollment, enroll you in a Medicare plan, and automatic enrollment will not occur.",yn=[{title:"Medicare Advantage (Part C)",content:"Medicare Part C, commonly known as Medicare Advantage, is coverage offered by private insurance companies that have a contract with the federal government. Medicare Advantage combines your Part A hospital, Part B medical and often Part D prescription drug coverage into one plan."},{title:"Medicare Supplement (Medigap)",content:"To help fill coverage gaps, many private insurance companies offer Medicare Supplement, or “Medigap”, insurance policies that help pay for your health care costs. When you have a Medigap policy, Medicare continues to pay its share of the approved amount for covered services. Your Medigap policy then pays its share."},{title:"Medicare Prescription (Part D)",content:"Medicare Prescription Drug coverage (or Part D) helps you pay for your prescription drugs. All Part D plans — including Medicare Advantage plans with Part D benefits — cover a wide range of prescription drugs."},{title:"Ancillary Products",content:"Ancillary products are coverage options that are generally not covered by Medicare, but are still important when it comes to your health. Some ancillary services often include vision, dental and hearing coverage, and hospital indemnity products."}],Kt=yn.map(({title:v})=>v),hr="_container_1pxog_88",pr="_countyTextField_1pxog_92",_r="_text_1pxog_98",gr="_textError_1pxog_111",fr="_selectIconStyle_1pxog_116",xr="_selectIconStyleActive_1pxog_138",Cr="_labelClassName_1pxog_143",br="_errorText_1pxog_147",Zt={container:hr,countyTextField:pr,text:_r,"MuiSvgIcon-root":"_MuiSvgIcon-root_1pxog_103",textError:gr,selectIconStyle:fr,selectIconStyleActive:xr,labelClassName:Cr,errorText:br},yr=({className:v="",id:T,onChange:o,labelClass:N=Zt.text,labelName:i="County",counties:j,county:S,...s})=>{const C=j==null?void 0:j.length,h=m=>{let I="";return Array.isArray(j)&&C&&(I=j.find(Z=>Z.countyFIPS===m),I=(I==null?void 0:I.countyName)||""),I},z=m=>{const I=m.target.value;s.setCounty(I)},H=m=>m?h(m):"Select One";return e.jsx(ms,{className:v,renderValue:H,displayValue:S,list:j,id:s.id||"county",label:`${s.label||"County"}`,labelClassName:Zt.labelClassName,onChange:z,...s})},vn="750px",vr="1200px",Nr="_container_1dgcd_93",jr="_header_1dgcd_101",wr="_heading_1dgcd_108",Pr="_subHeading_1dgcd_112",kr="_headerContent_1dgcd_121",Sr="_content_1dgcd_130",Ir="_contentDiv_1dgcd_141",Ar="_description_1dgcd_148",Dr="_divider_1dgcd_154",Tr="_block_1dgcd_160",$r="_box_1dgcd_167",Br="_selectAllBox_1dgcd_173",Fr="_checkboxBlock_1dgcd_181",Er="_checked_1dgcd_188",Lr="_inputWidth_1dgcd_192",Mr="_stateDropdown_1dgcd_197",zr="_contyDropdown_1dgcd_213",Rr="_dropdownClassName_1dgcd_227",qr="_twoColumn_1dgcd_231",Hr="_mb10_1dgcd_240",Or="_dropdownWidth_1dgcd_244",Wr="_buttonContainer_1dgcd_249",Ur="_ARcontainer_1dgcd_256",Gr="_formContainer_1dgcd_260",Yr="_aRCheckBox_1dgcd_266",Qr="_submitButtonContainer_1dgcd_270",Vr="_submitButton_1dgcd_270",Kr="_backButton_1dgcd_283",Zr="_termTextContainer_1dgcd_287",Xr="_requiredFields_1dgcd_300",Jr="_termsText3_1dgcd_308",ec="_infoIcon_1dgcd_312",tc="_identify_1dgcd_316",nc="_optional_1dgcd_320",sc="_tooltipContentClassName_1dgcd_325",ac="_tooltip_1dgcd_325",oc="_loaderContainer_1dgcd_333",ic="_skipWithSubmit_1dgcd_338",rc="_rsaContent_1dgcd_355",l={mobileWidth:vn,tabletWidth:vr,container:Nr,header:jr,heading:wr,subHeading:Pr,headerContent:kr,content:Sr,contentDiv:Ir,description:Ar,divider:Dr,block:Tr,box:$r,selectAllBox:Br,checkboxBlock:Fr,checked:Er,inputWidth:Lr,stateDropdown:Mr,contyDropdown:zr,dropdownClassName:Rr,twoColumn:qr,mb10:Hr,dropdownWidth:Or,buttonContainer:Wr,ARcontainer:Ur,formContainer:Gr,aRCheckBox:Yr,submitButtonContainer:Qr,submitButton:Vr,backButton:Kr,termTextContainer:Zr,requiredFields:Xr,termsText3:Jr,infoIcon:ec,identify:tc,optional:nc,tooltipContentClassName:sc,tooltip:ac,loaderContainer:oc,skipWithSubmit:ic,rsaContent:rc},cc=({products:v})=>{const T=Me(),[o,N]=t.useState(!1),{isAuthenticated:i}=Be(),[j,S]=t.useState(""),[s,C]=t.useState(""),[h,z]=t.useState([]),[H,m]=t.useState(!1),[I,Z]=t.useState(!1),[c,$]=t.useState(!1),{purlAgentData:a}=t.useContext(rt),d=V(Jt)||a,{getCounties:U}=t.useContext(dn),{userData:r}=M(A=>A.userDetails),[w,B]=t.useState([]),[D,te]=t.useState(""),[X,se]=t.useState(null),[ae,Pe]=t.useState({firstName:"",lastName:"",middleName:"",phone:"",address1:"",address2:"",city:"",state:"",zip:""}),{clearErrors:ge,formState:{errors:F,isDirty:pe,dirtyFields:Ce},handleSubmit:_e,register:G,setError:ce,setValue:le,watch:n,reset:_}=kt({defaultValues:{}}),{Post:O}=$e(`${yt}/Soa`,!i),{Put:P}=$e(`${yt}/Soa/${D}`,!i),b=n("authorizedrepresentativePostalCode"),p=n("authorizedrepresentativePhoneNumber"),g=n("authorizedRepresentativeFirstName");n("authorizedRepresentativeMiddleInitial");const oe=n("authorizedrepresentativelastName"),fe=n("authorizedrepresentativeCity"),f=n("authorizedrepresentativeAddressLine1"),k=n("relationshipToBeneficiary"),R=()=>{T.push({pathname:ne,search:"#coverage"})};t.useEffect(()=>{const A=async()=>{if(ge("authorizedrepresentativePostalCode"),ge("stateCode"),S(""),le("county",""),le("countyFips",""),le("stateCode",""),B([]),b&&b.length!==5){ce("authorizedrepresentativePostalCode",{type:"pattern"});return}if(b&&b.length===5)if(hn(b)){const x=await U(b);if(!x||x.length===0)ce("authorizedrepresentativePostalCode",{type:"pattern"});else{z(x.map(({countyFIPS:y,countyName:J,...ve})=>Object.assign({label:J,value:y,countyFIPS:y,countyName:J,...ve})));const q=[];if(x.map(y=>(q.indexOf(y.state)===-1&&q.push(y.state),y)),q.length===1){const y=Te.filter(J=>J.value===x[0].state);le("county",x[0].countyName,{shouldDirty:!0}),le("countyFips",x[0].countyFIPS,{shouldDirty:!0}),le("stateCode",x[0].state,{shouldDirty:!0}),S(x[0].state),C(x[0].countyFIPS),B(y)}else{const y=Te.filter(J=>q.indexOf(J.value)>-1);B(y),ce("stateCode",{type:"required"})}}}else ce("authorizedrepresentativePostalCode",{type:"pattern"})};Ce.authorizedrepresentativePostalCode&&A()},[b]),t.useEffect(()=>{if(p){let A=Cn(p);p.length<5&&p.indexOf("-")===3&&p.length<9&&p.lastIndexOf("-")===6||le("authorizedrepresentativePhoneNumber",A)}},[p]),t.useEffect(()=>{if(r){const{email:A,firstName:x,lastName:q,phoneNumber:y,aptSuiteNumber:J,streetAddress:ve,city:Se,stateCode:Fe,zip:Re}=r;Pe({...ae,firstName:x,lastName:q,email:A,phone:y,address1:ve,address2:J,city:Se,state:Fe,zip:Re})}},[r]),t.useEffect(()=>{const A=async()=>{try{m(!0);const{authorizedRepresentativeFirstName:x,authorizedRepresentativeMiddleInitial:q,authorizedrepresentativelastName:y,authorizedrepresentativeAddressLine1:J,authorizedrepresentativeAddressLine2:ve,authorizedrepresentativeCity:Se,authorizedrepresentativePostalCode:Fe,authorizedrepresentativePhoneNumber:Re,relationshipToBeneficiary:ct,stateCode:lt}=X,qe=o?{authorizedRepresentative:{firstName:x,middleName:q,lastName:y,address1:J,address2:ve,city:Se,state:lt,zip:Fe,phone:Re,relationshipToBeneficiary:ct}}:{},{firstName:dt,lastName:ut,middleName:mt,email:Ke,phone:u,address1:W,address2:de,city:xe,state:ke,zip:Ze}=ae,Xe=d?{firstName:d.agentFirstName,lastName:d.agentLastName,phoneNumber:d.virtualNumber,email:d.email,acceptedSOA:I,agentNpn:d.agentNpn,caLicense:d.caLicense}:{};(await P({leadId:Ge(),consumerId:r==null?void 0:r.consumerId,email:Ke,leadSection:{leadId:Ge(),products:v,beneficiary:{firstName:dt,middleName:mt,lastName:ut,address1:W,address2:de,city:xe,state:ke,zip:Ze,phone:u},hasAuthorizedRepresentative:o,authorizedRepresentative:{...qe},acceptedSOA:I,submittedDateTime:new Date().toISOString()},agentSection:{...Xe},isExpired:!0},!0)).ok&&T.push({pathname:ne,search:i?"#complete":"#create"})}catch(x){console.error(x)}finally{te(""),m(!1)}};D&&(D!=null&&D.trim())&&X&&A()},[D,X]),t.useEffect(()=>{const A=async()=>{try{m(!0);const x={consumerId:r==null?void 0:r.consumerId,leadId:Ge(),leadFirstName:r==null?void 0:r.firstName,leadLastName:r==null?void 0:r.lastName,leadEmail:r==null?void 0:r.email,agentFirstName:d==null?void 0:d.agentFirstName,agentLastName:d==null?void 0:d.agentLastName,agentPhoneNumber:d==null?void 0:d.virtualNumber,agentEmail:d==null?void 0:d.email,agentNpn:d==null?void 0:d.agentNpn,agentPurl:d==null?void 0:d.agentPurlCode,messageDestination:"NA",messageType:"NA",caLicense:d==null?void 0:d.caLicense,isTracking48HoursWaitingPeriod:!0},q=await O(x,!0),y=await It(q);y.linkCode&&te(y.linkCode)}catch(x){console.error(x)}finally{m(!1)}};(i&&(r!=null&&r.consumerId)||!i&&(r!=null&&r.leadId))&&A()},[r,i]);const E=async A=>{try{m(!0),se({...A})}catch{}finally{m(!1)}};t.useEffect(()=>{$(!1)},[pe]);const Y=o?!pe||c||F.stateCode||(F==null?void 0:F.authorizedrepresentativePhoneNumber)||!(g!=null&&g.trim())||!(oe!=null&&oe.trim())||!b||!(fe!=null&&fe.trim())||!(f!=null&&f.trim())||!(p!=null&&p.trim())||!(k!=null&&k.trim())||!(p!=null&&p.trim())||!!(F!=null&&F.authorizedrepresentativePostalCode)||!I||!v.length||!D:!I||!v.length||!D,Q=()=>{T.push({pathname:ne,search:i?"#complete":"#create"})};return e.jsx("form",{onSubmit:_e(E),children:e.jsxs("div",{className:l.ARcontainer,children:[e.jsx(Yt,{className:l.aRCheckBox,id:"terms",name:"term",label:dr,checked:!o,onChange:()=>N(!o)}),e.jsx(Yt,{className:l.aRCheckBox,id:"terms",name:"terms",label:ur,checked:o,onChange:()=>N(!o)}),e.jsxs(e.Fragment,{children:[o&&e.jsxs("div",{className:l.formContainer,children:[e.jsx(un,{id:"authorizedRepresentativeFirstName",register:G,autoFocus:!0,error:F.authorizedRepresentativeFirstName,labelText:"Authorized Representative’s First Name",className:l.inputWidth,required:!0,noPlaceholder:!0}),e.jsx(et,{id:"authorizedRepresentativeMiddleInitial",fieldClassName:`${l.textFieldMiddleInitial} ${l.middleInitialAr}`,labelClassName:l.label,labelText:"Authorized Representative’s Middle Initial",register:G,type:"text",className:l.inputWidth,noPlaceholder:!0}),e.jsx(mn,{error:F.authorizedrepresentativelastName,id:"authorizedrepresentativelastName",labelText:"Authorized Representative’s Last Name*",register:G,className:l.inputWidth,required:!0,place:!0,noPlaceholder:!0}),e.jsx(et,{error:F.authorizedrepresentativeAddressLine1,errorMessage:"Please enter your address line 1",errorMessagePattern:"Please enter a valid address line 1",fieldClassName:l.textField,id:"authorizedrepresentativeAddressLine1",labelText:"Street Address *",pattern:/^[0-9a-zA-Z #'.,-]{4,}$/i,register:G,required:!0,type:"text",className:l.inputWidth}),e.jsx(vt,{id:"authorizedrepresentativeAddressLine2",register:G,error:F.address,className:l.inputWidth,place:!0,labelText:e.jsxs(e.Fragment,{children:["Apt, Suite Number"," ",e.jsx(we,{text:"(Optional)",className:l.optional})]}),required:!1}),e.jsxs("div",{className:`${l.twoColumn} ${l.mb10}`,children:[e.jsx(fn,{id:"authorizedrepresentativeCity",register:G,error:F.city,labelText:"City *",required:!0}),e.jsx(xn,{id:"stateCode",register:G,label:"State *",error:{...F.stateCode,message:"Please select state"},required:!0,state:j,setState:S,className:l.stateDropdown,dropdownClassName:l.dropdownWidth,stateList:w,renderValue:A=>{var x;return A?(x=Te.find(q=>q.value===A))==null?void 0:x.label:"Select one"}})]}),e.jsxs("div",{className:l.twoColumn,children:[e.jsx(et,{error:F.authorizedrepresentativePostalCode,errorMessage:"Please enter zip code",errorMessagePattern:"Please enter a valid zip code",fieldClassName:l.textField,id:"authorizedrepresentativePostalCode",labelClassName:l.label,labelText:"Zip Code*",pattern:/^[0-9]{5}$/,register:G,required:!0,type:"text",className:l.inputWidth}),e.jsx(yr,{id:"county",register:G,label:"County *",error:{...F.county,message:"Please select county"},required:!0,county:s,setCounty:C,className:l.contyDropdown,dropdownClassName:l.dropdownWidth,counties:h,renderValue:A=>{var x;return A?(x=h.find(q=>q.value===A))==null?void 0:x.label:"Select one"}})]}),e.jsx(gn,{error:F==null?void 0:F.authorizedrepresentativePhoneNumber,id:"authorizedrepresentativePhoneNumber",labelText:"Phone",register:G,required:!0,className:l.inputWidth,setError:ce}),e.jsx(et,{defaultValue:"",error:F.relationshipToBeneficiary,errorMessage:"Please enter relationship to beneficiary",errorMessagePattern:"Please enter a valid relationship to beneficiary",fieldClassName:l.textField,id:"relationshipToBeneficiary",labelClassName:l.label,labelText:"Relationship to Beneficiary*",pattern:/^[A-Za-z]{1,50}$/i,register:G,required:!0,type:"text",className:l.inputWidth}),e.jsx(St,{className:l.requiredFields,text:"* Required Fields"})]}),e.jsx("div",{className:l.divider}),e.jsx(Nt,{checkBoxClassName:l.aRCheckBox,checked:I,id:Vt,label:Vt,onChange:()=>Z(!I)}),e.jsx("div",{className:l.divider}),e.jsx("div",{className:l.termTextContainer,children:e.jsx(nt,{className:l.termsText3,text:mr})}),e.jsx("div",{className:l.divider}),e.jsx("div",{className:l.submitButtonContainer,children:H?e.jsx(Qe,{}):e.jsxs(e.Fragment,{children:[e.jsx(Ve,{className:l.backButton,disabled:!1,onClick:A=>{A.preventDefault(),R()},label:"Back",type:"button"}),e.jsxs("div",{className:l.skipWithSubmit,children:[e.jsx(it,{skipButtonClicked:Q}),e.jsx(Ie,{className:l.submitButton,disabled:Y,label:"Continue",type:"submit"})]})]})})]})]})})},lc=()=>{const[v,T]=t.useState(!1),o=M(s=>s.planTypeDetail.selectedPlanType),[N,i]=t.useState([]),j=s=>{const{checked:C,value:h}=s.target;let z=[];C===!0?z=[...new Set([...N,h])]:z=[...N].filter(H=>H!==h),i(z)},S=s=>{i(s.target.checked?[...Kt]:[])};return e.jsxs(e.Fragment,{children:[e.jsx(tn,{queries:{mobile:{maxWidth:vn}},onChange:s=>{T(s.mobile)}}),e.jsxs("div",{className:l.container,children:[e.jsx("div",{className:l.header,children:e.jsxs("div",{className:l.headerContent,children:[e.jsx(ye,{className:l.heading,text:`${v?"Request an SOA.":"Request a Scope of Appointment."}`}),e.jsx(ye,{className:l.subHeading,text:"Select and confirm the following details if you’d like to request a scope of appointment with me:"}),e.jsx(ze,{selectedPlanType:o})]})}),e.jsx("div",{className:l.contentDiv,children:e.jsxs("div",{className:l.rsaContent,children:[e.jsx(nt,{className:l.description,text:lr}),e.jsxs("div",{className:l.block,children:[e.jsx("div",{children:e.jsx(Nt,{checkBoxClassName:`${l.selectAllBox}`,id:"Select All",label:"Select All",onChange:S})}),Kt.map((s,C)=>e.jsxs("div",{className:`${l.checkboxBlock} ${N.includes(s)?l.checked:""}`,children:[e.jsx(Nt,{checkBoxClassName:l.box,checked:N.includes(s),id:s,label:s,onChange:j,value:s}),e.jsx(hs,{title:e.jsx(e.Fragment,{children:e.jsx(Pt,{className:l.infoIcon,image:cr,id:"informationIcon"})}),content:yn[C].content,className:l.tooltip,tooltipContentClassName:l.tooltipContentClassName,width:360})]}))]}),e.jsx("div",{className:l.divider}),e.jsx(ps,{className:l.identify,text:"Please Identify Yourself"}),e.jsx(cc,{products:N})]})})]})]})},yc=()=>{const v=ot.useLocation(),T=ot.useHistory(),o=new URLSearchParams(v.search),N=t.useRef(!0),i="Lets Get Started",j="I'm a licensed insurance agent here to help with your insurance needs.",S="To help ensure accuracy, please follow the steps to get synced. Throughout this process, you can request a Scope of Appointment with me. And once you're done, you'll have a profile where you can log in to see your coverage details, card information and updates.",s=t.useContext(rt),C=V(st)||s,{user:h,getAccessTokenSilently:z}=Be(),H=async()=>h?await z():"",m=window.location.href.substring(window.location.href.indexOf("#")+1),I=async()=>{T.push({pathname:ne,search:`?${o==null?void 0:o.toString()}#personalInformation`})};return t.useEffect(()=>{(async()=>{const c=await _s();if(c&&K(st,c),c!=null&&c.isFinalExpenseAgent&&!(c!=null&&c.isMedicareAgent))T.push(gs);else if(N.current||V(At)){const $=await H(),a=await fs($),d=await pn($),U=d==null?void 0:d.map(D=>D.name),r=await _n($),B=((r==null?void 0:r.providers)??[]).map(D=>{const{presentationName:te,NPI:X}=D;return{presentationName:te,NPI:X}},[]);K("selectedDoctorNames",B),K("selectedPrescriptions",a),K("selectedPharmacyNames",U),K("updateStatus",!0),N.current=!1}})()},[]),e.jsxs(e.Fragment,{children:[e.jsx(jt,{children:e.jsx("title",{children:"Quick Profile"})}),e.jsx(xs,{}),window.location.hash?m==="personalInformation"?e.jsx(To,{}):m==="pharmacy"?e.jsx(di,{}):m==="prescription"?e.jsx(Ei,{}):m==="doctors"?e.jsx(rr,{}):m==="rsa"?e.jsx(lc,{}):m==="coverage"?e.jsx(Ba,{}):m==="create"?e.jsx(Va,{}):e.jsx(zs,{}):e.jsx("div",{className:Ne.quickProfile,children:e.jsxs("div",{className:Ne.container,children:[e.jsx(an,{className:Ne.heading,text:`Hi, I’m ${C==null?void 0:C.agentFirstName} ${C==null?void 0:C.agentLastName}`}),e.jsxs("div",{className:Ne.contentDiv,children:[e.jsx(we,{className:Ne.content,text:j}),e.jsx(we,{className:Ne.content,text:S})]}),e.jsx(Ie,{onClick:()=>I(),className:Ne.button,label:i})]})})]})};export{yc as default};
//# sourceMappingURL=index-dd8riOLV.js.map