import{j as e,aV as n,bs as c,o as p,s as d}from"./index-CCv_8omK.js";import{S as u}from"./Switch-B-AVsYNw.js";const o=c(t=>e.jsx(u,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...t}))(({theme:t})=>({width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:t.palette.primary.main,opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:t.palette.primary.main,border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:t.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:t.palette.grey[200],opacity:1,transition:t.transitions.create(["background-color"],{duration:500})}}));function a({labelProps:t=null,...i}){return t?e.jsx(n,{control:e.jsx(o,{...i}),...t}):e.jsx(o,{...i})}a.propTypes={labelProps:p.object};function b({labelProps:t,className:i,style:r,...l}){const s={...t,labelPlacement:t?.labelPlacement||"start"};return e.jsx(m,{className:i,style:r,labelPlacement:t?.labelPlacement,children:e.jsx(a,{labelProps:s,...l})})}b.propTypes=a.propTypes;const m=d.div`
  max-width: ${({labelPlacement:t})=>t==="end"?"100%":"300px"};
  > label {
    display: flex;
    justify-content: ${({labelPlacement:t})=>t==="end"?"flex-start":"space-between"};
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .MuiFormControlLabel-labelPlacementEnd {
    .MuiSwitch-root {
      margin-right: 8px;
    }
  }
  ${({theme:t})=>t.breakpoints.down("sm")} {
    max-width: 100%;
  }
`;export{b as S,a as u};
