import{P as h,c as m}from"./DT-hKSom.js";import{d as l,s as n,c as p,o as u,w as d,D as c,m as _,u as o,ai as y,aB as B}from"./m2W8DxR4.js";import{r as S}from"./DN4yyKL7.js";var g=l({__name:"BaseSeparator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const a=e,t=["horizontal","vertical"];function i(r){return t.includes(r)}const s=n(()=>i(a.orientation)?a.orientation:"horizontal"),f=n(()=>s.value==="vertical"?a.orientation:void 0),v=n(()=>a.decorative?{role:"none"}:{"aria-orientation":f.value,role:"separator"});return(r,C)=>(u(),p(o(h),_({as:r.as,"as-child":r.asChild,"data-orientation":s.value},v.value),{default:d(()=>[c(r.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),q=g,z=l({__name:"Separator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const a=e;return(t,i)=>(u(),p(q,y(B(a)),{default:d(()=>[c(t.$slots,"default")]),_:3},16))}}),P=z;const x=l({__name:"Separator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean,default:!0},asChild:{type:Boolean},as:{},class:{}},setup(e){const a=e,t=S(a,"class");return(i,s)=>(u(),p(o(P),_({"data-slot":"separator-root"},o(t),{class:o(m)("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",a.class)}),null,16,["class"]))}});export{P as S,x as _};
