import{a as e,n as t}from"./preload-helper-DxX6f4wy.js";import{$ as n,E as r,I as i,O as a,d as o,f as s,g as c}from"./Fade-Bj1YUcWe.js";import{r as l}from"./MenuItem-CfYCN_Ah.js";var u=e(t()),d=n(),f=e=>{let{absolute:t,children:n,classes:i,flexItem:a,light:o,orientation:s,textAlign:c,variant:u}=e;return r({root:[`root`,t&&`absolute`,u,o&&`light`,s===`vertical`&&`vertical`,a&&`flexItem`,n&&`withChildren`,n&&s===`vertical`&&`withChildrenVertical`,c===`right`&&s!==`vertical`&&`textAlignRight`,c===`left`&&s!==`vertical`&&`textAlignLeft`],wrapper:[`wrapper`,s===`vertical`&&`wrapperVertical`]},l,i)},p=c(`div`,{name:`MuiDivider`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation===`vertical`&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation===`vertical`&&t.withChildrenVertical,n.textAlign===`right`&&n.orientation!==`vertical`&&t.textAlignRight,n.textAlign===`left`&&n.orientation!==`vertical`&&t.textAlignLeft]}})(s(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:`solid`,borderColor:(e.vars||e).palette.divider,borderBottomWidth:`thin`,variants:[{props:{absolute:!0},style:{position:`absolute`,bottom:0,left:0,width:`100%`}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:a(e.palette.divider,.08)}},{props:{variant:`inset`},style:{marginLeft:72}},{props:{variant:`middle`,orientation:`horizontal`},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:`middle`,orientation:`vertical`},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:`vertical`},style:{height:`100%`,borderBottomWidth:0,borderRightWidth:`thin`}},{props:{flexItem:!0},style:{alignSelf:`stretch`,height:`auto`}},{props:({ownerState:e})=>!!e.children,style:{display:`flex`,textAlign:`center`,border:0,borderTopStyle:`solid`,borderLeftStyle:`solid`,"&::before, &::after":{content:`""`,alignSelf:`center`}}},{props:({ownerState:e})=>e.children&&e.orientation!==`vertical`,style:{"&::before, &::after":{width:`100%`,borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:`inherit`}}},{props:({ownerState:e})=>e.orientation===`vertical`&&e.children,style:{flexDirection:`column`,"&::before, &::after":{height:`100%`,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:`inherit`}}},{props:({ownerState:e})=>e.textAlign===`right`&&e.orientation!==`vertical`,style:{"&::before":{width:`90%`},"&::after":{width:`10%`}}},{props:({ownerState:e})=>e.textAlign===`left`&&e.orientation!==`vertical`,style:{"&::before":{width:`10%`},"&::after":{width:`90%`}}}]}))),m=c(`span`,{name:`MuiDivider`,slot:`Wrapper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.wrapper,n.orientation===`vertical`&&t.wrapperVertical]}})(s(({theme:e})=>({display:`inline-block`,paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:`nowrap`,variants:[{props:{orientation:`vertical`},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),h=u.forwardRef(function(e,t){let n=o({props:e,name:`MuiDivider`}),{absolute:r=!1,children:a,className:s,orientation:c=`horizontal`,component:l=a||c===`vertical`?`div`:`hr`,flexItem:u=!1,light:h=!1,role:g=l===`hr`?void 0:`separator`,textAlign:_=`center`,variant:v=`fullWidth`,...y}=n,b={...n,absolute:r,component:l,flexItem:u,light:h,orientation:c,role:g,textAlign:_,variant:v},x=f(b);return(0,d.jsx)(p,{as:l,className:i(x.root,s),role:g,ref:t,ownerState:b,"aria-orientation":g===`separator`&&(l!==`hr`||c===`vertical`)?c:void 0,...y,children:a?(0,d.jsx)(m,{className:x.wrapper,ownerState:b,children:a}):null})});h&&(h.muiSkipListHighlight=!0);export{h as t};