1import{u as x,d as u,n as p,r as v,j as e,S as o,P as c,T as j}from"./index-DnzkrJT-.js";const b="_address_book_desktop_view_1ai9z_5",g="_address_book_mobile_view_1ai9z_13",k="_main_section_1ai9z_21",N="_header_section_1ai9z_41",y="_address_section_1ai9z_95",f="_address_header_section_1ai9z_115",w="_address_title_section_1ai9z_135",$="_address_text_1ai9z_183",d={address_book_desktop_view:b,address_book_mobile_view:g,main_section:k,header_section:N,address_section:y,address_header_section:f,address_title_section:w,address_text:$};function z(){var r;const n=x(),{data:i,error:_,isLoading:l}=u(p,"user/get-address"),t=(r=i==null?void 0:i.data)==null?void 0:r.address,m=()=>{n(c.addAddress)},h=()=>l?e.jsx(j,{}):_?e.jsx("div",{children:"Something went wrong"}):t.length?t==null?void 0:t.map((s,a)=>e.jsxs("div",{className:` ${d.address_section}`,onClick:()=>n(`${c.editAddress}/${s._id}`),children:[e.jsx("div",{className:` ${d.address_header_section}`,children:e.jsxs("div",{className:` ${d.address_title_section}`,children:[e.jsx("img",{src:"/assets/images/home_icon.svg",alt:s.iconAlt}),e.jsx("span",{className:"mx-2",children:s.addressType})]})}),e.jsx("p",{className:` ${d.address_text}`,children:s.address})]},a)):e.jsx("div",{className:"mt-3 mt-md-5 mb-3",children:"No data available"});return v.useEffect(()=>{document.title="Address Book | Neuberg Diagnostics";const s=document.createElement("meta");s.name="description",s.content="Easily add, edit, and manage your delivery addresses for Neuberg Diagnostics appointments. Save time and ensure accurate delivery of your test reports.",document.head.appendChild(s);const a=document.createElement("meta");return a.name="keywords",a.content="Neuberg diagnostics address book, manage delivery addresses, diagnostic test reports, lab appointment scheduling",document.head.appendChild(a),()=>{document.head.removeChild(s),document.head.removeChild(a)}},[]),e.jsxs("div",{children:[e.jsx("div",{className:` ${d.address_book_desktop_view}`,children:e.jsx(o,{})}),e.jsx("div",{className:` ${d.address_book_mobile_view}`,children:e.jsx(o,{isBannerVisible:!1})}),e.jsx("div",{className:"container",children:e.jsxs("section",{className:` ${d.main_section}`,children:[e.jsxs("header",{className:` ${d.header_section}`,children:[e.jsx("label",{children:" My Address book "}),e.jsxs("p",{onClick:m,children:[e.jsx("i",{className:"fas fa-plus-square"}),e.jsx("span",{className:"mx-2",children:" Add Another Address "})]})]}),e.jsx("section",{className:` ${d.address_main_section}`,children:h()})]})})]})}export{z as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.