import{aa as m,f as v,u,p as h}from"./vendor-vuetify-BaOIwHiz.js";import{I as p,ac as f}from"./index-CsRk2AqG.js";import{a as s,m as V}from"./VSheet-BN0mPF06.js";import{j as i,k as t,N as P,n as g,m as y}from"./vendor-vue-wu2SJQxD.js";const C=m("v-picker-title"),_=h({bgColor:String,divided:Boolean,landscape:Boolean,title:String,hideHeader:Boolean,hideTitle:Boolean,...V()},"VPicker"),N=v()({name:"VPicker",props:_(),setup(a,o){let{slots:e}=o;const{backgroundColorClasses:c,backgroundColorStyles:d}=p(()=>a.color);return u(()=>{const n=s.filterProps(a),k=!a.hideTitle&&!!(a.title||e.title);return i(s,y(n,{color:a.bgColor,class:["v-picker",{"v-picker--divided":a.divided,"v-picker--landscape":a.landscape,"v-picker--with-actions":!!e.actions},a.class],style:a.style}),{default:()=>{var r;return[!a.hideHeader&&t("div",{key:"header",class:g(["v-picker__header-wrapper",c.value]),style:P([d.value])},[k&&i(C,{key:"picker-title"},{default:()=>{var l;return[((l=e.title)==null?void 0:l.call(e))??a.title]}}),e.header&&t("div",{class:"v-picker__header"},[e.header()])]),t("div",{class:"v-picker__body"},[(r=e.default)==null?void 0:r.call(e)]),e.actions&&i(f,{defaults:{VBtn:{slim:!0,variant:"text"}}},{default:()=>[t("div",{class:"v-picker__actions"},[e.actions()])]})]}})}),{}}});export{N as V,_ as m};
