1import{be as N,b0 as l,aU as e}from"./index-DzBlipNH.js";import{E as d}from"./eye-off-gNQ3pJXR.js";import{E as o}from"./eye-DK7o9vrL.js";const k=()=>{var i,n,c,m;const{user:s}=N(y=>y.auth);console.log(s==null?void 0:s.user);const[t,x]=l.useState(!1),[r,g]=l.useState(!1),[a,h]=l.useState(!1),w=()=>{x(!t)},p=()=>{g(!r)},b=()=>{h(!a)};return e.jsxs("div",{className:" dark:bg-gray-900 min-h-screen flex flex-col gap-8",children:[e.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-2xl shadow-md p-6 flex flex-col md:flex-row items-center gap-6",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("img",{src:"https://media-bom1-2.cdn.whatsapp.net/v/t61.24694-24/473402078_1039047548059408_1345048465954620986_n.jpg?stp=dst-jpg_s96x96_tt6&ccb=11-4&oh=01_Q5Aa1QFCoDVEjZDWUmQGCHfOynMitwuay9wSCLf_mRUBsIVgNQ&oe=6818AA9C&_nc_sid=5e03e0&_nc_cat=100",alt:"Admin",className:"w-32 h-32 rounded-full object-cover border-4 "})}),e.jsxs("div",{className:"flex-1 w-full",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-800 dark:text-white mb-4",children:"Admin Information"}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-gray-500 dark:text-gray-400 text-sm",children:"Name"}),e.jsxs("p",{className:"font-medium text-gray-700 dark:text-gray-200",children:[(i=s==null?void 0:s.user)==null?void 0:i.firstName," ",(n=s==null?void 0:s.user)==null?void 0:n.lastName]})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-gray-500 dark:text-gray-400 text-sm",children:"Email"}),e.jsx("p",{className:"font-medium text-gray-700 dark:text-gray-200",children:(c=s==null?void 0:s.user)==null?void 0:c.email})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-gray-500 dark:text-gray-400 text-sm",children:"Role"}),e.jsx("p",{className:"font-medium text-gray-700 dark:text-gray-200",children:(m=s==null?void 0:s.user)!=null&&m.isAdmin?"Admin":""})]})]})]})]}),e.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-2xl shadow-md p-6",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-800 dark:text-white mb-6",children:"Change Password"}),e.jsxs("form",{className:"space-y-4",children:[e.jsxs("div",{className:"relative",children:[e.jsx("label",{className:"block text-gray-600 dark:text-gray-400 text-sm mb-2",children:"Current Password"}),e.jsx("input",{type:t?"text":"password",className:"w-full border outline-none text-sm border-gray-300 dark:border-gray-700 bg-white dark:bg-gray-900 p-3 rounded-md ",placeholder:"Enter current password"}),e.jsx("div",{className:"absolute inset-y-0 right-0 pr-3 top-1/3 flex items-center text-gray-500 cursor-pointer",onClick:w,children:t?e.jsx(d,{className:"h-5 w-5"}):e.jsx(o,{className:"h-5 w-5"})})]}),e.jsxs("div",{className:"relative",children:[e.jsx("label",{className:"block text-gray-600 dark:text-gray-400 text-sm mb-2",children:"New Password"}),e.jsx("input",{type:r?"text":"password",className:"w-full border outline-none text-sm border-gray-300 dark:border-gray-700 bg-white dark:bg-gray-900 p-3 rounded-md ",placeholder:"Enter new password"}),e.jsx("div",{className:"absolute inset-y-0 right-0 pr-3 top-1/3 flex items-center text-gray-500 cursor-pointer",onClick:p,children:r?e.jsx(d,{className:"h-5 w-5"}):e.jsx(o,{className:"h-5 w-5"})})]}),e.jsxs("div",{className:"relative",children:[e.jsx("label",{className:"block text-gray-600 dark:text-gray-400 text-sm mb-2",children:"Confirm New Password"}),e.jsx("input",{type:a?"text":"password",className:"w-full border outline-none text-sm border-gray-300 dark:border-gray-700 bg-white dark:bg-gray-900 p-3 rounded-md ",placeholder:"Confirm new password"}),e.jsx("div",{className:"absolute inset-y-0 right-0 pr-3 flex top-1/3 items-center text-gray-500 cursor-pointer",onClick:b,children:a?e.jsx(d,{className:"h-5 w-5"}):e.jsx(o,{className:"h-5 w-5"})})]}),e.jsx("button",{type:"submit",className:"bg-gradient-to-r from-blue-500 to-purple-500 hover:from-blue-600 hover:to-purple-600 transition w-fit text-sm px-4 py-2 rounded-md text-white mb-4",children:"Update Password"})]})]})]})};export{k 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.