import{j as x,o as l,l as d,w as v,s as m,v as f,m as o,P as g,i as u,$ as S,a0 as _,x as B,z as k,A as w,a1 as C,a2 as P,a as b,H as n,c as y,F as O,t as $,I as V,J as I,n as z,K as h}from"./Bh-tMwKs.js";var N=x({__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,i=["horizontal","vertical"];function c(s){return i.includes(s)}const r=u(()=>c(a.orientation)?a.orientation:"horizontal"),p=u(()=>r.value==="vertical"?a.orientation:void 0),t=u(()=>a.decorative?{role:"none"}:{"aria-orientation":p.value,role:"separator"});return(s,q)=>(l(),d(o(g),f({as:s.as,"as-child":s.asChild,"data-orientation":r.value},t.value),{default:v(()=>[m(s.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),A=N,F=x({__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(i,c)=>(l(),d(A,S(_(a)),{default:v(()=>[m(i.$slots,"default")]),_:3},16))}}),j=F;const E={slots:{root:"flex items-center align-center text-center",border:"",container:"font-medium text-default flex",icon:"shrink-0 size-5",avatar:"shrink-0",avatarSize:"2xs",label:"text-sm"},variants:{color:{primary:{border:"border-primary"},secondary:{border:"border-secondary"},success:{border:"border-success"},info:{border:"border-info"},warning:{border:"border-warning"},error:{border:"border-error"},neutral:{border:"border-default"}},orientation:{horizontal:{root:"w-full flex-row",border:"w-full",container:"mx-3 whitespace-nowrap"},vertical:{root:"h-full flex-col",border:"h-full",container:"my-2"}},size:{xs:"",sm:"",md:"",lg:"",xl:""},type:{solid:{border:"border-solid"},dashed:{border:"border-dashed"},dotted:{border:"border-dotted"}}},compoundVariants:[{orientation:"horizontal",size:"xs",class:{border:"border-t"}},{orientation:"horizontal",size:"sm",class:{border:"border-t-[2px]"}},{orientation:"horizontal",size:"md",class:{border:"border-t-[3px]"}},{orientation:"horizontal",size:"lg",class:{border:"border-t-[4px]"}},{orientation:"horizontal",size:"xl",class:{border:"border-t-[5px]"}},{orientation:"vertical",size:"xs",class:{border:"border-s"}},{orientation:"vertical",size:"sm",class:{border:"border-s-[2px]"}},{orientation:"vertical",size:"md",class:{border:"border-s-[3px]"}},{orientation:"vertical",size:"lg",class:{border:"border-s-[4px]"}},{orientation:"vertical",size:"xl",class:{border:"border-s-[5px]"}}],defaultVariants:{color:"neutral",size:"xs",type:"solid"}},T={__name:"USeparator",props:{as:{type:null,required:!1},label:{type:String,required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},color:{type:null,required:!1},size:{type:null,required:!1},type:{type:null,required:!1},orientation:{type:null,required:!1,default:"horizontal"},class:{type:null,required:!1},ui:{type:null,required:!1},decorative:{type:Boolean,required:!1}},setup(e){const a=e,i=B(),c=k(),r=w("separator",a),p=C(P(a,"as","decorative","orientation")),t=u(()=>h({extend:h(E),...c.ui?.separator||{}})({color:a.color,orientation:a.orientation,size:a.size,type:a.type}));return(s,q)=>(l(),d(o(j),f(o(p),{"data-slot":"root",class:t.value.root({class:[o(r)?.root,a.class]})}),{default:v(()=>[b("div",{"data-slot":"border",class:n(t.value.border({class:o(r)?.border}))},null,2),e.label||e.icon||e.avatar||i.default?(l(),y(O,{key:0},[b("div",{"data-slot":"container",class:n(t.value.container({class:o(r)?.container}))},[m(s.$slots,"default",{ui:t.value},()=>[e.label?(l(),y("span",{key:0,"data-slot":"label",class:n(t.value.label({class:o(r)?.label}))},$(e.label),3)):e.icon?(l(),d(V,{key:1,name:e.icon,"data-slot":"icon",class:n(t.value.icon({class:o(r)?.icon}))},null,8,["name","class"])):e.avatar?(l(),d(I,f({key:2,size:o(r)?.avatarSize||t.value.avatarSize()},e.avatar,{"data-slot":"avatar",class:t.value.avatar({class:o(r)?.avatar})}),null,16,["size","class"])):z("",!0)])],2),b("div",{"data-slot":"border",class:n(t.value.border({class:o(r)?.border}))},null,2)],64)):z("",!0)]),_:3},16,["class"]))}};export{T as _};
