import{Q as x,h as H,o as s,c as n,a as L,u as t,Z as C,b as i,F as l,r as v,t as T,e as m,i as y,j as z,n as B,D,_ as M}from"./app-13978987.js";const V={class:"breadcrumb"},E={key:0,class:"space-y-1 text-right"},N=["innerHTML"],P=["data-target"],j=["innerHTML"],F={__name:"PageHeader",props:["title","buttons","segments","classes","overviews","overviewGrid"],setup(d){var u;const r=d,a=x().props.pageHeader??{},h=r.title??a.title??"",k=r.buttons??a.buttons??[],o=r.segments??a.segments??[],c=((u=r.overviews)==null?void 0:u.length)||(a.overviews??[]),b=D(()=>M(()=>import("./OverviewGrid-21ea6fc2.js"),["assets/OverviewGrid-21ea6fc2.js","assets/app-13978987.js","assets/app-e969cddd.css"]));return(g,p)=>{var _;const f=H("Link");return s(),n(l,null,[L(t(C),{title:t(h)},null,8,["title"]),i("div",{class:B([d.classes,"mb-4 flex flex-col justify-between gap-y-1 sm:flex-row sm:gap-y-0"])},[i("ol",V,[t(o).length?(s(!0),n(l,{key:0},v(t(o),e=>(s(),n("li",{key:e.index,class:"breadcrumb-item capitalize"},T(e),1))),128)):m("",!0)]),t(o).length?(s(),n("div",E,[(s(!0),n(l,null,v(t(k),e=>(s(),n(l,{key:e.index},[e.url!="#"&&e.url?(s(),y(f,{key:0,href:e.url||"#",class:"btn btn-sm btn-primary mx-2"},{default:z(()=>[i("div",{innerHTML:g.sanitizeHtml(e.name)},null,8,N)]),_:2},1032,["href"])):(s(),n("button",{key:1,onClick:p[0]||(p[0]=w=>w.preventDefault()),"data-toggle":"drawer","data-target":e.target,class:"btn btn-sm btn-primary mx-2 text-center"},[i("div",{innerHTML:g.sanitizeHtml(e.name)},null,8,j)],8,P))],64))),128))])):m("",!0)],2),t(c)?(s(),y(t(b),{key:0,items:t(c),grid:((_=t(c))==null?void 0:_.length)??1},null,8,["items","grid"])):m("",!0)],64)}}};export{F as _};
