import{d as y,a as u,b,s as S,r as a,j as e,a2 as j,h as k,B as n,T as x,e as C,p as M,S as w,u as D,i as I,I as L,lq as v,D as T,ik as E}from"./index-6f149d0c.js";import{g as A,u as z}from"./useViewPort-c2233eda.js";import{I as B,R}from"./index-ce797e93.js";import{u as O}from"./useToggle-ba9f06b3.js";import{L as P}from"./LogoBox-d6320447.js";import{G as g}from"./Grid2-3d1a13f9.js";import{C as F}from"./CardContent-6c6a9bd2.js";import"./AntdIcon-d56b3db9.js";import"./objectSpread2-bd69b5ce.js";import"./index-a88b83d7.js";import"./index-e5978b8b.js";import"./FilterFilled-843cffe9.js";import"./FilterOutlined-8cc7981d.js";import"./InfoCircleOutlined-242aa3d8.js";import"./SolutionOutlined-a2faa3ee.js";import"./createStyled-f56d8720.js";import"./isMuiElement-36ccba67.js";const f=()=>{const p=y(),{profileMenuItemsList:l}=u(t=>b(t)),c=u(t=>S(t));return a.useMemo(()=>A(c.sidenav.theme),[c.sidenav.theme]),e.jsx(e.Fragment,{children:e.jsx(j,{sx:{height:"100%",flex:1},children:e.jsx(k,{style:{height:"100%",padding:24,paddingTop:6},children:e.jsx(n,{sx:{mt:2},children:l&&l.map((t,i)=>{var d;return e.jsxs(n,{children:[e.jsx(x,{variant:"h5",children:t.label}),e.jsx(n,{sx:{my:1},children:t&&((d=t.children)==null?void 0:d.map((s,h)=>{const o=location.pathname===s.url,r=B[s.icon];return e.jsx(C,{to:s.url,target:s.target,"data-menu-key":s.key,style:{display:"flex",gap:"10px",alignItems:"center",textDecoration:"none",color:"inherit"},onClick:()=>{p(M({menuitem_id:(s==null?void 0:s.key)||""}))},children:e.jsxs(w,{sx:m=>({display:"flex",flexDirection:"row",gap:2,ml:0,width:"100%",lineHeight:2,p:1,transition:"all 0.3s",borderRadius:"5px",backgroundColor:o?"#DED7DE":"",color:o?m.palette.common.black:""}),children:[r?e.jsx(r,{style:{fontSize:16}}):e.jsx(R,{style:{fontSize:16}}),e.jsx(x,{variant:"body2",children:s.label})]})},h)}))})]},i)})})})})})},G=()=>e.jsxs(n,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",flex:1},children:[e.jsx(P,{}),e.jsx(x,{variant:"h4",children:" Welcome To Admin Settings"}),e.jsx(x,{variant:"subtitle2",align:"center",children:"Please Click On Menu"})]}),ne=()=>{z();const{isOpen:p,hide:l,toggleOpen:c}=O(),t=y(),i=D(),[d,s]=a.useState("Settings"),[h,o]=a.useState("Admin"),r=u(m=>m.customise.sidenav.showMobileMenu);return a.useEffect(()=>{t(I({from:"profilemenu",code:"MENU0008"}))},[]),a.useEffect(()=>{i.pathname==="/pages/settings"&&(s("Settings"),o("Admin"))},[i]),e.jsx(n,{sx:{my:2},children:e.jsxs(g,{container:!0,spacing:2,children:[e.jsx(g,{size:{xs:12,lg:3.3,xl:r?2.3:2.7},sx:{display:{lg:"block",xs:"none",border:"1px solid #dee2e6"}},children:e.jsx(f,{})}),e.jsxs(g,{size:{xs:12,lg:8.7,xl:r?9.7:9.3},children:[e.jsx(j,{sx:{display:{lg:"none",xs:"block",border:"1px solid #dee2e6"}},children:e.jsxs(n,{children:[e.jsx(L,{onClick:()=>{c()},children:e.jsx(v,{size:20})}),e.jsx(T,{open:p,onClose:l,sx:{width:288,"& .MuiDrawer-paper":{width:288}},children:e.jsx(f,{})})]})}),e.jsx(j,{sx:{border:"1px solid #dee2e6",boxShadow:"none",mt:{xs:2,lg:0},height:"100%"},children:e.jsxs(F,{children:[i.pathname==="/pages/settings"&&e.jsx(e.Fragment,{children:e.jsx(n,{sx:{display:"grid",placeContent:"center",height:"100%"},children:e.jsx(G,{})})}),e.jsx(n,{children:e.jsx(E,{context:{title:d,setTitle:s,subtitle:h,setSubtitle:o}})})]})})]})]})})};export{ne as default};
