import{a as w,q as H,r as s,bA as T,z as y,ed as k,y as x,u as P,bh as t,an as R,f as q,j as e,aC as D,a3 as b,T as r,ab as A,b3 as f,aJ as L,bC as F,cN as z,en as M}from"./index-CNnTZTc7.js";import{B as U}from"./index-BLSN1pDA.js";import{C as O}from"./index-Dl431XGQ.js";import{H as V}from"./index-DRQ-j669.js";import{L as G}from"./index-DHW9g59_.js";import{g as W}from"./getRequestCallBackUrl-BucEa6OS.js";import"./react-router-dom.min-CueLcAwJ.js";import"./index-D-NY1ncL.js";import"./index-DGhinOqI.js";const X="/assets/image-Dx43un15.png",Z="/assets/mobImage-BSHAHMNX.png",c={description:"What is PlanEnroll? What are our objectives? What do we hope to accomplish? Read here to learn more about PlanEnroll and how we can help you.",title:"Request Call Back | PlanEnroll"},J="_availableAgents_1i841_88",K="_lifeDivider_1i841_97",Q="_agentsCardsContainer_1i841_101",$="_header3_1i841_107",Y="_mapAndCardsBox_1i841_114",ee="_cardBox_1i841_122",ae="_title_1i841_127",te="_agentListContainer_1i841_135",ne="_blueBanner_1i841_142",oe="_content_1i841_149",se="_error_1i841_160",ie="_finalExpenseAgreement_1i841_164",ce="_lastUpdated_1i841_168",re="_pageSubHeading_1i841_176",le="_pageSubHeading2_1i841_181",de="_heading2_1i841_188",ge="_zipCodeInput_1i841_193",ue="_zipCodeInputSubmitButton_1i841_197",_e="_subHeadingContainer_1i841_208",me="_agreement_1i841_213",pe="_contactContainer_1i841_219",Ce="_imageContainer_1i841_226",he="_sideImage_1i841_231",xe="_imageContainerMobile_1i841_235",be="_insuranceAgentContactContainer_1i841_239",Ae="_insuranceAgentContactText_1i841_248",fe="_insuranceAgentContactInfo_1i841_269",Ne="_detailsValue_1i841_284",ve="_divider_1i841_306",Ie="_contactAnAgent_1i841_310",Se="_getStartedBanner_1i841_380",je="_contactHeading2_1i841_478",a={availableAgents:J,lifeDivider:K,agentsCardsContainer:Q,header3:$,mapAndCardsBox:Y,cardBox:ee,title:ae,agentListContainer:te,blueBanner:ne,content:oe,error:se,finalExpenseAgreement:ie,lastUpdated:ce,pageSubHeading:re,pageSubHeading2:le,heading2:de,zipCodeInput:ge,zipCodeInputSubmitButton:ue,subHeadingContainer:_e,agreement:me,contactContainer:pe,imageContainer:Ce,sideImage:he,imageContainerMobile:xe,insuranceAgentContactContainer:be,insuranceAgentContactText:Ae,insuranceAgentContactInfo:fe,detailsValue:Ne,divider:ve,contactAnAgent:Ie,getStartedBanner:Se,contactHeading2:je},De=()=>{var C,h;const{isAuthenticated:N}=w(),d=JSON.parse(localStorage.getItem("reqAgentData")),v=H();let{purlAgentData:g}=s.useContext(T),{error:I,zipCode:Be,onSetZipCode:S,onSetCounty:j}=s.useContext(y);d&&(g=d),s.useRef(!0);const[B,u]=s.useState(!1),{phone:E}=s.useContext(k),n=x(l=>l.planTypeDetail.medicareAgent),o=x(l=>l.planTypeDetail.finalExpenseAgent),{pathname:_}=P(),i=_.includes(t)?o==null?void 0:o.agentFirstName:n==null?void 0:n.agentFirstName,m=_.includes(t)?((C=o==null?void 0:o.virtualNumber)==null?void 0:C.substring(2))??"":((h=n==null?void 0:n.virtualNumber)==null?void 0:h.substring(2))??"";s.useEffect(()=>{R()},[]);const p=m?q(m,!0):E.number||"";return e.jsxs(e.Fragment,{children:[e.jsx(D,{alt:c.alt,description:c.description,image:c.image,largeImage:c.largeImage,title:c.title}),e.jsxs("div",{className:a.availableAgents,children:[e.jsx(U,{className:a.blueBanner}),e.jsxs("div",{className:a.content,children:[e.jsx(b,{text:`Get help now with ${i||"someone"} over the phone`,className:a.heading2}),e.jsx(r,{className:a.pageSubHeading,children:i?"Give me a call to talk about your options.":"Give us a call to talk to a licensed insurance agent regarding coverage"}),e.jsxs("div",{className:a.insuranceAgentContactContainer,children:[e.jsx(r,{className:a.insuranceAgentContactText,children:e.jsx(G,{className:a.detailsValue,text:p,url:W(!0,p,!0)})}),e.jsx(r,{className:a.insuranceAgentContactInfo,children:e.jsx("p",{children:"Call a licensed insurance agent"})})]}),e.jsx("div",{className:a.imageContainerMobile,children:e.jsx(A,{className:a.sideImage,image:Z})}),e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:a.contactInfoTitle,children:[e.jsx(b,{text:`Or have ${i||"someone"} contact you later`,className:a.heading2}),e.jsx(r,{className:a.pageSubHeading2,children:window.location.pathname===t?"Please fill out the form if you would like to have a licensed insurance agent contact you regarding Final Expense coverage.":i?"Please fill out the form if you would like to have me contact you regarding Medicare Advantage and/or Prescription Drug Plans.":"Please fill out the form if you would like to have a licensed insurance agent contact you regarding Medicare Advantage and/or Prescription Drug Plans."})]}),e.jsxs("div",{className:a.contactContainer,children:[e.jsx("div",{className:a.imageContainer,children:e.jsx(A,{className:a.sideImage,image:X})}),e.jsx(O,{from:g?localStorage.getItem("reqAgentData")||N?window.location.pathname===t?"RequestCallbackFinalExpensePAW":"RequestCallback_purl":window.location.pathname===t?"RequestCallbackFinalExpensePAW_contactanagent":"RequestCallback_purl_contactanagent":window.location.pathname===t?"RequestCallbackFinalExpense":"RequestCallback",contactAnAgentClassName:a.contactAnAgent})]}),window.location.pathname===f?e.jsx(V,{className:a.divider}):e.jsx("div",{className:a.lifeDivider})]}),window.location.pathname===f&&e.jsx(L,{className:a.lastUpdated}),e.jsx(F,{footerButtonClicked:()=>{!I&&!i&&v.push(window.location.pathname!==t?z:M),u(!1),S(localStorage.getItem("updatedZipCode")),j(localStorage.getItem("updatedCountyVal")||localStorage.getItem("countyVal"))},isOpen:B,onClose:()=>{u(!1),localStorage.setItem("fromRequestCallBack",!0)},type:"contact_agent",isOnChangeEnable:!1})]})]})]})};export{De as default};
//# sourceMappingURL=index-CAf3VSw4.js.map