import{i as m,h as u}from"./VAvatar-x_79C0tA.js";import{V as o,m as v}from"./VSheet-BV83IblO.js";import{u as V}from"./VProgressCircular-ubzZW5PC.js";import{v as f,x as h,a as r,B as p,e as t,a6 as P,J as g}from"./index-CTxlYqj4.js";import{u as y}from"./tag-Dx3OexMp.js";const C=m("v-picker-title"),B=h({bgColor:String,divided:Boolean,landscape:Boolean,title:String,hideHeader:Boolean,...v()},"VPicker"),F=f()({name:"VPicker",props:B(),setup(a,l){let{slots:e}=l;const{backgroundColorClasses:c,backgroundColorStyles:d}=V(()=>a.color);return y(()=>{const n=o.filterProps(a),k=!!(a.title||e.title);return r(o,p(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 i;return[!a.hideHeader&&t("div",{key:"header",class:g([c.value]),style:P([d.value])},[k&&r(C,{key:"picker-title"},{default:()=>{var s;return[((s=e.title)==null?void 0:s.call(e))??a.title]}}),e.header&&t("div",{class:"v-picker__header"},[e.header()])]),t("div",{class:"v-picker__body"},[(i=e.default)==null?void 0:i.call(e)]),e.actions&&r(u,{defaults:{VBtn:{slim:!0,variant:"text"}}},{default:()=>[t("div",{class:"v-picker__actions"},[e.actions()])]})]}})}),{}}});export{F as V,B as m};
