import{Q as y,a0 as _,a1 as k,O as d,bt as q,o as r,a as c,p as n,s,bu as h,ac as l,q as u,f as m,af as B,P,c as b,am as v}from"./B3fabVUf.js";const x={slots:{root:"flex flex-col lg:grid lg:grid-cols-10 lg:gap-10",left:"lg:col-span-2",center:"lg:col-span-8",right:"lg:col-span-2 order-first lg:order-last"},variants:{left:{true:""},right:{true:""}},compoundVariants:[{left:!0,right:!0,class:{center:"lg:col-span-6"}},{left:!1,right:!1,class:{center:"lg:col-span-10"}}]},V={__name:"UPage",props:{as:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(i){const f=i,e=y(),C=_(),a=k("page",f),g=d(!!e.left),p=d(!!e.right);q(()=>{g.value=!!e.left,p.value=!!e.right});const t=b(()=>v({extend:v(x),...C.ui?.page||{}})({left:g.value,right:p.value}));return(o,S)=>(r(),c(s(P),{as:i.as,"data-slot":"root",class:l(t.value.root({class:[s(a)?.root,f.class]}))},{default:n(()=>[e.left?(r(),c(s(h),{key:0,"data-slot":"left",class:l(t.value.left({class:s(a)?.left}))},{default:n(()=>[u(o.$slots,"left")]),_:3},8,["class"])):m("",!0),B("div",{"data-slot":"center",class:l(t.value.center({class:s(a)?.center}))},[u(o.$slots,"default")],2),e.right?(r(),c(s(h),{key:1,"data-slot":"right",class:l(t.value.right({class:s(a)?.right}))},{default:n(()=>[u(o.$slots,"right")]),_:3},8,["class"])):m("",!0)]),_:3},8,["as","class"]))}};export{V as _};
