import{j as n,R as L,r as A,z as p,ab as h,T as _}from"./index-CNnTZTc7.js";const g="_planHeaderZipCountyEdit_1j4rs_88",k="_zipCountyEdit_1j4rs_101",C="_editLink_1j4rs_114",u="_editIcon_1j4rs_119",d={planHeaderZipCountyEdit:g,zipCountyEdit:k,editLink:C,editIcon:u},s=({children:i="",displayIconOnLeft:e,isFromPlansHeader:t=!1,onClick:c,text:r=i,zipCounty:a=""})=>n.jsxs("div",{className:t?d.planHeaderZipCountyEdit:d.zipCountyEdit,children:[r,n.jsx(L,{displayIconOnLeft:e,onClick:c,text:t?a:"Edit"})]}),I="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAA3FJREFUWEftVl1Ik1EYfr/NWUYywegiMe3C/EFyF9mFgj+g0ZU/GdSNOtu6SbSgQilsDimU6iLFbtp06k0Rlu0uZmlBJSi4pE2NoNTsIhMUI2PfttN5j571bbTtmyPswnM1vp3zvs/7PO/7nCPANi9hm/PDDoCIGYjN1FUQgAuUOw2VL0EioR0EYVRUuY1gt6zIlVY+AI02Ical7KUHKnjwgwcSITVpH7wan/XlUygU8x4gte73plE5IOQBoMlVLuUIDahRx8dBy/kyqKnMh4T4Pb4c72YW4FL7AwkYUic6eyzhQMgCEJOlG6Iby4+kJ8NgVz2k0KqDrc5+G1zueEgVElYVXrfm14zlcygQYQEwzQV4gpVPDBp8ya3PJ8H6wg5zi9+h4Fg6NFSX+BhBJroGhgEIjIrT5uKoAKiy9FRLUni76TQ01pSyWLqrPTDw9I1fXJRjfPA6A7iy9hOOnjTC/NdlEHd598Nk71IwEGEZUGXpsKPV38Y6WYVY+anGbkBG7jSfYQnbuq1M+8LcdLBZrviBFMCd7XL2OaIBQLDbP9o6/AKbbtRBTUU++4YVp5U2weraOnCgvBeIQigONRFyGCAFtLLhzcpKtLdYtVgpVswXUj41u0BlMEBORjL0D70G/bVeIILihNtx/1lUDOBhl8PEYiDdbfesLPkjOhGBsiyNdbF9vBGJl+S5Z3reRgPATg/n8MqkdGPylKREQA/AJW1UzogYIyTDlOnLlgHEZulbCRBDdXkemG+eZXFw9KoauhnluLg58SlBQLlVRrZVdJpTgyXH72F7YHeGNtWjUH7CzbzBeEBkY25xmWkuXXxMqRkZXU5Ta1QA8DB3QrTglvqyUPE2JqKkiaz+WBeUXs+hqJ2QAcjWFwleMoKaf7C1+90BgWh4k1IX7KMuqA2JVo4EPAB3xFAsYG+kHW9mR+RUL6sH/gA4R+9/76R6bxyZeGwQ/nYh+SxaZvURAcDNqkydhbZtrXQiOEBJ58uuPmIA0okIdELukBTgXdFhvhhOe/5/2DEMDMR9AUcPzQkXt136c06M9Wj+zZOMI9l4HaE7pqDz4cvocGkzGz+BQKVr2jwkt/qIJeCBpWOJjxG8oqmnvRSdpqJIkm8ZAB7k5sQTyh27QIAR9wAPsNmQKIVajuUGY2bLACKlegfAf8vAb0cbijAKUK6ZAAAAAElFTkSuQmCC",y="data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18.0007%203C20.6434%203%2023.178%204.04983%2025.0467%205.91855C26.9154%207.78726%2027.9652%2010.3218%2027.9652%2012.9645C27.9652%2017.6771%2020.6579%2029.414%2018.56%2032.6943C18.4999%2032.7882%2018.4172%2032.8653%2018.3194%2032.9188C18.2217%2032.9723%2018.1121%2033.0003%2018.0007%2033.0003C17.8893%2033.0003%2017.7797%2032.9723%2017.6819%2032.9188C17.5842%2032.8653%2017.5014%2032.7882%2017.4413%2032.6943C15.3435%2029.4153%208.03613%2017.6771%208.03613%2012.9645C8.03613%2010.3218%209.08597%207.78726%2010.9547%205.91855C12.8234%204.04983%2015.3579%203%2018.0007%203V3Z'%20stroke='%23052A63'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14.0146%2012.9645C14.0146%2014.0216%2014.4346%2015.0354%2015.1821%2015.7829C15.9296%2016.5303%2016.9434%2016.9503%2018.0005%2016.9503C19.0576%2016.9503%2020.0714%2016.5303%2020.8189%2015.7829C21.5664%2015.0354%2021.9863%2014.0216%2021.9863%2012.9645C21.9863%2011.9074%2021.5664%2010.8935%2020.8189%2010.1461C20.0714%209.39857%2019.0576%208.97864%2018.0005%208.97864C16.9434%208.97864%2015.9296%209.39857%2015.1821%2010.1461C14.4346%2010.8935%2014.0146%2011.9074%2014.0146%2012.9645Z'%20stroke='%23052A63'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",B="_yourLocation_1136k_88",E="_planHeaderYourLocation_1136k_94",x="_healthInfoHeaderYourLocation_1136k_99",j="_greyBorder_1136k_105",Y="_locationBorder_1136k_110",H="_planHeaderIconLocation_1136k_115",U="_healthInfoHeaderIconLocation_1136k_121",z="_iconLocation_1136k_127",T="_yourLocationInline_1136k_133",b="_locationHeading_1136k_138",w="_planHeaderTextContainer_1136k_147",N="_zipText_1136k_152",R="_addLink_1136k_164",f="_editContainer_1136k_172",m="_iconWithLabel_1136k_177",o={yourLocation:B,planHeaderYourLocation:E,healthInfoHeaderYourLocation:x,greyBorder:j,locationBorder:Y,planHeaderIconLocation:H,healthInfoHeaderIconLocation:U,iconLocation:z,yourLocationInline:T,locationHeading:b,planHeaderTextContainer:w,zipText:N,addLink:R,editContainer:f,iconWithLabel:m},V=({displayIconOnLeft:i=!1,inlineMode:e=!1,isFromPlansHeader:t=!1,isFromHealthInfoHeader:c=!1,onClick:r,zipCounty:a})=>{const{zipCode:l}=A.useContext(p);return n.jsxs("div",{className:`${o.yourLocation} ${e?o.yourLocationInline:""} ${c?o.healthInfoHeaderYourLocation:""} ${t?o.planHeaderYourLocation:""} ${t?a?o.locationBorder:o.greyBorder:""}`,children:[n.jsx(h,{alt:"Multiple location pins over a map.",className:`${o.iconLocation} ${c?o.healthInfoHeaderIconLocation:""} ${t?o.planHeaderIconLocation:""}`,image:e?I:y,id:"locationIcon"}),n.jsxs("div",{className:t?o.planHeaderTextContainer:o.textContainer,children:[n.jsx(_,{className:o.locationHeading,id:"locationLabel",children:"Location"}),t&&n.jsx(s,{displayIconOnLeft:i,isFromPlansHeader:!0,onClick:r,zipCounty:a||"Select"})]}),e&&l.length!==0&&n.jsx("span",{className:o.zipText,id:"zipText",children:a}),!t&&n.jsx("div",{className:o.editContainer,children:l.length!==0&&n.jsx(s,{displayIconOnLeft:i,onClick:r})})]})};export{V as Y,s as Z}; //# sourceMappingURL=index-DwKjEm5i.js.map