import{u as d,r as a,o as m,q as f,f as e,d as o,w as u,t as l,j as g,l as h,I as c}from"./index-0c00d6f8.js";const w={class:"flex gap-4 flex-wrap"},x={class:"min-w-40 pe-4"},v={class:"inline-nav"},T={class:"font-semibold text-red-500"},S={class:"lg:flex-1 w-full min-w-[300px] max-w-[900px]"},E={__name:"index",setup(k){const r="https://elito-admin.najidalqimam.sa/api/admin";d();function p(){g({method:"POST",url:"logout",baseURL:r}).then(t=>{setTimeout(()=>h.success(t.data.message),400),appAuth.logout()}).catch(t=>{var s;((s=t.response)==null?void 0:s.status)==401&&appAuth.logout()})}return(t,s)=>{const n=a("svg-icon"),i=a("router-link"),_=a("router-view");return m(),f("div",null,[e("div",w,[e("div",x,[e("ul",v,[e("li",null,[o(i,{to:"/profile"},{default:u(()=>[o(n,{name:"user"}),c(" "+l(t.$t("TITLES.Account Information")),1)]),_:1})]),e("li",null,[o(i,{to:"/profile/reset-password"},{default:u(()=>[o(n,{name:"password"}),c(" "+l(t.$t("TITLES.Change Password")),1)]),_:1})]),e("li",null,[e("button",{onClick:p,type:"button",class:"flex items-center gap-2 w-full outline-none"},[o(n,{name:"logout"}),e("span",T,l(t.$t("BUTTONS.logout")),1)])])])]),e("div",S,[o(_)])])])}}};export{E as default};
