import{ax as j,j as e,r as m,a9 as v,Y as g,T as d,d as l}from"./main-D6SjkSWq.js";import{D as f}from"./dashboard-layout-context-C1ErlVWg.js";const C=j(e.jsx("path",{d:"M2 2H14C14.55 2 15 2.45 15 3V13C15 13.55 14.55 14 14 14H2C1.45 14 1 13.55 1 13V3C1 2.45 1.45 2 2 2ZM13.3 3.7H6V12.3H13.3V3.7Z"}),"ToggleLeftSidebarIcon","0 0 16 16");function D(){return m.use(f)?e.jsx(H,{}):null}function H(){const{leftSidenavStatus:a,toggleLeftSidenavCompactMode:s}=m.use(f),t=a==="compact";return e.jsx(v,{placement:"bottom",label:t?e.jsx(d,{message:"Expand sidebar"}):e.jsx(d,{message:"Collapse sidebar"}),children:e.jsx(g,{size:"xs",onClick:()=>s(),children:e.jsx(C,{})})})}function T({children:a,className:s}){return e.jsx("div",{className:l("flex h-full flex-col",s),children:a})}function L({children:a,className:s}){return e.jsx("div",{className:l("flex-auto overflow-y-auto",s),children:a})}function w({children:a,className:s,padding:t="p-12 md:p-24"}){return e.jsx("div",{className:l("flex min-h-0 flex-auto flex-col",t,s),children:a})}function y({title:a,children:s,showSidebarToggleButton:t=!1,titleId:p,leftContent:r,rightContent:n,border:u="border-b",height:b="h-[var(--panel-header-height,3.5rem)]",padding:c,className:h,toggleButton:o,titleMargin:i}){o||(o=t?e.jsx(D,{}):null);const x=a||s;return e.jsxs("div",{className:l("flex flex-shrink-0 items-center gap-8",b,c||(t?"pl-8 pr-12 md:pl-20 md:pr-24":"px-12 md:px-24"),u,h),children:[o,x&&e.jsx("h1",{id:p,className:l("overflow-hidden overflow-ellipsis whitespace-nowrap text-xl font-semibold first:capitalize",!r&&"flex-auto",i||"mr-24 [&_.breadcrumb-root]:-ml-6"),children:x}),r,n&&e.jsx("div",{className:"ml-auto flex items-center gap-8",children:n})]})}export{y as D,T as a,w as b,L as c};
