import{j as e,ab as c,ep as w,q as z,O as J,eq as K,y as X,af as Y,d6 as D,r as ee,dD as ne,aj as se,dr as _,ek as te,T as t,er as ae,B as k}from"./index-BbiZcFRx.js";import{T as B}from"./index-BVq_teg5.js";const oe="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10%204L2%2012L10%2020'%20stroke='%23FFF174'%20stroke-width='2'%20stroke-miterlimit='10'/%3e%3cpath%20d='M24%2012H2'%20stroke='%23FFF174'%20stroke-width='2'/%3e%3c/svg%3e",I="data:image/svg+xml,%3csvg%20width='16'%20height='17'%20viewBox='0%200%2016%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_13029_137021)'%3e%3cpath%20d='M2%203.25H14C14.7123%203.25%2015.25%203.8041%2015.25%204.43939V12.197C15.25%2012.8323%2014.7123%2013.3864%2014%2013.3864H2C1.28772%2013.3864%200.75%2012.8323%200.75%2012.197V4.43939C0.75%203.8041%201.28772%203.25%202%203.25Z'%20stroke='%231157EE'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M0.666016%204.50466L7.99935%207.83333L15.3327%204.5'%20stroke='%231157EE'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_13029_137021'%3e%3crect%20width='16'%20height='16'%20fill='white'%20transform='translate(0%200.5)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",P="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%200H12C18.6274%200%2024%205.37258%2024%2012C24%2018.6274%2018.6274%2024%2012%2024H0V0Z'%20fill='white'/%3e%3crect%20width='24'%20height='24'%20rx='12'%20fill='%23E2F4FD'/%3e%3cg%20clip-path='url(%23clip0_13029_137029)'%3e%3cpath%20d='M18.9487%2010.1339L15.4393%2013.5643C14.7346%2014.2532%2013.7788%2014.6402%2012.7822%2014.6402C11.7855%2014.6402%2010.8297%2014.2532%2010.125%2013.5643L15.4393%208.37004L16.2918%207.5367C16.647%207.20666%2017.12%207.02534%2017.61%207.0314C18.1%207.03746%2018.5682%207.23043%2018.9147%207.56915C19.2612%207.90787%2019.4587%208.36553%2019.4649%208.84452C19.4711%209.3235%2019.2856%209.7859%2018.9479%2010.1331L18.9487%2010.1339Z'%20fill='%231157EE'/%3e%3cpath%20d='M15.4392%2013.5673L11.4533%2017.4634C11.2789%2017.6339%2011.0719%2017.7692%2010.844%2017.8615C10.6161%2017.9538%2010.3719%2018.0014%2010.1252%2018.0014C9.87857%2018.0014%209.63433%2017.9538%209.40646%2017.8615C9.17859%2017.7692%208.97155%2017.6339%208.79719%2017.4634L5.04916%2013.8004C4.86744%2013.6315%204.72214%2013.4288%204.62181%2013.2042C4.52149%2012.9796%204.46817%2012.7376%204.46499%2012.4926C4.46182%2012.2475%204.50886%2012.0043%204.60334%2011.7773C4.69782%2011.5503%204.83783%2011.344%205.01511%2011.1707C5.1924%2010.9974%205.40338%2010.8605%205.63562%2010.7682C5.86786%2010.6758%206.11666%2010.6299%206.36736%2010.633C6.61806%2010.6361%206.86559%2010.6882%207.09536%2010.7863C7.32513%2010.8843%207.5325%2011.0264%207.70525%2011.204L10.1248%2013.5673C10.8296%2014.2561%2011.7854%2014.6431%2012.782%2014.6431C13.7786%2014.6431%2014.7344%2014.2561%2015.4392%2013.5673Z'%20fill='%23052A63'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_13029_137029'%3e%3crect%20width='15'%20height='11'%20fill='white'%20transform='translate(4.5%206.5)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",L="data:image/svg+xml,%3csvg%20width='16'%20height='17'%20viewBox='0%200%2016%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M5.42592%2011.0611C2.61074%208.24116%200.798609%204.62719%202.93928%202.48256C2.98775%202.43001%203.04284%202.38397%203.10316%202.3456C3.90433%201.76135%204.65167%201.58798%205.15279%202.30919L6.64667%204.4261C6.75934%204.54514%206.84536%204.68684%206.89897%204.84174C6.95258%204.99664%206.97256%205.1612%206.95758%205.32443C6.9426%205.48766%206.893%205.64582%206.81209%205.78837C6.73118%205.93093%206.6208%206.05461%206.48833%206.15116L6.01334%206.66177C5.95228%206.73168%205.91637%206.82001%205.91135%206.9127C5.90633%207.00538%205.93248%207.09709%205.98563%207.17319C6.41966%207.83134%206.92025%208.44309%207.4795%208.99878C8.03678%209.55743%208.64654%2010.0611%209.30034%2010.5029C9.38342%2010.5548%209.4804%2010.58%209.57822%2010.575C9.67603%2010.5701%209.76997%2010.5352%209.84738%2010.4752L10.3224%2010.0002C10.4178%209.86698%2010.5407%209.7557%2010.6827%209.67392C10.8248%209.59214%2010.9827%209.54176%2011.1459%209.52616C11.309%209.51056%2011.4736%209.53009%2011.6286%209.58347C11.7836%209.63684%2011.9253%209.72281%2012.0443%209.83558C13.0916%2010.5655%2013.6656%2010.9677%2014.2119%2011.3595C14.8959%2011.8892%2014.7312%2012.6927%2014.1849%2013.3316C14.1303%2013.4044%2014.0662%2013.486%2013.9934%2013.5691C11.8566%2015.6971%208.24743%2013.8905%205.42592%2011.0611Z'%20stroke='%231157EE'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",re="_headerContent_1rfyx_88",ie="_bannerBlock_1rfyx_98",le="_bannerContent_1rfyx_107",ce="_labelClassName_1rfyx_118",xe="_iconClassName_1rfyx_123",de="_agentProfileContainer_1rfyx_128",me="_agentInfoContainer_1rfyx_139",Ce="_productTypeLanguageContainer_1rfyx_144",ge="_productTypesContainer_1rfyx_150",_e="_languageContainer_1rfyx_155",he="_agentInfoBody_1rfyx_160",fe="_agentInfoBody1_1rfyx_167",pe="_agentInfoBody2_1rfyx_174",ue="_agentPicture_1rfyx_179",Ne="_name_1rfyx_184",ye="_nameWithStatus_1rfyx_193",je="_availableText_1rfyx_201",Ae="_nameWithAvailability_1rfyx_205",be="_phoneEmail_1rfyx_211",Te="_link_1rfyx_217",ve="_envelopeIcon_1rfyx_226",ke="_subTextContainer_1rfyx_232",Be="_hrLine_1rfyx_237",we="_agentAddress_1rfyx_238",Ie="_experienceText_1rfyx_245",Pe="_experienceBlock_1rfyx_249",Le="_subText_1rfyx_232",Me="_hourText_1rfyx_266",$e="_subTextBold_1rfyx_278",Ee="_phoneIcon_1rfyx_287",Fe="_networkAgentIcon_1rfyx_293",He="_agentTypeContainer_1rfyx_298",We="_preferredAgentBox_1rfyx_304",Re="_networkAgentBox_1rfyx_321",Se="_networkAgentText_1rfyx_332",Oe="_reachAgentContainer_1rfyx_341",Ue="_emailBtn_1rfyx_348",Ze="_callBtn_1rfyx_353",qe="_aboutMeContainer_1rfyx_366",Ve="_aboutMeHeader_1rfyx_373",Ge="_aboutMeContent_1rfyx_382",Qe="_findAgentContainer_1rfyx_391",ze="_findAgent_1rfyx_391",Je="_infoCardDetailsClassName_1rfyx_402",Ke="_addressDetailContainer_1rfyx_407",Xe="_availableHoursContainer_1rfyx_413",Ye="_npnCIAContainer_1rfyx_422",De="_agentNpn_1rfyx_428",n={headerContent:re,bannerBlock:ie,bannerContent:le,labelClassName:ce,iconClassName:xe,agentProfileContainer:de,agentInfoContainer:me,productTypeLanguageContainer:Ce,productTypesContainer:ge,languageContainer:_e,agentInfoBody:he,agentInfoBody1:fe,agentInfoBody2:pe,agentPicture:ue,name:Ne,nameWithStatus:ye,availableText:je,nameWithAvailability:Ae,phoneEmail:be,link:Te,envelopeIcon:ve,subTextContainer:ke,hrLine:Be,agentAddress:we,experienceText:Ie,experienceBlock:Pe,subText:Le,hourText:Me,subTextBold:$e,phoneIcon:Ee,networkAgentIcon:Fe,agentTypeContainer:He,preferredAgentBox:We,networkAgentBox:Re,networkAgentText:Se,reachAgentContainer:Oe,emailBtn:Ue,callBtn:Ze,aboutMeContainer:qe,aboutMeHeader:Ve,aboutMeContent:Ge,findAgentContainer:Qe,findAgent:ze,infoCardDetailsClassName:Je,addressDetailContainer:Ke,availableHoursContainer:Xe,npnCIAContainer:Ye,agentNpn:De},sn=({isPreferredAgent:r,isNetworkAgent:l,className:s,agentTypeClassName:x})=>e.jsxs("div",{className:`${n.agentTypeContainer} ${s}`,children:[r&&e.jsx("span",{className:n.preferredAgentBox,children:"Preferred Agent"}),l&&e.jsxs("div",{className:`${x} ${n.networkAgentBox}`,children:[e.jsx("span",{className:n.networkAgentText,children:"Network Agent"}),e.jsx(c,{className:n.networkAgentIcon,image:P})]})]}),tn=({phoneNumber:r,email:l,className:s=""})=>e.jsxs("div",{className:`${n.phoneEmail} ${s}`,children:[r&&e.jsxs("a",{className:n.link,href:`tel:${r}`,rel:"noreferrer",children:[e.jsx(c,{className:`${n.phoneIcon}`,image:L}),w(r)," "]}),l&&e.jsxs("a",{className:n.link,href:`mailto:${l}`,rel:"noreferrer",children:[e.jsx(c,{className:`${n.envelopeIcon}`,image:I}),l]})]}),an=()=>{var A,b,T,v;let r=z();J().get(K),X(a=>a.planTypeDetail.selectedPlanType);const s=Y(D),{isMobile:x}=ee.useContext(ne),{agentProfessionalInfoResponse:M}=s||{},{agentOfficeLocation:$,formattedHours:h="",experience:f=""}=M||{},{city:m="",state:C="",streetAddress:p=""}=$||{},o=(h==null?void 0:h.split(",").filter(Boolean))||[],g=(A=s==null?void 0:s.virtualNumber)==null?void 0:A.substring(2),E=s==null?void 0:s.isPurlToggledOn,N=s==null?void 0:s.isTrainingComplete,y=(b=s==null?void 0:s.hasActiveCampaigns)==null?void 0:b.hasActiveLifeCallCampaign,F=(T=s==null?void 0:s.hasActiveCampaigns)==null?void 0:T.hasActiveHealthCallCampaign,H=()=>{r.goBack()},j=()=>e.jsxs("div",{className:n.npnCIAContainer,children:[s.caLicense&&e.jsxs(t,{className:s.agentNpn?n.ciaLicense:"",children:["California License#: ",s.caLicense]}),e.jsxs(t,{className:s.caLicense&&!x?n.hrLine:"",children:["NPN: ",s.agentNpn]})]}),W=[m,C].filter(Boolean).join(", "),R=()=>e.jsxs("div",{className:n.nameWithStatus,children:[e.jsxs("div",{className:n.nameWithAvailability,children:[e.jsx(t,{text:`${s==null?void 0:s.agentFirstName} ${s==null?void 0:s.agentLastName}`,className:n.name}),!x&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:n.subTextContainer,children:[e.jsx(t,{text:s!=null&&s.isMedicareAgent?"Health Agent":"Life Agent",className:n.subTextBold}),e.jsx(t,{text:s!=null&&s.isMedicareAgent?"(Medicare)":"(Final Expense)",className:n.subText}),f>0&&e.jsxs("div",{className:n.experienceBlock,children:[e.jsx(t,{text:"Experience",className:n.subTextBold}),e.jsx(t,{text:`(${f} years)`,className:n.experienceText})]})]}),e.jsx(t,{className:n.subTextBold,children:s==null?void 0:s.agencyName}),e.jsx(j,{}),e.jsxs("div",{className:n.subTextContainer,children:[(m||C)&&e.jsx(t,{className:n.subText,text:`${W}`}),!!p&&e.jsx(t,{text:p,className:n.agentAddress}),o.length===1&&e.jsx(t,{text:`${o[0]||"Mon - Fri. 8AM - 9PM CT1"}`,className:`${n.subText} ${n.hrLine}`})]}),(o==null?void 0:o.length)>1&&e.jsx("div",{className:n.availableHoursContainer,children:o.map((a,i)=>e.jsx(t,{text:a,className:n.hourText},i))})]})]}),e.jsx(ae,{isPurlToggledOn:E,labelClassName:n.availableText})]}),S=()=>e.jsxs("div",{className:n.phoneEmail,children:[e.jsxs("a",{className:n.link,href:`tel:${g}`,rel:"noreferrer",children:[e.jsx(c,{className:`${n.phoneIcon}`,image:L}),w(g)," "]}),e.jsxs("a",{className:n.link,href:`mailto:${s==null?void 0:s.email}`,rel:"noreferrer",children:[e.jsx(c,{className:`${n.envelopeIcon}`,image:I}),s==null?void 0:s.email]})]}),O=()=>e.jsxs("div",{className:n.agentTypeContainer,children:[s!=null&&s.isMedicareAgent?y&&e.jsx("span",{className:n.preferredAgentBox,children:"Preferred Agent"}):F&&e.jsx("span",{className:n.preferredAgentBox,children:"Preferred Agent"}),N&&e.jsxs("div",{className:n.networkAgentBox,children:[e.jsx("span",{className:n.networkAgentText,children:"Network Agent"}),e.jsx(c,{className:n.networkAgentIcon,image:P})]})]}),U=()=>e.jsxs("div",{className:n.agentInfoBody2,children:[e.jsx(S,{phoneNumber:g,email:s==null?void 0:s.email}),e.jsx(O,{isNetworkAgent:N,isPreferredAgent:y})]}),Z=()=>e.jsxs("div",{className:n.reachAgentContainer,children:[e.jsx(k,{label:"Send Email",onClick:()=>{window.location=`mailto:${s==null?void 0:s.email}`},className:n.emailBtn,id:"sendEmailButton"}),e.jsx(k,{label:`Call ${s==null?void 0:s.agentFirstName}`,onClick:()=>{window.location=`tel:${g}`},className:n.callBtn,id:"callAgentButton"})]}),q=()=>e.jsxs("div",{className:n.agentInfoBody,children:[e.jsxs("div",{className:n.agentInfoBody1,children:[e.jsx(te,{firstName:s==null?void 0:s.agentFirstName,lastName:s==null?void 0:s.agentLastName,profileUrl:s==null?void 0:s.profileImageUrl,hideCameraOverlay:!0,className:n.agentPicture}),e.jsx(R,{})]}),x&&e.jsxs("div",{className:n.addressDetailContainer,children:[e.jsxs("div",{className:n.subTextContainer,children:[e.jsx(t,{text:s!=null&&s.isMedicareAgent?"Health Agent ":"Life Agent",className:n.subTextBold}),e.jsx(t,{text:`(${s!=null&&s.isMedicareAgent?"Medicare":"Final Expense"}) |`,className:n.subText}),e.jsx(t,{text:`(${f} years)`,className:n.subText})]}),e.jsx(t,{className:n.subTextBold,children:s==null?void 0:s.agencyName}),e.jsx(j,{}),e.jsxs("div",{className:n.subTextContainer,children:[(m||C)&&e.jsx(t,{text:`${m}, ${C}`,className:n.subText}),e.jsx(t,{text:`${p}`,className:n.agentAddress})]}),o.length===0&&e.jsx("div",{className:n.subTextContainer,children:e.jsx(t,{text:"Mon - Fri. 8AM - 9PM CT",className:n.subText})}),(o==null?void 0:o.length)>1&&e.jsx("div",{className:n.availableHoursContainer,children:o.map((a,i)=>e.jsx(t,{text:a,className:n.hourText},i))})]}),e.jsx(U,{}),e.jsx(Z,{})]}),V=()=>{var a;return e.jsxs("div",{className:n.aboutMeContainer,children:[e.jsx(t,{text:"About Me",className:n.aboutMeHeader}),e.jsx(t,{text:((a=s==null?void 0:s.agentProfessionalInfoResponse)==null?void 0:a.agentBio)||"",className:n.aboutMeContent})]})},G=()=>{var d;const{agentProfessionalInfoResponse:a}=s||{},i=((d=a==null?void 0:a.agentProductSpecialties)==null?void 0:d.map(u=>({title:u.productSpeciality})))||[];return e.jsxs("div",{className:n.aboutMeContainer,children:[e.jsx(t,{text:"Product Types",className:n.aboutMeHeader}),e.jsx(B,{className:n.tagsContainer,items:i,onClick:()=>{}})]})},Q=()=>{var d;const{agentProfessionalInfoResponse:a}=s||{},i=((d=a==null?void 0:a.agentLanguages)==null?void 0:d.map(u=>({title:u.languageName})))||[];return e.jsxs("div",{className:n.aboutMeContainer,children:[e.jsx(t,{text:"Languages",className:n.aboutMeHeader}),e.jsx(B,{className:n.tagsContainer,items:i,onClick:()=>{}})]})};return s?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:n.bannerBlock,children:e.jsx("div",{className:n.bannerContent,children:e.jsx(se,{caption:"Back",className:n.iconWithLink,iconClassName:n.iconClassName,image:oe,isImageClickable:!0,labelClassName:n.labelClassName,onClick:H})})}),e.jsxs("div",{className:n.agentProfileContainer,children:[e.jsx(_,{bodyElement:e.jsx(q,{}),containerClassName:n.agentInfoContainer,infoCardDetailsClassName:n.infoCardDetailsClassName}),!!((v=s==null?void 0:s.agentProfessionalInfoResponse)!=null&&v.agentBio)&&e.jsx(_,{bodyElement:e.jsx(V,{}),containerClassName:n.agentInfoContainer,infoCardDetailsClassName:n.infoCardDetailsClassName}),e.jsxs("div",{className:n.productTypeLanguageContainer,children:[e.jsx(_,{bodyElement:e.jsx(G,{}),containerClassName:n.productTypesContainer,infoCardDetailsClassName:n.infoCardDetailsClassName}),e.jsx(_,{bodyElement:e.jsx(Q,{}),containerClassName:n.languageContainer,infoCardDetailsClassName:n.infoCardDetailsClassName})]}),!1]})]}):e.jsx(e.Fragment,{})};export{sn as AgentType,tn as PhoneEmail,an as default};
//# sourceMappingURL=index-LjoJIJXw.js.map