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