import{j as e,ab as ie,T as L,y as g,b8 as Es,b9 as Os,r as c,M as xt,d as _t,e as K,x as Q,eu as Rs,ev as Vs,ew as zs,A as Ut,ex as Kt,ey as Ys,w as Ws,a3 as Zs,ez as Gs,eA as qs,a6 as ut,$ as fe,a0 as Qt,a1 as Us,R as ve,aj as Ct,ac as _e,ad as Jt,a9 as Ks,ap as Oe,aq as Qs,ao as Xt,a$ as Js,d8 as Xs,be as ea,a2 as es,af as I,Z as ts,C as ta,I as sa,ca as aa,cb as na,s as re,ae as oa,ai as ra,q as ss,B as ia,m as be,bx as as,O as ns,a as la,eB as Ue,z as os,ay as ca,eC as da,eD as ma,eE as Ke,eF as Qe,eG as Je,eH as Xe,eI as et,eJ as tt,aA as pa,an as ht,X as ua,eK as wt,eL as ha,aC as xa,ag as _a,bj as Ca,et as ga,eM as At,P as Ht,eN as It,bq as rs,eO as fa,bt as ya,eP as ba,cB as ka,aB as Pa,bA as Na,bB as ja,bC as va,bw as Ta,bE as Ma,aD as Sa,_ as $a,ar as wa,dD as Aa,aa as Ha,dt as Ie}from"./index-CNnTZTc7.js";import{Y as is,c as Ia,L as Fa,f as La,b as Ft,N as Ba,a as Da,d as ne,e as xe,P as Ea,g as ls}from"./index-D8F8MyLb.js";import{C as Oa}from"./index-CmVzpSYf.js";import{Z as Re,Y as Ra}from"./index-DwKjEm5i.js";import{i as cs,a as ds,P as ms,b as Va,R as za,c as U,d as ee,D as ye,M as Ya}from"./image--E2tQ_ft.js";import{P as Wa}from"./index-Bw4LFgkY.js";import{P as Za,D as Ga,E as qa,a as Ua}from"./index-D_JFmAan.js";import{T as Ka}from"./index-BziwjlVU.js";import{I as Lt}from"./index-Ddf_f6bG.js";import{C as Bt}from"./index-DZ9xRCf6.js";import{S as Dt}from"./index-CuJEpems.js";import{S as Qa}from"./index-Dik5vxIa.js";import{I as Ja}from"./index-CMdZ8I_A.js";import{B as Xa}from"./index-DLpV2VPx.js";import"./index-BVurCHUJ.js";import"./getRequestCallBackUrl-BucEa6OS.js";import"./react-content-loader.es-SWnw4b2N.js";import"./index-BdMiE7YQ.js";import"./index-CXkscn3_.js";import"./CreateAccountContent-DZGa2EVX.js";import"./index-DHW9g59_.js";import"./getTrustedformCertURL-D1EGlseA.js";import"./index-DWK3LGj9.js";import"./index-DRQ-j669.js";import"./index-D-NY1ncL.js";import"./maskPhone-DNQbZbyn.js";import"./index-BLrqe2M3.js";import"./useWindowSize-CksQ0guy.js";const en="data:image/svg+xml,%3csvg%20width='36'%20height='32'%20viewBox='0%200%2036%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M24.75%2017.5C24.75%2017.3011%2024.671%2017.1103%2024.5303%2016.9697C24.3897%2016.829%2024.1989%2016.75%2024%2016.75H20.25V13C20.25%2012.8011%2020.171%2012.6103%2020.0303%2012.4697C19.8897%2012.329%2019.6989%2012.25%2019.5%2012.25H16.5C16.3011%2012.25%2016.1103%2012.329%2015.9697%2012.4697C15.829%2012.6103%2015.75%2012.8011%2015.75%2013V16.75H12C11.8011%2016.75%2011.6103%2016.829%2011.4697%2016.9697C11.329%2017.1103%2011.25%2017.3011%2011.25%2017.5V20.5C11.25%2020.6989%2011.329%2020.8897%2011.4697%2021.0303C11.6103%2021.171%2011.8011%2021.25%2012%2021.25H15.75V25C15.75%2025.1989%2015.829%2025.3897%2015.9697%2025.5303C16.1103%2025.671%2016.3011%2025.75%2016.5%2025.75H19.5C19.6989%2025.75%2019.8897%2025.671%2020.0303%2025.5303C20.171%2025.3897%2020.25%2025.1989%2020.25%2025V21.25H24C24.1989%2021.25%2024.3897%2021.171%2024.5303%2021.0303C24.671%2020.8897%2024.75%2020.6989%2024.75%2020.5V17.5Z'%20stroke='%23052A63'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M0.75%206.25H35.25V30.25H0.75V6.25Z'%20stroke='%23052A63'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.75%206.25V4C12.75%203.40326%2012.9871%202.83097%2013.409%202.40901C13.831%201.98705%2014.4033%201.75%2015%201.75H21C21.5967%201.75%2022.169%201.98705%2022.591%202.40901C23.0129%202.83097%2023.25%203.40326%2023.25%204V6.25'%20stroke='%23052A63'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",tn="_yourDoctor_1e9jf_88",sn="_iconDoctor_1e9jf_103",an="_subtitleText_1e9jf_107",st={yourDoctor:tn,iconDoctor:sn,subtitleText:an},ps=({onClick:t,className:s=""})=>e.jsxs("div",{className:`${st.yourDoctor} ${s}`,onClick:t,children:[e.jsx(ie,{alt:"Doctor's briefcase with a cross on the front",className:st.iconDoctor,image:en}),e.jsx(L,{text:"Doctors",className:st.subtitleText})]}),nn="data:image/svg+xml,%3csvg%20width='31'%20height='32'%20viewBox='0%200%2031%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.916992%2010.0292C0.916992%2012.2029%201.78047%2014.2875%203.31747%2015.8245C4.85447%2017.3615%206.9391%2018.225%209.11274%2018.225C11.2864%2018.225%2013.371%2017.3615%2014.908%2015.8245C16.445%2014.2875%2017.3085%2012.2029%2017.3085%2010.0292C17.3085%207.8556%2016.445%205.77098%2014.908%204.23398C13.371%202.69697%2011.2864%201.8335%209.11274%201.8335C6.9391%201.8335%204.85447%202.69697%203.31747%204.23398C1.78047%205.77098%200.916992%207.8556%200.916992%2010.0292Z'%20fill='white'%20stroke='%23052A63'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M22.0133%2029.1712C20.9492%2030.2353%2019.506%2030.8331%2018.0012%2030.8331C16.4963%2030.8331%2015.0531%2030.2353%2013.989%2029.1712C12.9249%2028.1071%2012.3271%2026.6639%2012.3271%2025.1591C12.3271%2023.6542%2012.9249%2022.211%2013.989%2021.1469L20.2304%2014.9055C21.2945%2013.8414%2022.7377%2013.2437%2024.2425%2013.2437C25.7474%2013.2437%2027.1906%2013.8414%2028.2547%2014.9055C29.3188%2015.9696%2029.9166%2017.4128%2029.9166%2018.9177C29.9166%2020.4225%2029.3188%2021.8657%2028.2547%2022.9298L22.0133%2029.1712Z'%20fill='white'%20stroke='%23052A63'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M17.1104%2018.0278L25.1346%2026.0521'%20stroke='%23052A63'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M22.0137%2016.6872C22.4546%2016.2462%2023.0163%2015.9459%2023.6279%2015.8242C24.2396%2015.7026%2024.8735%2015.7651%2025.4496%2016.0038'%20stroke='%23052A63'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M17.0894%208.1377H1.13672'%20stroke='%23052A63'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M1.13672%2011.9204H17.0894'%20stroke='%23052A63'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",on="_yourPharmacies_o74nc_88",rn="_iconPharmacy_o74nc_103",ln="_subtitleText_o74nc_107",at={yourPharmacies:on,iconPharmacy:rn,subtitleText:ln},us=({onClick:t,className:s=""})=>e.jsxs("div",{className:`${at.yourPharmacies} ${s}`,onClick:t,children:[e.jsx(ie,{alt:"Pharmacy Icon",className:at.iconPharmacy,image:nn}),e.jsx(L,{text:"Pharmacy",className:at.subtitleText})]}),cn="data:image/svg+xml,%3csvg%20width='36'%20height='29'%20viewBox='0%200%2036%2029'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='%23FFFFFF'%20d='M33.75%206.02087V24.5209C33.7476%2025.3379%2033.4308%2026.1207%2032.8687%2026.6984C32.3066%2027.2761%2031.5449%2027.6018%2030.75%2027.6042H20.25C19.4551%2027.6018%2018.6934%2027.2761%2018.1313%2026.6984C17.5692%2026.1207%2017.2524%2025.3379%2017.25%2024.5209V6.02087'%20stroke='%23052A63'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20fill='%23FFFFFF'%20d='M35.25%205.25004C35.25%205.45448%2035.171%205.65054%2035.0303%205.7951C34.8897%205.93966%2034.6989%206.02087%2034.5%206.02087H16.5C16.3011%206.02087%2016.1103%205.93966%2015.9697%205.7951C15.829%205.65054%2015.75%205.45448%2015.75%205.25004V3.70837C15.75%203.09506%2015.9871%202.50687%2016.409%202.07319C16.831%201.63951%2017.4033%201.39587%2018%201.39587H33C33.5967%201.39587%2034.169%201.63951%2034.591%202.07319C35.0129%202.50687%2035.25%203.09506%2035.25%203.70837V5.25004Z'%20stroke='%23052A63'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M33.75%2021.4375H24C23.8011%2021.4375%2023.6103%2021.3563%2023.4697%2021.2118C23.329%2021.0672%2023.25%2020.8711%2023.25%2020.6667V11.4167C23.25%2011.2123%2023.329%2011.0162%2023.4697%2010.8716C23.6103%2010.7271%2023.8011%2010.6459%2024%2010.6459H33.75V21.4375Z'%20stroke='%23052A63'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20fill='%23FFFFFF'%20d='M12.75%2025.2918C12.75%2025.9051%2012.5129%2026.4933%2012.091%2026.9269C11.669%2027.3606%2011.0967%2027.6043%2010.5%2027.6043H3C2.40326%2027.6043%201.83097%2027.3606%201.40901%2026.9269C0.987053%2026.4933%200.75%2025.9051%200.75%2025.2918C0.75%2024.6784%200.987053%2024.0902%201.40901%2023.6566C1.83097%2023.2229%202.40326%2022.9792%203%2022.9792H10.5C11.0967%2022.9792%2011.669%2023.2229%2012.091%2023.6566C12.5129%2024.0902%2012.75%2024.6784%2012.75%2025.2918V25.2918Z'%20stroke='%23052A63'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.75%2022.9792V27.6043'%20stroke='%23052A63'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20fill='%23FFFFFF'%20d='M13.6504%2012.0951C14.0723%2012.5287%2014.3092%2013.1168%2014.3092%2013.73C14.3092%2014.3432%2014.0723%2014.9313%2013.6504%2015.365L8.34045%2020.8209C7.91609%2021.2422%207.34774%2021.4752%206.75779%2021.47C6.16785%2021.4647%205.60352%2021.2215%205.18635%2020.7927C4.76919%2020.364%204.53256%2019.784%204.52743%2019.1777C4.5223%2018.5713%204.74909%2017.9872%205.15895%2017.551L10.4629%2012.0951C10.672%2011.8795%2010.9204%2011.7084%2011.1939%2011.5917C11.4673%2011.475%2011.7606%2011.4149%2012.0567%2011.4149C12.3528%2011.4149%2012.646%2011.475%2012.9195%2011.5917C13.193%2011.7084%2013.4414%2011.8795%2013.6504%2012.0951V12.0951Z'%20stroke='%23052A63'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.81055%2014.8191L10.992%2018.089'%20stroke='%23052A63'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",dn="_yourPrescriptions_1r4d4_88",mn="_iconPrescription_1r4d4_103",pn="_subtitleText_1r4d4_107",nt={yourPrescriptions:dn,iconPrescription:mn,subtitleText:pn},hs=({onClick:t,className:s=""})=>e.jsxs("div",{className:`${nt.yourPrescriptions} ${s}`,onClick:t,children:[e.jsx(ie,{alt:"Prescription bottle with two pills next to it",className:nt.iconPrescription,image:cn}),e.jsx(L,{text:"Rx",className:nt.subtitleText})]}),un="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32.001'%20height='32.001'%20viewBox='0%200%2032.001%2032.001'%3e%3cg%20id='Icon-Costs'%20transform='translate(1%201)'%3e%3cg%20id='Costs'%20transform='translate(-1%20-1)'%3e%3cpath%20id='Path_21217'%20data-name='Path%2021217'%20d='M1,16A15,15,0,1,0,5.393,5.393,15,15,0,0,0,1,16Z'%20fill='%23fff'%20stroke='%23052a63'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3cg%20id='Group_6462'%20data-name='Group%206462'%20transform='translate(12.002%209.348)'%3e%3cpath%20id='Path_21218'%20data-name='Path%2021218'%20d='M6.6,1.435H3.81A2.418,2.418,0,0,0,2.729,6.015L5.272,7.288a2.418,2.418,0,0,1-1.081,4.581h-2.8'%20fill='none'%20stroke='%23052a63'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3c/g%3e%3cg%20id='Group_6463'%20data-name='Group%206463'%20transform='translate(14.652%206.973)'%3e%3cpath%20id='Path_21219'%20data-name='Path%2021219'%20d='M1.348,1.87V3.826'%20fill='none'%20stroke='%23052a63'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3c/g%3e%3cg%20id='Group_6464'%20data-name='Group%206464'%20transform='translate(14.348%2019.931)'%3e%3cpath%20id='Path_21220'%20data-name='Path%2021220'%20d='M1.652,1.478V3.435'%20fill='none'%20stroke='%23052a63'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",hn="_yourMedicaid_135a5_88",xn="_icon_medicaid_135a5_103",_n="_text_135a5_107",ot={yourMedicaid:hn,icon_medicaid:xn,text:_n},xs=({onClick:t,className:s=""})=>e.jsxs("div",{className:`${ot.yourMedicaid} ${s}`,onClick:t,children:[e.jsx(ie,{alt:"Assistance",className:ot.icon_medicaid,image:un}),e.jsx(L,{text:"Assistance",className:ot.text})]}),Cn="_plansMobileHeaderInputs_137la_88",gn="_planMobileInputBox_137la_94",fn="_planMobileSelectedInputBox_137la_99",G={plansMobileHeaderInputs:Cn,planMobileInputBox:gn,planMobileSelectedInputBox:fn},yn=({addPrescription:t,onClick:s,onClickDoctor:a,onClickPharmacy:o,onClickPrescription:r,onClickMedicaid:n,zipCounty:d})=>{const u=g(_=>_.pharmacyDetails.pharmacyNames),l=g(_=>_.doctorDetails.doctorNames),m=g(_=>_.prescriptionDetails.drugNames),p=g(_=>_.medicaidDetails.selectedMedicaidOption);return e.jsx(e.Fragment,{children:e.jsxs("div",{className:G.plansMobileHeaderInputs,id:"plansMobileHeaderInputs",children:[e.jsx(is,{onClick:s,className:d?G.planMobileSelectedInputBox:G.planMobileInputBox}),e.jsx(us,{className:u!=null&&u.length?G.planMobileSelectedInputBox:G.planMobileInputBox,onClick:o}),e.jsx(ps,{onClick:a,className:l!=null&&l.length?G.planMobileSelectedInputBox:G.planMobileInputBox}),e.jsx(hs,{addPrescription:t,onClick:r,className:m!=null&&m.length?G.planMobileSelectedInputBox:G.planMobileInputBox}),e.jsx(xs,{onClick:n,className:p?G.planMobileSelectedInputBox:G.planMobileInputBox})]})})},bn="_plansSideHeaderInputs_iiv5t_88",kn="_sideBar_iiv5t_97",Pn="_selectedSideBar_iiv5t_103",q={plansSideHeaderInputs:bn,sideBar:kn,selectedSideBar:Pn},Nn=({addPrescription:t,onClick:s,onClickDoctor:a,onClickPharmacy:o,onClickPrescription:r,onClickMedicaid:n,zipCounty:d})=>{const u=g(h=>h.pharmacyDetails.pharmacyNames),l=g(h=>h.doctorDetails.doctorNames),m=g(h=>h.prescriptionDetails.drugNames),p=g(h=>h.medicaidDetails.selectedMedicaidOption),_=g(h=>h.prescriptionDetails.hasNoPrescriptions);return e.jsxs("div",{className:q.plansSideHeaderInputs,children:[e.jsx(is,{className:d?q.selectedSideBar:q.sideBar,onClick:s}),e.jsx(us,{className:u!=null&&u.length?q.selectedSideBar:q.sideBar,onClick:o}),e.jsx(ps,{className:l!=null&&l.length?q.selectedSideBar:q.sideBar,onClick:a}),e.jsx(hs,{addPrescription:t,className:m!=null&&m.length||_?q.selectedSideBar:q.sideBar,onClick:r}),e.jsx(xs,{className:p?q.selectedSideBar:q.sideBar,onClick:n})]})};var gt={},jn=Os;Object.defineProperty(gt,"__esModule",{value:!0});var _s=gt.default=void 0,vn=jn(Es()),Tn=e;_s=gt.default=(0,vn.default)((0,Tn.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined");const Mn="_infoIcon_syfz8_88",Sn="_headerClassName_syfz8_95",$n="_footerClassName_syfz8_104",wn="_headerHeadingClassName_syfz8_108",An="_modalBoxClassName_syfz8_114",Hn="_contentClassName_syfz8_118",In="_body2_syfz8_125",me={infoIcon:Mn,headerClassName:Sn,footerClassName:$n,headerHeadingClassName:wn,modalBoxClassName:An,contentClassName:Hn,body2:In},Te=({infoClassName:t,modalText:s})=>{const[a,o]=c.useState(!1);return e.jsxs(e.Fragment,{children:[e.jsx(_s,{className:`${me.infoIcon} ${t}`,onClick:()=>o(!0)}),e.jsx(xt,{isOpen:a,children:e.jsx(_t,{contentClassName:me.contentClassName,footerClassName:me.footerClassName,headerClassName:me.headerClassName,headerHeadingClassName:me.headerHeadingClassName,headerIconClassName:me.headerIconClassName,headerTitle:"Status Unavailable",modalBoxClassName:me.modalBoxClassName,onClose:()=>o(!1),children:e.jsx(K,{className:me.body2,text:s})})})]})},Cs="data:image/svg+xml,%3csvg%20width='36'%20height='32'%20viewBox='0%200%2036%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M24.75%2017.5C24.75%2017.3011%2024.671%2017.1103%2024.5303%2016.9697C24.3897%2016.829%2024.1989%2016.75%2024%2016.75H20.25V13C20.25%2012.8011%2020.171%2012.6103%2020.0303%2012.4697C19.8897%2012.329%2019.6989%2012.25%2019.5%2012.25H16.5C16.3011%2012.25%2016.1103%2012.329%2015.9697%2012.4697C15.829%2012.6103%2015.75%2012.8011%2015.75%2013V16.75H12C11.8011%2016.75%2011.6103%2016.829%2011.4697%2016.9697C11.329%2017.1103%2011.25%2017.3011%2011.25%2017.5V20.5C11.25%2020.6989%2011.329%2020.8897%2011.4697%2021.0303C11.6103%2021.171%2011.8011%2021.25%2012%2021.25H15.75V25C15.75%2025.1989%2015.829%2025.3897%2015.9697%2025.5303C16.1103%2025.671%2016.3011%2025.75%2016.5%2025.75H19.5C19.6989%2025.75%2019.8897%2025.671%2020.0303%2025.5303C20.171%2025.3897%2020.25%2025.1989%2020.25%2025V21.25H24C24.1989%2021.25%2024.3897%2021.171%2024.5303%2021.0303C24.671%2020.8897%2024.75%2020.6989%2024.75%2020.5V17.5Z'%20stroke='%23052A63'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M0.75%206.25H35.25V30.25H0.75V6.25Z'%20stroke='%23052A63'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.75%206.25V4C12.75%203.40326%2012.9871%202.83097%2013.409%202.40901C13.831%201.98705%2014.4033%201.75%2015%201.75H21C21.5967%201.75%2022.169%201.98705%2022.591%202.40901C23.0129%202.83097%2023.25%203.40326%2023.25%204V6.25'%20stroke='%23052A63'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Fn="_yourDoctor_1fmql_88",Ln="_iconDoctor_1fmql_94",Bn="_greyBorder_1fmql_103",Dn="_doctorSelectedBorder_1fmql_108",En="_doctorHeading_1fmql_113",On="_statusText_1fmql_118",Rn="_infoIcon_1fmql_124",Vn="_textContainer_1fmql_128",zn="_doctorText_1fmql_133",Yn="_addLink_1fmql_140",Wn="_editContainer_1fmql_148",Zn="_iconWithLabel_1fmql_155",pe={yourDoctor:Fn,iconDoctor:Ln,greyBorder:Bn,doctorSelectedBorder:Dn,doctorHeading:En,statusText:On,infoIcon:Rn,textContainer:Vn,doctorText:zn,addLink:Yn,editContainer:Wn,iconWithLabel:Zn},Gn=({className:t="",onClick:s})=>{const a=Q(),r=g(d=>d.doctorDetails.doctorNames).length,n=g(d=>d.doctorDetails.isApiFailed);return localStorage.getItem("clearDoctorFilterSearch")&&(localStorage.removeItem("clearDoctorFilterSearch"),a(Rs([]))),e.jsxs("div",{className:`${t} ${pe.yourDoctor} ${r?pe.doctorSelectedBorder:pe.greyBorder}`,children:[e.jsx(ie,{alt:"Doctor's briefcase with a cross on the front",className:pe.iconDoctor,image:Cs}),e.jsxs("div",{className:pe.textContainer,children:[e.jsx(L,{className:pe.doctorHeading,children:"Doctors"}),!n&&e.jsx(Re,{onClick:s,isFromPlansHeader:!0,zipCounty:r?`${r} Added`:"Select"}),n&&e.jsx(L,{className:pe.statusText,text:"Status temporarily unavailable"})]}),n&&e.jsx(Te,{infoClassName:pe.infoIcon,modalText:"Doctor service partner is not returning current status. Please try again later."})]})},qn="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32.001'%20height='32.001'%20viewBox='0%200%2032.001%2032.001'%3e%3cg%20id='Icon-Costs'%20transform='translate(1%201)'%3e%3cg%20id='Costs'%20transform='translate(-1%20-1)'%3e%3cpath%20id='Path_21217'%20data-name='Path%2021217'%20d='M1,16A15,15,0,1,0,5.393,5.393,15,15,0,0,0,1,16Z'%20fill='%23fff'%20stroke='%23052a63'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3cg%20id='Group_6462'%20data-name='Group%206462'%20transform='translate(12.002%209.348)'%3e%3cpath%20id='Path_21218'%20data-name='Path%2021218'%20d='M6.6,1.435H3.81A2.418,2.418,0,0,0,2.729,6.015L5.272,7.288a2.418,2.418,0,0,1-1.081,4.581h-2.8'%20fill='none'%20stroke='%23052a63'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3c/g%3e%3cg%20id='Group_6463'%20data-name='Group%206463'%20transform='translate(14.652%206.973)'%3e%3cpath%20id='Path_21219'%20data-name='Path%2021219'%20d='M1.348,1.87V3.826'%20fill='none'%20stroke='%23052a63'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3c/g%3e%3cg%20id='Group_6464'%20data-name='Group%206464'%20transform='translate(14.348%2019.931)'%3e%3cpath%20id='Path_21220'%20data-name='Path%2021220'%20d='M1.652,1.478V3.435'%20fill='none'%20stroke='%23052a63'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Un="_yourMedicaid_aimb4_88",Kn="_planHeaderYourMedicaid_aimb4_93",Qn="_greyBorder_aimb4_98",Jn="_medicaidBorder_aimb4_103",Xn="_planHeaderIconMedicaid_aimb4_108",eo="_iconMedicaid_aimb4_114",to="_yourMedicaidInline_aimb4_123",so="_medicaidHeading_aimb4_128",ao="_planHeaderTextContainer_aimb4_137",no="_textContainer_aimb4_142",oo="_medicaidText_aimb4_146",ro="_addLink_aimb4_159",io="_editContainer_aimb4_167",lo="_iconWithLabel_aimb4_173",se={yourMedicaid:Un,planHeaderYourMedicaid:Kn,greyBorder:Qn,medicaidBorder:Jn,planHeaderIconMedicaid:Xn,iconMedicaid:eo,yourMedicaidInline:to,medicaidHeading:so,planHeaderTextContainer:ao,textContainer:no,medicaidText:oo,addLink:ro,editContainer:io,iconWithLabel:lo},co=({displayIconOnLeft:t=!1,inlineMode:s=!1,isFromPlansHeader:a=!1,onClick:o,zipCounty:r})=>{const n=g(d=>d.medicaidDetails.selectedMedicaidOption);return e.jsxs("div",{className:`${se.yourMedicaid} ${s?se.yourMedicaidInline:""} ${a?se.planHeaderYourMedicaid:""} ${a?n?se.medicaidBorder:se.greyBorder:""}`,children:[e.jsx(ie,{alt:"Assistance",className:se.iconMedicaid,image:qn}),e.jsxs("div",{className:a?se.planHeaderTextContainer:se.textContainer,children:[e.jsx(L,{className:se.medicaidHeading,children:"Assistance"}),e.jsx(Re,{displayIconOnLeft:t,isFromPlansHeader:!0,onClick:o,zipCounty:n||"Select"})]})]})},gs="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='UpdatePharm'%3e%3cg%20id='Vector'%3e%3cpath%20d='M22.3808%209.03906V21.8903C22.3808%2022.434%2021.936%2022.8789%2021.3923%2022.8789H2.60965C2.06595%2022.8789%201.62109%2022.434%201.62109%2021.8903V9.03906'%20fill='white'/%3e%3cpath%20d='M22.3808%209.03906V21.8903C22.3808%2022.434%2021.936%2022.8789%2021.3923%2022.8789H2.60965C2.06595%2022.8789%201.62109%2022.434%201.62109%2021.8903V9.03906'%20stroke='%23052A63'%20stroke-width='1'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cpath%20id='Vector_2'%20d='M0.632812%204.09653L1.76966%201.13086H22.2328L23.3697%204.09653V7.06221C23.3697%208.14962%2022.3514%209.03933%2021.096%209.03933C19.8405%209.03933%2018.8223%208.14962%2018.8223%207.06221C18.8223%208.14962%2017.8041%209.03933%2016.5486%209.03933C15.2931%209.03933%2014.2749%208.14962%2014.2749%207.06221C14.2749%208.14962%2013.2567%209.03933%2012.0012%209.03933C10.7458%209.03933%209.72755%208.14962%209.72755%207.06221C9.72755%208.14962%208.70934%209.03933%207.45387%209.03933C6.1984%209.03933%205.18018%208.14962%205.18018%207.06221C5.18018%208.14962%204.16197%209.03933%202.9065%209.03933C1.65103%209.03933%200.632812%208.14962%200.632812%207.06221V4.09653Z'%20fill='white'%20stroke='%23052A63'%20stroke-width='1'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_3'%20d='M10.5173%2022.88H4.58594V12.9944C4.58594%2012.4507%205.03079%2012.0059%205.5745%2012.0059H9.52873C10.0724%2012.0059%2010.5173%2012.4507%2010.5173%2012.9944V22.88Z'%20stroke='%23052A63'%20stroke-width='1'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_4'%20d='M18.4269%2012.9941H14.4727V16.9484H18.4269V12.9941Z'%20stroke='%23052A63'%20stroke-width='1'%20stroke-miterlimit='10'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e",mo="_yourPharmacies_pm3zu_88",po="_iconPharmacy_pm3zu_94",uo="_greyBorder_pm3zu_103",ho="_pharmacySelectedBorder_pm3zu_108",xo="_pharmacyHeading_pm3zu_113",_o="_textContainer_pm3zu_118",Co="_statusText_pm3zu_123",go="_pharmacyText_pm3zu_129",fo="_infoIcon_pm3zu_136",yo="_addLink_pm3zu_140",bo="_editContainer_pm3zu_148",ko="_iconWithLabel_pm3zu_154",ue={yourPharmacies:mo,iconPharmacy:po,greyBorder:uo,pharmacySelectedBorder:ho,pharmacyHeading:xo,textContainer:_o,statusText:Co,pharmacyText:go,infoIcon:fo,addLink:yo,editContainer:bo,iconWithLabel:ko},Po=({className:t="",onClick:s})=>{const a=Q(),o=g(d=>d.pharmacyDetails.pharmacyNames);localStorage.getItem("clearPharmacyFilterSearch")&&(localStorage.removeItem("clearPharmacyFilterSearch"),a(Vs([])));const r=o==null?void 0:o.length,n=g(d=>d.pharmacyDetails.isApiFailed);return e.jsxs("div",{className:`${t} ${ue.yourPharmacies} ${r?ue.pharmacySelectedBorder:ue.greyBorder}`,children:[e.jsx(ie,{alt:"Pharmacy Icon",className:ue.iconPharmacy,image:gs}),e.jsxs("div",{className:ue.textContainer,children:[e.jsx(L,{className:ue.pharmacyHeading,children:"Pharmacy"}),n?e.jsx(L,{text:"Status temporarily unavailable",className:ue.statusText}):e.jsx(Re,{onClick:s,isFromPlansHeader:!0,zipCounty:r?`${r} Added`:"Select"})]}),n&&e.jsx(Te,{infoClassName:ue.infoIcon,modalText:"Pharmacy service partner is not returning current status. Please try again later."})]})},No="_bodySmallEllipsis_m6mae_88",jo={bodySmallEllipsis:No},vo=({className:t="",text:s=""})=>e.jsx(K,{className:`${t} ${jo.bodySmallEllipsis}`,text:s}),To="_moreCountText_xzf92_88",Mo="_bodySmallEllipsis_xzf92_93",So="_body2_xzf92_98",rt={moreCountText:To,bodySmallEllipsis:Mo,body2:So},$o=({count:t,text:s})=>e.jsxs("div",{className:rt.moreCountText,children:[e.jsx(vo,{className:rt.bodySmallEllipsis,text:s}),e.jsx(K,{className:rt.body2,text:t})]}),wo="_yourPrescriptions_whkq9_88",Ao="_iconPrescription_whkq9_94",Ho="_greyBorder_whkq9_103",Io="_prescriptionSelectedBorder_whkq9_108",Fo="_infoIcon_whkq9_113",Lo="_prescriptionHeading_whkq9_117",Bo="_textContainer_whkq9_122",Do="_prescriptionText_whkq9_127",Eo="_addLink_whkq9_134",Oo="_editContainer_whkq9_142",Ro="_iconWithLabel_whkq9_148",he={yourPrescriptions:wo,iconPrescription:Ao,greyBorder:Ho,prescriptionSelectedBorder:Io,infoIcon:Fo,prescriptionHeading:Lo,textContainer:Bo,prescriptionText:Do,addLink:Eo,editContainer:Oo,iconWithLabel:Ro},Vo=({addPrescription:t,className:s="",onClick:a})=>{const o=Q(),r=g(l=>l.prescriptionDetails.drugNames),n=g(l=>l.prescriptionDetails.isApiFailed),d=g(l=>l.prescriptionDetails.hasNoPrescriptions),u=r.length;return localStorage.getItem("clearPrescriptionsFilterSearch")&&(localStorage.removeItem("clearPrescriptionsFilterSearch"),o(zs([]))),e.jsxs("div",{className:`${s} ${he.yourPrescriptions} ${u||d?he.prescriptionSelectedBorder:he.greyBorder}`,children:[e.jsx(ie,{alt:"Prescription bottle with two pills next to it",className:he.iconPrescription,image:cs}),e.jsxs("div",{className:he.textContainer,children:[e.jsx(L,{className:he.prescriptionHeading,children:"Prescriptions"}),!n&&e.jsx(Re,{onClick:a,isFromPlansHeader:!0,zipCounty:u||d?`${u} Added`:"Select"}),n&&e.jsx("span",{className:he.prescriptionText,children:e.jsx($o,{text:"Status temporarily unavailable"})})]}),n&&e.jsx(Te,{infoClassName:he.infoIcon,modalText:"Prescription service partner is not returning current status. Please try again later."})]})},zo="_plansHeaderInputs_1celo_88",Yo="_divider_1celo_96",Wo={plansHeaderInputs:zo,divider:Yo},Zo=({addPrescription:t,className:s="",onClick:a,onClickDoctor:o,onClickPharmacy:r,onClickPrescription:n,onClickMedicaid:d,zipCounty:u=""})=>e.jsxs("div",{className:`${s} ${Wo.plansHeaderInputs}`,children:[e.jsx(Ra,{onClick:a,zipCounty:u,isFromPlansHeader:!0}),e.jsx(Po,{onClick:r}),e.jsx(Gn,{onClick:o}),e.jsx(Vo,{addPrescription:t,onClick:n}),e.jsx(co,{isFromPlansHeader:!0,onClick:d})]}),Go="_plans_104fo_88",qo="_plansHeader_104fo_92",Uo="_plansHeaderInputs_104fo_98",Ko="_plansSideHeader_104fo_102",Qo="_plansSideHeaderVisible_104fo_112",Jo="_plansHeaderMobile_104fo_117",Xo="_plansFixedHeaderVisible_104fo_135",e2="_plansMobileFixedHeader_104fo_141",t2="_plansMobileFixedHeaderPurl_104fo_144",ae={plans:Go,plansHeader:qo,plansHeaderInputs:Uo,plansSideHeader:Ko,plansSideHeaderVisible:Qo,plansHeaderMobile:Jo,plansFixedHeaderVisible:Xo,plansMobileFixedHeader:e2,plansMobileFixedHeaderPurl:t2},s2="What is Total Estimated Cost?",a2="This is based on the annual estimated out-of-pocket medical cost (including 12x your monthly Medical Premium) for the plan based on plan benefits, age and health status of the member. This is estimation only and the acutal cost may vary.",n2="_actionText_imz7h_88",o2="_headerClassName_imz7h_94",r2="_contentClassName_imz7h_99",i2="_footerClassName_imz7h_107",l2="_modalHeaderTitle_imz7h_111",Pe={actionText:n2,headerClassName:o2,contentClassName:r2,footerClassName:i2,modalHeaderTitle:l2},c2="What is Total Estimated Cost?",fs=({className:t="",modalBoxClassName:s="",modalOpen:a=!1,isMobile:o,openParentModal:r})=>{const[n,d]=c.useState(a);return e.jsxs("div",{className:Pe.estimatedCostHelperModal,children:[!o&&e.jsx(Ut,{className:`${t??""} ${Pe.actionText}`,onClick:()=>{d(!0)},children:e.jsx(Kt,{text:c2})}),e.jsx(xt,{isOpen:n,children:e.jsx(_t,{backButtonLabel:"Back to Sort",contentClassName:Pe.contentClassName,footerClassName:Pe.footerClassName,headerClassName:Pe.headerClassName,headerTitle:s2,isBack:!0,isFooterButtonEnable:!1,modalBoxClassName:s,modalHeaderTitle:Pe.modalHeaderTitle,onClose:()=>{d(!1),r()},backButtonClicked:()=>{d(!1),r()},children:a2})})]})},d2="_planTypeTabsContainer_frkfs_88",m2="_planTypeTabs_frkfs_88",p2="_planTypeTabsHead_frkfs_101",u2="_planTypeTabsContent_frkfs_111",h2="_selected_frkfs_115",x2="_planTypeBanner_frkfs_119",_2="_planTypeBannerContent_frkfs_123",C2="_learnMore_frkfs_132",g2="_text_frkfs_136",f2="_heading5_frkfs_142",y2="_planTypeHeading_frkfs_147",b2="_planTypeHeadIcon_frkfs_158",k2="_planTypeHead_frkfs_147",P2="_planTypeTitle_frkfs_180",N2="_planTypeModal_frkfs_183",T={planTypeTabsContainer:d2,planTypeTabs:m2,planTypeTabsHead:p2,planTypeTabsContent:u2,selected:h2,planTypeBanner:x2,planTypeBannerContent:_2,learnMore:C2,text:g2,heading5:f2,planTypeHeading:y2,planTypeHeadIcon:b2,planTypeHead:k2,planTypeTitle:P2,planTypeModal:N2};function j2({handleChange:t,open:s,selected:a,setOpen:o}){const r=()=>o(!1);return e.jsx(Ys,{open:s,onClose:r,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:e.jsx("div",{className:T.planTypeModal,children:Ne.map((n,d)=>e.jsx("div",{className:`${T.planTypeTabsHead} ${a===n.value?T.selected:""}`,onClick:()=>{t(n.value),r()},children:n.label},d))})})}const ys=6,v2=1,bs=11,Et="Combines Part A hospital, Part B medical, and often Part D drug coverage into one plan.Typically includes additional benefits not covered by Original Medicare.",T2="Plans offered by private insurance companies that add prescription drug coverage to Original Medicare (Parts A and B).",M2="Dual Eligible Special Needs Plans (D-SNP) are Medicare plans for people who qualify for Medicare due to age or disability and are eligible for Medicaid in their state.",Ne=[{label:"Medicare Advantage",value:ys},{label:"Prescription Drug Plans",value:v2},{label:"Special Needs Plans",value:bs}],S2=({changeFilter:t,isMobile:s,planType:a})=>{const[o,r]=c.useState(a),[n,d]=c.useState(!1),[u,l]=c.useState(Et),[m,p]=c.useState({planType:"",text:"",title:""});c.useEffect(()=>{let C=T2;parseInt(a)===ys?C=Et:parseInt(a)===bs&&(C=M2),l(C)},[a]),c.useEffect(()=>{const[{label:C}]=Ne.filter(y=>y.value===a);p({title:C,text:u,planType:a})},[a,u]);const _=()=>{d(!0)},h=C=>{r(C);const[y]=Ne.filter(F=>F.value===C),v=parseInt(y.value,10);t(v)};return s?e.jsxs("div",{className:T.planTypeBanner,children:[e.jsxs("div",{className:T.planTypeBannerContent,children:[e.jsx(Ws,{className:T.planTypeHead,text:"Plan Type:"}),e.jsxs("div",{className:T.planTypeHeading,onClick:_,children:[e.jsx(Zs,{text:m.title,className:T.planTypeTitle}),e.jsx("div",{className:T.planTypeHeadIcon,children:e.jsx(Gs,{})})]}),e.jsx("div",{className:T.copyContainer,children:e.jsxs("div",{children:[e.jsx(L,{className:T.text,text:m.text}),e.jsx(Fa,{className:T.learnMore,planType:m.planType})]})})]}),n&&e.jsx(j2,{handleChange:h,open:n,selected:o,setOpen:C=>d(C)})]}):e.jsxs("div",{className:T.planTypeTabsContainer,children:[e.jsx("div",{className:T.planTypeTabs,children:Ne.map((C,y)=>e.jsx("div",{className:`${T.planTypeTabsHead} ${a===C.value?T.selected:""}`,onClick:()=>h(C.value),children:C.label}))}),e.jsx("div",{className:T.planTypeTabContent,children:e.jsx(Ia,{planType:m.planType,text:m.text,title:m.title})})]})},$2=c.memo(S2),w2="_plansPage_h1742_88",A2="_plansHeader_h1742_92",H2="_plansContentText_h1742_96",I2="_header_h1742_110",F2="_textItems_h1742_118",L2="_plansAvailable_h1742_125",B2="_plansZip_h1742_134",D2="_results_h1742_138",E2="_plans_h1742_88",O2="_planFooter_h1742_149",R2="_sort_h1742_153",V2="_searchContainer_h1742_165",z2="_info_h1742_170",Y2="_right_h1742_175",W2="_text_h1742_118",Z2="_pagination_h1742_185",G2="_active_h1742_205",q2="_sortSelect_h1742_215",U2="_textError_h1742_219",K2="_filterSection_h1742_247",Q2="_filters_h1742_253",J2="_learnMore_h1742_260",N={plansPage:w2,plansHeader:A2,plansContentText:H2,header:I2,textItems:F2,plansAvailable:L2,plansZip:B2,results:D2,plans:E2,planFooter:O2,sort:R2,"sort-total":"_sort-total_h1742_161",searchContainer:V2,info:z2,right:Y2,text:W2,pagination:Z2,active:G2,sortSelect:q2,textError:U2,filterSection:K2,filters:Q2,learnMore:J2},H={title:"Find a Medicare Plan That Fits Your Needs | PlanEnroll",description:"Shop Medicare plans and costs online that are available in your area and fits your needs. We'll help you find the right Medicare plan."},X2=t=>t.toLowerCase().split(" ").map(function(s){return s.charAt(0).toUpperCase()+s.slice(1)}).join(" ");function er({carrierFilters:t,carriers:s,isMobile:a,onFilterChange:o,onSortChange:r,policyFilters:n,policyTypes:d,showNetwork:u,sort:l,sortOptions:m,clearFilters:p,toggleAppointedPlans:_,toggleNeeds:h,toggleRebates:C}){const y=Q(),[v,F]=c.useState(!1),[j,B]=c.useState(!1),[O,b]=c.useState(!1),k=s.slice().sort((f,te)=>f.localeCompare(te)).map(f=>({label:X2(f),id:f,name:"carrier",checked:s.length===1||t.indexOf(f)>-1,disabled:s.length===1,value:f,onChange:o})),le=d.map(f=>({label:f,id:f,name:"policy",checked:d.length===1||n.indexOf(f)>-1,disabled:d.length===1,value:f,onChange:o})),w=f=>{const{value:te}=f.target;y(ut(te))},M=e.jsxs(e.Fragment,{children:[a&&e.jsx(ds,{isMobile:!0,onFilterChange:f=>w(f)},"planDetailsPharmacyFilterMobile"),e.jsx(Dt,{title:"Company",children:e.jsx(Bt,{checkboxes:k},"company")}),u&&e.jsx(Dt,{title:"Network Type",children:e.jsx(Bt,{checkboxes:le},"networkType")})]}),J=m.map(f=>e.jsxs(e.Fragment,{children:[e.jsx(qs,{id:f.label,name:"sort",value:f.value,label:f.label,checked:l===f.value,onChange:()=>r(f.value)},f.value),f.value==="total-asc"&&e.jsx(Ut,{className:"actionText",onClick:()=>{F(!1),B(!1),b(!0)},children:e.jsx(Kt,{text:"What is Total Estimated Cost?"})})]})),R=n.length+t.length>0;return e.jsxs("div",{className:"additional-filters",children:[a&&e.jsxs(e.Fragment,{children:[e.jsx(Lt,{label:e.jsxs(e.Fragment,{children:["Filter",R&&e.jsx("span",{className:"filterCount",children:n.length+t.length})]}),className:R&&"hasFilters",onClick:()=>{B(!1),F(!0)}}),e.jsx(Lt,{label:"Sort",onClick:()=>{B(!0),F(!0)}}),e.jsx(xt,{className:"filter-modal",isOpen:v,children:e.jsx(_t,{contentClassName:"contentClassName",headerClassName:"modalHeader",footerClassName:"additionalFilterFooter",footerButtonClassName:"footerButtonClassName",footerButtonClicked:()=>F(!1),footerLabel:j?"Sort Plans":"Apply Filters",headerTitle:j?"Sort":"Filters",onClose:()=>F(!1),isClearButton:!j,clearButtonClicked:f=>{p()},children:j?J:M})})]}),!a&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"header",children:"Filters"}),M]}),O&&e.jsx(fs,{isMobile:a,openParentModal:()=>{b(!1),F(!0),B(!0)},modalOpen:!0})]})}const tr=({size:t="default",className:s="",...a})=>e.jsx("div",{className:`container container--size-${t} ${s}`,...a}),sr="_iconWithHorizontalText_1pqlo_88",ar={iconWithHorizontalText:sr},ks=({alt:t="",className:s="",iconClassName:a="",image:o,text:r=""})=>e.jsx(Ja,{alt:t,className:`${s} ${ar.iconWithHorizontalText}`,iconClassName:a,image:o,text:r}),nr="data:image/svg+xml,%3csvg%20width='16'%20height='13'%20viewBox='0%200%2016%2013'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13.9931%202L7.72744%2010.3535C7.58807%2010.5387%207.41063%2010.6918%207.20709%2010.8026C7.00355%2010.9134%206.77863%2010.9793%206.54748%2010.9959C6.31633%2011.0124%206.08432%2010.9792%205.86707%2010.8986C5.64981%2010.8179%205.45237%2010.6916%205.28803%2010.5282L2.05273%207.29294'%20stroke='%2316AA6C'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",or="_iconClassName_1ezyl_88",rr={iconClassName:or},Ps=({alt:t,text:s="Covered"})=>e.jsx(ks,{alt:t,iconClassName:rr.iconClassName,image:nr,text:s}),ir="data:image/svg+xml,%3csvg%20viewBox='0%200%2016%2015'%20width='16'%20height='15'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20%3e%3cpath%20d='M14%201.50012L2%2013.5001'%20stroke='%23CF3C28'%20strokeWidth='2.5'%20strokeLinecap='round'%20strokeLinejoin='round'%20/%3e%3cpath%20d='M%2014%201.5%20L%202%2013.5'%20stroke='%23CF3C28'%20strokeWidth='2.5'%20strokeLinecap='round'%20strokeLinejoin='round'%20transform='matrix(0,%201,%20-1,%200,%2015.5,%20-0.5)'%20/%3e%3c/svg%3e",lr="_iconClassName_1ezyl_88",cr={iconClassName:lr},Ns=({alt:t="",text:s="Not Covered"})=>e.jsx(ks,{alt:t,iconClassName:cr.iconClassName,image:ir,text:s}),dr="_planCardAddedDoctors_k36ap_88",mr="_planCardWithLink_k36ap_95",pr="_body2_k36ap_101",ur="_iconClassName_k36ap_105",hr="_statusText_k36ap_109",je={planCardAddedDoctors:dr,planCardWithLink:mr,body2:pr,iconClassName:ur,statusText:hr},xr=({doctorsCount:t,doctorName:s="",inNetwork:a,text:o})=>t===1?a?e.jsx(Ps,{iconClassName:je.iconClassName,text:s}):e.jsx(Ns,{iconClassName:je.iconClassName,text:s}):e.jsx(K,{className:je.body2,text:o}),_r=({doctorNames:t=[],isApiFailed:s=!1,planData:a})=>{var h;const o=Q(),r=t==null?void 0:t.length,{providers:n}=a,d=n==null?void 0:n.length,u=r&&t[0],l=d&&((h=n[0])==null?void 0:h.inNetwork),m=d&&n.filter(C=>C.inNetwork),p=m==null?void 0:m.length,_=r>1&&`${p} of ${r} doctors covered`;return e.jsxs("div",{className:`${je.planCardAddedDoctors} ${s?"":je.planCardNoLink}`,onClick:()=>{!s&&o(fe(!0)),o(Qt(!1)),o(Us(a))},children:[e.jsx(Za,{}),!s&&e.jsx(xr,{doctorName:u==null?void 0:u.presentationName,doctorsCount:r,inNetwork:l,text:_}),s&&e.jsx(K,{className:je.statusText,text:"Status temporarily unavailable"}),!s&&e.jsx(ve,{}),s&&e.jsx(Te,{modalText:"Doctor service partner is not returning current status. Please try again later."})]})},Cr="_iconWithLinkLabelClassName_1uk04_88",gr={iconWithLinkLabelClassName:Cr},fr=({planData:t,planType:s})=>{const a=Q(),o=g(n=>n.doctorDetails.doctorNames),r=g(n=>n.doctorDetails.isApiFailed);return ms.PDP!==s&&(o.length||r?e.jsx(_r,{doctorNames:o,isApiFailed:r,planData:t}):e.jsx(Ct,{alt:"Doctor's briefcase with a cross on the front.",caption:"Add your doctors",image:Cs,labelClassName:gr.iconWithLinkLabelClassName,onClick:()=>{a(fe(!0))}}))},yr="_body2_171zp_88",br="_planCardAddedPharmacy_171zp_92",kr="_planCardNoLink_171zp_99",it={body2:yr,planCardAddedPharmacy:br,planCardNoLink:kr},Pr=({text:t="",isApiFailed:s=!1,planData:a})=>{const o=Q();return e.jsxs("div",{className:`${it.planCardAddedPharmacy} ${s?"":it.planCardNoLink}`,onClick:()=>{!s&&o(_e(!0)),o(Jt(a))},children:[e.jsx(Ga,{}),e.jsx(K,{className:it.body2,text:t}),!s&&e.jsx(ve,{}),s&&e.jsx(Te,{modalText:"Pharmacy service partner is not returning current status. Please try again later."})]})},Nr="_iconWithLinkLabelClassName_1uk04_88",jr={iconWithLinkLabelClassName:Nr},vr=({planData:t})=>{const s=Q(),a=g(l=>l.pharmacyDetails.isApiFailed),o=g(l=>l.pharmacyDetails.pharmacyNames),r=o==null?void 0:o.length,{pharmacyCosts:n}=t||{},d=n==null?void 0:n.filter(l=>l.pharmacyType===1&&l.isNetwork),u=r&&`${d==null?void 0:d.length} of ${r} Pharmacies Covered`;return a?e.jsx(Pr,{isApiFailed:a,planData:t,text:a?"Status temporarily unavailable":u}):e.jsx(Ct,{alt:"Doctor's briefcase with a cross on the front.",caption:r?`${d==null?void 0:d.length} of ${r} Pharmacies Covered`:"Add your Pharmacy",image:gs,labelClassName:jr.iconWithLinkLabelClassName,onClick:()=>{s(_e(!0)),s(Jt(t))}})},Tr="data:image/svg+xml,%3csvg%20width='36'%20height='29'%20viewBox='0%200%2036%2029'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='%23FFFFFF'%20d='M33.75%206.02087V24.5209C33.7476%2025.3379%2033.4308%2026.1207%2032.8687%2026.6984C32.3066%2027.2761%2031.5449%2027.6018%2030.75%2027.6042H20.25C19.4551%2027.6018%2018.6934%2027.2761%2018.1313%2026.6984C17.5692%2026.1207%2017.2524%2025.3379%2017.25%2024.5209V6.02087'%20stroke='%23052A63'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20fill='%23FFFFFF'%20d='M35.25%205.25004C35.25%205.45448%2035.171%205.65054%2035.0303%205.7951C34.8897%205.93966%2034.6989%206.02087%2034.5%206.02087H16.5C16.3011%206.02087%2016.1103%205.93966%2015.9697%205.7951C15.829%205.65054%2015.75%205.45448%2015.75%205.25004V3.70837C15.75%203.09506%2015.9871%202.50687%2016.409%202.07319C16.831%201.63951%2017.4033%201.39587%2018%201.39587H33C33.5967%201.39587%2034.169%201.63951%2034.591%202.07319C35.0129%202.50687%2035.25%203.09506%2035.25%203.70837V5.25004Z'%20stroke='%23052A63'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M33.75%2021.4375H24C23.8011%2021.4375%2023.6103%2021.3563%2023.4697%2021.2118C23.329%2021.0672%2023.25%2020.8711%2023.25%2020.6667V11.4167C23.25%2011.2123%2023.329%2011.0162%2023.4697%2010.8716C23.6103%2010.7271%2023.8011%2010.6459%2024%2010.6459H33.75V21.4375Z'%20stroke='%23052A63'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20fill='%23FFFFFF'%20d='M12.75%2025.2918C12.75%2025.9051%2012.5129%2026.4933%2012.091%2026.9269C11.669%2027.3606%2011.0967%2027.6043%2010.5%2027.6043H3C2.40326%2027.6043%201.83097%2027.3606%201.40901%2026.9269C0.987053%2026.4933%200.75%2025.9051%200.75%2025.2918C0.75%2024.6784%200.987053%2024.0902%201.40901%2023.6566C1.83097%2023.2229%202.40326%2022.9792%203%2022.9792H10.5C11.0967%2022.9792%2011.669%2023.2229%2012.091%2023.6566C12.5129%2024.0902%2012.75%2024.6784%2012.75%2025.2918V25.2918Z'%20stroke='%23052A63'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.75%2022.9792V27.6043'%20stroke='%23052A63'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20fill='%23FFFFFF'%20d='M13.6504%2012.0951C14.0723%2012.5287%2014.3092%2013.1168%2014.3092%2013.73C14.3092%2014.3432%2014.0723%2014.9313%2013.6504%2015.365L8.34045%2020.8209C7.91609%2021.2422%207.34774%2021.4752%206.75779%2021.47C6.16785%2021.4647%205.60352%2021.2215%205.18635%2020.7927C4.76919%2020.364%204.53256%2019.784%204.52743%2019.1777C4.5223%2018.5713%204.74909%2017.9872%205.15895%2017.551L10.4629%2012.0951C10.672%2011.8795%2010.9204%2011.7084%2011.1939%2011.5917C11.4673%2011.475%2011.7606%2011.4149%2012.0567%2011.4149C12.3528%2011.4149%2012.646%2011.475%2012.9195%2011.5917C13.193%2011.7084%2013.4414%2011.8795%2013.6504%2012.0951V12.0951Z'%20stroke='%23052A63'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.81055%2014.8191L10.992%2018.089'%20stroke='%23052A63'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Mr="_labelClassName_fyo42_88",Sr="_noDrugCoverage_fyo42_93",Ot={labelClassName:Mr,noDrugCoverage:Sr},$r=({className:t=""})=>e.jsx(Ks,{alt:"Prescription bottle with two pills next to it",caption:"No Rx Drug coverage ",className:Ot.noDrugCoverage,image:Tr,labelClassName:Ot.labelClassName}),wr="_planCardAddedPrescriptions_1i21h_88",Ar="_planCardNoLink_1i21h_95",Hr="_body2_1i21h_103",Ir="_icon_1i21h_107",Fr="_statusText_1i21h_111",Fe={planCardAddedPrescriptions:wr,planCardNoLink:Ar,body2:Hr,icon:Ir,statusText:Fr},Lr=({drugsCount:t,drugName:s="",inNetwork:a,text:o})=>t===1?a?e.jsx(Ps,{text:s}):e.jsx(Ns,{text:s}):e.jsx(K,{className:Fe.body2,text:o}),Br=({drugNames:t=[],image:s,isApiFailed:a,planData:o,planDrugCoverage:r=[]})=>{const n=Q(),{setPrescriptionModal:d}=c.useContext(Oe),u=t==null?void 0:t.length,l=r==null?void 0:r.length,m=u&&t[0],p=u&&l&&r.find(v=>v.labelName===m.labelName),_=p==null?void 0:p.tierNumber,h=l&&r.filter(v=>v.tierNumber>0),C=h==null?void 0:h.length,y=u>1&&`${C} of ${u} prescriptions covered`;return e.jsxs("div",{className:`${Fe.planCardAddedPrescriptions} ${a?"":Fe.planCardNoLink}`,onClick:()=>{!a&&d(!0),n(Qs(o))},children:[e.jsx(ie,{alt:"Prescription bottle with two pills next to it",className:Fe.icon,image:s}),a?e.jsx(K,{className:Fe.statusText,text:"Status temporarily unavailable"}):e.jsx(Lr,{drugName:m==null?void 0:m.drugName,drugsCount:u,inNetwork:_,text:y}),!a&&e.jsx(ve,{}),a&&e.jsx(Te,{modalText:"Prescription service partner is not returning current status. Please try again later."})]})},Dr="_iconWithLinkLabelClassName_r8vd0_88",Er="_body2_r8vd0_95",Or={iconWithLinkLabelClassName:Dr,body2:Er},Rr=({drugNames:t,image:s,onClick:a,isApiFailed:o,planData:r,planDrugCoverage:n})=>t.length||o?e.jsx(Br,{drugNames:t,image:s,isApiFailed:o,planData:r,planDrugCoverage:n}):e.jsx(Ct,{alt:"Prescription bottle with two pills next to it",caption:"Add your prescriptions",image:s,labelClassName:Or.iconWithLinkLabelClassName,onClick:a}),Vr=({className:t,planData:s,planDrugCoverage:a,planType:o})=>{const{setPrescriptionModal:r}=c.useContext(Oe),n=g(l=>l.prescriptionDetails.drugNames),d=g(l=>l.prescriptionDetails.isApiFailed),u=o===ms.MA;return e.jsx(e.Fragment,{children:e.jsx("div",{className:t,children:u&&!d?e.jsx($r,{}):e.jsx(Rr,{alt:"Prescription bottle with two pills next to it",drugNames:n,isApiFailed:d,image:cs,onClick:()=>r(!0),planData:s,planDrugCoverage:a})})})},zr="_recommendedBanner_k48bc_88",Yr="_body2_k48bc_100",Wr="_content_k48bc_104",Rt={recommendedBanner:zr,body2:Yr,content:Wr},Zr=()=>e.jsxs("div",{className:Rt.recommendedBanner,children:[e.jsx(K,{className:Rt.body2,text:"RECOMMENDED"}),e.jsx(Xt,{description:"Recommendations are based on different plan features as well as information that was provided (such as zip code, doctors, prescriptions and pharmacy preferences.)",modalBoxClassName:"planFilterModal",title:"Recommended Plans"})]}),Gr="Mail Order Not Available",qr="Mail Order Not available with this plan. Please select or add pharmacy",Ur="_mailOrderNATooltip_1gv6h_88",Kr="_mailOrderNAContainer_1gv6h_92",Qr="_mailOrderNATooltipContentClassName_1gv6h_98",lt={mailOrderNATooltip:Ur,mailOrderNAContainer:Kr,mailOrderNATooltipContentClassName:Qr},js=()=>e.jsxs("div",{className:lt.mailOrderNAContainer,children:[e.jsx(K,{text:"N/A"}),e.jsx(Js,{className:lt.mailOrderNATooltip,tooltipContentClassName:lt.mailOrderNATooltipContentClassName,title:e.jsx(Xs,{text:Gr}),content:qr,width:300})," "]}),Jr=()=>{const{setPrescriptionModal:t}=c.useContext(Oe);return e.jsx(Xa,{text:"Add your prescriptions +",onClick:()=>t(!0)})},Xr="_currency_gahxg_88",ei="_planCost_gahxg_93",ti="_planCostLabel_gahxg_100",ct={currency:Xr,planCost:ei,planCostLabel:ti},Ce=({addPrescriptions:t,cost:s,description:a,label:o})=>e.jsxs("div",{className:ct.planCost,children:[e.jsx(ea,{className:ct.planCostLabel,description:a,label:o}),t?e.jsx(Jr,{}):e.jsx(K,{className:ct.currency,text:s})]}),oe=t=>t==null||typeof t=="number"?La(t):t,si=({drugDeductible:t,estimatedAnnualDrugCost:s,hasDrugs:a,maximumOutOfPocketCost:o,medicalDeductible:r,showMailOrderNA:n})=>{const d=n?e.jsx(js,{}):oe(a?s:0);return e.jsxs(e.Fragment,{children:[e.jsx(Ce,{cost:oe(r),description:"The amount you must pay for covered health care services before your health insurance plan begins to pay its share.",label:"Medical Deductible"}),e.jsx(Ce,{cost:oe(o),description:"The overall limit on how much you pay each year for health care services covered by your health plan.",label:"Out of Pocket Health Max"}),e.jsx(Ce,{cost:oe(t),description:"The amount you must pay for your prescription drugs before your Part D insurance plan begins to pay its share.",label:"Rx Drug Deductible"}),e.jsx(Ce,{cost:d,description:"Your Estimated Annual Rx Drug Cost is based on the drug information you entered and information provided by the insurance carrier. These costs are estimated for a standard 12-month plan year and may vary based on the plan and the pharmacy used. Insurance carrier plan formularies are subject to change on a monthly basis.",label:"Estimated Annual Rx Drug Cost"})]})},dt=({cost:t,description:s,label:a})=>{const o=a==="Rx Drug Deductible"&&t==="$0"?"No Rx Drug coverage":t;return e.jsx(Ce,{cost:o,description:s,label:a})},ai=({maximumOutOfPocketCost:t,medicalDeductible:s,drugDeductible:a})=>e.jsxs(e.Fragment,{children:[e.jsx(dt,{cost:oe(s),description:"The amount you must pay for covered health care services before your health insurance plan begins to pay its share.",label:"Medical Deductible"}),e.jsx(dt,{cost:oe(t),description:"The overall limit on how much you pay each year for health care services covered by your health plan.",label:"Out of Pocket Health Max"}),e.jsx(dt,{cost:oe(a),description:"The amount you must pay for your prescription drugs before your Part D insurance plan begins to pay its share.",label:"Rx Drug Deductible"})]}),ni=({drugDeductible:t,estimatedAnnualDrugCost:s,hasDrugs:a=!1,prescriptionCost:o,showMailOrderNA:r})=>{const n=r?e.jsx(js,{}):oe(a?s:o||0);return e.jsxs(e.Fragment,{children:[e.jsx(Ce,{cost:oe(t),description:"The amount you must pay for your prescription drugs before your Part D insurance plan begins to pay its share.",label:"Rx Drug Deductible"}),a?null:e.jsx(Ce,{cost:n,description:"Your Estimated Annual Rx Drug Cost is based on the drug information you entered and information provided by the insurance carrier. These costs are estimated for a standard 12-month plan year and may vary based on the plan and the pharmacy used. Insurance carrier plan formularies are subject to change on a monthly basis.",label:"Estimated Annual Rx Drug Cost"}),a?e.jsx(Ce,{cost:n,description:"Your Estimated Annual Drug Cost is based on the drug information you entered and information provided by the insurance carrier. These costs are estimated for a standard 12-month plan year and may vary based on the plan and the pharmacy used. Insurance carrier plan formularies are subject to change on a monthly basis.",label:"Estimated Annual Drug Cost"}):null]})},oi="_planCostDetails_236ow_88",ri={planCostDetails:oi},ii=({className:t="",hasDrugs:s=!1,planData:a,estimatedCostCalData:o})=>{const{drugDeductible:r,planType:n,estimatedAnnualMailOrderDrugCostPartialYear:d,hasMailDrugBenefits:u}=a,{selectedPharmacy:l}=g(h=>h.pharmacyFilter),m=Va[n],p=u&&d===null&&l==="null",_=c.useCallback(h=>{if(h==="MA"){const{maximumOutOfPocketCost:C,medicalDeductible:y}=a;return e.jsx(ai,{drugDeductible:r,medicalDeductible:y,maximumOutOfPocketCost:C})}if(h==="MAPD"){const{maximumOutOfPocketCost:C,medicalDeductible:y}=a;return e.jsx(si,{drugDeductible:r,estimatedAnnualDrugCost:(o==null?void 0:o.estimatedYearlyRxDrugCost)||0,hasDrugs:s,maximumOutOfPocketCost:C,medicalDeductible:y,showMailOrderNA:p})}if(h==="PDP"){const{addPrescriptions:C}=a;return e.jsx(ni,{drugDeductible:r,estimatedAnnualDrugCost:(o==null?void 0:o.estimatedYearlyRxDrugCost)||0,hasDrugs:s,prescriptionCost:C,showMailOrderNA:p})}},[r,s,a,l]);return e.jsx("div",{className:`${t} ${ri.planCostDetails}`,children:_(m)})},li=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:2});function ci(t){const s=new Date().getUTCMonth(),a=new Date().getDate(),{year:o}=es(t);return s===9&&a<15&&o===2025?{disabled:!0,text:"Enroll on October 15"}:{disabled:!1}}const di="https://contentserver.destinationrx.com/ContentServer/DRxProductContent/PlanLogo/";function mi({canSelect:t,isMobile:s,isTablet:a,effectiveDate:o,onChangeSelectPlan:r,planData:n,setCheckedOrder:d,year:u}){const{drugNames:l}=g(M=>M.prescriptionDetails),{selectedPharmacy:m}=g(M=>M.pharmacyFilter),p=l.length,_=ci(o);let[h,C]=c.useState(!1);const{logoURL:y,effectiveStartDate:v}=n,{year:F}=es(v);let j=I(ts),B=I(ta),O=I(sa,!1);const b=[s?"mobile":"",a?"tablet":""].filter(M=>M).join(" "),{planDrugCoverage:k,isRecommendedPlan:le}=n,w=c.useMemo(()=>{if(n){const{estimatedCostCalculationRxs:M=[]}=n,[J]=M.filter(R=>String(R.pharmacyId)===String(m)&&R.id===n.id&&(m==="null"?R.isMailOrder:!0));return J}else return null},[n,m]);return e.jsxs(e.Fragment,{children:[le&&e.jsx(Zr,{}),e.jsxs("div",{className:`${le&&"plan-card-radius-with-recommendedBanner"} plan-card`,children:[e.jsxs("a",{className:`header ${b}`,href:`/plan/${n.id}/${j}/${B}`,children:[e.jsx("div",{className:"plan-name",children:n.planName}),y&&e.jsx("div",{className:"plan-logo",children:e.jsx("img",{src:di+y,alt:"logo"})})]}),e.jsxs("div",{className:"sub-header",children:[e.jsx("div",{className:"rating-container",children:e.jsx(za,{value:n.planRating})}),e.jsx("div",{className:"plan-year",children:F}),e.jsx("div",{className:"carrier-name",children:n.marketingName})]}),e.jsxs("div",{className:`premiums ${b}`,children:[e.jsxs("div",{className:"monthly",onClick:()=>{C(s&&!h)},children:[e.jsxs("div",{className:"monthlyPremium",children:[e.jsx("div",{className:"label",children:"Monthly Premium"}),e.jsx(Xt,{className:"plan-card-info-modal",title:"Monthly Premium",description:"A payment you make each month to an insurance company for your health or prescription drug insurance coverage."})]}),e.jsx("div",{className:"currency",children:li.format((w==null?void 0:w.monthlyPlanPremium)||0).replace(/0\.00$/g,"0")})]}),e.jsx(ii,{className:h?"collapsed":"",hasDrugs:p,planData:n,estimatedCostCalData:w})]}),e.jsx("div",{className:b,children:e.jsxs("div",{className:"in-network content",children:[e.jsx(vr,{planData:n}),e.jsx(fr,{planData:n,planType:n.planType}),e.jsx(Vr,{planData:n,planDrugCoverage:k,planType:n.planType})]})}),e.jsxs("div",{className:`footer ${b}`,children:[e.jsx("div",{className:"checkBoxStyle",children:e.jsx(aa,{control:e.jsx(na,{id:n.id,checked:I(`isChecked${n.id}`),disabled:!t,onChange:()=>{t&&(re(`isChecked${n.id}`,!I(`isChecked${n.id}`)),d(n.id,I(`isChecked${n.id}`),n),r(n))}}),label:e.jsx(L,{className:"labelStyle",text:"Compare"})})}),e.jsx(oa,{className:"view-plans-text",text:"View Plan Details",url:`/plan/${n.id}/${j}/${B}`,state:n}),ra("true")&&!O&&!n.nonLicensedPlan&&e.jsx("div",{className:"enrollButton",children:e.jsx(qa,{countyFIPS:B,disabled:_.disabled,label:_.disabled?_.text:"Enroll",planData:n,planId:n.id,zip:j})})]})]})]})}const pi="data:image/svg+xml,%3csvg%20width='19'%20height='19'%20viewBox='0%200%2019%2019'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3%203L16%2016'%20stroke='%23052A63'%20stroke-width='3'%20stroke-linecap='square'%20stroke-linejoin='round'/%3e%3cpath%20d='M16%203L3%2016'%20stroke='%23052A63'%20stroke-width='3'%20stroke-linecap='square'%20stroke-linejoin='round'/%3e%3c/svg%3e",ui="_close_1lh2u_155",$={"plan-footer":"_plan-footer_1lh2u_88","plans-logo":"_plans-logo_1lh2u_115","compare-button":"_compare-button_1lh2u_119","plans-list":"_plans-list_1lh2u_122",close:ui,"plan-name":"_plan-name_1lh2u_161","empty-plan":"_empty-plan_1lh2u_175","reminder-container":"_reminder-container_1lh2u_207","plan-select-reminder":"_plan-select-reminder_1lh2u_212","plan-footer-container-footer":"_plan-footer-container-footer_1lh2u_227","plan-footer-container-mobile-footer":"_plan-footer-container-mobile-footer_1lh2u_231","plan-footer-container":"_plan-footer-container_1lh2u_227","plans-number":"_plans-number_1lh2u_258"},hi=({plans:t=[],onRemove:s})=>{const a=ss(),[o,r]=c.useState(!1);if(c.useEffect(()=>{const l=document.getElementById("plan-footer");window.onresize=function(){document.getElementsByTagName("body")[0].style.setProperty("--container-footer-bottom",`${l.clientHeight+1}px`)};const m=new IntersectionObserver(p=>{const _=p[0],{isIntersecting:h}=_||{};setTimeout(()=>{document.getElementsByTagName("body")[0].style.setProperty("--container-footer-bottom",`${l.clientHeight+1}px`)},100),r(!!h)},{threshold:0});return m.observe(l),()=>{window.onresize={},m.unobserve(l)}},[]),!t||t.length<1)return null;const n=[...t];for(let l=t.length;l<3;l++)n.push(null);const d="https://contentserver.destinationrx.com/ContentServer/DRxProductContent/PlanLogo/",u=()=>{re(be,t),a.push(be)};return e.jsx("div",{className:`${$["plan-footer-container"]} ${o?$["plan-footer-container-footer"]:void 0} `,children:e.jsxs("div",{className:`${$["plan-footer"]} ${o?$["plan-footer-container-mobile-footer"]:void 0} `,"data-gtm":"plans-compare-wrapper",children:[n.map((l,m)=>l?e.jsxs("div",{className:$["plans-list"],"data-gtm":"plan-comparision",children:[e.jsxs("div",{className:$.close,onClick:()=>s(l),children:[" ",e.jsx("img",{alt:"x-arrow",src:pi,className:$["x-arrow"],style:{width:"20px"}})]}),e.jsxs("div",{className:$["plans-logo"],children:[" ",e.jsx("img",{className:$.icon,src:d+l.logoURL,alt:"logo"})]}),e.jsx("div",{className:$["plan-name"],children:l.planName})]},`plan-footer-${m}`):e.jsx("div",{className:`${$["plans-list"]} ${$["empty-plan"]}`,children:e.jsxs("div",{className:$["plans-number"],children:[" ","Plan ",m+1," "]})},`plan-footer-${m}`)),e.jsxs("div",{className:$["reminder-container"],children:[e.jsx(ia,{className:$["compare-button"],label:"Compare Plans",type:"primary",disabled:t.length<2,"data-gtm":"button-compare",onClick:u}),t.length<2?e.jsx(L,{className:$["plan-select-reminder"],text:"Select at least two plans to compare."}):null]})]})})},Vt=(t,s,a)=>{let o=I(be)||!1;o||(o=[]);let r=o.findIndex(n=>n.id===t);if(s)r!==-1&&o.splice(r,1),o.push(a);else{if(r===-1)return;o.splice(r,1)}re(be,o)},zt=()=>I(be)||[],xi=(t=[])=>{let s=I(be)||!1;if(!(s!=null&&s.length))return;const a=s==null?void 0:s.map(o=>{const r=t==null?void 0:t.findIndex(n=>(o==null?void 0:o.id)===(n==null?void 0:n.id));return r>=0?t[r]:o});re(be,a)},_i=({plans:t,isMobile:s,isTablet:a,effectiveDate:o,loading:r,year:n,zip:d})=>{const[,u]=c.useState({});c.useEffect(()=>{xi(t)},[t]);const l=[];if(!r&&t&&t.length){var m=0;for(const p of t)I(`isChecked${p.id}`)||re(`isChecked${p.id}`,!1),l.push(e.jsxs(as.Fragment,{children:[e.jsx(mi,{setCheckedOrder:Vt,planData:p,effectiveDate:o,isMobile:s,isTablet:a,year:n,onChangeSelectPlan:()=>u({}),canSelect:zt().length<3||I(`isChecked${p.id}`)},`plan-card-${p.id+m++}`),m===3&&t.length>4&&e.jsx(Ft,{})]},p.id))}else if(!r&&(!t||t==null||t.length===0))l.push(e.jsxs("div",{className:"plan-card no-plan-results",children:[e.jsx("div",{className:"no-results-image",children:e.jsx(Ba,{})}),e.jsx("div",{className:"no-results-found",children:"No Plans Found."}),e.jsx("div",{className:"no-results-reason",children:`${d?"We couldn’t find any plans matching your criteria. Try adjusting your ZIP Code, plan type, or filters to find a plan for you.":"Please add your ZIP Code to view available plans in your area."}`})]},"NoResultsCard"));else for(let p=0;p<10;p++)l.push(e.jsx(Da,{},`Plan${p}}`));return e.jsxs(e.Fragment,{children:[l,e.jsx("div",{className:"plan-footer-container",children:e.jsx(hi,{effectiveDate:o,plans:zt(),onRemove:p=>{re(`isChecked${p.id}`,!1),Vt(p.id,!1,p),u({})}})}),e.jsx(Ft,{})]})},Ci="Please enter a valid ZIP Code.",mt=[xe,ne,ls],Ee=(t,s)=>t.annualPlanPremium/12>s.annualPlanPremium/12?1:t.annualPlanPremium/12<s.annualPlanPremium/12?-1:0,Yt=(t,s)=>t.planRating<s.planRating?1:t.planRating>s.planRating?-1:0,gi=(t,s)=>t.estimatedAnnualDrugCost>s.estimatedAnnualDrugCost?1:t.estimatedAnnualDrugCost<s.estimatedAnnualDrugCost?-1:0,Wt=(t,s)=>t.estimatedAnnualDrugCost+t.estimatedAnnualMedicalCost>s.estimatedAnnualDrugCost+s.estimatedAnnualMedicalCost?1:t.estimatedAnnualDrugCost+t.estimatedAnnualMedicalCost<s.estimatedAnnualDrugCost+s.estimatedAnnualMedicalCost?-1:0,Zt=(t,s)=>t.maximumOutOfPocketCost>s.maximumOutOfPocketCost?1:t.maximumOutOfPocketCost<s.maximumOutOfPocketCost?-1:0,Gt=(t,s)=>t.drugDeductible>s.drugDeductible?1:t.drugDeductible<s.drugDeductible?-1:0,pt=(t,s)=>t.isRecommendedPlan?-1:s.isRecommendedPlan?1:0,fi=t=>({[U[0].value]:pt,[U[1].value]:Ee,[U[2].value]:gi,[U[3].value]:Zt,[U[4].value]:Wt,[U[5].value]:Yt,[ee[0].value]:pt,[ee[1].value]:Ee,[ee[2].value]:Gt,[ee[3].value]:Zt,[ee[4].value]:Wt,[ee[5].value]:Yt,[ye[0].value]:pt,[ye[1].value]:Ee,[ye[2].value]:Gt})[t]||Ee;function yi(t,s,a,o){let r=I(ts);return s?e.jsx("div",{}):r.length===0?e.jsxs("div",{className:N.plansAvailable,children:[" Showing 0 of 0 options. ",e.jsxs("span",{className:N.plansZip,children:[" ",e.jsx(Ka,{onClick:()=>a(!0),text:"Add your ZIP code +"})]})]}):e.jsx("div",{className:N.plansAvailable,children:t===0?e.jsxs(e.Fragment,{children:[e.jsxs("div",{children:[" No plans found for ",e.jsxs("span",{className:N.plansZip,children:[" ",e.jsx(ve,{onClick:()=>a(!0),text:r})]})]}),o&&e.jsx(ga,{className:N.error,text:Ci})]}):e.jsxs("div",{children:[e.jsxs("span",{children:[t," plans"]})," available for ",e.jsxs("span",{className:N.plansZip,children:[" ",e.jsx(ve,{onClick:()=>a(!0),text:r})]})]})})}const bi=c.forwardRef(({openZip:t},s)=>{var Pt,Nt,jt,vt,Tt,Mt,St,$t;const a=Q(),o=ss(),{currentPlansPage:r,results:n,carrierList:d,subTypeList:u}=g(i=>i.plansPage),l=ns(),m=l==null?void 0:l.get("zipcode"),p=l==null?void 0:l.get("fips"),[_,h]=c.useState(0),[C,y]=c.useState(!1),[v,F]=c.useState(!1),[j,B]=c.useState(!1),[O,b]=c.useState(U[1].value),[k,le]=c.useState(I(At,xe)),w=g(i=>i.medicaidDetails.selectedMedicaidOption),{pharmacies:M,isPlanLoading:J}=g(i=>i.pharmacyFilter),R=g(i=>i.planTypeDetail.selectedPlanType),{user:f,getAccessTokenSilently:te}=la(),Me=async()=>f?await te():"",V=c.useCallback(i=>{re(At,i),le(i),a(Ue(!0)),o.push({state:{planType:parseInt(i)}})},[a,o]);c.useEffect(()=>{if(w==="Yes"){const i=Ne.find(x=>x.label==="Special Needs Plans").value;i!==k&&V(i)}else{const i=Ne.find(x=>x.label==="Medicare Advantage").value;i!==k&&V(i)}},[w,V]);const[ge,Ve]=c.useState(I(Ht)||""),[vs,Ts]=c.useState([]),[ce,Ms]=c.useState([]),[Se,ze]=c.useState([]),[$e,Ye]=c.useState([]),[z,We]=c.useState({}),[Ss,$s]=c.useState(I(It,"2022")),{county:D,zipCode:S,setZipCode:ws,setCounty:As,error:we,setPlanDate:Hs}=c.useContext(os),Le=g(i=>i.prescriptionDetails.drugNames),Is=g(i=>i.pharmacyDetails.pharmacyNames),Fs=g(i=>i.doctorDetails.doctorNames);(Nt=(Pt=m==null?void 0:m.toString())==null?void 0:Pt.trim())!=null&&Nt.length&&(((jt=m==null?void 0:m.toString())==null?void 0:jt.trim())!==(S==null?void 0:S.toString())&&ws((vt=m==null?void 0:m.toString())==null?void 0:vt.trim()),(Mt=(Tt=p==null?void 0:p.toString())==null?void 0:Tt.trim())!=null&&Mt.length&&(((St=p==null?void 0:p.toString())==null?void 0:St.trim())!==(D==null?void 0:D.toString())&&As(($t=p==null?void 0:p.toString())==null?void 0:$t.trim()),l.delete("fips")),l.delete("zipcode"));const Ze=i=>{const{checked:x,value:Y,name:W}=i.target;if(W==="filterDate"){re(Ht,Y),Ve(Y),Hs(Y);return}const P=W==="policy"?$e:Se;let A=[];x===!0?A=[...new Set([...P,Y])]:A=[...P].filter(Z=>Z!==Y),W==="policy"?Ye(A):W==="carrier"&&ze(A),a(Xe(1))},Ls=()=>{Ye([]),ze([]);const[i]=M.filter(({isPrimary:x})=>x);a(ut((i==null?void 0:i.pharmacyId)||"null"))},Bs=i=>{const{value:x}=i.target;a(ut(x))};c.useImperativeHandle(s,()=>({changeFilters:Ze}));const ft=c.useCallback(async()=>{var Ae,He,X;if(we){Ge(),We([]);return}if(!D||!S){y(!1);return}y(!0);let i=ge;const x=ca();x.find(E=>E.value===i)||(i=x[0].value);let Y=i.substring(0,i.indexOf("-"));const W=await Me(),P=await da({Fips:D,ShowFormulary:Le.length&&!0,Year:Y,Zip:S,effectiveDate:i,leadId:ma(),ShowPharmacy:!0,hasMedicaid:w==="Yes",authToken:W}),A={},Z=((Ae=P==null?void 0:P.medicarePlans)==null?void 0:Ae.filter(E=>E.planName.indexOf("D-SNP")>=0&&E.planType!==ne))||[],ke=((He=P==null?void 0:P.medicarePlans)==null?void 0:He.filter(E=>!(E.planName.indexOf("D-SNP")>=0)&&E.planType!==ne))||[],de=((X=P==null?void 0:P.medicarePlans)==null?void 0:X.filter(E=>E.planType===ne))||[];A[xe]={medicarePlans:ke},A[ne]={medicarePlans:de},A[ls]={medicarePlans:Z},y(!0),We(A)},[ge,S,D,Le,we,w]),Be=c.useCallback(async i=>i in z?z[i]:z[mt[0]],[z]),yt=c.useCallback(async i=>i in z?z[i]:z[mt[1]],[z]),Ds=()=>{localStorage.setItem("healthConditionFromPage","plansPage"),a(rs(!0)),a(_e(!0)),a(fa()),a(ya()),a(ba())},Ge=c.useCallback(()=>{y(!1),h(0),a(Ke([])),a(Qe([])),a(Je([]))},[a]);c.useEffect(()=>{k===xe?ce.some(i=>i.isRecommendedPlan)?b(U[0].value):b(U[1].value):k===ne?ce.some(i=>i.isRecommendedPlan)?b(ee[0].value):b(ee[1].value):ce.some(i=>i.isRecommendedPlan)?b(ye[0].value):b(ye[1].value)},[ce,k]);const bt=c.useCallback(()=>k===xe?ce.some(i=>i.isRecommendedPlan)?U:U.slice(1):k===ne?ce.some(i=>i.isRecommendedPlan)?ee:ee.slice(1):ce.some(i=>i.isRecommendedPlan)?ye:ye.slice(1),[ce,k]),kt=c.useCallback(async()=>{if(Object.keys(z).length===0)return;h(0),y(!0),ze([]),Ye([]);let i="2023";if(re(It,i),$s(i),(!S||S.length<5||we)&&Ge(),D)try{a(Ke([])),a(Qe([])),a(Je([]));const x=await Be(k);a(Xe(1)),a(Ke(x==null?void 0:x.medicarePlans)),a(Ue(!1)),mt.map(async P=>{var A,Z,ke,de,Ae,He;if(P!==k){const X=await yt(P);if(k===11){const[E,qe]=await Promise.all([Be(xe),Be(ne)]);a(et((A=E==null?void 0:E.medicarePlans)==null?void 0:A.length)),a(tt((Z=qe==null?void 0:qe.medicarePlans)==null?void 0:Z.length))}x&&k===xe&&(a(et((ke=x==null?void 0:x.medicarePlans)==null?void 0:ke.length)),await a(tt((de=X==null?void 0:X.medicarePlans)==null?void 0:de.length))),X&&k===ne&&(a(tt((Ae=x==null?void 0:x.medicarePlans)==null?void 0:Ae.length)),a(et((He=X==null?void 0:X.medicarePlans)==null?void 0:He.length)))}});const Y=[...new Set(x==null?void 0:x.medicarePlans.map(P=>P.marketingName))],W=[...new Set(x==null?void 0:x.medicarePlans.map(P=>(P==null?void 0:P.planSubType)||"PDP"))];a(Qe(W)),a(Je(Y))}catch(x){pa(x)}finally{y(!1)}},[z,a,we,D,k,S,yt,Be,Ge]),De=10;return c.useEffect(()=>{ht()},[]),c.useEffect(()=>{const i=(r-1)*De,x=De*r,Y=fi(O),W=n||[],P=Se.length>0?W.filter(de=>Se.includes(de.marketingName)):W,A=$e.length>0?P.filter(de=>$e.includes(de.planSubType)):P,Z=[...A].sort(Y);Ms(A),h((Z==null?void 0:Z.length)||0);const ke=[...Z].slice(i,x);Ts(ke)},[Se,r,Le,De,$e,n,O]),c.useEffect(()=>{Object.keys(z).length&&kt()},[k,z,kt]),c.useEffect(()=>{y(!0),We({}),ft()},[D,Fs,Le,ft,Is,S]),c.useEffect(()=>{a(Ue(!0))},[a,D,k,S,ge]),c.useEffect(()=>{(async()=>{if(D&&S){const x=await Me();ka({fips:D,zip:S,authToken:x})}})()},[D,S]),c.useEffect(()=>{n.length&&y(J)},[J,n]),e.jsxs(e.Fragment,{children:[e.jsx($2,{changeFilter:V,isMobile:v,planType:k})," ",e.jsx("div",{className:N.plansContentText,children:e.jsx(L,{text:"If you are turning 65, or on Medicare and have recently moved or lost coverage, you may be eligible for a Medicare Plan. "})}),e.jsxs("div",{className:N.plansPage,children:[e.jsx(ua,{queries:{mobile:{maxWidth:wt},tablet:{minWidth:parseInt(wt,10)+1,maxWidth:ha}},onChange:i=>{F(i.mobile),B(i.tablet)}}),e.jsx(xa,{alt:H==null?void 0:H.alt,description:H==null?void 0:H.description,image:H==null?void 0:H.image,largeImage:H==null?void 0:H.largeImage,title:H==null?void 0:H.title}),e.jsxs(tr,{className:N.searchContainer,children:[e.jsxs("div",{className:N.filters,children:[e.jsxs("div",{className:N.filterSection,children:[e.jsx(_a,{changeFilter:Ze,initialValue:ge,isMobile:v}),!v&&e.jsx(ds,{onFilterChange:Bs},"plansPharmacyFilter")]}),!C&&e.jsx("div",{className:N.filterSection,children:e.jsx(er,{carrierFilters:Se,carriers:d,isMobile:v,onFilterChange:Ze,clearFilters:Ls,onSortChange:b,policyFilters:$e,policyTypes:u,showNetwork:parseInt(k)===xe,sort:O,sortOptions:bt()})})]}),e.jsxs("div",{className:N.results,children:[e.jsx(Ea,{onClick:Ds,planType:R}),e.jsxs("div",{className:`${N.sort} ${O==="total-asc"?N["sort-total"]:""}`,children:[yi(_,C,t,we),e.jsx("div",{className:N.sortSelect,children:e.jsx(Qa,{initialValue:O,onChange:i=>b(i),options:bt(),prefix:"Sort by: "})})]}),!v&&O==="total-asc"&&e.jsx(fs,{}),e.jsxs("div",{className:N.plans,children:[e.jsx(_i,{className:N.planFooter,plans:vs,isMobile:v,isTablet:j,loading:C,effectiveDate:ge,planType:k,year:Ss,zip:S}),!C&&_>0&&e.jsx(Ca,{currentPlansPage:r,resultName:"plans",resultTrailer:e.jsx("span",{className:N.plansZip,children:e.jsx(ve,{onClick:()=>t(!0),text:S})}),totalPages:Math.ceil(_/10),totalResults:_,pageSize:De,onPageChange:i=>{ht(),a(Xe(i))}})]}),e.jsx(Ya,{className:N.medicareDisclaimer})]})]})]})]})}),ki=as.memo(bi),qt=.5,Ji={show:!1,agentUserProfile:null,agentPurl:null},Pi=()=>{var Me;const t=Q(),s=c.useRef(null),a=ns(),o=a==null?void 0:a.get("zip"),{setZipCode:r,setCounty:n,counties:d,county:u,onSetCounties:l,onSetCounty:m,onSetZipCode:p,zipCode:_}=c.useContext(os);c.useEffect(()=>{a.get("zip")&&r(a.get("zip")),a.get("countyFIPS")&&n(a.get("countyFIPS"))},[]);const{contentId:h}=c.useContext(Pa),{isGuidedProcess:C,isGuidedModal:y}=g(V=>V.guidedDetails),v=_||o,[F,j]=c.useState(!(v||C)),{purlAgentData:B}=c.useContext(Na),{prescriptionModal:O,setPrescriptionModal:b}=c.useContext(Oe),k=V=>{s.current.changeFilters(V)},{intersectionRatio:le}=ja({root:null,threshold:qt,target:"#plansHeader"});let w="";if(_&&u&&Array.isArray(d)){const V=d.find(Ve=>Ve.countyFIPS===u),ge=(V==null?void 0:V.countyName)||"";w=`${_} | ${ge}`}const M=()=>{j(!0),b(!1),t(Ie(!1)),t(_e(!1)),t(fe(!1))},J=()=>{j(!1),b(!0),t(Ie(!1)),t(_e(!1)),t(fe(!1))},R=()=>{j(!1),b(!1),t(Ie(!1)),t(_e(!0)),t(fe(!1))},f=()=>{j(!1),b(!1),t(rs(!1)),t(Ie(!1)),t(_e(!1)),t(fe(!0)),t(Qt(!1))},te=()=>{j(!1),b(!1),t(_e(!1)),t(fe(!1)),t(Ie(!0))};return e.jsxs(e.Fragment,{children:[e.jsx(Wa,{}),e.jsxs("div",{id:h,children:[e.jsx("div",{id:"plansHeaderMobile",className:`${ae.plansHeaderMobile} ${ae.plansFixedHeaderVisible} ${B?ae.plansMobileFixedHeaderPurl:ae.plansMobileFixedHeader}`,style:{top:`${B&&localStorage.getItem("reqAgentData")&&((Me=document.getElementById("purlBannerThin"))==null?void 0:Me.clientHeight)+"px"}`},children:e.jsx(yn,{addPrescription:()=>b(!0),onClick:M,onClickPrescription:J,onClickPharmacy:R,onClickDoctor:f,onClickMedicaid:te,zipCounty:w})}),e.jsxs("div",{className:ae.plans,children:[e.jsx(va,{isOpen:F,footerButtonClicked:()=>{j(!1),p(localStorage.getItem("updatedZipCode")),m(localStorage.getItem("updatedCountyVal")||localStorage.getItem("countyVal")),localStorage.removeItem("updatedCountyVal"),ht(),t(Ta(!0))},onClose:()=>{j(!1),m(localStorage.getItem("countyVal")),localStorage.removeItem("countyVal"),l([])},isOnChangeEnable:!1}),e.jsx(Ma,{onChangeDateFilter:k,isOpen:y}),e.jsx(Sa,{}),e.jsx($a,{}),e.jsx(wa,{isOpen:O}),e.jsx(Aa,{}),e.jsx(Oa,{}),e.jsx(Ha,{}),e.jsx("div",{className:ae.plansHeader,id:"plansHeader",children:e.jsx(Zo,{addPrescription:()=>b(!0),className:ae.plansHeaderInputs,onClick:M,onClickPrescription:J,onClickPharmacy:R,onClickDoctor:f,onClickMedicaid:te,zipCounty:_})}),e.jsx("div",{className:`${ae.plansSideHeader} ${le<=qt?ae.plansSideHeaderVisible:""}`,children:e.jsx(Nn,{addPrescription:()=>b(!0),onClick:M,onClickPrescription:J,onClickPharmacy:R,onClickDoctor:f,onClickMedicaid:te,zipCounty:w})}),e.jsx(ki,{ref:s,openZip:j}),e.jsx(Ua,{})]})]})]})},Xi=c.memo(Pi);export{Xi as default,Ji as defaultPreferredAgentData}; //# sourceMappingURL=index-RctZNQp8.js.map