import{_ as c}from"./vendor-pdf-b2a5d8b1.js";import{j as s}from"./vendor-mui-69397583.js";import{r as a,f as x,u}from"./vendor-react-ece1c85f.js";import{T as l}from"./index-36228db5.js";import{c9 as b,c_ as h,c$ as j}from"./index-c62ac197.js";import{A as g}from"./AdaptableCard-df7695d6.js";import"./useControllableState-d0909575.js";import"./vendor-redux-a1f00e6b.js";import"./vendor-devex-33a39e11.js";import"./vendor-i18n-2fcb1983.js";import"./vendor-msal-9caa1ed1.js";import"./vendor-charts-eccea5d1.js";const _=a.lazy(()=>c(()=>import("./Profile-9104808b.js"),["assets/Profile-9104808b.js","assets/vendor-mui-69397583.js","assets/vendor-react-ece1c85f.js","assets/index-c62ac197.js","assets/vendor-redux-a1f00e6b.js","assets/vendor-pdf-b2a5d8b1.js","assets/vendor-devex-33a39e11.js","assets/vendor-i18n-2fcb1983.js","assets/vendor-msal-9caa1ed1.js","assets/vendor-charts-eccea5d1.js","assets/index-8c229076.css","assets/Upload-fb34ce03.js","assets/Switcher-c8648037.js","assets/FormContainer-91c2b0e4.js","assets/index-51ee35f9.js","assets/PreferenceService-75bf9db6.js","assets/index.esm-70ab539c.js","assets/index-0ec48d3d.js"])),v=a.lazy(()=>c(()=>import("./Password-d9294711.js"),["assets/Password-d9294711.js","assets/vendor-mui-69397583.js","assets/vendor-react-ece1c85f.js","assets/PasswordInput-8619a9df.js","assets/index-c62ac197.js","assets/vendor-redux-a1f00e6b.js","assets/vendor-pdf-b2a5d8b1.js","assets/vendor-devex-33a39e11.js","assets/vendor-i18n-2fcb1983.js","assets/vendor-msal-9caa1ed1.js","assets/vendor-charts-eccea5d1.js","assets/index-8c229076.css","assets/index-42e65911.js","assets/FormContainer-91c2b0e4.js","assets/index-51ee35f9.js","assets/PreferenceService-75bf9db6.js","assets/index.esm-70ab539c.js","assets/strongPassword-bbec776a.js"])),{TabNav:P,TabList:T}=l,r={profile:{label:"Profile",path:"profile",icon:s.jsx(h,{})},password:{label:"Password",path:"password",icon:s.jsx(j,{})}},y=()=>{const[e,i]=a.useState("profile"),[o,E]=a.useState({}),p=x(),n=u(),m=n.pathname.substring(n.pathname.lastIndexOf("/")+1),d=t=>{i(t),p(`/app/account/settings/${t}`)},f=async()=>{};return a.useEffect(()=>{i(m),b(o)&&f()},[]),s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"topbar py-4 px-6 border-gray-200 border-b",children:s.jsx("div",{className:"lg:flex items-center justify-between",children:s.jsx("h3",{className:"mb-4 lg:mb-0",children:"Profile"})})}),s.jsxs(g,{className:"m-4 p-4",children:[s.jsx(l,{value:e,onChange:t=>d(t),children:s.jsx(T,{children:Object.keys(r).map(t=>s.jsx(P,{value:t,icon:r[t].icon,children:r[t].label},t))})}),s.jsx("div",{className:"px-4 py-6",children:s.jsxs(a.Suspense,{fallback:s.jsx(s.Fragment,{}),children:[e==="profile"&&s.jsx(_,{data:o.profile}),e==="password"&&s.jsx(v,{data:o.loginHistory})]})})]})]})},F=y;export{F as default};
