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