import{a as S,i as T,h as _}from"./VImg-601f5a2c.js";import{p as h,y as w,z as u,B as C,D as L,c as V,b as v,J as B,aK as P,T as g,ab as m,aL as $}from"./index-9b57d2d5.js";const A=h({color:String,inset:Boolean,length:[Number,String],thickness:[Number,String],vertical:Boolean,...S(),...w()},"VDivider"),z=u()({name:"VDivider",props:A(),setup(i,l){let{attrs:s}=l;const{themeClasses:n}=C(i),{textColorClasses:r,textColorStyles:a}=T(L(i,"color")),t=V(()=>{const e={};return i.length&&(e[i.vertical?"maxHeight":"maxWidth"]=v(i.length)),i.thickness&&(e[i.vertical?"borderRightWidth":"borderTopWidth"]=v(i.thickness)),e});return _(()=>B("hr",{class:[{"v-divider":!0,"v-divider--inset":i.inset,"v-divider--vertical":i.vertical},n.value,r.value,i.class],style:[t.value,a.value,i.style],"aria-orientation":!s.role||s.role==="separator"?i.vertical?"vertical":"horizontal":void 0,role:`${s.role||"separator"}`},null)),{}}}),E=h({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function o(i,l,s){return u()({name:i,props:E({mode:s,origin:l}),setup(n,r){let{slots:a}=r;const t={onBeforeEnter(e){n.origin&&(e.style.transformOrigin=n.origin)},onLeave(e){if(n.leaveAbsolute){const{offsetTop:d,offsetLeft:f,offsetWidth:c,offsetHeight:y}=e;e._transitionInitialStyles={position:e.style.position,top:e.style.top,left:e.style.left,width:e.style.width,height:e.style.height},e.style.position="absolute",e.style.top=`${d}px`,e.style.left=`${f}px`,e.style.width=`${c}px`,e.style.height=`${y}px`}n.hideOnLeave&&e.style.setProperty("display","none","important")},onAfterLeave(e){if(n.leaveAbsolute&&(e!=null&&e._transitionInitialStyles)){const{position:d,top:f,left:c,width:y,height:p}=e._transitionInitialStyles;delete e._transitionInitialStyles,e.style.position=d||"",e.style.top=f||"",e.style.left=c||"",e.style.width=y||"",e.style.height=p||""}}};return()=>{const e=n.group?P:g;return m(e,{name:n.disabled?"":i,css:!n.disabled,...n.group?void 0:{mode:n.mode},...n.disabled?{}:t},a.default)}}})}function x(i,l){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return u()({name:i,props:{mode:{type:String,default:s},disabled:Boolean},setup(n,r){let{slots:a}=r;return()=>m(g,{name:n.disabled?"":i,css:!n.disabled,...n.disabled?{}:l},a.default)}})}function b(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const s=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",n=$(`offset-${s}`);return{onBeforeEnter(t){t._parent=t.parentNode,t._initialStyle={transition:t.style.transition,overflow:t.style.overflow,[s]:t.style[s]}},onEnter(t){const e=t._initialStyle;t.style.setProperty("transition","none","important"),t.style.overflow="hidden";const d=`${t[n]}px`;t.style[s]="0",t.offsetHeight,t.style.transition=e.transition,i&&t._parent&&t._parent.classList.add(i),requestAnimationFrame(()=>{t.style[s]=d})},onAfterEnter:a,onEnterCancelled:a,onLeave(t){t._initialStyle={transition:"",overflow:t.style.overflow,[s]:t.style[s]},t.style.overflow="hidden",t.style[s]=`${t[n]}px`,t.offsetHeight,requestAnimationFrame(()=>t.style[s]="0")},onAfterLeave:r,onLeaveCancelled:r};function r(t){i&&t._parent&&t._parent.classList.remove(i),a(t)}function a(t){const e=t._initialStyle[s];t.style.overflow=t._initialStyle.overflow,e!=null&&(t.style[s]=e),delete t._initialStyle}}o("fab-transition","center center","out-in");o("dialog-bottom-transition");o("dialog-top-transition");const F=o("fade-transition");o("scale-transition");o("scroll-x-transition");o("scroll-x-reverse-transition");o("scroll-y-transition");o("scroll-y-reverse-transition");o("slide-x-transition");o("slide-x-reverse-transition");const H=o("slide-y-transition");o("slide-y-reverse-transition");const I=x("expand-transition",b()),N=x("expand-x-transition",b("",!0));export{z as V,H as a,N as b,I as c,F as d};
