import{au as m,aJ as C,O as S,bI as k,bb as N,a_ as j,y as i,J as u}from"#entry";const V=i.reduce((t,n)=>(t[n]={type:[Boolean,String,Number],default:!1},t),{}),v=i.reduce((t,n)=>{const e="offset"+u(n);return t[e]={type:[String,Number],default:null},t},{}),L=i.reduce((t,n)=>{const e="order"+u(n);return t[e]={type:[String,Number],default:null},t},{}),y={col:Object.keys(V),offset:Object.keys(v),order:Object.keys(L)};function _(t,n,e){let s=t;if(!(e==null||e===!1)){if(n){const a=n.replace(t,"");s+=`-${a}`}return t==="col"&&(s="v-"+s),t==="col"&&(e===""||e===!0)||(s+=`-${e}`),s.toLowerCase()}}const G=["auto","start","end","center","baseline","stretch"],I=k({cols:{type:[Boolean,String,Number],default:!1},...V,offset:{type:[String,Number],default:null},...v,order:{type:[String,Number],default:null},...L,alignSelf:{type:String,default:null,validator:t=>G.includes(t)},...j(),...N()},"VCol"),K=m()({name:"VCol",props:I(),setup(t,n){let{slots:e}=n;const s=S(()=>{const a=[];let l;for(l in y)y[l].forEach(o=>{const c=t[o],g=_(l,o,c);g&&a.push(g)});const r=a.some(o=>o.startsWith("v-col-"));return a.push({"v-col":!r||!t.cols,[`v-col-${t.cols}`]:t.cols,[`offset-${t.offset}`]:t.offset,[`order-${t.order}`]:t.order,[`align-self-${t.alignSelf}`]:t.alignSelf}),a});return()=>C(t.tag,{class:[s.value,t.class],style:t.style},e.default?.())}}),f=["start","end","center"],$=["space-between","space-around","space-evenly"];function d(t,n){return i.reduce((e,s)=>{const a=t+u(s);return e[a]=n(),e},{})}const R=[...f,"baseline","stretch"],h=t=>R.includes(t),w=d("align",()=>({type:String,default:null,validator:h})),T=[...f,...$],P=t=>T.includes(t),E=d("justify",()=>({type:String,default:null,validator:P})),U=[...f,...$,"stretch"],A=t=>U.includes(t),O=d("alignContent",()=>({type:String,default:null,validator:A})),b={align:Object.keys(w),justify:Object.keys(E),alignContent:Object.keys(O)},B={align:"align",justify:"justify",alignContent:"align-content"};function M(t,n,e){let s=B[t];if(e!=null){if(n){const a=n.replace(t,"");s+=`-${a}`}return s+=`-${e}`,s.toLowerCase()}}const F=k({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:h},...w,justify:{type:String,default:null,validator:P},...E,alignContent:{type:String,default:null,validator:A},...O,...j(),...N()},"VRow"),x=m()({name:"VRow",props:F(),setup(t,n){let{slots:e}=n;const s=S(()=>{const a=[];let l;for(l in b)b[l].forEach(r=>{const o=t[r],c=M(l,r,o);c&&a.push(c)});return a.push({"v-row--no-gutters":t.noGutters,"v-row--dense":t.dense,[`align-${t.align}`]:t.align,[`justify-${t.justify}`]:t.justify,[`align-content-${t.alignContent}`]:t.alignContent}),a});return()=>C(t.tag,{class:["v-row",s.value,t.class],style:t.style},e.default?.())}});export{K as V,x as a};
