import{j as t,w as U,y as C,q as L,u as S,T as b,B as k,dd as f,cd as w,cg as D,am as q,an as X,bD as O,r as R,bA as K,ec as W,dx as V,ed as z,s as G,cL as H,dF as Q,b3 as M,bh as Y,e9 as J,e8 as Z}from"./index-BbiZcFRx.js";import{R as tt}from"./index-C-uYT597.js";import{C as et}from"./index-DQ6MvdSO.js";import{g as st}from"./getRequestCallBackUrl-CNSCnRZg.js";const at="_ctaItem_1wnbj_88",nt="_image_1wnbj_92",ot="_ctaContent_1wnbj_96",d={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} ${d.ctaItem}`,"data-gtm":n,children:[t.jsx(tt,{alt:a,className:d.image,desktopImage:o,mobileImage:c,pictureClassName:r,tabletImage:u}),t.jsx("div",{className:`${l} ${d.ctaContent}`,children:s})]}),ct="_ctaTitle_1srv1_88",lt={ctaTitle:ct},F=({className:a="",title:s})=>t.jsx(U,{text:s,className:`${a} ${lt.ctaTitle}`}),rt="_button_10etc_88",it="_text_10etc_99",E={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=L(),{pathname:r}=S(),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} ${E.ctaItemWithButton}`,dataGtm:s,desktopImage:o,children:[t.jsx(F,{title:l}),t.jsx(b,{className:E.text,text:h}),t.jsx(k,{className:E.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 g,P,A;const n=(g=e==null?void 0:e.asset)==null?void 0:g.url,o=C(i=>i.planTypeDetail.selectedPlanType),c=()=>{const i=st(!1);T.push(i)},r=()=>{u?(localStorage.setItem("fromReqCallBack","homePage"),c()):(G(H,"true"),o===O||window.location.pathname===Q?T.push(M):T.push(Y))},{purlAgentData:u}=R.useContext(K),{phone:h}=R.useContext(W),{pathname:p}=S(),{number:N}=h,_=C(i=>i.planTypeDetail.medicareAgent),m=C(i=>i.planTypeDetail.finalExpenseAgent),I=[f,J,Z],j=I.includes(p)?m==null?void 0:m.agentFirstName:_==null?void 0:_.agentFirstName,y=I.includes(p)?((P=m==null?void 0:m.virtualNumber)==null?void 0:P.substring(2))??"":((A=_==null?void 0:_.virtualNumber)==null?void 0:A.substring(2))??"",$=y?V(y):N,B=j?`Contact ${j}`:"Contact an agent",T=L();return t.jsxs(v,{className:`${a} ${x.ctaItemWithSubtitle}`,dataGtm:s,desktopImage:n,children:[t.jsx(F,{title:"Get personalized guidance"}),t.jsx(b,{className:x.text,text:"Connect with a licensed insurance agent"}),t.jsx(z,{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:B,onClick:r})]})},Ct="_ctaItems_1jlqp_88",ht={ctaItems:Ct},jt=({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},yt=({className:a,text:s,titleClassName:e=Tt.featureTitle})=>t.jsx("h1",{className:`${a} ${e}`,children:s});export{jt as C,yt as F}; //# sourceMappingURL=index-UjTYR_nl.js.map