import{a as S,b5 as j,r as t,j as e,B as i,K as r,M as f}from"./index-7d3dbb9c.js";import{S as g}from"./ScrollableList-ffeab0b0.js";import{E as b}from"./EmptyData-a5386032.js";import{u as M}from"./index-3cd7bbe9.js";import"./List-d7c020ab.js";import"./index-e9cb9551.js";import"./useMediaQuery-77b67f07.js";import"./useControlled-338e346b.js";import"./createSvgIcon-d159d1d4.js";const H=({list:o,loading:n,pageParams:l,fetchapi:m,children:c,renderItemCard:x})=>{const a=S(s=>s.customise.sidenav.showMobileMenu),{id:p}=j();t.useState(null),t.useState(0),t.useState(!1);const d=M(s=>s.breakpoints.down("md")),u=e.jsx(r,{size:{xs:12,md:4,lg:3.5,xl:a?3.5:3},children:e.jsx(g,{list:o,loading:n,params:l,fetchapi:m,styles:{maxHeight:"calc(100vh - 270px)"},renderItem:(s,h)=>e.jsx(i,{mb:1,marginInlineStart:-1,marginInlineEnd:-1,children:x(s,h)})})});return e.jsx(i,{sx:{display:"flex",flexDirection:"column"},children:e.jsxs(r,{container:!0,spacing:1,children:[!d&&u,e.jsx(r,{size:{xs:12,md:8,lg:8.5,xl:a?8.5:9},children:e.jsx(f,{sx:{maxHeight:"calc(100vh - 270px)",overflow:"auto"},children:p?c:e.jsx(b,{message:"Please Select a record"})})})]})})};export{H as default};
