import{j as t,w as U,y as C,q as S,u as L,T as b,B as k,dc as f,ce as w,ch as D,am as q,an as X,bD as O,r as R,bA as K,ed as W,dy as G,ee as V,s as z,cM as H,dG as M,b3 as Q,bh as Y,ea as J,e9 as Z}from"./index-CNnTZTc7.js";import{R as tt}from"./index-0OagyPj4.js";import{C as et}from"./index-BVurCHUJ.js";import{g as st}from"./getRequestCallBackUrl-BucEa6OS.js";const at="_ctaItem_1wnbj_88",nt="_image_1wnbj_92",ot="_ctaContent_1wnbj_96",E={ctaItem:at,image:nt,ctaContent:ot},v=({alt:a,children:s,className:e="",ctaContentClassName:l="",dataGtm:n="",desktopImage:o,mobileImage:c,pictureClassName:r,tabletImage:u})=>t.jsxs("div",{className:`${e} ${E.ctaItem}`,"data-gtm":n,children:[t.jsx(tt,{alt:a,className:E.image,desktopImage:o,mobileImage:c,pictureClassName:r,tabletImage:u}),t.jsx("div",{className:`${l} ${E.ctaContent}`,children:s})]}),ct="_ctaTitle_1srv1_88",lt={ctaTitle:ct},B=({className:a="",title:s})=>t.jsx(U,{text:s,className:`${a} ${lt.ctaTitle}`}),rt="_button_10etc_88",it="_text_10etc_99",d={button:rt,text:it},ut=({className:a="",dataGtm:s="",image:e,title:l})=>{var p;const n=C(N=>N.planTypeDetail.selectedPlanType),o=(p=e==null?void 0:e.asset)==null?void 0:p.url,c=S(),{pathname:r}=L(),u=()=>{c.push(r.includes(f)||n===w?D:q),X()},h=`View ${n==O?"Medicare":"Final Expense"} coverage options in your area`;return t.jsxs(v,{className:`${a} ${d.ctaItemWithButton}`,dataGtm:s,desktopImage:o,children:[t.jsx(B,{title:l}),t.jsx(b,{className:d.text,text:h}),t.jsx(k,{className:d.button,label:"Find coverage",onClick:u})]})},_t="_phone_1ev43_88",mt="_text_1ev43_93",pt="_button_1ev43_97",x={phone:_t,text:mt,button:pt},xt=({className:a="",dataGtm:s,image:e,phoneNumber:l})=>{var P,g,A;const n=(P=e==null?void 0:e.asset)==null?void 0:P.url,o=C(i=>i.planTypeDetail.selectedPlanType),c=()=>{const i=st(!1);T.push(i)},r=()=>{u?(localStorage.setItem("fromReqCallBack","homePage"),c()):(z(H,"true"),o===O||window.location.pathname===M?T.push(Q):T.push(Y))},{purlAgentData:u}=R.useContext(K),{phone:h}=R.useContext(W),{pathname:p}=L(),{number:N}=h,_=C(i=>i.planTypeDetail.medicareAgent),m=C(i=>i.planTypeDetail.finalExpenseAgent),I=[f,J,Z],y=I.includes(p)?m==null?void 0:m.agentFirstName:_==null?void 0:_.agentFirstName,j=I.includes(p)?((g=m==null?void 0:m.virtualNumber)==null?void 0:g.substring(2))??"":((A=_==null?void 0:_.virtualNumber)==null?void 0:A.substring(2))??"",$=j?G(j):N,F=y?`Contact ${y}`:"Contact an agent",T=S();return t.jsxs(v,{className:`${a} ${x.ctaItemWithSubtitle}`,dataGtm:s,desktopImage:n,children:[t.jsx(B,{title:"Get personalized guidance"}),t.jsx(b,{className:x.text,text:"Connect with a licensed insurance agent"}),t.jsx(V,{className:x.phone,number:$,text:$}),!u&&t.jsx(b,{className:x.text,text:"Or have an agent contact you"}),t.jsx(et,{className:x.button,label:F,onClick:r})]})},Ct="_ctaItems_1jlqp_88",ht={ctaItems:Ct},yt=({className:a="",items:s})=>s?t.jsx("div",{className:`${ht.ctaItems} ${a}`,children:s.map(({ctaText:e,ctaNumber:l,ctaTitle:n,dataGtm:o,mainImage:c,slug:r})=>l?t.jsx(xt,{dataGtm:o,image:c,phoneNumber:l,subtitle:e,title:n},n):t.jsx(ut,{dataGtm:o,image:c,slug:r,text:e,title:"Ready to find coverage in your area?"},n))}):null,Nt="_featureTitle_14d1z_88",Tt={featureTitle:Nt},jt=({className:a,text:s,titleClassName:e=Tt.featureTitle})=>t.jsx("h1",{className:`${a} ${e}`,children:s});export{yt as C,jt as F}; //# sourceMappingURL=index-Cs0kIWnc.js.map