var _=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var f=(t,e)=>{var r={};for(var a in t)g.call(t,a)&&e.indexOf(a)<0&&(r[a]=t[a]);if(t!=null&&_)for(var a of _(t))e.indexOf(a)<0&&S.call(t,a)&&(r[a]=t[a]);return r};import{a1 as u,E as l,ai as c,aj as p,ak as d,al as m,ag as y,a9 as i,av as x,aw as B,aS as v,ap as b,an as q,ay as C,aR as k}from"../jse/index-index-BUJ_4tQs.js";import{bL as z}from"./bootstrap-Bqxdt4iG.js";var P=u({__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(t){const e=t,r=["horizontal","vertical"];function a(o){return r.includes(o)}const s=l(()=>a(e.orientation)?e.orientation:"horizontal"),n=l(()=>s.value==="vertical"?e.orientation:void 0),h=l(()=>e.decorative?{role:"none"}:{"aria-orientation":n.value,role:"separator"});return(o,N)=>(p(),c(i(z),y({as:o.as,"as-child":o.asChild,"data-orientation":s.value},h.value),{default:d(()=>[m(o.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),w=P,O=u({__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(t){const e=t;return(r,a)=>(p(),c(w,x(B(e)),{default:d(()=>[m(r.$slots,"default")]),_:3},16))}}),E=O;const T=u({__name:"Separator",props:{orientation:{},decorative:{type:Boolean},asChild:{type:Boolean},as:{},class:{},label:{}},setup(t){const e=t,r=l(()=>{const n=e,{class:a}=n;return f(n,["class"])});return(a,s)=>(p(),c(i(E),y(r.value,{class:i(v)("relative shrink-0 bg-border",e.orientation==="vertical"?"h-full w-px":"h-px w-full",e.class)}),{default:d(()=>[e.label?(p(),b("span",{key:0,class:k(i(v)("absolute left-1/2 top-1/2 flex -translate-x-1/2 -translate-y-1/2 items-center justify-center bg-background text-xs text-muted-foreground",e.orientation==="vertical"?"w-[1px] px-1 py-2":"h-[1px] px-2 py-1"))},C(e.label),3)):q("",!0)]),_:1},16,["class"]))}});export{T as _};
