import{aB as x,j as c,a3 as B,a4 as P,r as u,al as y,am as M,ao as n,aq as g,ar as l,as as S,at as R,ax as _,aA as H}from"./index-B1H8BCL7.js";import{S as E}from"./SwitchBase-BKMEO22T.js";const O=x(c.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),U=x(c.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),V=x(c.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function L(o){return B("MuiCheckbox",o)}const m=P("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),N=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],F=o=>{const{classes:e,indeterminate:a,color:s,size:r}=o,t={root:["root",a&&"indeterminate",`color${l(s)}`,`size${l(r)}`]},d=S(t,L,e);return n({},e,d)},q=R(E,{shouldForwardProp:o=>_(o)||o==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:a}=o;return[e.root,a.indeterminate&&e.indeterminate,e[`size${l(a.size)}`],a.color!=="default"&&e[`color${l(a.color)}`]]}})(({theme:o,ownerState:e})=>n({color:(o.vars||o).palette.text.secondary},!e.disableRipple&&{"&:hover":{backgroundColor:o.vars?`rgba(${e.color==="default"?o.vars.palette.action.activeChannel:o.vars.palette[e.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})`:H(e.color==="default"?o.palette.action.active:o.palette[e.color].main,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${m.checked}, &.${m.indeterminate}`]:{color:(o.vars||o).palette[e.color].main},[`&.${m.disabled}`]:{color:(o.vars||o).palette.action.disabled}})),A=c.jsx(U,{}),D=c.jsx(O,{}),W=c.jsx(V,{}),J=u.forwardRef(function(e,a){var s,r;const t=y({props:e,name:"MuiCheckbox"}),{checkedIcon:d=A,color:z="primary",icon:b=D,indeterminate:i=!1,indeterminateIcon:h=W,inputProps:I,size:p="medium",className:$}=t,j=M(t,N),C=i?h:b,k=i?h:d,v=n({},t,{color:z,indeterminate:i,size:p}),f=F(v);return c.jsx(q,n({type:"checkbox",inputProps:n({"data-indeterminate":i},I),icon:u.cloneElement(C,{fontSize:(s=C.props.fontSize)!=null?s:p}),checkedIcon:u.cloneElement(k,{fontSize:(r=k.props.fontSize)!=null?r:p}),ownerState:v,ref:a,className:g(f.root,$)},j,{classes:f}))});export{J as C};
