import{g,b4 as h,aq as y,a as b,c as n,ah as d,n as s,i as S,aF as a,aH as _,p as C,av as k,az as V}from"#entry";const w=["dotted","dashed","solid","double"],O=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=>w.includes(e)},...V(),...k()},"VDivider"),B=g()({name:"VDivider",props:O(),setup(e,o){let{attrs:i,slots:r}=o;const{themeClasses:c}=h(e),{textColorClasses:v,textColorStyles:u}=y(()=>e.color),f=S(()=>{const t={};return e.length&&(t[e.vertical?"height":"width"]=a(e.length)),e.thickness&&(t[e.vertical?"borderRightWidth":"borderTopWidth"]=a(e.thickness)),t}),m=_(()=>{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?a(t):void 0,marginInline:!e.vertical&&t?a(t):void 0,transform:l?`translate${e.vertical?"X":"Y"}(${a(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":!i.role||i.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${i.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};
