import{j as e,G as l,o as x,bO as p,aH as m,bP as u,bQ as j,t as o,a6 as b,n as g,ar as f,bR as y,as as v,ah as C}from"./vendor-BuNhBR-q.js";import{u as w}from"./index-DzxWaMzc.js";const S="/assets/ChatBc-DjKi8DA-.png",B=({subtitle:a,items:r,title:i,children:s,imageWidth:c=80,imageHeight:d=45})=>{const n=Number(c)||80,h=Number(d)||45;return e.jsxs(l,{container:!0,sx:{backgroundColor:"primary.light",borderRadius:t=>t.shape.borderRadius/4,p:"20px 15px 10px 25px",position:"relative",overflow:"hidden"},children:[e.jsxs(l,{item:!0,xs:12,sm:6,lg:8,mb:1,children:[e.jsx(x,{variant:"h4",fontWeight:501,children:i}),a&&e.jsx(x,{color:"textSecondary",variant:"h6",fontWeight:400,mt:.8,mb:0,children:a}),e.jsx(p,{separator:e.jsx(j,{size:5,fill:"textSecondary",fillOpacity:.6,style:{margin:"0 5px"}}),sx:{alignItems:"center",mt:r?"10px":""},"aria-label":"breadcrumb",children:r==null?void 0:r.map(t=>e.jsx("div",{children:t.to?e.jsx(m,{underline:"none",color:"inherit",fontWeight:400,fontSize:14,component:u,to:t.to,children:t.title}):e.jsx(x,{variant:"subtitle1",fontWeight:400,color:"text.secondary",fontSize:14,children:t.title})},t.title))})]}),e.jsx(l,{item:!0,xs:12,sm:6,lg:4,display:"flex",alignItems:"flex-end",children:e.jsx(o,{sx:{display:{xs:"none",md:"flex"},alignItems:"center",justifyContent:"flex-end",width:"95%",height:"110%"},children:e.jsx(o,{sx:{width:`${n}px`,height:`${h}px`,display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"},children:s?e.jsx(o,{sx:{width:`${n}px`,height:`${h}px`,display:"flex",alignItems:"center",justifyContent:"center"},children:s}):e.jsx("img",{src:S,alt:"breadcrumb decorative",style:{maxWidth:"100%",maxHeight:"100%",objectFit:"contain",display:"block"}})})})})]})},W=({title:a,children:r,footer:i})=>{const s=w(n=>n.customizer),d=b().palette.divider;return g(),e.jsxs(f,{sx:{padding:0,border:s.isCardShadow?"none":`0px solid ${d}`},elevation:(s.isCardShadow,0),variant:s.isCardShadow?void 0:"outlined",children:[e.jsx(y,{title:a}),e.jsx(v,{children:r}),i?e.jsxs(e.Fragment,{children:[e.jsx(C,{}),e.jsx(o,{p:3,children:i})]}):null]})};export{B,W as P};
