import{n as c}from"./index-W86lZ1ks.js";import{u,m}from"./dimensions-g-Hg75km.js";import{s as h,x as f,y as g,C as y,c as C,F as s,e as r,A as _}from"./index-BrhME0Dw.js";const b=f({color:String,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,...m(),..._()},"VDivider"),x=h()({name:"VDivider",props:b(),setup(e,o){let{attrs:i,slots:a}=o;const{themeClasses:n}=g(e),{textColorClasses:l,textColorStyles:d}=c(y(e,"color")),v=C(()=>{const t={};return e.length&&(t[e.vertical?"height":"width"]=s(e.length)),e.thickness&&(t[e.vertical?"borderRightWidth":"borderTopWidth"]=s(e.thickness)),t});return u(()=>{const t=r("hr",{class:[{"v-divider":!0,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},n.value,l.value,e.class],style:[v.value,d.value,{"--v-border-opacity":e.opacity},e.style],"aria-orientation":!i.role||i.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${i.role||"separator"}`},null);return a.default?r("div",{class:["v-divider__wrapper",{"v-divider__wrapper--vertical":e.vertical,"v-divider__wrapper--inset":e.inset}]},[t,r("div",{class:"v-divider__content"},[a.default()]),t]):t}),{}}});export{x as V};
