import{f as h,P as u,r as n,A as g,d as j,a as y,a1 as w,i as S,j as e,B as a,T as d,$ as C,a2 as b}from"./index-c3f592b2.js";import{I as v,R as I}from"./index-249d5641.js";import{T as A}from"./TextField-7d0d5009.js";import{I as R}from"./InputAdornment-fd596377.js";import{G as p}from"./Grid2-9e718eb0.js";import"./AntdIcon-b07622f5.js";import"./objectSpread2-890c3efa.js";import"./index-78da10f4.js";import"./FilterFilled-90800ccd.js";import"./FilterOutlined-c55dda18.js";import"./InfoCircleOutlined-1893865d.js";import"./SolutionOutlined-93433346.js";import"./Select-9d10c4ab.js";import"./Grow-f61cc5ca.js";import"./isMuiElement-43203123.js";const z=h(u)(({theme:s})=>({backgroundColor:"#fff",...s.typography.body2,padding:s.spacing(4),textAlign:"left",borderRadius:"10px",cursor:"pointer",color:s.palette.text.secondary,...s.applyStyles("dark",{backgroundColor:"#1A2027"})})),q=()=>{const[s,i]=n.useState([]),x=g(),m=j(),{system:{reportsMenuItemsList:r}}=y(t=>w(t));n.useEffect(()=>{m(S({code:"MENU0005",from:"reportsmenu"}))},[]),n.useEffect(()=>{i(r)},[r]);const f=t=>{const c=r==null?void 0:r.filter(o=>o.label.toLowerCase().includes(t.target.value.toLowerCase()));t.target.value===""?i(r):i(c)},l=t=>{x(t)};return e.jsxs(a,{sx:{width:"100%"},children:[e.jsxs(a,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",my:"24px"},children:[e.jsx(d,{variant:"h5",color:"text.primary",children:"Reports"}),e.jsx(a,{sx:{display:{xs:"hidden",md:"flex"},alignItems:"center",gap:"10px",fontWeight:600},children:e.jsx(a,{sx:{position:"static",overflowY:"hidden"},children:e.jsx(A,{id:"input-with-icon-textfield",size:"small",InputProps:{startAdornment:e.jsx(R,{position:"start",children:e.jsx(C,{size:20})})},sx:{width:300},onChange:f,variant:"outlined",placeholder:"Search Report..."})})})]}),(s==null?void 0:s.length)!=0?e.jsx(p,{container:!0,rowSpacing:2,columnSpacing:{xs:1,sm:2,md:3},style:{marginLeft:"0px"},children:s==null?void 0:s.map((t,c)=>{const o=v[t.icon];return e.jsx(e.Fragment,{children:e.jsx(p,{size:{xs:12,md:6,lg:6,xl:3},children:e.jsx(z,{sx:{border:"1px solid #dee2e6",boxShadow:"none"},onClick:()=>l(t.url),children:e.jsxs(a,{display:"flex",alignItems:"center",children:[o?e.jsx(o,{style:{fontSize:16}}):e.jsx(I,{style:{fontSize:16}}),e.jsx(d,{sx:{color:"text.secondary",fontSize:"16px",paddingX:2,flexGrow:1},onClick:()=>{},variant:"h6",children:t==null?void 0:t.label}),e.jsx(b,{size:"20",onClick:()=>{l(t.url)}})]})})})})})}):""]})};export{q as default};
