import{au as g,bL as h,cI as y,cw as b,W as n,bo as d,bm as s,O as _,U as i,c3 as S,bI as C,bc as k,a_ as w}from"#entry";const O=["dotted","dashed","solid","double"],V=C({color:String,contentOffset:[Number,String,Array],gradient:Boolean,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,variant:{type:String,default:"solid",validator:e=>O.includes(e)},...w(),...k()},"VDivider"),B=g()({name:"VDivider",props:V(),setup(e,o){let{attrs:a,slots:r}=o;const{themeClasses:c}=h(e),{textColorClasses:v,textColorStyles:u}=y(()=>e.color),f=_(()=>{const t={};return e.length&&(t[e.vertical?"height":"width"]=i(e.length)),e.thickness&&(t[e.vertical?"borderRightWidth":"borderTopWidth"]=i(e.thickness)),t}),m=S(()=>{const t=Array.isArray(e.contentOffset)?e.contentOffset[0]:e.contentOffset,l=Array.isArray(e.contentOffset)?e.contentOffset[1]:0;return{marginBlock:e.vertical&&t?i(t):void 0,marginInline:!e.vertical&&t?i(t):void 0,transform:l?`translate${e.vertical?"X":"Y"}(${i(l)})`:void 0}});return b(()=>{const t=n("hr",{class:s([{"v-divider":!0,"v-divider--gradient":e.gradient&&!r.default,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},c.value,v.value,e.class]),style:d([f.value,u.value,{"--v-border-opacity":e.opacity},{"border-style":e.variant},e.style]),"aria-orientation":!a.role||a.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${a.role||"separator"}`},null);return r.default?n("div",{class:s(["v-divider__wrapper",{"v-divider__wrapper--gradient":e.gradient,"v-divider__wrapper--inset":e.inset,"v-divider__wrapper--vertical":e.vertical}])},[t,n("div",{class:"v-divider__content",style:d(m.value)},[r.default()]),t]):t}),{}}});export{B as V};
