import{ac as x,ad as y,ae as T,af as V,ag as k,q as t,bH as I,bI as R,aj as E,ak as D,am as w,an as $,ca as j,cd as q,ao as F,bE as J,be as U,bh as Y,J as h,b2 as z,a6 as A,bY as u,bs as o,c4 as G}from"./index-2e57ee69.js";const K=x({text:String,...y(),...T()},"VToolbarTitle"),L=V()({name:"VToolbarTitle",props:K(),setup(e,n){let{slots:a}=n;return k(()=>{const s=!!(a.default||a.text||e.text);return t(e.tag,{class:["v-toolbar-title",e.class],style:e.style},{default:()=>{var l;return[s&&t("div",{class:"v-toolbar-title__placeholder"},[a.text?a.text():e.text,(l=a.default)==null?void 0:l.call(a)])]}})}),{}}}),M=[null,"prominent","default","comfortable","compact"],O=x({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>M.includes(e)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...I(),...y(),...R(),...E(),...T({tag:"header"}),...D()},"VToolbar"),W=V()({name:"VToolbar",props:O(),setup(e,n){var c;let{slots:a}=n;const{backgroundColorClasses:s,backgroundColorStyles:l}=w($(e,"color")),{borderClasses:_}=j(e),{elevationClasses:C}=q(e),{roundedClasses:B}=F(e),{themeClasses:P}=J(e),{rtlClasses:S}=U(),i=Y(!!(e.extended||(c=a.extension)!=null&&c.call(a))),d=h(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),r=h(()=>i.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return z({VBtn:{variant:"text"}}),k(()=>{var b;const N=!!(e.title||a.title),H=!!(a.image||e.image),m=(b=a.extension)==null?void 0:b.call(a);return i.value=!!(e.extended||m),t(e.tag,{class:["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},s.value,_.value,C.value,B.value,P.value,S.value,e.class],style:[l.value,e.style]},{default:()=>[H&&t("div",{key:"image",class:"v-toolbar__image"},[a.image?t(u,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},a.image):t(A,{key:"image-img",cover:!0,src:e.image},null)]),t(u,{defaults:{VTabs:{height:o(d.value)}}},{default:()=>{var g,v,f;return[t("div",{class:"v-toolbar__content",style:{height:o(d.value)}},[a.prepend&&t("div",{class:"v-toolbar__prepend"},[(g=a.prepend)==null?void 0:g.call(a)]),N&&t(L,{key:"title",text:e.title},{text:a.title}),(v=a.default)==null?void 0:v.call(a),a.append&&t("div",{class:"v-toolbar__append"},[(f=a.append)==null?void 0:f.call(a)])])]}}),t(u,{defaults:{VTabs:{height:o(r.value)}}},{default:()=>[t(G,null,{default:()=>[i.value&&t("div",{class:"v-toolbar__extension",style:{height:o(r.value)}},[m])]})]})]})}),{contentHeight:d,extensionHeight:r}}});export{W as V,L as a,O as m};
